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

:root {
  --bg: #08080a;
  --surface: #111114;
  --surface-2: #19191d;
  --border: rgba(255,255,255,0.06);
  --text: #eae9e6;
  --text-2: #a09f9b;
  --text-3: #5c5b58;
  --accent: #d4a04a;
  --accent-soft: rgba(212,160,74,0.1);
  --accent-mid: rgba(212,160,74,0.25);
  --green: #4ade80;
  --blue: #60a5fa;
  --radius: 14px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Focus styles ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,10,0.8);
  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;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
}

.logo svg { opacity: 0.9; }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 10px 22px;
  border-radius: 9px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.85; }

/* ── Hero ── */
.hero {
  padding: 180px 0 80px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.75;
}

.hero-note {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 14px;
}

/* ── Hero demo ── */
.hero-demo {
  max-width: 480px;
  margin: 0 auto 48px;
  position: relative;
}

.demo-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 48px;
  margin-bottom: 16px;
}

.wave-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.4;
  animation: wave 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.09s);
}

@keyframes wave {
  0%, 100% { height: 8px; opacity: 0.25; }
  50% { height: calc(12px + var(--i) * 1.5px); opacity: 0.6; }
}

.demo-insight {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  min-height: 44px;
}

.insight-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.insight-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
  min-height: 18px;
}

/* ── Signup form ── */
.signup-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.signup-form input {
  flex: 1;
  padding: 14px 18px;
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.signup-form input:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.signup-form input::placeholder { color: var(--text-3); }

.signup-form button {
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.1s;
}

.signup-form button:hover { opacity: 0.85; }
.signup-form button:active { transform: scale(0.97); }

.signup-form button.success {
  background: var(--green);
  pointer-events: none;
}

/* ── Problems ── */
.problems {
  padding: 120px 0;
}

.problem-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.problem {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.problem:first-child { border-top: 1px solid var(--border); }

.problem-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-3);
  flex-shrink: 0;
  line-height: 1;
  min-width: 36px;
}

.problem-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 8px;
}

.problem-body p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Feature sections ── */
.feature-section {
  padding: 120px 0;
}

.feature-section--alt {
  background: var(--surface);
}

.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.feature-layout--reverse {
  grid-template-columns: 1.15fr 1fr;
}

.feature-layout--reverse .feature-text { order: 2; }
.feature-layout--reverse .feature-demo { order: 1; }

.feature-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 18px;
}

.feature-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 28px;
}

.feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-points li {
  font-size: 15px;
  color: var(--text-2);
  padding-left: 20px;
  position: relative;
}

.feature-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Whisper mock UI ── */
.whisper-mock {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.whisper-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.whisper-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.whisper-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-3);
}

.whisper-feed {
  min-height: 240px;
  padding: 6px 0;
}

.whisper-item {
  padding: 14px 18px;
  opacity: 0;
  transform: translateY(8px);
  animation: whisper-in 0.4s ease forwards;
}

.whisper-item-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.whisper-item-label--fact { background: rgba(74,222,128,0.12); color: var(--green); }
.whisper-item-label--suggest { background: rgba(96,165,250,0.12); color: var(--blue); }
.whisper-item-label--context { background: var(--accent-soft); color: var(--accent); }

.whisper-item-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

@keyframes whisper-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Persona mock UI ── */
.persona-mock {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.persona-stage {
  height: 200px;
  background: linear-gradient(160deg, #12121a 0%, #0d0d14 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.persona-wave-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.persona-wave-line {
  width: 80%;
  height: 1px;
  background: rgba(212,160,74,0.08);
  position: relative;
}

.persona-wave-line::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-mid), transparent);
  border-radius: 2px;
  animation: scan-line 4s ease-in-out infinite;
  animation-delay: calc(var(--j) * 1.3s);
}

@keyframes scan-line {
  0% { left: -60px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: calc(100% + 60px); opacity: 0; }
}

.persona-label-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f87171;
  background: rgba(248,113,113,0.12);
  padding: 3px 10px;
  border-radius: 4px;
}

.persona-reaction-area {
  display: flex;
  gap: 14px;
  padding: 18px;
  align-items: flex-start;
  border-top: 1px solid var(--border);
  background: rgba(212,160,74,0.03);
  min-height: 80px;
}

.persona-avatar-ring {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.persona-avatar {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.persona-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 38px;
}

.persona-name-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.3px;
}

.persona-msg-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  min-height: 20px;
}

.persona-cursor {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── How it works ── */
.how-section {
  padding: 120px 0;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  text-align: center;
  margin-bottom: 64px;
}

.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.how-step {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: 0 20px;
}

.how-step-visual {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  color: var(--accent);
}

.how-icon {
  width: 100%;
  height: 100%;
}

.mic-ring {
  animation: mic-pulse 2.5s ease-out infinite;
}
.mic-ring-2 { animation-delay: 0.4s; }

@keyframes mic-pulse {
  0% { r: 14; opacity: 0; }
  30% { opacity: 0.3; }
  100% { r: 26; opacity: 0; }
}

.check-draw {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw-check 1.5s ease forwards 0.5s;
  animation-iteration-count: infinite;
}

@keyframes draw-check {
  0% { stroke-dashoffset: 30; }
  40% { stroke-dashoffset: 0; }
  70% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 30; }
}

.how-connector {
  flex-shrink: 0;
  width: 80px;
  color: var(--text-3);
  padding-top: 36px;
}

.how-connector svg { width: 100%; }

.how-step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
}

.how-step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Audience ── */
.audience-section {
  padding: 100px 0;
  background: var(--surface);
}

.audience-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.audience-item {
  background: var(--surface);
  padding: 32px 28px;
}

.audience-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
}

.audience-item p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ── CTA ── */
.cta-section {
  padding: 120px 0;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-3);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}

/* ── Scroll animations ── */
.anim-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .feature-layout,
  .feature-layout--reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-layout--reverse .feature-text { order: 1; }
  .feature-layout--reverse .feature-demo { order: 2; }

  .how-steps { flex-direction: column; align-items: center; gap: 32px; }
  .how-connector { display: none; }
  .how-step { max-width: 360px; }

  .audience-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero { padding: 140px 0 60px; }

  .signup-form { flex-direction: column; }
  .signup-form button { width: 100%; }

  .problem { gap: 16px; }
  .problem-num { font-size: 22px; min-width: 28px; }
  .problem-body h3 { font-size: 19px; }

  .audience-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 8px; }
}
