/* ============================================
   VS WEB STUDIO — MAIN CSS
   1. TOKENS
   2. RESET / BASE
   3. TYPOGRAPHY
   4. LAYOUT
   5. COMPONENTS
   6. UTILITIES
   7. HEADER
   8. FOOTER
   ============================================ */

/* ============================================
   1. TOKENS
   ============================================ */
:root{
  --bg-root:#05060A;
  --bg-layer-1:#0A0D12;
  --bg-layer-2:#0F141B;

  --accent-primary:#7BA8FF;
  --accent-teal:#4FD8C8;
  --accent-ice:#A8C8FF;

  --text-main:#F5F7FF;
  --text-muted:#A5AEC4;
  --text-soft:#7C8498;

  --glass-bg:rgba(12,16,24,.55);
  --glass-bg-strong:rgba(12,16,24,.72);
  --glass-blur:26px;

  --border-soft:rgba(255,255,255,.08);
  --border-strong:rgba(255,255,255,.16);

  --shadow-soft:0 22px 55px rgba(0,0,0,.55);
  --shadow-lg:0 18px 60px rgba(0,0,0,.42);
  --glow-primary:0 0 42px rgba(123,168,255,.45);

  --radius-lg:24px;
  --radius-md:16px;
  --radius-sm:10px;
  --radius-pill:999px;

  --font-sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  --font-serif:"Playfair Display",serif;

  --space-4:4px;
  --space-8:8px;
  --space-12:12px;
  --space-16:16px;
  --space-20:20px;
  --space-24:24px;
  --space-32:32px;
  --space-40:40px;
  --space-48:48px;
  --space-64:64px;
  --space-80:80px;

  --container:1180px;
  --container-wide:1280px;
  --header-height:76px;
}

/* ============================================
   2. RESET / BASE
   ============================================ */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

html,
body{
  margin:0;
  padding:0;
}

