/* =================================================================
   ROYALTĒ — FAQ PAGE STYLESHEET
   Aesthetic: glassmorphic luxury, dark cinematic, brand-aligned
   ================================================================= */

/* ----------- DESIGN TOKENS ----------- */
:root {
  --bg: #03030a;
  --bg-elevated: #0a0814;
  --bg-card: rgba(20, 16, 36, 0.6);
  --bg-card-hover: rgba(28, 22, 48, 0.75);

  --purple: #8A5CFF;
  --purple-soft: #c49dff;
  --pink: #E040C8;
  --pink-soft: #ff6dd8;
  --blue-glow: #5b8cff;

  --text: #f4f2fb;
  --text-soft: #c8c4dc;
  --text-mute: #8b8499;
  --text-faint: #5a5566;

  --border: rgba(138, 92, 255, 0.14);
  --border-active: rgba(138, 92, 255, 0.45);
  --border-soft: rgba(255, 255, 255, 0.06);

  --gradient-primary: linear-gradient(135deg, #8A5CFF 0%, #E040C8 100%);
  --gradient-text: linear-gradient(135deg, #c49dff 0%, #e040c8 50%, #ff6dd8 100%);

  --shadow-glow: 0 0 40px rgba(138, 92, 255, 0.18);
  --shadow-glow-pink: 0 0 60px rgba(224, 64, 200, 0.22);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

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

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ----------- RESET ----------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ----------- AMBIENT BG TEXTURE ----------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(138, 92, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(224, 64, 200, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* =====================================================================
   HEADER
   ===================================================================== */
.faq-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(3, 3, 10, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
}

.faq-logo { display: flex; flex-direction: column; gap: 2px; }
.logo-mark {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.logo-e {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
}

.faq-nav { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-soft);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--text); }

.beta-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 6px 12px;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-pill);
  color: var(--purple-soft);
  background: rgba(138, 92, 255, 0.08);
}

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
  color: white;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 4px 20px rgba(138, 92, 255, 0.3);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(224, 64, 200, 0.4);
}

/* =====================================================================
   SECTION 1 — HERO
   ===================================================================== */
.faq-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 32px 80px;
  overflow: hidden;
}

.hero-bg-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbDrift 18s ease-in-out infinite;
}
.orb-purple {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(138, 92, 255, 0.4) 0%, transparent 70%);
  top: -120px; left: -120px;
}
.orb-pink {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(224, 64, 200, 0.32) 0%, transparent 70%);
  bottom: -180px; right: -150px;
  animation-delay: -6s;
}
.orb-deep {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.18) 0%, transparent 70%);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -12s;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(40px, -30px); }
  66% { transform: translate(-30px, 40px); }
}
.orb-deep { animation-name: orbDriftCenter; }
@keyframes orbDriftCenter {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-45%, -55%); }
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(138, 92, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 92, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
  animation: fadeUp 0.8s var(--ease) 0.1s backwards;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  margin-bottom: 28px;
  background: rgba(138, 92, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-soft);
  box-shadow: 0 0 12px var(--purple-soft);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.eyebrow-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-soft);
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}
.title-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 36px;
  font-weight: 300;
}

.hero-trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-soft);
  backdrop-filter: blur(8px);
}
.check {
  color: var(--purple-soft);
  font-weight: 700;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 32px rgba(138, 92, 255, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(224, 64, 200, 0.5);
}
.cta-primary svg { transition: transform 0.25s var(--ease); }
.cta-primary:hover svg { transform: translateX(3px); }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  transition: all 0.25s var(--ease);
}
.cta-secondary:hover {
  background: rgba(138, 92, 255, 0.12);
  border-color: var(--border-active);
}

.cta-large {
  padding: 18px 36px;
  font-size: 15px;
}

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

/* =====================================================================
   SECTION 2 — TRUST STRIP
   ===================================================================== */
