@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg: #0a0a0c;
  --bg-elevated: #131316;
  --bg-card: #1a1a1f;
  --fg: #e8e6e3;
  --fg-muted: #8a8790;
  --fg-dim: #5a5862;
  --accent: #4aff8c;
  --accent-dim: rgba(74, 255, 140, 0.12);
  --accent-glow: rgba(74, 255, 140, 0.25);
  --red: #ff4a6a;
  --amber: #ffb84a;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(74, 255, 140, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 40px;
  position: relative;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
  position: relative;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 560px;
  margin-top: 28px;
  line-height: 1.7;
}

/* ---- STATS STRIP ---- */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 60px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-elevated);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- PROBLEM ---- */
.problem {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.problem-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.problem-text h2 .red {
  color: var(--red);
}

.problem-text p {
  color: var(--fg-muted);
  margin-top: 24px;
  font-size: 1.05rem;
}

.problem-visual {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 32px;
  font-family: 'DM Sans', monospace;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.timeline-dot.red { background: var(--red); }
.timeline-dot.amber { background: var(--amber); }
.timeline-dot.green { background: var(--accent); }

.timeline-label {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.timeline-label strong {
  color: var(--fg);
  display: block;
  margin-bottom: 2px;
}

/* ---- FEATURES ---- */
.features {
  background: var(--bg-elevated);
  padding: 120px 24px;
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 72px;
}

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.features-header p {
  color: var(--fg-muted);
  margin-top: 16px;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: rgba(74, 255, 140, 0.2);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- CLOSING ---- */
.closing {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 120px 24px;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.closing h2 .highlight { color: var(--accent); }

.closing p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  margin-top: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 24px;
  text-align: center;
  color: var(--fg-dim);
  font-size: 0.85rem;
}

footer .brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  font-size: 1rem;
  margin-bottom: 8px;
}

/* ---- DEMO SECTION ---- */
.demo-section {
  padding: 120px 24px;
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.demo-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.demo-header {
  text-align: center;
  margin-bottom: 56px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(74,255,140,0.08);
  border: 1px solid rgba(74,255,140,0.18);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.demo-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.demo-header p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Transcript tabs */
.demo-transcripts {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  overflow-x: auto;
  padding-bottom: 0;
}

.transcript-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  color: var(--fg-muted);
}

.transcript-tab:hover {
  background: rgba(255,255,255,0.04);
  color: var(--fg);
}

.transcript-tab.active {
  background: var(--bg-elevated);
  border-color: rgba(74,255,140,0.2);
  color: var(--fg);
}

.tab-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.transcript-tab:not(.active) .tab-type {
  color: var(--fg-dim);
}

.tab-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

/* Main workspace */
.demo-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(74,255,140,0.15);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--bg-elevated);
  min-height: 480px;
  overflow: hidden;
}

.demo-transcript-pane {
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
}

.demo-output-pane {
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  max-height: 560px;
}

.demo-pane-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.demo-status-badge {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-green { background: rgba(74,255,140,0.12); color: var(--accent); border: 1px solid rgba(74,255,140,0.2); }
.badge-amber { background: rgba(255,184,74,0.12); color: var(--amber); border: 1px solid rgba(255,184,74,0.2); }
.badge-red   { background: rgba(255,74,106,0.12);  color: var(--red);   border: 1px solid rgba(255,74,106,0.2); }

/* Transcript display */
.transcript-scroll {
  flex: 1;
  overflow-y: auto;
  max-height: 360px;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.tx-block {
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.tx-ts {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--fg-dim);
}

.tx-speaker {
  color: var(--fg);
  font-weight: 600;
}

/* Run button */
.run-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--accent);
  color: #0a0a0c;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  width: 100%;
  letter-spacing: 0.02em;
}

.run-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.run-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.run-btn-icon {
  font-size: 13px;
}

/* Output states */
.demo-output-idle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-idle-state {
  text-align: center;
  color: var(--fg-dim);
  max-width: 260px;
}

.demo-idle-icon {
  font-size: 32px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.demo-idle-state p {
  font-size: 14px;
  line-height: 1.6;
}

.demo-idle-state strong { color: var(--fg-muted); }

.demo-output-loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-loading {
  text-align: center;
  color: var(--fg-muted);
}

.demo-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(74,255,140,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

.demo-loading p { font-size: 14px; }

.demo-output-results, .demo-output-error {
  flex: 1;
}

.demo-summary {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.demo-summary strong {
  color: var(--accent);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 6px;
}

.demo-moments-list {
  display: grid;
  gap: 10px;
}

.demo-moment-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.15s;
}

.demo-moment-card.high   { border-left: 3px solid var(--accent); }
.demo-moment-card.fire   { border-left: 3px solid var(--red); }
.demo-moment-card:hover  { border-color: rgba(255,255,255,0.1); }

.demo-moment-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.demo-moment-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.demo-moment-body { flex: 1; min-width: 0; }

.demo-moment-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.demo-moment-desc {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.5;
}

.demo-ts {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-dim);
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.04);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.demo-quote {
  background: var(--bg-elevated);
  border-left: 2px solid rgba(74,255,140,0.25);
  border-radius: 0 5px 5px 0;
  padding: 8px 12px;
  font-size: 12px;
  font-style: italic;
  color: var(--fg-muted);
  margin: 8px 0;
  line-height: 1.55;
}

.demo-moment-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.demo-sent {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--fg-dim);
}

.sent-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.sent-positive { background: var(--accent); }
.sent-negative { background: var(--red); }
.sent-tense    { background: var(--amber); }
.sent-hopeful  { background: #4a9fff; }
.sent-neutral  { background: var(--fg-dim); }

.demo-intensity {
  display: flex;
  gap: 2px;
  align-items: center;
}

.pip {
  width: 3px;
  height: 9px;
  border-radius: 2px;
  background: rgba(255,255,255,0.07);
}

.pip.filled         { background: var(--accent); }
.pip.filled.hot     { background: var(--amber); }
.pip.filled.fire    { background: var(--red); }

.int-num {
  font-size: 11px;
  color: var(--fg-dim);
  margin-left: 4px;
}

.demo-cast { display: flex; gap: 4px; flex-wrap: wrap; }
.demo-cast-chip {
  padding: 1px 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 100px;
  font-size: 11px;
  color: var(--fg-muted);
}

.demo-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.demo-tag {
  padding: 1px 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px;
  font-size: 10px;
  color: var(--fg-dim);
}

.demo-error {
  padding: 20px;
  background: rgba(255,74,106,0.07);
  border: 1px solid rgba(255,74,106,0.15);
  border-radius: var(--radius);
  color: var(--red);
  font-size: 14px;
}

/* Demo CTA */
.demo-cta {
  text-align: center;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.demo-cta p {
  color: var(--fg-muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

.demo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #0a0a0c;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}

.demo-cta-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ---- CONTACT PAGE ---- */
.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background: var(--bg);
}

.contact-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 48px;
}

.contact-card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.contact-card .contact-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  margin-bottom: 36px;
  line-height: 1.6;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.15s;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(74,255,140,0.4);
}

.form-field textarea {
  height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.contact-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #0a0a0c;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.15s;
  margin-top: 8px;
}

.contact-submit:hover { opacity: 0.9; }

.contact-success {
  text-align: center;
  padding: 32px 0;
}

.contact-success .success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.contact-success h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-success p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
}

.contact-back {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
}

.contact-back:hover { opacity: 0.8; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .stats-strip {
    flex-direction: column;
    gap: 32px;
    padding: 48px 24px;
  }

  .problem {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features { padding: 80px 24px; }
  .closing { padding: 80px 24px; }

  .demo-section { padding: 80px 24px; }

  .demo-transcripts {
    flex-direction: column;
  }

  .transcript-tab {
    border-radius: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .transcript-tab.active {
    border-radius: 8px;
  }

  .demo-workspace {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  .demo-transcript-pane {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .demo-output-pane {
    max-height: none;
  }

  .contact-card {
    padding: 32px 24px;
  }
}
