/* ════════════════════════════════════════════════════════════
   Lenz Music Lab — Shared Design System
   styles.css — common styles for all pages
   ════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Dark mode */
  --d-bg:       #080910;
  --d-surface:  #0E0F1C;
  --d-card:     #131528;
  --d-card-2:   #181B33;
  --d-border:   #1E2040;
  --d-border-h: #2A2D55;
  --d-muted:    #3A3D60;
  --d-subtle:   #6B6F9A;
  --d-body:     #9EA2C8;
  --d-white:    #E8EAF6;

  /* Light mode */
  --l-bg:       #F2F3FA;
  --l-surface:  #FFFFFF;
  --l-card:     #E8EAF6;
  --l-border:   #D0D3EE;
  --l-muted:    #9295BC;
  --l-subtle:   #5A5E90;
  --l-body:     #353870;
  --l-head:     #080910;

  /* Accent */
  --blue:       #1B4FFF;
  --blue-mid:   #2D65FF;
  --blue-hi:    #5B85FF;
  --blue-dim:   rgba(27, 79, 255, 0.09);
  --blue-glow:  rgba(27, 79, 255, 0.22);

  /* Coral — warm accent (F17) */
  --coral:      #FF6B4A;
  --coral-mid:  #FF8264;
  --coral-hi:   #FFAA8A;
  --coral-dim:  rgba(255, 107, 74, 0.09);
  --coral-glow: rgba(255, 107, 74, 0.28);

  /* F17 palette — neutral warm palette for home v2 (no blue tint) */
  /* Backgrounds */
  --f17-bg-1:      #0A0B10;  /* hero, services, before/after */
  --f17-bg-2:      #0F1114;  /* trust, process, reviews */
  --f17-bg-3:      #08090D;  /* cta, about, footer */
  --f17-surface:   #14161C;  /* cards, sample player */
  /* Borders (opacity scale) */
  --f17-border-1:  rgba(255, 255, 255, 0.05);  /* section separators */
  --f17-border-2:  rgba(255, 255, 255, 0.06);  /* card borders */
  --f17-border-3:  rgba(255, 255, 255, 0.08);  /* glass panels */
  --f17-border-4:  rgba(255, 255, 255, 0.10);  /* interactive resting */
  --f17-border-5:  rgba(255, 255, 255, 0.15);  /* outlined buttons */
  /* Text */
  --f17-text:      #F5F5F7;  /* primary — titles, on-photo */
  --f17-body:      #B8C1CC;  /* body — paragraphs, descs */
  --f17-muted:     #7A8299;  /* meta, labels */
  --f17-dim:       #5A6070;  /* legal, separators, very subtle */

  /* Semantic */
  --green:      #3CCB7F;
  --green-dark: #0E9F5C;
  --orange:     #FFAA40;
  --orange-dark:#C67800;
  --red:        #DC3C50;

  /* Radius */
  --r: 4px;
}

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;   /* legacy fallback for older iOS/Safari < 15.4 */
  overflow-x: clip;     /* modern browsers — doesn't spawn scroll container */
}
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--d-bg);
  color: var(--d-body);
  /* Belt-and-braces: cap body width and clip horizontal overflow so any
     mis-sized child (a floating decorative gradient, an aspect-ratio grid
     item, a marquee track, etc.) can never push the page wider than the
     viewport. */
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100vw;
  position: relative;
}

img { display: block; max-width: 100%; }

/* ─── NAV (F17 — coral accent, Space Grotesk logo, F17 tokens) ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  background: linear-gradient(180deg, rgba(10, 11, 16, 0.9) 0%, rgba(10, 11, 16, 0) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* Logo — Space Grotesk with coral REC dot */
.nav-logo {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--f17-text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 12px var(--coral-glow);
  animation: nav-logo-pulse 2.4s ease-in-out infinite;
  margin-right: 10px;
  flex-shrink: 0;
}

@keyframes nav-logo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}

.nav-logo .dot { color: var(--coral); }
.nav-logo .lab {
  font-weight: 500;
  color: var(--f17-muted);
}

/* Links — JetBrains Mono uppercase */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-links a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--f17-body);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--f17-text);
  background: rgba(255, 255, 255, 0.04);
}
.nav-links a.active {
  color: var(--coral);
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
}

