*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #06060d;
  --bg-elevated: #0c0c18;
  --bg-card: rgba(12, 12, 24, 0.78);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(139, 92, 246, 0.4);
  --text: #eeeef4;
  --text-muted: #7e7e96;
  --purple: #8b5cf6;
  --purple-dim: rgba(139, 92, 246, 0.15);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, 0.12);
  --gradient: linear-gradient(135deg, var(--purple) 0%, #6366f1 50%, var(--cyan) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Outfit', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.6rem 1rem;
  background: var(--purple);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gradient);
  z-index: 200;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% -10%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow--1 { width: 700px; height: 700px; top: -250px; left: -150px; background: rgba(139, 92, 246, 0.11); }
.bg-glow--2 { width: 550px; height: 550px; top: 50%; right: -180px; background: rgba(6, 182, 212, 0.07); }

.bg-noise {
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(6, 6, 13, 0.6);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s;
}
.header--scrolled {
  background: rgba(6, 6, 13, 0.88);
  border-bottom-color: var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 101;
}
.logo-mark { width: 34px; height: 34px; }
.logo-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav { display: flex; gap: 1.75rem; }
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { position: relative; z-index: 1; }

.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 4.5rem clamp(1.25rem, 4vw, 3rem);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem 0.35rem 0.7rem;
  background: var(--purple-dim);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #c4b5fd;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s var(--ease) both;
}

.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.1rem;
  animation: fadeUp 0.8s 0.08s var(--ease) both;
}

.gradient-text, .hero-rotator {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-rotator {
  display: inline-block;
  transition: opacity 0.28s, transform 0.28s;
}
.hero-rotator.fade { opacity: 0; transform: translateY(8px); }

.hero-sub {
  max-width: 500px;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.16s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s 0.24s var(--ease) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 28px rgba(139, 92, 246, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(139, 92, 246, 0.42); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: var(--border-hover); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  animation: fadeUp 0.8s 0.32s var(--ease) both;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--mono);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.stat-divider { width: 1px; height: 36px; background: var(--border); }

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

/* Hero visual */
.hero-visual { display: flex; justify-content: center; animation: fadeUp 1s 0.4s var(--ease) both; }
.hero-orbit {
  position: relative;
  width: 320px;
  height: 320px;
}
.hero-orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.hero-orbit-ring::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px dashed rgba(6, 182, 212, 0.12);
  border-radius: 50%;
  animation: spin 25s linear infinite reverse;
}
.hero-orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.35), 0 0 120px rgba(6, 182, 212, 0.15);
}
.hero-orbit-dot {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
}
.hero-orbit-dot--1 { top: 8%; left: 50%; animation: orbit1 8s ease-in-out infinite; }
.hero-orbit-dot--2 { bottom: 20%; right: 8%; animation: orbit2 10s ease-in-out infinite; }
.hero-orbit-dot--3 { bottom: 25%; left: 5%; animation: orbit3 12s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit1 { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,12px); } }
@keyframes orbit2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-10px,-14px); } }
@keyframes orbit3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(14px,-8px); } }

