html{background: var(--bg0);}
:root{
  --bg0:#070a10;
  --bg1:#0b1020;
  --card:#0f172a;
  --text:#e5e7eb;
  --muted:#a6b0c3;
  --line:rgba(255,255,255,.10);
  --accent:#53c7ff;
  --accent2:#97A8BC;
  --shadow: 0 20px 80px rgba(0,0,0,.45);
  --radius: 18px;
}
*{box-sizing:border-box}
html,body{height:100%
  position: relative;
  min-height: 100%;
}

/* Fixed background layer (does not scroll). Reliable on mobile. */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1200px 700px at 60% 10%, rgba(255,143,76,.28), transparent 55%),
    radial-gradient(900px 600px at 40% 30%, rgba(83,199,255,.22), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(120,90,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 60% 10%, rgba(255,143,76,.28), transparent 55%),
    radial-gradient(900px 600px at 40% 30%, rgba(83,199,255,.22), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(120,90,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* Fixed background layer (does not scroll). Reliable on mobile. */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1200px 700px at 60% 10%, rgba(255,143,76,.28), transparent 55%),
    radial-gradient(900px 600px at 40% 30%, rgba(83,199,255,.22), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(120,90,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px; margin:0 auto; padding:22px}
.nav .container{padding:12px 22px}
.nav{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(8px);
  background: linear-gradient(90deg, rgba(7,10,16,.82), rgba(12,18,34,.74));
  border-bottom:1px solid var(--line);
}
.nav-inner{display:flex; align-items:center; justify-content:space-between; gap:14px}
.brand{display:flex; align-items:center; gap:12px}
.brand img{height:28px; width:auto; object-fit:contain}
.brand .name{font-weight:700; letter-spacing:.3px}
.menu{display:flex; gap:14px; align-items:center; flex-wrap:wrap}
.pill{
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--text);
  background: rgba(255,255,255,.03);
  font-size:14px;
}
.pill:hover{background: rgba(255,255,255,.06); text-decoration:none}
.pill.primary{
  border-color: rgba(83,199,255,.45);
  box-shadow: 0 0 0 4px rgba(83,199,255,.08);
}
.hero{padding:28px 0 22px 0;}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:28px;
  align-items:center;
}
.hero-card{
  padding:26px;
  border:1px solid var(--line);
  background: rgba(15,23,42,.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  color:var(--muted);
  background: rgba(255,255,255,.03);
  font-size:13px;
}
h1{margin:14px 0 10px 0; font-size:40px; line-height:1.08}
.subtitle{color:var(--muted); font-size:16px; line-height:1.55; margin:0 0 18px 0}
.cta{display:flex; gap:12px; flex-wrap:wrap}
.logo-wrap{
  text-align:center;
  padding:22px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.logo-wrap img{
  width:100%;
  max-width:520px;
  height:auto;
  object-fit:contain;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,.55));
}
.section{padding:24px 0}
.section h2{font-size:22px; margin:0 0 12px 0}
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15,23,42,.35);
  padding:16px;
}
.card h3{margin:0 0 6px 0; font-size:16px}
.card p{margin:0; color:var(--muted); font-size:14px; line-height:1.55}
.footer{
  border-top:1px solid var(--line);
  margin-top:30px;
  padding:18px 0 30px 0;
  color: var(--muted);
  font-size:13px;
}
.footer a{color:var(--muted)}
.badge{display:inline-flex; align-items:center; gap:8px; color: var(--accent2); font-size:13px;}
.page-title{margin:18px 0 8px 0; font-size:30px}
.prose{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15,23,42,.30);
  padding:18px;
}
.prose h2{margin-top:22px}
.prose p, .prose li{color:var(--muted); line-height:1.65}
.prose strong{color:var(--text)}
@media (max-width: 920px){
  .hero-grid{grid-template-columns:1fr; }
  h1{font-size:34px}
  .grid{grid-template-columns:1fr}
  .brand .name{display:none}
}

/* ---------- Header v5 (desktop + mobile overlay) ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, rgba(7,10,16,.84), rgba(12,18,34,.76));
  border-bottom:1px solid var(--line);
}

.nav .container{padding:10px 22px}

.nav-inner{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap:14px;
}

.brand{display:flex; align-items:center; justify-content:flex-start}
.brand img{
  height: 42px; /* larger on desktop */
  width: auto;
  object-fit: contain;
}

/* Desktop menu */
.menu{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
}

/* Slimmer buttons */
.pill{
  height: 32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0 12px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--text);
  background: rgba(255,255,255,.03);
  font-size:14px;
}
.pill:hover{background: rgba(255,255,255,.06); text-decoration:none}

.pill.primary{
  border-color: rgba(83,199,255,.45);
  box-shadow: 0 0 0 4px rgba(83,199,255,.08);
}

/* Cleaner language button */
.lang-btn{
  min-width: 46px;
  padding: 0 10px;
  font-weight: 700;
  letter-spacing: .2px;
}

