/* ============================================
   AUBADE — Light Dawn Theme
   Reclaim your morning.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --cream: #FBF8F1;
  --cream-2: #F5F0E4;
  --cream-3: #EDE7D6;
  --navy: #1B1F2E;
  --navy-2: #2A2F42;
  --slate: #5A6276;
  --slate-light: #8A93A7;
  --amber: #C8742E;
  --amber-hover: #B0651E;
  --amber-glow: rgba(232, 138, 71, 0.15);
  --peach: #FFC882;
  --peach-glow: rgba(255, 200, 130, 0.25);
  --border: rgba(27, 31, 46, 0.08);
  --border-strong: rgba(27, 31, 46, 0.16);
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --container: 1200px;
  --gutter: 24px;
}

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

body {
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--navy);
}

h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 500; }

p { color: var(--slate); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-block;
}

.mono { font-family: var(--font-mono); }
.italic { font-style: italic; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 120px 0; position: relative; }

@media (max-width: 768px) { section { padding: 80px 0; } }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  background: rgba(251, 248, 241, 0.75);
  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;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.logo-mark { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--slate); text-decoration: none;
  font-size: 0.875rem; font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
@media (max-width: 768px) { .nav-links { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--amber); color: var(--cream); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--navy); background: rgba(27, 31, 46, 0.03); }
.btn-arrow::after { content: '→'; transition: transform 0.25s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* Hero */
.hero {
  min-height: 100vh;
  padding-top: 140px; padding-bottom: 80px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%; transform: translateX(-50%);
  width: 140%; height: 80%;
  background: radial-gradient(ellipse at center top, var(--amber-glow) 0%, transparent 60%);
  filter: blur(60px);
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: 10%; right: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(ellipse at center, var(--peach-glow) 0%, transparent 60%);
  filter: blur(40px);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { margin: 24px 0; }
.hero h1 .italic { font-style: italic; color: var(--amber); }
.hero-sub {
  font-size: 1.25rem; color: var(--slate);
  max-width: 620px; margin-bottom: 40px; line-height: 1.5;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta {
  position: absolute; bottom: 60px; right: var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.7rem; color: var(--slate-light);
  letter-spacing: 0.15em; text-transform: uppercase;
  text-align: right; line-height: 1.8;
}
@media (max-width: 768px) { .hero-meta { display: none; } }

/* Section heads */
.section-head { max-width: 720px; margin-bottom: 80px; }
.section-head h2 { margin: 16px 0; }
.section-head p { font-size: 1.125rem; color: var(--slate); max-width: 580px; }

/* Problem */
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 40px;
}
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--cream-2);
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.problem-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.problem-card .label {
  font-family: var(--font-mono);
  font-size: 0.7rem; color: var(--slate-light);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 20px; display: block;
}
.problem-card h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--navy); }
.problem-card p { font-size: 0.95rem; color: var(--slate); }
.problem-divider {
  margin-top: 60px; padding-top: 60px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.problem-divider .insight {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic; font-weight: 300;
  color: var(--navy);
  max-width: 800px; margin: 0 auto;
  line-height: 1.3;
}
.problem-divider .insight strong {
  color: var(--amber); font-weight: 500; font-style: normal;
}

/* Reclaim Section */
.reclaim-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  position: relative; overflow: hidden;
}
.reclaim-section::before {
  content: ''; position: absolute;
  top: 10%; left: -10%; width: 50%; height: 60%;
  background: radial-gradient(ellipse at center, var(--peach-glow), transparent 60%);
  filter: blur(80px); pointer-events: none;
}
.reclaim-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
@media (max-width: 900px) { .reclaim-grid { grid-template-columns: 1fr; gap: 40px; } }
.reclaim-visual {
  background: var(--navy);
  border-radius: 24px; padding: 40px;
  color: var(--cream);
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(27, 31, 46, 0.15);
}
.reclaim-visual::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 60%;
  background: radial-gradient(ellipse at top, rgba(255, 200, 130, 0.25), transparent 70%);
  pointer-events: none;
}
.reclaim-label {
  font-family: var(--font-mono);
  font-size: 0.7rem; color: var(--peach);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 20px; position: relative;
}
.reclaim-timeline { position: relative; z-index: 1; }
.timeline-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(251, 248, 241, 0.08);
}
.timeline-row:last-child { border-bottom: none; }
.timeline-label { font-family: var(--font-body); font-size: 0.9rem; color: var(--cream); }
.timeline-time { font-family: var(--font-mono); font-size: 1.1rem; color: var(--peach); font-weight: 500; }
.timeline-time.muted { color: var(--slate-light); text-decoration: line-through; }
.reclaim-callout {
  margin-top: 24px; padding: 20px;
  background: var(--amber); border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.reclaim-callout-label { font-family: var(--font-body); font-size: 0.85rem; color: var(--cream); font-weight: 500; }
.reclaim-callout-value { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream); font-weight: 500; }

