/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0e0e10;
  --bg-raised: #18181c;
  --bg-card: #1e1e24;
  --accent: #4f9cf9;
  --text: #e2e2e6;
  --text-muted: #78787e;
  --text-faint: #4a4a50;
  --border: #2a2a30;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --max-w: 1060px;
  --section-pad: 140px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Noise texture overlay */
body::before {
  content: '';
  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: 9999;
}

/* ── Reveal animations ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ───────────────────────────────────────────────── */
/* All top-level sections stretch full width */
.hero, .showcase, .pricing, .cta, .footer { width: 100%; }

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
  text-align: center;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  text-align: center;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: #3d8ae8;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(79, 156, 249, 0.25);
  text-decoration: none;
}

.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--bg-raised);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-large { padding: 18px 48px; font-size: 16px; border-radius: 10px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 156, 249, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-logo {
  width: 305px;
  height: 160px;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 40px rgba(79, 156, 249, 0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  max-width: 680px;
  margin-bottom: 20px;
}

.hero-headline em { color: var(--accent); font-style: italic; }

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.1em;
  animation: pulse-down 2s ease-in-out infinite;
}

@keyframes pulse-down {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(6px); }
}

/* ── Conversation showcase ─────────────────────────────────── */
.showcase { border-top: 1px solid var(--border); }

.convo {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-top: 48px;
  width: 100%;
  max-width: 800px;
}
.convo:nth-child(odd) { flex-direction: row; }
.convo:nth-child(even) { flex-direction: row-reverse; }

.convo-prompt {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
}
.convo-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.convo-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.5;
}
.convo:nth-child(even) .convo-bubble { border-radius: 16px 16px 4px 16px; }

.convo-card {
  flex: 1;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.convo-card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 20px 0;
}

/* ── Card mockup styles ───────────────────────────────────── */
.card-inner { padding: 20px; }
.card-header { margin-bottom: 16px; }
.card-header h3 { font-size: 17px; font-weight: 600; }
.card-header p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--bg-card); border-radius: 10px; padding: 14px; text-align: center; }
.stat-value { font-size: 20px; font-weight: 700; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.stat-delta { font-size: 11px; color: #4caf50; margin-top: 2px; }
.stat-delta.down { color: #f44336; }

.card-gauge { display: flex; align-items: center; gap: 16px; background: var(--bg-card); border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; }
.gauge-ring { width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--accent); border-right-color: var(--accent); border-bottom-color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.gauge-label { font-size: 12px; color: var(--text-muted); }

.bar-chart { margin-top: 16px; }
.bar-chart-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.bar-row { margin-bottom: 8px; }
.bar-row .bar-label { font-size: 12px; }
.bar-row .bar-value { font-size: 12px; color: var(--text-muted); float: right; }
.bar-track { height: 6px; background: var(--border); border-radius: 3px; margin-top: 4px; overflow: hidden; clear: both; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 3px; }

.card-field { margin-bottom: 12px; }
.card-field label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.card-field .input-mock { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--text-muted); }
.card-btn { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 12px; font-size: 14px; font-weight: 500; width: 100%; text-align: center; margin-top: 8px; }

.card-timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; min-height: 48px; }
.tl-gutter { display: flex; flex-direction: column; align-items: center; width: 16px; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex-shrink: 0; margin-top: 4px; }
.tl-dot.done { background: var(--accent); }
.tl-dot.active { background: var(--accent); box-shadow: 0 0 0 3px rgba(79,156,249,0.25); }
.tl-line { width: 2px; flex: 1; background: var(--border); margin-top: 4px; }
.tl-line.done { background: var(--accent); }
.tl-item:last-child .tl-line { display: none; }
.tl-body { padding-bottom: 12px; }
.tl-title { font-size: 13px; font-weight: 500; }
.tl-title.pending { color: var(--text-muted); }
.tl-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.email-list { display: flex; flex-direction: column; }
.email-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.email-row:last-child { border-bottom: none; }
.email-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.email-body { flex: 1; min-width: 0; }
.email-from { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; }
.email-row.unread .email-from { color: #fff; }
.email-time { font-size: 11px; font-weight: 400; color: var(--text-muted); flex-shrink: 0; }
.email-subject { font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.email-row.unread .email-subject { color: #a8a8ae; }
.email-chevron { color: var(--text-faint); font-size: 20px; flex-shrink: 0; margin-top: 4px; }
.email-hint { font-size: 11px; color: var(--text-faint); text-align: center; margin-top: 12px; font-style: italic; }

/* ── Pricing ──────────────────────────────────────────────── */
.pricing { border-top: 1px solid var(--border); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
  width: 100%;
  max-width: 680px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.pricing-card.pro {
  border-color: var(--accent);
  position: relative;
  box-shadow: 0 0 60px rgba(79, 156, 249, 0.06);
}

.pricing-card.pro::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  opacity: 0.1;
  pointer-events: none;
}

.pricing-tier {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pricing-card.pro .pricing-tier { color: var(--accent); }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pricing-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.pricing-card.pro .pricing-features li::before { background: var(--accent); }

.pricing-divider { height: 1px; background: var(--border); margin-bottom: 24px; }
.pricing-price { font-family: var(--font-display); font-size: 28px; margin-bottom: 4px; }
.pricing-price-note { font-size: 13px; color: var(--text-faint); margin-bottom: 24px; }
.pricing-note { text-align: center; color: var(--text-faint); font-size: 14px; margin-top: 24px; }

/* ── CTA ──────────────────────────────────────────────────── */
.cta { border-top: 1px solid var(--border); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 40px 0;
  text-align: left;
}

.step { display: flex; align-items: baseline; gap: 16px; font-size: 16px; }
.step-num {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.step-text { color: var(--text-muted); }
.step-text strong { color: var(--text); font-weight: 500; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 48px 24px; }

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.footer-brand img { width: 53px; height: 28px; opacity: 0.6; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-faint); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { font-size: 12px; color: var(--text-faint); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-pad: 80px; }

  .hero { min-height: calc(100vh - env(safe-area-inset-bottom, 0px)); padding: 40px 20px; }
  .hero-headline { font-size: 32px; }
  .hero-logo { width: 228px; height: 120px; }

  .section { padding-left: 20px; padding-right: 20px; }

  .convo, .convo:nth-child(odd), .convo:nth-child(even) {
    flex-direction: column;
    align-items: center;
  }
  .convo-prompt { flex: none; width: 100%; text-align: center; align-items: center; }
  .convo-bubble { border-radius: 16px; display: inline-block; }
  .convo-card { width: 100%; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-features li { justify-content: flex-start; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links { justify-content: center; }
}