/* Hamburger (hidden on desktop) */
.hamburger{
  display:none;
  height:32px;
  width:32px;
  border-radius:10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.hamburger:hover{background: rgba(255,255,255,.06)}

/* Mobile menu overlay */
.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(7,10,16,.70);
  backdrop-filter: blur(10px);
}
.mobile-menu .panel{
  position:absolute;
  top:0; left:0; right:0;
  padding: 76px 18px 18px 18px; /* leave room for header */
  display:flex;
  flex-direction:column;
  gap:12px;
}
.mobile-menu .panel a{
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(15,23,42,.40);
  font-size:16px;
  text-decoration:none;
}
.mobile-menu .panel a:hover{background: rgba(15,23,42,.55)}

body.menu-open .mobile-menu{display:block}

@media (max-width: 920px){
  .nav .container{padding:10px 16px}
  .nav-inner{
    grid-template-columns: 40px 1fr 56px; /* hamburger | centered brand | language */
    gap:10px;
  }
  .hamburger{display:flex}
  .menu{display:none}
  .brand{justify-content:center}
  .brand img{
    height:auto;
    width: min(240px, 58vw);
    max-height: 44px;
  }
  .pill{height:34px}
}

/* Prevent accidental tap zoom; pinch-zoom is handled by viewport meta */
html{touch-action: manipulation;}

/* ---------- Overrides v6 ---------- */
html, body{height:100%;}
body{
  margin:0;
  background: transparent; /* background via body::before */
  color: var(--text);
  position: relative;
  min-height: 100%;
}

/* Desktop sizing */
.brand img{height:48px;}
.pill{height:30px; padding:0 12px; font-size:14px;}
.hamburger{height:30px; width:30px}

/* Ensure language toggle is at far right (desktop) */
.nav-inner{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand{margin-right:auto;}
.menu{display:flex; align-items:center; gap:10px; flex-wrap:nowrap;}
.lang-btn{order: 3;} /* after menu */

/* Background layer should always cover viewport */
body::before{inset:0;}

/* Reduce spacing under header a bit */
.hero{padding-top:26px;}
.page-title{margin-top:14px;}

/* Mobile: grid layout with hamburger | centered brand | language right */
@media (max-width: 920px){
  .nav-inner{
    display:grid;
    grid-template-columns: 40px 1fr 56px;
    align-items:center;
    gap:10px;
  }
  .hamburger{display:flex; grid-column:1;}
  .brand{grid-column:2; margin-right:0; justify-content:center;}
  #langToggle{grid-column:3; justify-self:end;}
  .menu{display:none;}
  .brand img{width:min(240px, 58vw); max-height:44px; height:auto;}
}

/* Make overlay not cover header so hamburger remains clickable */
.mobile-menu{z-index:40;}
.nav{z-index:50;}
/* ---------- Overrides v7: always-visible fixed header + spacing ---------- */
:root{
  --nav-h-desktop: 72px;
  --nav-h-mobile: 68px;
}

.nav{
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
}

main.container{
  padding-top: calc(var(--nav-h-desktop) - 14px); /* reduce gap under header */
}

@media (max-width: 920px){
  main.container{
    padding-top: calc(var(--nav-h-mobile) - 14px);
  }
}

/* Make overlay start BELOW the fixed header so the hamburger remains clickable */
.mobile-menu{
  top: var(--nav-h-desktop);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
}
@media (max-width: 920px){
  .mobile-menu{
    top: var(--nav-h-mobile);
  }
}

/* Brand slightly larger (desktop), header buttons 30px (already requested) */
.brand img{height:52px;}
.pill{height:30px;}

/* Mobile hamburger bigger and cleaner */
@media (max-width: 920px){
  .hamburger{
    height:44px;
    width:44px;
    border:none;
    background: transparent;
    font-size:26px;
  }
}

/* Hero title wordmark */
.hero-wordmark{
  display:block;
  width:min(520px, 100%);
  height:auto;
  margin: 6px 0 10px 0;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
}
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* Slightly tighter hero spacing (optional but aligns with reduced gap request) */
.hero{padding-top:18px;}

/* ---------- Overrides v8: spacing + overlay menu polish ---------- */
:root{
  --content-gap-desktop: 22px;  /* space between header and page content */
  --content-gap-mobile: 20px;

  --menu-gap-desktop: 18px;     /* space between header and first menu button */
  --menu-gap-mobile: 18px;
}

/* 1) Content spacing under fixed header */
main.container{
  padding-top: calc(var(--nav-h-desktop) + var(--content-gap-desktop));
}
@media (max-width: 920px){
  main.container{
    padding-top: calc(var(--nav-h-mobile) + var(--content-gap-mobile));
  }
}

/* 2) Overlay must start flush to top (no visible strip under header).
      Header stays clickable because it has higher z-index. */
.mobile-menu{
  top: 0 !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
}

/* 3) Menu panel: consistent spacing (header->first button) and between buttons */
.mobile-menu .panel{
  top: 0;
  padding: calc(var(--nav-h-desktop) + var(--menu-gap-desktop)) 18px 18px 18px;
  gap: 12px;
}
@media (max-width: 920px){
  .mobile-menu .panel{
    padding: calc(var(--nav-h-mobile) + var(--menu-gap-mobile)) 18px 18px 18px;
  }
}

/* Make menu buttons look slightly more premium and consistent */
.mobile-menu .panel a{
  border-radius: 16px;
}


/* ---------- Privacy title inside card ---------- */
.prose .page-title{margin:0 0 14px 0; font-size:30px}

/* Footer centered override */
.footer{
  text-align:center;
  justify-content:center;
}
.footer a{display:none;}