@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400;1,600&display=swap');

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

:root {
  --bg: #09090b;
  --surface: #111113;
  --surface-light: #18181b;
  --surface-border: rgba(255, 255, 255, 0.06);
  --surface-border-hover: rgba(255, 255, 255, 0.12);
  --primary: #a1a4ff;
  --primary-deep: #1218b8;
  --accent: #6c5ce7;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --gradient-start: #a1a4ff;
  --gradient-end: #6c5ce7;
  --radius: 16px;
  --glow: rgba(161, 164, 255, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ─── Layout ─────────────────────────────────────── */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Nav ────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo span {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); opacity: 1; }

nav a.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--primary);
  color: var(--bg);
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

nav a.cta-btn:hover { background: #b4b7ff; opacity: 1; }

/* ─── Hero ───────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(161, 164, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--bg);
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(161, 164, 255, 0.25);
  opacity: 1;
}

.hero-cta svg { width: 20px; height: 20px; fill: var(--bg); }

/* ─── Sections ──────────────────────────────────── */

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  text-align: center;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title {
  text-align: center;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 56px;
  font-size: 16px;
  line-height: 1.7;
}

/* ─── Divider ───────────────────────────────────── */

.section-divider {
  border: none;
  border-top: 1px solid var(--surface-border);
  margin: 0;
}

/* ─── How It Works ──────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.3s;
}

.step:hover { border-color: var(--surface-border-hover); }

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(161, 164, 255, 0.12), rgba(108, 92, 231, 0.08));
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Science CTA ──────────────────────────────── */

.science-cta {
  text-align: center;
}

.science-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 32px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.science-link:hover {
  border-color: var(--surface-border-hover);
  background: var(--surface-light);
  opacity: 1;
}

/* ─── White Paper / Research page ──────────────── */

.research {
  padding: 40px 0 80px;
  max-width: 760px;
}

.wp-label {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
}

.wp-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.wp-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
}

/* Table of Contents */
.wp-toc {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 56px;
}

.wp-toc h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.wp-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
}

.wp-toc > ol > li {
  counter-increment: toc;
  margin-bottom: 8px;
}

.wp-toc > ol > li::before {
  content: counter(toc) ". ";
  color: var(--primary);
  font-weight: 600;
}

.wp-toc > ol > li > ol {
  list-style: none;
  counter-reset: subtoc;
  padding-left: 24px;
  margin-top: 6px;
}

.wp-toc > ol > li > ol > li {
  counter-increment: subtoc;
  margin-bottom: 4px;
}

.wp-toc > ol > li > ol > li::before {
  content: counter(toc) "." counter(subtoc) " ";
  color: var(--text-muted);
  font-size: 13px;
}

.wp-toc a {
  color: var(--text-secondary);
  font-size: 15px;
  transition: color 0.2s;
}

.wp-toc a:hover { color: var(--text); opacity: 1; }

/* Sections */
.wp-section {
  margin-bottom: 56px;
}

.wp-section h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface-border);
}

.wp-num {
  color: var(--primary);
  margin-right: 4px;
}

.wp-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
}

.wp-meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
}

.wp-section h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
}

.wp-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

.wp-section ul, .wp-section ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.wp-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.wp-section em {
  font-style: italic;
}

.wp-section strong {
  color: var(--text);
}

.wp-subsection {
  margin: 32px 0;
  padding-left: 20px;
  border-left: 2px solid var(--surface-border);
}

.wp-note {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 24px;
}

/* References */
.wp-references {
  padding-left: 24px;
}

.wp-references li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.wp-references em {
  font-style: italic;
  color: var(--text-muted);
}

/* ─── Features ──────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.3s;
}

.feature:hover { border-color: var(--surface-border-hover); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(161, 164, 255, 0.1), rgba(108, 92, 231, 0.06));
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── CTA Section ───────────────────────────────── */

.cta-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(161, 164, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ─── Footer ────────────────────────────────────── */

footer {
  border-top: 1px solid var(--surface-border);
  padding: 40px 0;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

footer p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ─── Legal pages ───────────────────────────────── */

.legal {
  padding: 40px 0 80px;
}

.legal h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.legal .updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--text);
}

.legal p, .legal li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Responsive ────────────────────────────────── */

@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; }
  .section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