.trust-strip {
  position: relative;
  padding: 80px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
}
.trust-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(138, 92, 255, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.trust-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}
.trust-card:hover::before { opacity: 1; }

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(138, 92, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--purple-soft);
  border: 1px solid var(--border);
}

.trust-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}
.trust-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-mute);
  font-weight: 300;
}

/* =====================================================================
   SECTION 3 — FAQ ACCORDIONS
   ===================================================================== */
.faq-section {
  position: relative;
  padding: 60px 32px 100px;
  max-width: 980px;
  margin: 0 auto;
}

.faq-section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--text-mute);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text);
}
.section-subtitle {
  font-size: 15px;
  color: var(--text-mute);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
}

.faq-categories {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.faq-category { display: flex; flex-direction: column; gap: 18px; }

.category-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 6px;
}
.category-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--purple-soft);
  font-weight: 500;
}
.category-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.accordion-item:hover {
  border-color: rgba(138, 92, 255, 0.28);
  background: var(--bg-card-hover);
}
.accordion-item.is-open {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  transition: color 0.25s var(--ease);
}
.accordion-trigger:hover { color: var(--purple-soft); }
.accordion-item.is-open .accordion-trigger { color: var(--text); }

.trigger-text { flex: 1; letter-spacing: -0.005em; }

.trigger-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid var(--border-active);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.trigger-icon::before,
.trigger-icon::after {
  content: '';
  position: absolute;
  background: var(--purple-soft);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.trigger-icon::before { width: 10px; height: 1.5px; border-radius: 1px; }
.trigger-icon::after { width: 1.5px; height: 10px; border-radius: 1px; }
.accordion-item.is-open .trigger-icon {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: rotate(180deg);
}
.accordion-item.is-open .trigger-icon::before,
.accordion-item.is-open .trigger-icon::after { background: white; }
.accordion-item.is-open .trigger-icon::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.accordion-item.is-open .accordion-panel {
  /* max-height set inline via JS for accurate height */
}

.panel-inner {
  padding: 0 26px 24px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 300;
}
.panel-inner p + p { margin-top: 12px; }
.panel-inner strong { color: var(--text); font-weight: 600; }

.mono-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  margin: 0 2px;
  border-radius: 4px;
  background: rgba(138, 92, 255, 0.14);
  border: 1px solid var(--border);
  color: var(--purple-soft);
  vertical-align: 1px;
}

.inline-link {
  color: var(--purple-soft);
  border-bottom: 1px solid rgba(138, 92, 255, 0.4);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.inline-link:hover {
  color: var(--pink-soft);
  border-color: var(--pink-soft);
}

/* =====================================================================
   SECTION 4 — FINAL CTA
   ===================================================================== */
.final-cta {
  position: relative;
  padding: 100px 32px;
  margin: 40px 32px 80px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(20, 16, 36, 0.9) 0%, rgba(28, 22, 48, 0.7) 100%);
  border: 1px solid var(--border-active);
  backdrop-filter: blur(20px);
}