/* Right cluster */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language toggle — pill */
.lang-toggle {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--f17-muted);
  background: transparent;
  border: 1px solid var(--f17-border-4);
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.lang-toggle:hover {
  color: var(--f17-text);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Cart — outline pill with coral badge */
.nav-cart {
  position: relative;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--f17-border-4);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--f17-body);
  text-decoration: none;
  transition: all 0.2s;
}
.nav-cart:hover {
  color: var(--f17-text);
  border-color: var(--coral);
}

.cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--coral);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: #fff;
  font-weight: 600;
  border: 2px solid var(--f17-bg-1);
  line-height: 1;
}

/* Log in — text link (guest only, same style as nav links) */
.nav-login,
.nav-login:visited {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--f17-body);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.nav-login:hover,
.nav-login:focus {
  color: var(--f17-text);
  background: rgba(255, 255, 255, 0.04);
}

/* Primary CTA — white pill with coral hover */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  background: var(--f17-text);
  color: var(--f17-bg-1);
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--coral);
  color: var(--f17-text);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--coral-glow);
}

/* ─── PAGE HERO ─── */
.page-hero {
  padding: 160px 48px 80px;
  position: relative;
  overflow: hidden;
  background: var(--d-bg);
  border-bottom: 1px solid var(--d-border);
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 20% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
.page-hero-glow {
  position: absolute;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(27, 79, 255, 0.16) 0%, transparent 65%);
  bottom: -100px;
  right: -100px;
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--d-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--d-white); }
.breadcrumb-sep { color: var(--d-muted); }
.breadcrumb .current { color: var(--blue-hi); }

.page-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--blue-hi);
  opacity: 0.5;
}

.page-h1 {
  font-family: 'Epilogue', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--d-white);
  margin-bottom: 24px;
}
.page-h1 em { color: var(--blue-hi); font-style: normal; }

.page-sub {
  font-size: 18px;
  color: var(--d-body);
  line-height: 1.7;
  max-width: 560px;
  font-style: italic;
}

.page-hero-side { display: flex; flex-direction: column; gap: 14px; }

.hero-stat-mini {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: var(--r);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hsm-key {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--d-muted);
}
.hsm-val {
  font-family: 'Epilogue', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--d-white);
}
.hsm-val em { color: var(--blue-hi); font-style: normal; }

/* ─── SECTIONS ─── */
section { padding: 120px 48px; }
.inner { max-width: 1180px; margin: 0 auto; }

.sec-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sec-title {
  font-family: 'Epilogue', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 18px;
}
.sec-title em { color: var(--blue-hi); font-style: normal; }
.sec-sub {
  font-size: 17px;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 48px;
  max-width: 580px;
}

/* Dark variant */
section.dark { background: var(--d-bg); }
section.dark .sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--d-border), transparent);
}
section.dark .sec-title { color: var(--d-white); }
section.dark .sec-sub { color: var(--d-body); }

/* Light variant */
section.light { background: var(--l-bg); }
section.light .sec-label { color: var(--blue); }
section.light .sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--l-border), transparent);
}
section.light .sec-title { color: var(--l-head); }
section.light .sec-title em { color: var(--blue); }
section.light .sec-sub { color: var(--l-body); }

/* ─── BUTTONS ─── */
.btn-primary {
  font-family: 'Epilogue', sans-serif;
  font-weight: 600;
  font-size: 14px;
  background: var(--blue);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--r);
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(27, 79, 255, 0.35);
}

.btn-ghost {
  font-family: 'Epilogue', sans-serif;
  font-weight: 500;
  font-size: 14px;
  background: transparent;
  color: var(--d-white);
  padding: 12px 28px;
  border-radius: var(--r);
  text-decoration: none;
  border: 1px solid var(--d-border-h);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--d-subtle); transform: translateY(-2px); }