/* Logic */
.logic-section { background: var(--cream-2); }
.logic-demo {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
  margin-top: 40px;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 30px rgba(27, 31, 46, 0.04);
}
.logic-demo::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.logic-row {
  display: grid; grid-template-columns: 80px 1fr 200px;
  gap: 24px; align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.logic-row:last-child { border-bottom: none; }
.logic-time { font-family: var(--font-mono); font-size: 0.95rem; color: var(--amber); font-weight: 500; }
.logic-state { color: var(--navy); font-size: 0.95rem; }
.logic-state .small {
  display: block; font-size: 0.8rem; color: var(--slate-light);
  font-family: var(--font-mono); margin-top: 4px;
}
.logic-decision {
  text-align: right; font-family: var(--font-mono);
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.logic-decision.wait { color: var(--slate-light); }
.logic-decision.wake { color: var(--amber); }
.logic-decision.hold { color: var(--slate); }
@media (max-width: 700px) {
  .logic-row { grid-template-columns: 60px 1fr; }
  .logic-decision { grid-column: 1 / -1; text-align: left; padding-left: 84px; }
}

/* Sequence */
.sequence { margin-top: 40px; position: relative; }
.sequence-line {
  position: absolute; left: 20px; top: 30px; bottom: 30px; width: 1px;
  background: linear-gradient(180deg, var(--amber), var(--border), var(--border));
}
.sequence-step {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 24px; padding: 24px 0; align-items: start;
}
.sequence-dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--navy);
  position: relative; z-index: 1;
}
.sequence-step:nth-child(2) .sequence-dot {
  border-color: var(--amber); color: var(--amber); background: var(--amber-glow);
}
.sequence-content h4 {
  font-family: var(--font-body); font-size: 1.125rem; font-weight: 500;
  margin-bottom: 6px; color: var(--navy);
}
.sequence-content p { color: var(--slate); font-size: 0.95rem; }

/* Features */
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 40px;
}
@media (max-width: 800px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--cream-2);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(27, 31, 46, 0.06);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--amber-glow);
  border: 1px solid var(--amber);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--amber);
}
.feature h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  margin-bottom: 12px; color: var(--navy);
}
.feature p { color: var(--slate); font-size: 0.95rem; line-height: 1.6; }

/* Result Card */
.result-section { position: relative; }
.result-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; margin-top: 40px;
}
@media (max-width: 900px) { .result-grid { grid-template-columns: 1fr; } }
.result-text h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; margin-bottom: 20px; }
.result-text p { font-size: 1.05rem; margin-bottom: 16px; color: var(--slate); }
.result-card {
  background: var(--navy);
  border: 1px solid var(--navy-2);
  border-radius: 24px; padding: 40px;
  position: relative; overflow: hidden;
  color: var(--cream);
  box-shadow: 0 20px 60px rgba(27, 31, 46, 0.15);
}
.result-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 60%;
  background: radial-gradient(ellipse at top, rgba(255, 200, 130, 0.2), transparent 70%);
  pointer-events: none;
}
.result-time {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--peach); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 12px; position: relative;
}
.result-headline {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 300;
  letter-spacing: -0.02em; margin-bottom: 20px;
  color: var(--cream); position: relative;
}
.result-explanation {
  font-size: 1rem; color: var(--cream); opacity: 0.85; line-height: 1.55;
  margin-bottom: 28px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(251, 248, 241, 0.12);
  position: relative;
}
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.result-stat .stat-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--slate-light); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 6px;
}
.result-stat .stat-value {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--cream);
}
.result-stat .stat-value.accent { color: var(--peach); }

