:root {
  --bg: #0a0f1a;
  --bg-elevated: #111827;
  --bg-card: #1a2234;
  --fg: #e8edf5;
  --fg-muted: #8896ab;
  --accent: #36d6b5;
  --accent-dim: rgba(54, 214, 181, 0.12);
  --accent-glow: rgba(54, 214, 181, 0.25);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --max-w: 1100px;
}

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

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

/* HERO */
.hero {
  padding: 120px 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

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

.lede {
  font-size: 19px;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.08);
}

/* PROBLEM */
.problem {
  padding: 100px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.problem-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.problem-text p {
  color: var(--fg-muted);
  margin-bottom: 16px;
  font-size: 17px;
}

.pain-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.pain-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  color: var(--accent);
}

.pain-text {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
}

.pain-text strong {
  color: var(--fg);
}

/* HOW */
.how {
  padding: 100px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.how-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 12px;
}

.how-sub {
  color: var(--fg-muted);
  font-size: 18px;
}

.timeline {
  display: flex;
  gap: 40px;
}

.timeline-item {
  flex: 1;
  position: relative;
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
}

.timeline-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* FEATURES */
.features {
  padding: 80px 24px 100px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

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

.feature-large {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(54, 214, 181, 0.05) 100%);
  border-color: rgba(54, 214, 181, 0.15);
}

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

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* CLOSING */
.closing {
  padding: 100px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.closing-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.closing-inner p {
  color: var(--fg-muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.closing-accent {
  color: var(--accent) !important;
  font-weight: 500;
}

/* FOOTER */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

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

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px 60px;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline {
    flex-direction: column;
    gap: 20px;
  }

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

  .feature-large {
    grid-row: auto;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .lede {
    font-size: 16px;
  }

  .stat-number {
    font-size: 28px;
  }
}

/* =========================================================
   DEMO WIDGET
   ========================================================= */

.demo-section {
  padding: 80px 24px 100px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.demo-section::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(54,214,181,0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

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

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.demo-header h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}

.demo-sub {
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* Widget two-panel layout */
.demo-widget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* FORM PANEL */
.demo-form-panel {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 32px;
}

.demo-form-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-form-icon {
  font-size: 18px;
}

/* Form fields */
.demo-field {
  margin-bottom: 20px;
}

.demo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.demo-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.demo-field input[type="time"],
.demo-select-wrap select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.demo-select-wrap {
  position: relative;
}

.demo-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-muted);
  pointer-events: none;
  font-size: 13px;
}

.demo-field input[type="time"]:focus,
.demo-select-wrap select:focus {
  border-color: var(--accent);
}

.demo-field select option {
  background: var(--bg-card);
  color: var(--fg);
}

/* Urgency pills */
.urgency-pills {
  display: flex;
  gap: 10px;
}

.urgency-pill {
  cursor: pointer;
  flex: 1;
}

.urgency-pill input[type="radio"] {
  display: none;
}

.urgency-pill span {
  display: block;
  text-align: center;
  padding: 9px 8px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--bg-card);
  color: var(--fg-muted);
  transition: all 0.15s;
  cursor: pointer;
}

.urgency-pill input[type="radio"]:checked + span {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.urgency-pill:hover span {
  border-color: rgba(54,214,181,0.4);
  color: var(--fg);
}

/* Submit button */
.demo-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
  background: var(--accent);
  color: #0a0f1a;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.2s, transform 0.15s;
}

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

.demo-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.demo-submit-icon {
  font-size: 18px;
  line-height: 1;
}

/* RESULTS PANEL */
.demo-results-panel {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 32px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

/* Idle state */
.demo-results-idle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  color: var(--fg-muted);
  padding: 40px 20px;
}

.demo-idle-icon {
  font-size: 40px;
  opacity: 0.5;
}

.demo-results-idle p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 240px;
}

/* Thinking state */
.demo-thinking {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
}

.thinking-dots {
  display: flex;
  gap: 8px;
}

.thinking-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce-dot 1.2s ease-in-out infinite;
}

.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce-dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.thinking-label {
  color: var(--fg-muted);
  font-size: 15px;
  font-family: var(--font-display);
  transition: opacity 0.2s;
}

/* Match list */
.demo-matches {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.matches-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.matches-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-muted);
}

.matches-count {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.7;
}

.match-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  animation: slide-in 0.3s ease both;
}

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

.match-item:nth-child(1) { animation-delay: 0.05s; }
.match-item:nth-child(2) { animation-delay: 0.12s; }
.match-item:nth-child(3) { animation-delay: 0.19s; }
.match-item:nth-child(4) { animation-delay: 0.26s; }
.match-item:nth-child(5) { animation-delay: 0.33s; }

.match-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.match-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-certs {
  font-size: 11px;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.match-reason {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.match-score-wrap {
  text-align: center;
  flex-shrink: 0;
}

.match-score {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  /* Color scales from muted at low score to accent at high */
  color: color-mix(in srgb, var(--accent) calc(var(--score-pct, 50%)), var(--fg-muted));
}

.match-score-label {
  font-size: 10px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Demo callout */
.demo-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.55;
}

.demo-callout-icon {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* CTA button */
.demo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.demo-cta:hover {
  background: var(--accent);
  color: #0a0f1a;
}

.cta-arrow {
  font-size: 16px;
}

/* =========================================================
   BOOK CALL (anchor target from demo CTA)
   ========================================================= */

.book-call-section {
  padding: 60px 24px 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.book-call-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.book-call-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 14px;
}

.book-call-inner p {
  color: var(--fg-muted);
  font-size: 17px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.book-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: #0a0f1a;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.book-call-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* =========================================================
   DEMO RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .demo-widget {
    grid-template-columns: 1fr;
  }

  .demo-results-panel {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .demo-form-panel,
  .demo-results-panel {
    padding: 24px 18px;
  }

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

  .urgency-pills {
    flex-wrap: wrap;
  }
}