body{
  min-height:100vh;
  background:
    radial-gradient(circle at 20% 0%, #1A1F2A 0%, #05060A 60%, #000000 100%);
  color:var(--text-main);
  font-family:var(--font-sans);
  font-size:.97rem;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

img,
picture,
svg,
canvas{
  display:block;
  max-width:100%;
}

img{
  height:auto;
}

a{
  color:inherit;
}

button,
input,
textarea,
select{
  font:inherit;
}

button{
  color:inherit;
}

input,
textarea,
select{
  min-width:0;
}

textarea{
  resize:vertical;
}

:focus-visible{
  outline:2px solid rgba(123,168,255,.75);
  outline-offset:2px;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1,h2,h3,h4,h5,h6{
  margin:0 0 var(--space-20);
  color:var(--text-main);
  font-weight:500;
  letter-spacing:-.01em;
  line-height:1.1;
}

h1{
  font-size:clamp(2.4rem,5vw,3.6rem);
  font-family:var(--font-serif);
}

h2{
  font-size:clamp(1.8rem,3vw,2.4rem);
}

h3{
  font-size:1.4rem;
}

p{
  margin:0 0 var(--space-16);
}

.section-title{
  margin-bottom:var(--space-16);
  font-family:var(--font-serif);
  font-size:clamp(2.4rem,5vw,3.4rem);
  line-height:1.1;
}

.section-subtitle{
  max-width:540px;
  color:var(--text-muted);
  font-size:1.05rem;
  line-height:1.55;
}

.eyebrow{
  margin-bottom:var(--space-12);
  color:var(--text-soft);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.18em;
}

/* ============================================
   4. LAYOUT
   ============================================ */
.section{
  padding:var(--space-64) var(--space-16);
}

.section__inner{
  width:min(100%, var(--container));
  margin:0 auto;
}

.grid-2,
.grid-3,
.grid-4{
  display:grid;
}

.grid-2{
  grid-template-columns:minmax(0,1fr);
  gap:var(--space-40);
}

.grid-3,
.grid-4{
  grid-template-columns:minmax(0,1fr);
  gap:var(--space-32);
}

@media (min-width:768px){
  .grid-2{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .grid-3{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .grid-4{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

/* ============================================
   5. COMPONENTS
   ============================================ */
.btn,
.vs-btn,
.vs-footer__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:0 22px;
  border:none;
  border-radius:var(--radius-pill);
  text-decoration:none;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, opacity .22s ease, background .22s ease, color .22s ease;
}

.btn:hover,
.vs-btn:hover,
.vs-footer__btn:hover,
.btn:focus-visible,
.vs-btn:focus-visible,
.vs-footer__btn:focus-visible{
  transform:translateY(-1px);
  outline:none;
}

.btn--primary,
.vs-btn--primary,
.vs-footer__btn{
  color:#08101a;
  background:linear-gradient(135deg, var(--accent-primary), var(--accent-teal));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:
    0 12px 36px rgba(79,216,200,.14),
    0 10px 28px rgba(123,168,255,.18);
}

.btn--ghost,
.vs-btn--ghost{
  color:var(--text-main);
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}

.btn--ghost:hover,
.vs-btn--ghost:hover,
.btn--ghost:focus-visible,
.vs-btn--ghost:focus-visible{
  border-color:rgba(255,255,255,.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 12px 30px rgba(0,0,0,.2);
}

.card,
.card-glass{
  position:relative;
  overflow:hidden;
  padding:var(--space-32);
  background:var(--glass-bg-strong);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-lg);
  backdrop-filter:blur(var(--glass-blur));
  -webkit-backdrop-filter:blur(var(--glass-blur));
  box-shadow:
    var(--shadow-soft),
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 0 42px rgba(123,168,255,.25);
  transition:transform .25s ease, box-shadow .25s ease;
}

.card::before,
.card-glass::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:radial-gradient(circle at top, rgba(123,168,255,.18), transparent 70%);
  opacity:0;
  transition:opacity .35s ease;
}

.card:hover,
.card-glass:hover{
  transform:translateY(-6px);
  box-shadow:
    var(--shadow-soft),
    0 0 55px rgba(123,168,255,.55);
}

.card:hover::before,
.card-glass:hover::before{
  opacity:1;
}

.field input,
.field textarea{
  width:100%;
  padding:14px 18px;
  color:var(--text-main);
  background:rgba(255,255,255,.04);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-md);
  transition:border-color .25s ease, box-shadow .25s ease;
}

.field input:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--accent-primary);
  box-shadow:0 0 18px rgba(123,168,255,.35);
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  color:var(--text-soft);
  font-size:.82rem;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-pill);
  backdrop-filter:blur(12px);
}

.pill--accent{
  color:var(--accent-ice);
  border-color:rgba(123,168,255,.45);
}

/* ============================================
   6. UTILITIES
   ============================================ */
.text-center{ text-align:center; }
.hide{ display:none !important; }

.mt-24{ margin-top:var(--space-24); }
.mt-32{ margin-top:var(--space-32); }
.mt-48{ margin-top:var(--space-48); }

.mb-24{ margin-bottom:var(--space-24); }
.mb-32{ margin-bottom:var(--space-32); }
.mb-48{ margin-bottom:var(--space-48); }

.fade-start{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .6s ease, transform .6s ease;
  will-change:opacity, transform;
}

.fade-start.visible{
  opacity:1;
  transform:translateY(0);
}

/* ============================================
   7. HEADER
   ============================================ */
.vs-header,
.vs-header *{
  box-sizing:border-box;
}

.vs-header{
  position:sticky;
  top:0;
  z-index:1000;
  width:100%;
  padding:14px 20px;
  background:linear-gradient(180deg, rgba(8,12,22,.86), rgba(8,12,22,.68));
  border-bottom:1px solid var(--border-soft);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  transition:transform .28s ease, background .28s ease;
}

.vs-header::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(500px 120px at 15% 0%, rgba(123,168,255,.14), transparent 60%),
    radial-gradient(420px 120px at 85% 0%, rgba(79,216,200,.08), transparent 60%);
  opacity:.9;
}

.vs-header__inner{
  position:relative;
  z-index:1;
  width:min(100%, var(--container-wide));
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:24px;
}

.vs-brand{
  display:inline-flex;
  align-items:center;
  min-width:0;
  text-decoration:none;
  flex-shrink:0;
}

.vs-brand__logo{
  display:block;
  width:auto;
  height:44px;
  max-width:100%;
  object-fit:contain;
}

