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

:root {
  --bg: #0A0C10;
  --surface: #12151C;
  --surface-raised: #1A1E27;
  --border: #1F2330;
  --fg: #E8ECF2;
  --fg-muted: #6B7280;
  --accent: #00E5FF;
  --accent-dim: rgba(0,229,255,0.08);
  --amber: #F59E0B;
  --mono: 'DM Mono', monospace;
  --display: 'Syne', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10,12,16,0.85);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
}
.nav-logo {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.os-badge {
  color: var(--accent);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.8;
}
.hero-headline {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 440px;
}

/* Pipeline Widget */
.pipeline-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.pipeline-label {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.pipeline-rows { display: flex; flex-direction: column; gap: 8px; }
.pipeline-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
}
.pipeline-row.active { border-color: rgba(0,229,255,0.15); }
.pipeline-row.queued { opacity: 0.45; }
.pipeline-step { font-size: 10px; color: var(--fg-muted); }
.pipeline-name { font-size: 13px; color: var(--fg); }
.pipeline-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.pipeline-status.done { background: rgba(0,229,255,0.12); color: var(--accent); }
.pipeline-status.active-run { background: rgba(0,229,255,0.2); color: var(--accent); }
.pipeline-status.queued { background: var(--surface-raised); color: var(--fg-muted); border: 1px solid var(--border); }
.pipeline-counter {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-muted);
}
.counter-num { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--accent); }
.counter-label { font-size: 12px; }

/* Section Labels */
.section-label {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--fg);
}

/* Features */
.features {
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}
.features-header {
  max-width: 1100px;
  margin: 0 auto 60px;
}
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 40px;
}
.feature-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.feature-card h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }

