/* =============================================
   AutoStack — Custom Landing Page Theme
   ============================================= */

:root {
  --bg: #0f172a;
  --bg-2: #1e293b;
  --bg-3: #0f172a;
  --fg: #f1f5f9;
  --fg-muted: #94a3b8;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --accent-glow: rgba(245, 158, 11, 0.35);
  --border: rgba(255, 255, 255, 0.06);
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.375rem 0.875rem;
  width: fit-content;
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-headline {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.headline-accent {
  color: var(--accent);
}

.hero-lede {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 400;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- HERO VISUAL ---- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.visual-platform {
  width: 100%;
  max-width: 480px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.08), 0 32px 64px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.platform-dots {
  display: flex;
  gap: 5px;
}

.platform-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.platform-dots span:first-child { background: #ff5f57; }
.platform-dots span:nth-child(2) { background: #febc2e; }
.platform-dots span:nth-child(3) { background: #28c840; }

.platform-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.platform-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.conv-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.conv-msg {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: msg-in 0.4s ease-out both;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-patient {
  align-items: flex-end;
}

.msg-patient .msg-text {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 12px 12px 4px 12px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  max-width: 85%;
}

.msg-bot {
  align-items: flex-start;
}

.msg-bot .msg-text {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: var(--fg);
  border-radius: 12px 12px 12px 4px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  max-width: 85%;
}

.msg-agent-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.agent-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Sora', sans-serif;
  font-size: 0.5625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-name {
  font-size: 0.6875rem;
  color: var(--accent);
  font-weight: 600;
}

.msg-time {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.25);
}

.msg-booked {
  padding-top: 0.25rem;
}

.booked-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--green-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 500;
}

.platform-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.action-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.action-done {
  color: var(--green);
}

.visual-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

/* ---- PROOF ---- */
.proof-section {
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.proof-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.proof-quote {
  position: relative;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: -0.5rem;
  opacity: 0.6;
}

.proof-quote blockquote {
  font-family: 'Sora', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.5;
  font-style: normal;
  margin-bottom: 0.875rem;
}

.proof-quote cite {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  font-style: normal;
}

.proof-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pm-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pm-number {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

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

/* ---- FEATURES ---- */
.features-section {
  padding: 6rem 2rem;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--fg);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

.features-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.05);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.feature-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.625rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ---- NICHES ---- */
.niches-section {
  padding: 6rem 2rem;
  background: rgba(255,255,255,0.01);
}

.niches-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.niches-header {
  max-width: 620px;
  margin-bottom: 3.5rem;
}

.niches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.niche-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.niche-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
}

.niche-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}

.niche-name {
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.niche-desc {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

.niches-cta {
  margin-top: 2.5rem;
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 12px;
}

.niches-cta p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}

/* ---- HOW IT WORKS ---- */
.how-section {
  padding: 6rem 2rem;
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 1rem;
  margin-bottom: 4rem;
}

.step {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.step-num {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(245, 158, 11, 0.15);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}

.step-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 2.5rem;
}

.how-pricing {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
}

.pricing-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.pricing-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.pricing-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pricing-amount {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.pricing-note {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.pricing-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.pricing-context {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- MANIFESTO ---- */
.manifesto-section {
  padding: 6rem 2rem;
  background: rgba(245, 158, 11, 0.03);
  border-top: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.manifesto-text {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.manifesto-accent {
  color: var(--accent);
}

.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.manifesto-body p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ---- FOOTER ---- */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--fg);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .features-grid,
  .niches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .step-arrow {
    display: none;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 6rem;
  }

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

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }

  .pricing-row {
    flex-direction: column;
    gap: 1rem;
  }

  .pricing-sep {
    display: none;
  }

  .footer-links {
    gap: 2rem;
  }

  .footer-top {
    gap: 1.5rem;
  }
}