section.light .btn-ghost { color: var(--l-head); border-color: var(--l-border); }
section.light .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ─── FAQ ─── */
.faq-inner { max-width: 880px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 3px; margin-top: 48px; }
.faq-item {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: var(--r);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  font-family: inherit;
}
.faq-q:hover { background: rgba(255, 255, 255, 0.02); }
.faq-q-text {
  font-family: 'Epilogue', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--d-white);
}
.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--d-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--d-subtle);
  transition: all 0.25s;
  font-weight: 300;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--blue-hi);
  background: var(--blue-dim);
}
.faq-a {
  font-size: 14px;
  color: var(--d-body);
  line-height: 1.75;
  padding: 0 26px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 26px 22px; }

/* ─── FINAL CTA ─── */
.final-cta {
  background: var(--d-bg);
  position: relative;
  overflow: hidden;
  padding: 120px 48px;
  text-align: center;
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
  filter: grayscale(0.7) brightness(0.2) contrast(1.2);
}
.final-cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(27, 79, 255, 0.3) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(8, 9, 16, 0.7) 0%, rgba(8, 9, 16, 0.5) 100%);
  pointer-events: none;
}
.final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.final-cta-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin-bottom: 28px;
}
.final-cta-title {
  font-family: 'Epilogue', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--d-white);
  margin-bottom: 22px;
}
.final-cta-title em { color: var(--blue-hi); font-style: normal; }
.final-cta-sub {
  font-size: 16px;
  color: var(--d-body);
  font-style: italic;
  margin-bottom: 42px;
}

/* ─── FOOTER (F17 — tokens) ─── */
footer {
  position: relative;
  background: var(--f17-bg-3);
  border-top: 1px solid var(--f17-border-1);
  padding: 80px 48px 40px;
}
/* Coral gradient accent line at the top — matches F17 section-boundary pattern */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 107, 74, 0.4), transparent);
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto 56px;
}
.footer-brand .f-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--f17-text);
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
}
.footer-brand .f-logo .dot { color: var(--coral); }
.footer-brand .f-logo .lab { font-weight: 300; color: var(--f17-dim); }
.footer-brand p {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--f17-body);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 22px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--f17-border-4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--f17-muted);
  transition: all 0.25s ease;
  text-decoration: none;
  font-size: 10.5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.footer-social a:hover {
  border-color: var(--coral);
  color: var(--coral-hi);
  background: rgba(255, 107, 74, 0.06);
}

.footer-col-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral-hi);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--f17-body);
  text-decoration: none;
  margin-bottom: 11px;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--coral-hi); }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--f17-border-1);
  padding-top: 28px;
}
.footer-legal {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--f17-dim);
  text-transform: uppercase;
}
.footer-legal a { color: var(--f17-dim); text-decoration: none; transition: color 0.25s ease; }
.footer-legal a:hover { color: var(--coral-hi); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .page-hero-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Switch to flex on mobile so nav-right hugs the right edge (the
     desktop grid keeps an empty 1fr middle column which was pushing
     the cart+burger cluster slightly off-right on some viewports). */
  nav {
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .nav-links { display: none; }
  /* Right cluster on mobile: keep only cart + burger. Lang/login/CTA/user
     move into the drawer so they don't wrap and break the header. */
  .nav-right .lang-toggle,
  .nav-right .nav-login,
  .nav-right .nav-cta,
  .nav-right .nav-user-wrap { display: none; }
  .nav-right { gap: 14px; }
  .nav-burger { display: inline-flex; margin-left: 2px; }
  .page-hero { padding: 120px 24px 60px; }
  section { padding: 80px 24px; }
  .final-cta { padding: 80px 24px; }
  footer { padding: 56px 24px 32px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ═══ Mobile navbar — burger button + drawer (F38.2) ═══ */

/* Burger — shown on mobile via the existing @media (max-width: 768px) block.
   Base display MUST be scoped to desktop-only, otherwise it would override the
   mobile rule because this block sits later in the file (same specificity, so
   source order wins). */
.nav-burger {
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--f17-border-5);
  border-radius: 8px;
  cursor: pointer;
  color: var(--f17-text);
  transition: border-color .2s, background .2s;
}
@media (min-width: 769px) {
  .nav-burger { display: none; }
}
.nav-burger:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.25); }
.nav-burger-line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
/* Morph to X when the drawer is open. */
nav.nav-mobile-open .nav-burger-line:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
nav.nav-mobile-open .nav-burger-line:nth-child(2) { opacity: 0; }
nav.nav-mobile-open .nav-burger-line:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Backdrop behind the drawer. */
.nav-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Drawer — sits above the backdrop, slides from the right. */
.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 84vw);
  z-index: 999;
  background: var(--f17-bg-3);
  border-left: 1px solid var(--f17-border-3);
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  color: var(--f17-text);
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--f17-border-2);
}
.nav-mobile-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--f17-muted);
}
.nav-mobile-close {
  background: transparent;
  border: 1px solid var(--f17-border-4);
  color: var(--f17-body);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.nav-mobile-close:hover { color: var(--f17-text); border-color: rgba(255,255,255,.25); }

/* Section links inside the drawer. */
.nav-mobile-links {
  display: flex;
  flex-direction: column;
  padding: 6px 0 12px;
  gap: 2px;
}
.nav-mobile-links a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 12px 14px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--f17-body);
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-mobile-links a:hover { color: var(--f17-text); background: rgba(255,255,255,.04); }

