/* ── Reset & Variables ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #07070F; --surface: #0F0F1C; --surface2: #161626; --surface3: #1C1C30;
  --border: rgba(255,255,255,0.06); --border2: rgba(255,255,255,0.10);
  --text: #E2E2F0; --text-muted: #6B6B88; --text-dim: #3A3A55;
  --accent: #7C6FE0; --accent2: #A855F7; --green: #34D399; --gold: #FBBF24;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: 'Bricolage Grotesque', sans-serif; line-height: 1.15; }

/* ── Layout ─────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Section Label ───────────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: rgba(124,111,224,0.1); border: 1px solid rgba(124,111,224,0.2);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 16px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.5px; color: var(--text); margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ── Reveal Animations ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; } .reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; } .reveal-delay-4 { transition-delay: 0.4s; }

/* ── Navbar ──────────────────────────────────────────── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; }
.navbar.scrolled { background: rgba(7,7,15,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.nav-logo { display: flex; align-items: center; gap: 8px; }
.wordmark { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.5px; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > li > a { font-size: 15px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links > li > a:hover { color: var(--text); }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: 10px; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; }
.nav-cta:hover { background: #6a5fd6; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,111,224,0.35); }

/* ── Dropdown ────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; color: var(--text-muted); background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; padding: 0; transition: color 0.2s; }
.nav-dropdown-trigger:hover, .nav-dropdown.open .nav-dropdown-trigger { color: var(--text); }
.dropdown-chevron { transition: transform 0.2s; flex-shrink: 0; }
.nav-dropdown.open .dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(-6px); background: rgba(15,15,28,0.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--border2); border-radius: 14px; padding: 8px; min-width: 170px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; box-shadow: 0 20px 48px rgba(0,0,0,0.5); z-index: 200; }
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 14px; color: var(--text-muted); transition: background 0.15s, color 0.15s; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.05); color: var(--text); }

/* ── Mobile Nav ──────────────────────────────────────── */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.mobile-menu { display: none; position: fixed; top: 68px; left: 0; right: 0; background: rgba(7,7,15,0.97); backdrop-filter: blur(20px); padding: 20px 24px 28px; border-bottom: 1px solid var(--border); flex-direction: column; gap: 4px; z-index: 99; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 16px; font-weight: 500; color: var(--text-muted); padding: 8px 0; transition: color 0.2s; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .nav-cta { margin-top: 12px; color: white; width: fit-content; }
.mobile-group-label { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); padding: 14px 0 2px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: white; font-size: 15px; font-weight: 600; padding: 14px 28px; border-radius: 12px; transition: all 0.2s; cursor: pointer; border: none; font-family: 'DM Sans', sans-serif; }
.btn-primary:hover { background: #6a5fd6; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,111,224,0.35); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 15px; font-weight: 500; padding: 14px 28px; border-radius: 12px; border: 1px solid var(--border); transition: all 0.2s; cursor: pointer; background: none; font-family: 'DM Sans', sans-serif; }
.btn-ghost:hover { color: var(--text); border-color: var(--border2); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: var(--surface2); color: var(--text); font-size: 14px; font-weight: 500; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--border); transition: all 0.2s; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-secondary:hover { border-color: var(--border2); background: var(--surface3); }

/* ── Page Hero (inner pages) ─────────────────────────── */
.page-hero { padding: 156px 0 88px; text-align: center; position: relative; overflow: hidden; }
.page-hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.page-hero-orb-1 { width: 600px; height: 400px; background: radial-gradient(circle, rgba(124,111,224,0.28), transparent 70%); top: -80px; left: 50%; transform: translateX(-50%); }
.page-hero-orb-2 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(168,85,247,0.15), transparent 70%); top: 0; right: 5%; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 20px; max-width: 800px; margin-left: auto; margin-right: auto; }
.page-hero p { font-size: 18px; color: var(--text-muted); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.gradient-text { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Legal Layout ────────────────────────────────────── */
.legal-page { padding: 64px 0 100px; }
.legal-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 64px; max-width: 1000px; margin: 0 auto; padding: 0 24px; align-items: start; }
.legal-toc { position: sticky; top: 96px; }
.legal-toc h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.legal-toc a { display: block; font-size: 13px; color: var(--text-dim); padding: 6px 0 6px 14px; border-left: 2px solid var(--border); transition: color 0.2s, border-color 0.2s; line-height: 1.4; }
.legal-toc a:hover { color: var(--text-muted); border-color: var(--accent); }
.legal-meta { font-size: 13px; color: var(--text-dim); margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.legal-content h2 { font-size: 22px; font-weight: 700; color: var(--text); margin: 48px 0 16px; padding-top: 8px; scroll-margin-top: 100px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: 28px 0 10px; }
.legal-content p { font-size: 15px; color: var(--text-muted); line-height: 1.85; margin-bottom: 16px; }
.legal-content ul, .legal-content ol { padding-left: 20px; margin-bottom: 16px; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 6px; }
.legal-content a { color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }
.legal-highlight { background: rgba(124,111,224,0.07); border: 1px solid rgba(124,111,224,0.15); border-radius: 12px; padding: 20px 24px; margin: 24px 0; }
.legal-highlight p { margin-bottom: 0; }

/* ── CTA Section ─────────────────────────────────────── */
.cta-section { padding: 80px 0; }
.cta-card { background: linear-gradient(135deg, rgba(124,111,224,0.1), rgba(168,85,247,0.05)); border: 1px solid rgba(124,111,224,0.18); border-radius: 28px; padding: 80px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 500px; height: 500px; background: radial-gradient(circle, rgba(124,111,224,0.18), transparent 70%); pointer-events: none; }
.cta-card h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; }
.cta-card p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-top { display: grid; grid-template-columns: 280px 1fr; gap: 64px; margin-bottom: 56px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-top: 16px; max-width: 240px; }
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.social-links { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.social-link:hover { color: var(--text); border-color: var(--border2); background: var(--surface3); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .cta-card { padding: 48px 24px; }
  .page-hero { padding: 120px 0 64px; }
}
@media (max-width: 480px) {
  .footer-links-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
}