:root{
  --bg:#fbfcff;
  --ink:#0f1b2d;
  --muted:#5d6b86;

  --line:rgba(15,27,45,.10);
  --card:rgba(255,255,255,.82);

  --shadow:0 18px 60px rgba(24,53,102,.14);
  --shadow2:0 14px 46px rgba(24,53,102,.10);

  --blue:#2d6bff;
  --blue2:#0d49ff;

  --radius:22px;
  --header-h:76px;

  --site-max:1140px;
  --site-pad:20px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.container{
  width:min(var(--site-max), calc(100% - (var(--site-pad) * 2)));
  margin:0 auto;
}

.muted{ color:var(--muted); }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Header */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:2000;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(251,252,255,.86);
  border-bottom:1px solid rgba(15,27,45,.08);
  box-shadow: 0 10px 30px rgba(24,53,102,.06);
}
.header-inner{
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

/* Brand */
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  position:relative;
  isolation:isolate;
}
.brand-logo{
  height:52px;
  width:auto;
  transform: translateZ(0);
  backface-visibility:hidden;
}
.logo-wow::before{ content:none; }

/* Nav (desktop default) */
.nav{
  display:flex;
  align-items:center;
  gap:10px;
}
.nav a{ font-weight:800; }

/* Card */
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid transparent;
  font-weight:900;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, filter .12s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-small{ padding:10px 12px; border-radius:12px; font-size:13px; }

.btn-primary{
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue2) 100%);
  color:#fff;
  box-shadow: 0 12px 30px rgba(45,107,255,.24);
}
.btn-primary:hover{ box-shadow: 0 16px 38px rgba(45,107,255,.30); }

.btn-ghost{
  background: rgba(255,255,255,.80);
  border-color: rgba(15,27,45,.12);
  color: rgba(15,27,45,.82);
  box-shadow: var(--shadow2);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.92);
  border-color: rgba(15,27,45,.16);
}

/* Pill + Spark */
.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(15,27,45,.10);
  background: rgba(255,255,255,.78);
  font-weight:900;
  font-size:13px;
  color: rgba(15,27,45,.74);
}
.pill-soft{ background: rgba(255,255,255,.60); }

.spark{
  width:14px; height:14px;
  border-radius:6px;
  background: linear-gradient(180deg, rgba(45,107,255,1), rgba(13,73,255,1));
  box-shadow: 0 0 0 6px rgba(45,107,255,.12);
}

/* Burger */
.burger{
  display:none;
  width:46px; height:46px;
  border-radius:16px;
  border:1px solid rgba(15,27,45,.12);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow2);
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:950;
  cursor:pointer;
  position: relative;
  z-index: 2001;
}
.burger:active{ transform: translateY(1px); }

@media (max-width:760px){
  .brand-logo{ height:48px; }
}

/* =======================================================
   MOBILE NAV — FULLSCREEN (FIXED BACKGROUND / NO CLIP)
   ======================================================= */
@media (max-width: 900px){

  .burger{ display:inline-flex; }

  .nav{
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 9999 !important;
    isolation: isolate;

    display:flex;
    flex-direction:column;
    gap:12px;

    padding: calc(var(--header-h) + 18px) 16px 22px 16px;
    background: transparent !important;

    opacity:0;
    pointer-events:none;
    transform: translateY(-10px) scale(.995);
    transition: opacity .18s ease, transform .18s ease;
  }

  /* FULLSCREEN background */
  .nav::before{
    content:"";
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;

    background:
      radial-gradient(1200px 700px at 18% 12%, rgba(255,255,255,.18), transparent 60%),
      radial-gradient(900px 520px at 78% 22%, rgba(45,107,255,.20), transparent 55%),
      radial-gradient(900px 700px at 50% 110%, rgba(0,0,0,.22), transparent 60%),
      linear-gradient(135deg, #0b2a6f 0%, #2563eb 55%, #0b2a6f 100%);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    opacity: 0;
    transition: opacity .18s ease;
    pointer-events:none;
    z-index: 0;
  }

  /* Shine sweep layer */
  .nav::after{
    content:"";
    position: fixed !important;
    inset:-160px !important;

    background: linear-gradient(
      115deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.10) 42%,
      rgba(255,255,255,.24) 52%,
      rgba(255,255,255,.10) 62%,
      rgba(255,255,255,0) 100%
    );

    transform: translateX(-85%) rotate(10deg);
    opacity: 0;
    pointer-events:none;
    z-index: 1;
  }

  .nav a{
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    text-align: center;

    padding: 14px 16px;
    border-radius: 18px;

    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.22) !important;
    color: rgba(255,255,255,.96) !important;

    box-shadow:
      0 18px 60px rgba(0,0,0,.22),
      inset 0 1px 0 rgba(255,255,255,.18) !important;
  }

  .nav a:hover{
    background: rgba(255,255,255,.16) !important;
    border-color: rgba(255,255,255,.28) !important;
    filter: brightness(1.02);
  }

  .nav.open{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .nav.open::before{
    opacity: 1;
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.10),
      inset 0 0 120px rgba(255,255,255,.06);
  }

  /* Close (X) */
  .nav-close{
    position: fixed;
    top: 18px;
    right: 18px;

    width: 46px;
    height: 46px;
    border-radius: 16px;

    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;
    z-index: 3;

    box-shadow:
      0 18px 60px rgba(0,0,0,.28),
      inset 0 1px 0 rgba(255,255,255,.22);

    opacity: 0;
    pointer-events: none;
    transform: scale(.96);
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
  }

  .nav-close span{
    position:absolute;
    width:18px;
    height:2px;
    background: rgba(255,255,255,.96);
    border-radius:999px;
  }
  .nav-close span:first-child{ transform: rotate(45deg); }
  .nav-close span:last-child{ transform: rotate(-45deg); }
  .nav-close:hover{ background: rgba(255,255,255,.20); }

  .nav.open .nav-close{
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }
}

/* ✅ Unnested motion rules (valid CSS) */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference){
  .nav.open::after{
    opacity: .55;
    animation: navShineFull 1.6s ease-out .06s both;
  }
  @keyframes navShineFull{
    0%   { transform: translateX(-90%) rotate(10deg); opacity: .10; }
    45%  { opacity: .70; }
    100% { transform: translateX(90%) rotate(10deg); opacity: .10; }
  }

  .nav.open a{ animation: navItemIn .38s ease both; }
  .nav.open a:nth-child(2){ animation-delay: .04s; }
  .nav.open a:nth-child(3){ animation-delay: .08s; }
  .nav.open a:nth-child(4){ animation-delay: .12s; }
  .nav.open a:nth-child(5){ animation-delay: .16s; }
  .nav.open a:nth-child(6){ animation-delay: .20s; }

  @keyframes navItemIn{
    from{ opacity:0; transform: translateY(10px); }
    to{ opacity:1; transform: translateY(0); }
  }
}

/* Desktop reset */
@media (min-width: 901px){
  .burger{ display:none; }
  .nav{
    position: static !important;
    inset: auto !important;
    width:auto !important;
    height:auto !important;
    z-index:auto !important;
    display:flex;
    flex-direction:row;
    gap:10px;
    padding:0;
    background: transparent !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform:none !important;
  }
  .nav::before{ content:none !important; }
  .nav::after{ content:none !important; }
  .nav-close{ display:none !important; }
}