/* Section headers */
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 0.65rem;
}
.section-head h2, .about-text h2, .contact-card h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
}
.section-head p, .contact-card p {
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* Quick links */
.section--links { padding-top: 2rem; }
.quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 520px;
  margin: 0 auto;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.quick-link:hover {
  transform: translateX(6px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.quick-link-icon {
  width: 42px !important;
  height: 42px !important;
  flex-shrink: 0;
}
.quick-link-icon svg { width: 20px; height: 20px; }
.quick-link-text { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.quick-link-text strong { font-size: 0.95rem; font-weight: 600; }
.quick-link-text small { font-size: 0.78rem; color: var(--text-muted); }
.quick-link-arrow { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; transition: color 0.2s, transform 0.2s; }
.quick-link:hover .quick-link-arrow { color: var(--cyan); transform: translate(2px, -2px); }

/* Filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--border-hover); }
.filter-btn.active {
  background: var(--purple-dim);
  border-color: rgba(139, 92, 246, 0.4);
  color: #ddd6fe;
}

/* Cards */
.category { margin-bottom: 3rem; }
.category-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.1rem;
}
.cards--flat { margin-top: 0; }

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.card.visible { opacity: 1; transform: translateY(0); }
.card.visible:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(139, 92, 246, 0.06);
}

.card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover .card-accent { opacity: 1; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.card-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 21px; height: 21px; }
.card-icon--bot { background: rgba(88,101,242,0.14); color: #7289da; }
.card-icon--gate { background: var(--cyan-dim); color: var(--cyan); }
.card-icon--ai { background: var(--purple-dim); color: var(--purple); }
.card-icon--scale { background: rgba(236,72,153,0.14); color: #ec4899; }
.card-icon--engine { background: rgba(245,158,11,0.14); color: #f59e0b; }
.card-icon--visuals { background: rgba(34,197,94,0.14); color: #22c55e; }
.card-icon--world { background: rgba(59,130,246,0.14); color: #3b82f6; }
.card-icon--hotel { background: rgba(168,85,247,0.14); color: #a855f7; }
.card-icon--voxel { background: rgba(20,184,166,0.14); color: #14b8a6; }

.badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}
.badge--alpha { background: rgba(245,158,11,0.14); color: #fbbf24; border: 1px solid rgba(245,158,11,0.28); }
.badge--private { background: rgba(107,114,128,0.14); color: #9ca3af; border: 1px solid rgba(107,114,128,0.28); }
.badge--dev { background: var(--purple-dim); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.28); }
.badge--soon { background: var(--cyan-dim); color: #67e8f9; border: 1px solid rgba(6,182,212,0.22); }

.card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.45rem; }
.card p { font-size: 0.875rem; color: var(--text-muted); flex: 1; margin-bottom: 0.9rem; line-height: 1.6; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.1rem; }
.card-tags span {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.18rem 0.45rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  transition: gap 0.2s, color 0.2s;
}
.card-link svg { width: 14px; height: 14px; }
.card-link:hover { gap: 0.55rem; color: var(--cyan); }
.card-link--muted { color: var(--text-muted); font-weight: 500; cursor: default; }
.card-link--muted:hover { gap: 0.35rem; color: var(--text-muted); }

/* About */
.section--about { padding-top: 1rem; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.about-text p { color: var(--text-muted); margin-bottom: 0.9rem; font-size: 0.95rem; }
.about-list { list-style: none; margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.65rem; }
.about-list li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.92rem; }
.about-list svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
}
.founder-avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
}
.founder-role {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
.founder-info h3 { font-size: 1.25rem; font-weight: 700; margin: 0.25rem 0 0.5rem; }
.founder-info p { font-size: 0.88rem; color: var(--text-muted); }
.founder-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.founder-stack span {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.55rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

/* Contact */
.section--contact { padding-bottom: 5rem; }
.contact-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 2.75rem clamp(1.5rem, 4vw, 3.5rem);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--gradient);
  opacity: 0.5;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  background: #5865F2;
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.contact-btn svg { width: 19px; height: 19px; }
.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(88,101,242,0.38); }
.contact-btn--ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
}
.contact-btn--ghost:hover { box-shadow: none; background: rgba(255,255,255,0.07); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-left { display: flex; flex-direction: column; gap: 0.15rem; }
.footer-brand { font-weight: 700; color: var(--text); font-size: 0.9rem; }
.footer-links { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
  z-index: 90;
  backdrop-filter: blur(12px);
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--border-hover); background: var(--purple-dim); }

/* Legal */
.legal-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-h));
  padding: calc(var(--header-h) + 2.5rem) clamp(1.25rem, 4vw, 3rem) 4rem;
}
.legal-layout {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  font-size: 0.82rem;
}
.legal-toc h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.legal-toc a {
  color: var(--text-muted);
  transition: color 0.2s;
  display: block;
  padding: 0.2rem 0;
}
.legal-toc a:hover { color: var(--text); }
.legal-content h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.legal-intro { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.92rem; }
.legal-content section { margin-bottom: 2rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.legal-content h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.65rem; }
.legal-content p, .legal-content li {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
  line-height: 1.75;
}
.legal-content ul { padding-left: 1.2rem; margin-bottom: 0.65rem; }
.legal-content a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--cyan); }
.legal-note {
  padding: 0.9rem 1.1rem;
  background: var(--purple-dim);
  border: 1px solid rgba(139,92,246,0.22);
  border-radius: var(--radius-sm);
  font-size: 0.88rem !important;
}
.legal-back {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.legal-back a { font-weight: 600; text-decoration: none; color: var(--text-muted); }
.legal-back a:hover { color: var(--text); }

/* Mobile */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .founder-card { order: -1; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: none; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 6, 13, 0.97);
    backdrop-filter: blur(24px);
    padding-top: var(--header-h);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
    z-index: 99;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 0.75rem; font-size: 1.15rem; }
  .menu-toggle { display: flex; }
  .hero-stats { gap: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-left { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .card { opacity: 1; transform: none; }
}