.vs-nav{
  display:flex;
  align-items:center;
  gap:30px;
  margin-left:auto;
}

.vs-nav a{
  color:rgba(245,247,255,.76);
  text-decoration:none;
  font-size:.98rem;
  font-weight:500;
  letter-spacing:.01em;
  transition:color .22s ease, opacity .22s ease, transform .22s ease;
}

.vs-nav a:hover,
.vs-nav a:focus-visible{
  color:var(--text-main);
  opacity:1;
  transform:translateY(-1px);
  outline:none;
}

.vs-phone-desktop{
  color:rgba(245,247,255,.76);
  text-decoration:none;
  font-size:.96rem;
  font-weight:500;
  white-space:nowrap;
  opacity:.92;
  transition:color .22s ease, opacity .22s ease;
}

.vs-phone-desktop:hover,
.vs-phone-desktop:focus-visible{
  color:var(--text-main);
  opacity:1;
  outline:none;
}

.vs-phone-mobile{
  display:none;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  margin-left:auto;
  color:#b5a6ff;
  text-decoration:none;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius-pill);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  flex-shrink:0;
}

.vs-phone-mobile__icon{
  width:22px;
  height:22px;
}

.vs-menu-btn{
  display:none;
  width:46px;
  height:46px;
  padding:0;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  cursor:pointer;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex-shrink:0;
}

.vs-menu-btn span{
  width:20px;
  height:2px;
  border-radius:999px;
  background:var(--text-main);
  transition:transform .25s ease, opacity .25s ease, background .25s ease;
}

.vs-menu-btn.active span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.vs-menu-btn.active span:nth-child(2){
  opacity:0;
}

.vs-menu-btn.active span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

.vs-menu-overlay{
  position:fixed;
  inset:0;
  z-index:1090;
  background:rgba(0,0,0,.56);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  pointer-events:none;
  transition:opacity .28s ease;
}

.vs-menu-overlay.active{
  opacity:1;
  pointer-events:auto;
}

.vs-mobile-menu{
  position:fixed;
  top:0;
  right:0;
  z-index:1100;
  width:min(88vw, 390px);
  height:100dvh;
  padding:22px 20px 26px;
  display:flex;
  flex-direction:column;
  gap:28px;
  background:linear-gradient(180deg, rgba(10,15,28,.96), rgba(8,12,22,.98));
  border-left:1px solid var(--border-strong);
  box-shadow:-16px 0 40px rgba(0,0,0,.34);
  transform:translateX(104%);
  transition:transform .3s ease;
  pointer-events:none;
}

.vs-mobile-menu.open{
  transform:translateX(0);
  pointer-events:auto;
}

.vs-mobile-menu::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(123,168,255,.16), transparent 55%),
    radial-gradient(300px 180px at 0% 100%, rgba(79,216,200,.08), transparent 50%);
}

.vs-mobile-menu__top,
.vs-mobile-nav,
.vs-mobile-menu__actions{
  position:relative;
  z-index:1;
}

.vs-mobile-menu__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.vs-brand__logo--mobile{
  height:40px;
}

.vs-mobile-menu__close{
  position:relative;
  width:44px;
  height:44px;
  padding:0;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  cursor:pointer;
  flex-shrink:0;
}

.vs-mobile-menu__close span{
  position:absolute;
  left:50%;
  top:50%;
  width:18px;
  height:2px;
  background:var(--text-main);
  border-radius:999px;
}

.vs-mobile-menu__close span:first-child{
  transform:translate(-50%, -50%) rotate(45deg);
}

.vs-mobile-menu__close span:last-child{
  transform:translate(-50%, -50%) rotate(-45deg);
}

.vs-mobile-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.vs-mobile-nav a{
  display:block;
  padding:14px 16px;
  color:var(--text-main);
  text-decoration:none;
  font-size:1.05rem;
  font-weight:600;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.05);
  border-radius:14px;
  transition:background .22s ease, border-color .22s ease, transform .22s ease;
}

.vs-mobile-nav a:hover,
.vs-mobile-nav a:focus-visible{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.1);
  transform:translateX(2px);
  outline:none;
}