/* CTA Section */
.cta-section {
  text-align: center; padding: 160px 0;
  position: relative; overflow: hidden;
  background: var(--cream-2);
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--amber-glow), transparent 60%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; margin: 20px 0; }
.cta-content h2 .italic { font-style: italic; color: var(--amber); }
.cta-content p { font-size: 1.15rem; margin-bottom: 40px; }
.waitlist-form {
  display: flex; gap: 8px;
  max-width: 460px; margin: 0 auto;
  padding: 6px;
  background: var(--cream);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(27, 31, 46, 0.06);
}
.waitlist-form input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 12px 18px;
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--navy);
}
.waitlist-form input::placeholder { color: var(--slate-light); }
.waitlist-form button {
  padding: 12px 24px;
  background: var(--navy); color: var(--cream);
  border: none; border-radius: 999px;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.waitlist-form button:hover { background: var(--amber); }
.cta-note {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--slate-light); margin-top: 20px;
  letter-spacing: 0.05em;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: var(--cream);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p {
  margin-top: 16px; font-size: 0.9rem;
  max-width: 280px; color: var(--slate);
}
.footer-col h4 {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate-light); margin-bottom: 18px; font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--slate); text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
  padding-top: 30px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--slate-light); letter-spacing: 0.05em;
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Page-specific */
.page-hero {
  padding-top: 160px; padding-bottom: 60px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute;
  top: -20%; right: -10%; width: 60%; height: 80%;
  background: radial-gradient(ellipse at center, var(--peach-glow), transparent 60%);
  filter: blur(60px); pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300;
  margin: 16px 0 24px; max-width: 800px; position: relative;
}
.page-hero p.lede {
  font-size: 1.25rem; color: var(--slate);
  max-width: 680px; line-height: 1.5; position: relative;
}

.prose { max-width: 740px; margin: 0 auto; }
.prose h2 { margin-top: 80px; margin-bottom: 24px; }
.prose h3 { margin-top: 48px; margin-bottom: 16px; font-size: 1.5rem; }
.prose p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 20px; color: var(--slate); }
.prose blockquote {
  margin: 32px 0; padding: 24px 32px;
  border-left: 2px solid var(--amber);
  background: var(--cream-2);
  font-family: var(--font-display); font-style: italic;
  font-size: 1.15rem; color: var(--navy);
  border-radius: 0 12px 12px 0;
}
.prose ul { margin: 20px 0; padding-left: 24px; }
.prose li { margin-bottom: 10px; color: var(--slate); font-size: 1.05rem; line-height: 1.65; }

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: 920px; margin: 60px auto 0;
}
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  padding: 40px;
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
}
.price-card.featured {
  border-color: var(--amber);
  background: var(--cream);
  box-shadow: 0 12px 40px rgba(200, 116, 46, 0.12);
}
.price-card.featured::before {
  content: 'Most popular';
  position: absolute; top: -12px; left: 32px;
  background: var(--amber); color: var(--cream);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.price-tier {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--amber); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 12px;
}
.price-amount {
  font-family: var(--font-display); font-size: 3rem; font-weight: 400;
  margin-bottom: 4px; color: var(--navy);
}
.price-amount .period { font-size: 1rem; color: var(--slate-light); font-family: var(--font-body); }
.price-desc {
  color: var(--slate); margin-bottom: 28px;
  padding-bottom: 28px; border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.price-features { list-style: none; margin-bottom: 32px; }
.price-features li {
  padding: 8px 0; color: var(--slate);
  font-size: 0.95rem;
  display: flex; align-items: flex-start; gap: 10px;
}
.price-features li::before { content: '→'; color: var(--amber); flex-shrink: 0; }

/* FAQ */
.faq-list { max-width: 800px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-question {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500;
  color: var(--navy); margin-bottom: 12px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-answer { color: var(--slate); line-height: 1.65; font-size: 1rem; max-width: 720px; }

/* Science */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin: 40px 0; padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; gap: 32px; } }
.stat-big { text-align: center; }
.stat-big .number {
  font-family: var(--font-display); font-size: 3rem; font-weight: 300;
  color: var(--amber); margin-bottom: 8px;
}
.stat-big .desc { font-size: 0.9rem; color: var(--slate); }

/* Animations */
@keyframes glow { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.pulse-dot { animation: glow 2.5s ease-in-out infinite; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
