/* ═══════════════════ TOKENS ═══════════════════ */

:root {
  --bg: #0a0a0a;
  --bg-nav: rgba(10, 10, 10, 0.85);
  --bg-card: #141414;
  --bg-inset: #111;
  --text: #e5e5e5;
  --text-mid: #aaa;
  --text-muted: #777;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-hover: #818cf8;
  --border: #1e1e1e;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 720px;
  --max-w-wide: 1080px;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-nav: rgba(250, 250, 250, 0.85);
  --bg-card: #fff;
  --bg-inset: #f0f0f0;
  --text: #1a1a1a;
  --text-mid: #555;
  --text-muted: #888;
  --accent-glow: rgba(99, 102, 241, 0.08);
  --border: #e5e5e5;
}

/* ═══════════════════ RESET ═══════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ═══════════════════ LAYOUT ═══════════════════ */

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--max-w-wide); }

.section { padding: 100px 0; }

/* ═══════════════════ NAV ═══════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  line-height: 1;
}

[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }

/* ═══════════════════ HERO ═══════════════════ */

.hero {
  padding: 180px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}

.hero-sub {
  font-size: clamp(17px, 2.5vw, 21px);
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

/* ═══════════════════ BUTTONS ═══════════════════ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-block { display: block; text-align: center; width: 100%; }

/* ═══════════════════ TYPOGRAPHY ═══════════════════ */

h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

p { margin-bottom: 20px; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
strong { font-weight: 600; }
cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  color: var(--text-muted);
}

/* ═══════════════════ POSITIONS GRID ═══════════════════ */

.positions-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.position-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.position-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.position-example {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: var(--bg-inset);
  border-radius: 8px;
  line-height: 1.4;
}

.position-card > p {
  color: var(--text-mid);
  font-size: 16px;
}

/* ═══════════════════ RESEARCH GRID ═══════════════════ */

.research-grid {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.research-card {
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.research-card p { font-size: 17px; margin-bottom: 0; }

/* ═══════════════════ AUDIENCE GRID ═══════════════════ */

.audience-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.audience-card {
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.audience-card p { font-size: 17px; margin-bottom: 0; }

/* ═══════════════════ ACT 2: THE DROP ═══════════════════ */

.act2 {
  padding: 120px 0;
}

.act2 p {
  color: var(--text-mid);
  font-size: 18px;
  margin-bottom: 28px;
  line-height: 1.75;
}

.act2-opener {
  font-size: 28px !important;
  font-weight: 700;
  color: var(--text) !important;
  margin-bottom: 32px !important;
}

/* ═══════════════════ ACT 3: THE RETURN ═══════════════════ */

.act3-return {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.act3-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.act3-return.visible .act3-glow {
  opacity: 1;
}

.act3-headline {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.act3-return.visible .act3-headline {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════ PRODUCT GRID ═══════════════════ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.6;
}

/* ═══════════════════ PRICING ═══════════════════ */

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-featured {
  border-color: var(--accent);
}

.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.price span {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-mid);
}
.pricing-card li:last-child { border-bottom: none; }

.pricing-extras {
  margin-top: 40px;
  text-align: center;
}

.pricing-extras p {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 8px;
}

/* ═══════════════════ CTA ═══════════════════ */

.cta-section { text-align: center; padding-bottom: 120px; }

.cta-sub {
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 auto 36px;
  font-size: 18px;
}

/* ═══════════════════ FOOTER ═══════════════════ */

.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}

.footer-company {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  color: var(--text-mid);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

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

/* ═══════════════════ RESPONSIVE ═══════════════════ */

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 130px 0 64px; }
  .act2 { padding: 80px 0; }
  .act3-return { padding: 100px 0 48px; }

  .product-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }

  .act3-glow { width: 360px; height: 360px; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero h1 { margin-bottom: 20px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid { max-width: 100%; }
}