.vs-mobile-menu__actions{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.vs-mobile-cta{
  width:100%;
  justify-content:center;
}

.vs-mobile-phone{
  padding-top:6px;
  color:rgba(245,247,255,.76);
  text-align:center;
  text-decoration:none;
  font-size:.96rem;
  font-weight:500;
}

@media (max-width:980px){
  .vs-nav,
  .vs-phone-desktop,
  .vs-navcta{
    display:none;
  }

  .vs-phone-mobile,
  .vs-menu-btn{
    display:inline-flex;
  }
}

@media (max-width:640px){
  .vs-header{
    padding:12px 14px;
  }

  .vs-header__inner{
    gap:12px;
  }

  .vs-brand{
    max-width:calc(100% - 116px);
  }

  .vs-brand__logo{
    height:36px;
  }

  .vs-phone-mobile,
  .vs-menu-btn{
    width:42px;
    height:42px;
  }

  .vs-mobile-menu{
    width:min(90vw, 360px);
    padding:18px 16px 22px;
  }

  .vs-brand__logo--mobile{
    height:34px;
  }
}

/* ============================================
   8. FOOTER
   ============================================ */
.vs-footer{
  position:relative;
  overflow:hidden;
  margin-top:40px;
  padding:40px 16px 20px;
  background:linear-gradient(180deg, rgba(8,12,22,.78), rgba(7,10,18,.92));
  border-top:1px solid var(--border-soft);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.vs-footer::before{
  content:"";
  position:absolute;
  inset:-35%;
  pointer-events:none;
  background:
    radial-gradient(circle at top left, rgba(123,168,255,.16), transparent 35%),
    radial-gradient(circle at top right, rgba(79,216,200,.10), transparent 32%);
  opacity:.9;
}

.vs-footer__inner{
  position:relative;
  z-index:1;
  width:min(100%, var(--container));
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
  text-align:center;
}

.vs-footer__brand{
  max-width:560px;
  margin:0 auto;
}

.vs-footer__logo{
  display:block;
  width:auto;
  height:46px;
  max-width:100%;
  margin:0 auto 12px;
}

.vs-footer__tagline{
  margin:0;
  color:rgba(245,247,255,.72);
  font-size:.95rem;
  line-height:1.6;
  max-width:48ch;
}

.vs-footer__contact{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:9px;
}

.vs-footer__contact a{
  color:rgba(245,247,255,.72);
  text-decoration:none;
  font-size:.93rem;
  transition:color .22s ease, opacity .22s ease;
}

.vs-footer__contact a:hover{
  color:#8f86ff;
}

.vs-footer__col{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.vs-footer__heading{
  margin:0;
  color:var(--text-main);
  font-size:.96rem;
  font-weight:700;
  letter-spacing:.01em;
}

.vs-footer__links,
.vs-footer__links li{
  list-style:none;
  margin:0;
  padding:0;
}

.vs-footer__links{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.vs-footer__links a{
  color:rgba(245,247,255,.70);
  text-decoration:none;
  font-size:.93rem;
  transition:color .22s ease, transform .22s ease;
}

.vs-footer__links a:hover{
  color:#8f86ff;
  transform:translateX(2px);
}

.vs-footer__cta{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.vs-footer__cta-text{
  margin:0;
  color:rgba(245,247,255,.70);
  font-size:.93rem;
  line-height:1.55;
}

.vs-footer__bottom{
  position:relative;
  z-index:1;
  width:min(100%, var(--container));
  margin:24px auto 0;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
  color:rgba(245,247,255,.62);
  font-size:.85rem;
  line-height:1.6;
}

.vs-footer__bottom p{
  margin:5px 0;
}

.vs-footer__signature{
  display:block;
  margin-top:6px;
  font-size:.8rem;
  opacity:.88;
}

@media (min-width:768px){
  .vs-footer{
    padding:46px 20px 22px;
  }

  .vs-footer__inner{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
    text-align:left;
  }

  .vs-footer__brand{
    margin:0;
  }

  .vs-footer__logo{
    margin:0 0 12px;
    height:50px;
  }
}

@media (min-width:1024px){
  .vs-footer__inner{
    grid-template-columns:1.45fr .9fr .9fr 1fr;
    gap:28px;
  }
}

@media (max-width:767px){
  .vs-footer__btn{
    width:100%;
    max-width:360px;
    margin:0 auto;
  }
}