.cta-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.cta-orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  top: -180px; left: -100px;
}
.cta-orb-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  bottom: -200px; right: -120px;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text);
}
.cta-strike {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 36px;
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.faq-footer {
  border-top: 1px solid var(--border-soft);
  padding: 48px 32px 32px;
  background: rgba(3, 3, 10, 0.5);
  backdrop-filter: blur(20px);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.footer-mark {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.footer-e {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-mute);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.footer-nav a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--purple-soft); }
.footer-nav a.footer-active { color: var(--text); }

.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 880px) {
  .faq-header { padding: 14px 20px; }
  .nav-link { display: none; }
  .nav-cta { padding: 9px 16px; font-size: 11px; }
  .beta-pill { font-size: 9px; padding: 5px 10px; }
  .logo-mark { font-size: 18px; }
  .logo-tag { font-size: 8px; }

  .faq-hero { padding: 72px 20px 60px; min-height: 60vh; }
  .hero-eyebrow { padding: 6px 14px; margin-bottom: 22px; }
  .eyebrow-text { font-size: 10px; }
  .hero-title { font-size: clamp(34px, 8vw, 48px); margin-bottom: 18px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 28px; }
  .hero-trust-row { gap: 8px; margin-bottom: 32px; }
  .trust-pill { font-size: 11px; padding: 7px 13px; }
  .hero-ctas { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
  .cta-primary, .cta-secondary { justify-content: center; width: 100%; }

  .trust-strip { padding: 60px 20px; }
  .trust-grid { grid-template-columns: 1fr; gap: 14px; }
  .trust-card { padding: 22px 20px; }

  .faq-section { padding: 40px 20px 80px; }
  .faq-section-header { margin-bottom: 48px; }
  .faq-categories { gap: 44px; }
  .category-title { font-size: 19px; }

  .accordion-trigger { padding: 18px 20px; font-size: 15px; gap: 14px; }
  .panel-inner { padding: 0 20px 20px; font-size: 14.5px; }

  .final-cta { padding: 70px 26px; margin: 20px 20px 60px; border-radius: var(--radius-md); }
  .cta-title { font-size: clamp(28px, 7vw, 38px); }
  .cta-subtitle { font-size: 15px; margin-bottom: 28px; }
  .cta-buttons { flex-direction: column; max-width: 320px; margin: 0 auto; }
  .cta-large { width: 100%; justify-content: center; padding: 16px 30px; }

  .faq-footer { padding: 36px 20px 28px; }
  .footer-nav { gap: 18px 22px; }
}

@media (max-width: 480px) {
  .hero-trust-row { display: grid; grid-template-columns: 1fr 1fr; }
  .trust-pill { justify-content: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .orb { animation: none; }
}

/* =====================================================================
   MOBILE / TABLET HAMBURGER MENU
   Active at max-width:1024px. Hidden on desktop.
   Token mapping vs other marketing pages:
     --purple           ← was --pur
     --gradient-primary ← was --grad
     --border-active    ← was --border2
   ===================================================================== */

.nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-active);
  border-radius: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: border-color 0.2s, background 0.2s;
}
.nav-hamburger:hover {
  border-color: var(--purple);
  background: rgba(138, 92, 255, 0.08);
}
.nav-hamburger .hamburger-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Animate to X when menu open */
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Backdrop overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(82vw, 360px);
  background: linear-gradient(180deg, rgba(15, 13, 26, 0.96) 0%, rgba(8, 7, 18, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-active);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5), inset 1px 0 0 rgba(138, 92, 255, 0.1);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 80px 32px 32px;
}
.mobile-menu-drawer.is-open {
  transform: translateX(0);
}

/* Close button */
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-active);
  border-radius: 4px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.mobile-menu-close:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(138, 92, 255, 0.08);
}

/* Nav inside drawer */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
}
.mobile-menu-link {
  display: block;
  padding: 18px 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu-link:hover {
  color: var(--purple);
  padding-left: 8px;
}
.mobile-menu-cta {
  display: block;
  margin-top: 28px;
  padding: 16px 24px;
  background: var(--gradient-primary);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(138, 92, 255, 0.25);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.mobile-menu-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(138, 92, 255, 0.35);
}

/* Body lock when menu open */
body.menu-locked {
  overflow: hidden;
}

/* Show hamburger, hide existing flat nav children at tablet/mobile.
   The existing @media (max-width:880px) { .nav-link {display:none} } rule
   above is now redundant inside this broader 1024px window but harmless. */
@media (max-width: 1024px) {
  .nav-hamburger {
    display: inline-flex;
  }
  .nav-link,
  .beta-pill,
  .nav-cta {
    display: none;
  }
}

/* Above 1024px, drawer + hamburger fully hidden */
@media (min-width: 1025px) {
  .nav-hamburger,
  .mobile-menu-overlay,
  .mobile-menu-drawer {
    display: none !important;
  }
}
