/* ===== FONTS ===== */
/* Fraunces for display, DM Sans for body - loaded via Google Fonts in layout */

/* ===== TOKENS ===== */
:root {
  --bg: #FDF8F3;
  --bg-2: #FAF2EB;
  --surface: #FFFFFF;
  --surface-2: #F5EDE4;
  --fg: #2D2A26;
  --fg-muted: #7A7570;
  --fg-dim: #B0A99E;
  --accent: #FF6B35;
  --accent-dark: #E84E15;
  --accent-dim: rgba(255, 107, 53, 0.08);
  --secondary: #F59E0B;
  --secondary-dim: rgba(245, 158, 11, 0.1);
  --border: rgba(45, 42, 38, 0.08);
  --shadow: 0 4px 24px rgba(45, 42, 38, 0.08);
  --shadow-hover: 0 8px 40px rgba(45, 42, 38, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  background: rgba(253, 248, 243, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: baseline;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.nav-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 100px;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-lede em { font-style: normal; color: var(--fg); font-weight: 500; }
.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.stack-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1.5px solid var(--accent);
  border-radius: 100px;
  color: var(--accent);
  background: var(--accent-dim);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 28px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}
.hero-cta-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--fg-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.hero-cta-secondary:hover {
  border-color: var(--fg-dim);
  color: var(--fg);
}

/* ===== HOW IT WORKS STRIP ===== */
.howitworks {
  padding: 72px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.howitworks-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.howitworks-header {
  text-align: center;
  margin-bottom: 56px;
}
.howitworks-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
}
.howitworks-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.howitworks-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step {
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0 auto 20px;
}
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin: 0 auto 16px;
}
.step-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.step-body {
  font-size: clamp(0.82rem, 2vw, 0.88rem);
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 240px;
  margin: 0 auto;
}

/* ===== PROBLEM ===== */
.problem {
  padding: 100px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.problem-inner { max-width: 1100px; margin: 0 auto; }
.problem-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--fg);
  max-width: 720px;
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}
.problem-context {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 60px;
}
.problem-divider {
  width: 40px; height: 2px;
  background: var(--accent);
  margin-bottom: 40px;
}
.problem-header {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 50px;
  color: var(--fg);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem-card {
  background: var(--surface);
  padding: 36px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid var(--border);
}
.problem-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 900;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 20px; right: 24px;
  line-height: 1;
}
.problem-card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--fg);
}
.problem-card-body {
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===== MODULES ===== */
.modules {
  padding: 100px 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.modules-inner { max-width: 1100px; margin: 0 auto; }
.modules-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
}
.modules-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  color: var(--fg);
  max-width: 500px;
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.module-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}
.module-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.module-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.module-icon {
  color: var(--accent);
  flex-shrink: 0;
}
.module-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.module-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.module-live {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 53, 0.2);
}
.module-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.module-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: var(--fg);
}
.module-try {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.module-body {
  font-size: clamp(0.82rem, 2vw, 0.88rem);
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.module-body em { font-style: normal; color: var(--fg); font-weight: 500; }
.module-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.format-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 53, 0.15);
}
.module-screenshot {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(45, 42, 38, 0.08);
  margin-top: 20px;
  transition: box-shadow 0.2s;
}
.module-screenshot:hover {
  box-shadow: 0 4px 20px rgba(45, 42, 38, 0.12);
}
.module-screenshot img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* ===== VOICE DNA ===== */
.voicedna {
  padding: 100px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.voicedna-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.voicedna-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.voicedna-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 28px;
  color: var(--fg);
}
.voicedna-body {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.voicedna-body em { font-style: normal; color: var(--fg); font-weight: 500; }

/* DNA Card */
.dna-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.dna-header {
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
}
.dna-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.dna-row:last-child { border-bottom: none; }
.dna-key {
  color: var(--fg-dim);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 1px;
}
.dna-val { color: var(--fg-muted); line-height: 1.5; }

.dna-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mode-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-align: center;
}
.mode-self { background: rgba(255, 107, 53, 0.1); color: var(--accent); border: 1px solid rgba(255, 107, 53, 0.2); }
.mode-inspired { background: rgba(245, 158, 11, 0.1); color: var(--secondary); border: 1px solid rgba(245, 158, 11, 0.2); }
.mode-contrast { background: rgba(139, 92, 246, 0.08); color: #7C3AED; border: 1px solid rgba(139, 92, 246, 0.15); }
.mode-blend { background: rgba(16, 185, 129, 0.08); color: #059669; border: 1px solid rgba(16, 185, 129, 0.15); }

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 100px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  text-align: center;
}
.manifesto-inner { max-width: 780px; margin: 0 auto; }
.manifesto-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 32px;
}
.manifesto-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--fg);
  margin-bottom: 32px;
}
.manifesto-body {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 16px;
}
.manifesto-body em { font-style: normal; color: var(--fg); font-weight: 500; }
.manifesto-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.stat {
  background: var(--surface);
  padding: 32px 24px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stat-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 900;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.stat-desc {
  font-size: clamp(0.75rem, 1.8vw, 0.8rem);
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ===== CLOSING ===== */
.closing {
  padding: 100px 40px 120px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
  line-height: 1.1;
}
.closing-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.closing-final {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  margin-top: 32px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.footer-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}
.footer-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.footer-note {
  font-size: 0.78rem;
  color: var(--fg-dim);
  line-height: 1.6;
  max-width: 560px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { padding: 14px 24px; }
  .hero { padding: 100px 24px 80px; min-height: auto; }
  .howitworks { padding: 60px 24px; }
  .howitworks-steps { grid-template-columns: 1fr; gap: 32px; }
  .problem, .modules, .voicedna, .manifesto, .closing { padding: 72px 24px; }
  .problem-grid, .modules-grid { grid-template-columns: 1fr; }
  .voicedna-inner { grid-template-columns: 1fr; gap: 48px; }
  .manifesto-stats { grid-template-columns: 1fr; }
  .dna-modes { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .howitworks, .problem, .modules, .voicedna, .manifesto, .closing { padding: 48px 20px; }
  .problem-card, .module-card { padding: 22px 18px; }
  .step, .stat { padding: 16px; }
  .hero-ctas { gap: 12px; }
  .howitworks-steps { gap: 20px; }
  .module-screenshot img { height: 140px; }
  .hero-cta-primary, .hero-cta-secondary { padding: 14px 20px; }
  .dna-row { grid-template-columns: 70px 1fr; }
  .dna-modes { grid-template-columns: 1fr; }
}

/* ===== FLUID MEDIA + TOUCH TARGETS ===== */
img, video { max-width: 100%; height: auto; }
html { overflow-x: hidden; }
button, a, [role="button"] { min-height: 44px; min-width: 44px; }

@media (max-width: 480px) {
  .hero-lede { font-size: 16px; }
  .step-body { font-size: 16px; }
}