/* Demo Section */
.demo-section {
  padding: 100px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.demo-inner {
  max-width: 800px;
  margin: 0 auto;
}
.demo-header {
  margin-bottom: 48px;
}
.demo-sub {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 560px;
}
.demo-widget {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-examples {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.demo-examples-label {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.demo-example-btn {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.demo-example-btn:hover {
  background: rgba(0,229,255,0.14);
  border-color: rgba(0,229,255,0.35);
}
.demo-input-row {
  display: flex;
  gap: 10px;
}
.demo-input {
  flex: 1;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s;
}
.demo-input::placeholder { color: var(--fg-muted); opacity: 0.7; }
.demo-input:focus { border-color: var(--accent); }
.demo-btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s;
}
.demo-btn:hover { opacity: 0.88; }
.demo-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.spin {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.demo-error {
  font-size: 13px;
  color: #FF6B6B;
  background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.2);
  border-radius: 8px;
  padding: 10px 14px;
}
.demo-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Loading progress — sells the agent behaviour */
.demo-loading {
  padding: 16px 0 4px;
}
.demo-loading-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-loading-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg);
  transition: color 0.2s, opacity 0.2s;
}
.demo-loading-step--dim {
  opacity: 0.3;
  color: var(--fg-muted);
}
.demo-loading-step--done {
  color: var(--accent);
  opacity: 0.7;
}
.demo-loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-muted);
  flex-shrink: 0;
  transition: background 0.2s;
}
.demo-loading-step--active .demo-loading-dot {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(0,229,255,0.6);
  animation: pulse-dot 1s ease-in-out infinite;
}
.demo-loading-step--done .demo-loading-dot {
  background: var(--accent);
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Sequence header row */
.demo-sequence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px;
}
.demo-result-label {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.demo-sequence-badge {
  font-size: 11px;
  color: var(--accent);
  opacity: 0.7;
  letter-spacing: 0.04em;
}

/* Email cards — collapsible */
.demo-email-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.demo-email-card--expanded {
  border-color: rgba(0,229,255,0.22);
}

/* Card header — clickable */
.demo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}
.demo-card-header:hover .demo-card-type {
  color: var(--fg);
}
.demo-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-card-day {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.demo-card-type {
  font-size: 13px;
  color: var(--fg-muted);
  transition: color 0.15s;
}
.demo-email-card--expanded .demo-card-type {
  color: var(--fg);
}
.demo-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.demo-card-chevron {
  color: var(--fg-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.demo-email-card--expanded .demo-card-chevron {
  transform: rotate(180deg);
}

/* Card body — collapsible */
.demo-card-body {
  border-top: 1px solid var(--border);
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s;
  max-height: 600px;
  opacity: 1;
}
.demo-card-body--collapsed {
  max-height: 0;
  opacity: 0;
  border-top: none;
}

.demo-copy-btn {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-muted);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.demo-copy-btn:hover { color: var(--accent); border-color: rgba(0,229,255,0.35); }

.demo-email-field {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.demo-field-label {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.demo-field-value {
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
}
.demo-email-body {
  padding: 18px 20px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.75;
  white-space: pre-wrap;
}
.demo-cta {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.demo-cta-text {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
  flex: 1;
}
.demo-cta-btn {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--bg);
  background: var(--accent);
  border-radius: 8px;
  padding: 10px 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.demo-cta-btn:hover { opacity: 0.88; }

@media (max-width: 768px) {
  .demo-section { padding: 60px 20px; }
  .demo-input-row { flex-direction: column; }
  .demo-btn { width: 100%; justify-content: center; }
  .demo-cta { flex-direction: column; align-items: flex-start; }
  .demo-card-header { padding: 12px 14px; }
  .demo-email-field, .demo-email-body { padding-left: 14px; padding-right: 14px; }
}

/* How it Works */
.how-it-works {
  padding: 100px 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.hiw-header {
  max-width: 1100px;
  margin: 0 auto 60px;
}
.hiw-steps {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hiw-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.hiw-step:last-child { border-bottom: none; }
.hiw-num {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  color: var(--border);
  letter-spacing: -0.03em;
  line-height: 1;
  padding-top: 4px;
}
.hiw-content h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.hiw-content p { font-size: 14px; color: var(--fg-muted); line-height: 1.7; max-width: 560px; }

/* Outcomes */
.outcomes {
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}
.outcomes-header {
  max-width: 1100px;
  margin: 0 auto 60px;
}
.outcomes-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.outcome {
  background: var(--surface);
  padding: 48px 40px;
  text-align: center;
}
.outcome-num {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}
.outcome-label {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* Closing */
.closing {
  padding: 100px 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.closing-statement {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}
.footer-copy { font-size: 13px; color: var(--fg-muted); }

/* Hero waitlist mini-form */
.hero-waitlist {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  max-width: 440px;
}
.hero-wf-input {
  flex: 1;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s;
}
.hero-wf-input:focus { border-color: var(--accent); }
.hero-wf-input::placeholder { color: var(--fg-muted); }
.hero-wf-btn {
  background: var(--accent);
  color: #0A0C10;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
}
.hero-wf-btn:hover:not(:disabled) { opacity: 0.85; }
.hero-wf-btn:disabled { opacity: 0.5; cursor: default; }
.hero-wf-success {
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
}

/* Demo CTA inline form */
.demo-cta-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.demo-cta-input {
  flex: 1;
  min-width: 200px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.demo-cta-input:focus { border-color: var(--accent); }
.demo-cta-input::placeholder { color: var(--fg-muted); }
.demo-cta-btn {
  background: var(--accent);
  color: #0A0C10;
  border: none;
  border-radius: 6px;
  padding: 11px 18px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
}
.demo-cta-btn:hover:not(:disabled) { opacity: 0.85; }
.demo-cta-btn:disabled { opacity: 0.5; cursor: default; }
.demo-cta-success { font-size: 14px; color: var(--accent); margin-top: 10px; }
.demo-cta-error { font-size: 13px; color: #f87171; margin-top: 8px; }

/* Waitlist section */
.waitlist {
  padding: 100px 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.waitlist-inner {
  max-width: 560px;
  margin: 0 auto;
}
.waitlist-header { margin-bottom: 36px; }
.waitlist-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-top: 10px;
}
.waitlist-form { display: flex; flex-direction: column; gap: 12px; }
.wf-row { display: flex; gap: 10px; }
.wf-row--split { gap: 12px; }
.wf-input {
  flex: 1;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.wf-input:focus { border-color: var(--accent); }
.wf-input::placeholder { color: var(--fg-muted); }
.wf-select { appearance: none; cursor: pointer; }
.wf-select option { background: var(--surface-raised); }
.wf-submit-row { margin-top: 4px; }
.wf-btn {
  background: var(--accent);
  color: #0A0C10;
  border: none;
  border-radius: 6px;
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s;
}
.wf-btn:hover:not(:disabled) { opacity: 0.85; }
.wf-btn:disabled { opacity: 0.5; cursor: default; }
.wf-msg { font-size: 14px; margin-top: 4px; }
.wf-msg--success { color: var(--accent); }
.wf-msg--error { color: #f87171; }

/* Mobile sticky bar */
.sticky-waitlist {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--surface-raised);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sticky-waitlist-text {
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0;
}
.sticky-waitlist-btn {
  background: var(--accent);
  color: #0A0C10;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Spin animation */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.7s linear infinite; display: block; }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 100px 20px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-sub { max-width: 100%; }
  .features { padding: 60px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .hiw-step { grid-template-columns: 48px 1fr; gap: 16px; }
  .hiw-num { font-size: 28px; }
  .outcomes { padding: 60px 20px; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .closing { padding: 60px 20px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .nav-inner { padding: 16px 20px; }
  .sticky-waitlist { display: flex; }
  .hero-waitlist { flex-direction: column; max-width: 100%; }
  .wf-row--split { flex-direction: column; }
  .waitlist { padding: 60px 20px; }
}

@media (max-width: 480px) {
  .feature-card { padding: 28px 24px; }
  .outcome { padding: 36px 24px; }
  .demo-cta-form { flex-direction: column; }
  .demo-cta-input { min-width: unset; }
}