/* Active link: coral text + coral dot on the left. */
.nav-mobile-links a.active {
  color: var(--coral);
  background: var(--coral-dim);
}
.nav-mobile-links a.active::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral-glow);
}

.nav-mobile-divider {
  height: 1px;
  background: var(--f17-border-2);
  margin: 6px 0 14px;
}

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-mobile-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--f17-border-5);
  color: var(--f17-text);
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .1s;
  width: 100%;
  justify-content: center;
  font-family: inherit;
}
.nav-mobile-action:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.nav-mobile-action-secondary { color: var(--f17-body); }
.nav-mobile-action-cta {
  background: var(--coral);
  border-color: var(--coral);
  color: #0A0B10;
}
.nav-mobile-action-cta:hover { background: var(--coral-mid); border-color: var(--coral-mid); }

.nav-mobile-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--f17-border-2);
}
.nav-mobile-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--f17-border-4);
  text-decoration: none;
  color: var(--f17-body);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.nav-mobile-lang:hover { border-color: rgba(255,255,255,.24); color: var(--f17-text); }
.nav-mobile-lang-current { color: var(--f17-text); font-weight: 700; }
.nav-mobile-lang-arrow { opacity: .5; }

[x-cloak] { display: none !important; }

/* ═══ Navbar user dropdown (F6) ═══ */

.nav-user-wrap{
  position:relative;
  display:inline-block;
}
.nav-user-trigger{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:transparent;
  border:1px solid rgba(255,255,255,.15);
  color:inherit;
  padding:8px 14px;
  border-radius:999px;
  font-family:inherit;
  font-size:12px;
  font-weight:600;
  letter-spacing:.02em;
  cursor:pointer;
  transition:all .2s;
}
.nav-user-trigger:hover{
  border-color:rgba(255,255,255,.3);
  background:rgba(255,255,255,.03);
}
.nav-user-initial{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  background:var(--coral);
  color:#fff;
  border-radius:50%;
  font-weight:700;
  font-size:11px;
}
.nav-user-name{
  font-family:'Space Grotesk',sans-serif;
  font-weight:600;
  letter-spacing:-0.01em;
}
.nav-user-caret{
  transition:transform .2s;
  opacity:.6;
}

.nav-user-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:200px;
  background:#111318;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  padding:6px;
  box-shadow:0 8px 24px rgba(0,0,0,.4);
  z-index:100;
}

.nav-user-menu-form{
  margin:0;
}

.nav-user-menu-item{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:10px 12px;
  color:var(--f17-text);
  text-decoration:none;
  font-family:'Inter',sans-serif;
  font-size:13px;
  font-weight:500;
  border-radius:8px;
  background:transparent;
  border:none;
  cursor:pointer;
  text-align:left;
  transition:all .15s;
}
.nav-user-menu-item:hover{
  background:rgba(255,255,255,.05);
}
.nav-user-menu-item.nav-user-menu-logout{
  color:#F5A5A5;
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:4px;
  border-radius:0 0 8px 8px;
}
.nav-user-menu-item.nav-user-menu-logout:hover{
  background:rgba(225,17,17,.1);
  color:#F5A5A5;
}

/* .nav-login styles live in the F17 nav block above — duplicate removed to avoid override */
