:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #161f33;
  --fg-primary: #e8ecf4;
  --fg-secondary: #8892a8;
  --fg-muted: #4a5568;
  --accent: #00e599;
  --accent-dim: rgba(0, 229, 153, 0.12);
  --accent-glow: rgba(0, 229, 153, 0.25);
  --border: rgba(255, 255, 255, 0.06);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

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

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

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 32px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

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

.lede {
  font-size: 1.15rem;
  color: var(--fg-secondary);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg-primary);
}

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

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ---- SECTIONS COMMON ---- */
.section-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---- WHAT WE AUTOMATE ---- */
.what {
  padding: 120px 0;
  background: var(--bg-secondary);
}

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

.auto-card {
  background: var(--bg-card);
  padding: 40px 32px;
  transition: background 0.2s;
}

.auto-card:hover {
  background: rgba(0, 229, 153, 0.04);
}

.auto-icon {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

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

.auto-card p {
  font-size: 0.92rem;
  color: var(--fg-secondary);
  line-height: 1.65;
}

/* ---- HOW IT WORKS ---- */
.how {
  padding: 120px 0;
  background: var(--bg-primary);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: stretch;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-line {
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  border-radius: 2px;
  flex-shrink: 0;
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

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

.step-content p {
  font-size: 1rem;
  color: var(--fg-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* ---- VERTICALS ---- */
.verticals {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.vertical-list {
  display: flex;
  flex-direction: column;
}

.vertical-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}

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

.vertical-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap;
}

.vertical-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-align: right;
}

/* ---- CLOSING ---- */
.closing {
  padding: 140px 0;
  background: var(--bg-primary);
  text-align: center;
}

.closing-content {
  max-width: 720px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.closing-text {
  font-size: 1.1rem;
  color: var(--fg-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
}

.closing-detail {
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

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

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

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

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { padding: 80px 24px 60px; }
  .section-inner { padding: 0 24px; }
  .automation-grid { grid-template-columns: 1fr; gap: 1px; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 24px; }
  .stat-divider { width: 48px; height: 1px; }
  .step { flex-direction: column; gap: 16px; }
  .step-line { width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent) 0%, transparent 100%); }
  .vertical-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .vertical-desc { text-align: left; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .what, .how, .verticals { padding: 80px 0; }
  .closing { padding: 100px 0; }
  .section-header { margin-bottom: 40px; }
}
/* ---- NAV ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--fg-primary); }

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: var(--accent-dim);
  padding: 8px 18px;
  border-radius: 4px;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}

.nav-cta:hover { background: rgba(0, 229, 153, 0.2); }

/* Push hero content below fixed nav */
.hero { padding-top: 160px; }

/* ---- PRICING ---- */
.pricing {
  padding: 120px 0;
  background: var(--bg-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--bg-card);
  padding: 48px 36px;
  position: relative;
  transition: background 0.2s;
}

.pricing-card:hover { background: rgba(0, 229, 153, 0.03); }

.pricing-featured {
  background: var(--bg-secondary);
  border-top: 2px solid var(--accent);
}

.pricing-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg-primary);
}

.price-period {
  font-size: 1rem;
  color: var(--fg-muted);
}

.pricing-setup {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  padding-left: 18px;
  position: relative;
}

.pricing-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.pricing-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-secondary);
  background: transparent;
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.pricing-cta:hover {
  color: var(--fg-primary);
  border-color: rgba(255,255,255,0.2);
}

.pricing-cta--accent {
  background: var(--accent);
  color: #0a0e17;
  border-color: var(--accent);
}

.pricing-cta--accent:hover {
  background: #00cc87;
  border-color: #00cc87;
  color: #0a0e17;
}

.pricing-note {
  font-size: 0.88rem;
  color: var(--fg-muted);
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- DEMO CTA SECTION ---- */
.demo-cta {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.demo-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.demo-cta-text { max-width: 520px; }

.demo-cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.demo-cta-text p {
  font-size: 1rem;
  color: var(--fg-secondary);
  line-height: 1.7;
}

.demo-cta-action {
  flex-shrink: 0;
  text-align: center;
}

.demo-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #0a0e17;
  background: var(--accent);
  padding: 18px 36px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.demo-launch-btn:hover {
  background: #00cc87;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.demo-launch-icon {
  font-size: 1.1rem;
}

.demo-launch-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ---- DEMO PAGE ---- */
.demo-body {
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.demo-header {
  height: 60px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.demo-back {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.demo-back:hover { color: var(--fg-primary); }

.demo-header-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.demo-live-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.demo-header-cta {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: var(--accent-dim);
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.2s;
}
.demo-header-cta:hover { background: rgba(0, 229, 153, 0.2); }

.demo-main {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 60px);
}

/* ---- DEMO SIDEBAR ---- */
.demo-sidebar {
  width: 300px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 32px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: var(--bg-secondary);
}

.demo-sidebar-card {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.demo-practice-avatar {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.demo-practice-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.demo-practice-tagline {
  font-size: 0.83rem;
  color: var(--fg-muted);
}

.demo-suggestions-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.demo-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.3s;
}

.demo-suggestion {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg-secondary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  line-height: 1.4;
}

.demo-suggestion:hover {
  background: var(--accent-dim);
  border-color: rgba(0, 229, 153, 0.3);
  color: var(--fg-primary);
}

.demo-badge-block {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.demo-badge-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.demo-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.demo-badge-sub {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.demo-contact-link {
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.demo-contact-link:hover { text-decoration: underline; }

/* ---- CHAT PANEL ---- */
.demo-chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-chat-topbar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-primary);
  flex-shrink: 0;
}

.demo-agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0e17;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-agent-info {
  display: flex;
  flex-direction: column;
}

.demo-agent-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.demo-agent-status {
  font-size: 0.78rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.demo-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.demo-messages {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.demo-message {
  display: flex;
  flex-direction: column;
  max-width: 72%;
}

.demo-message--user {
  align-self: flex-end;
  align-items: flex-end;
}

.demo-message--ai {
  align-self: flex-start;
  align-items: flex-start;
}

.demo-bubble {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.demo-message--user .demo-bubble {
  background: var(--accent);
  color: #0a0e17;
  border-bottom-right-radius: 4px;
  font-weight: 400;
}

.demo-message--ai .demo-bubble {
  background: var(--bg-card);
  color: var(--fg-primary);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.demo-timestamp {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 4px;
  padding: 0 4px;
}

/* Typing indicator */
.demo-typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 16px 22px;
}

.demo-typing-bubble span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-muted);
  animation: typing 1.2s infinite;
}

.demo-typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* ---- INPUT AREA ---- */
.demo-input-area {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.demo-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  resize: none;
  transition: border-color 0.2s;
  max-height: 120px;
  overflow-y: auto;
}

.demo-input:focus {
  outline: none;
  border-color: rgba(0, 229, 153, 0.4);
}

.demo-input::placeholder { color: var(--fg-muted); }

.demo-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: #0a0e17;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.demo-send-btn:hover:not(:disabled) {
  background: #00cc87;
  transform: translateY(-1px);
}

.demo-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.demo-send-btn--loading {
  background: var(--fg-muted);
}

/* ---- RESPONSIVE: DEMO PAGE ---- */
@media (max-width: 768px) {
  .nav-link { display: none; }
  .nav-cta { padding: 6px 12px; font-size: 0.78rem; }
  .site-nav { padding: 0 20px; }
  .hero { padding-top: 120px; }

  .demo-main { flex-direction: column; height: auto; }
  .demo-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 16px;
    gap: 20px;
  }
  .demo-chat-panel { height: 60vh; }
  .demo-header { padding: 0 16px; }
  .demo-header-cta { display: none; }

  .pricing-grid { grid-template-columns: 1fr; gap: 1px; }
  .demo-cta-inner { flex-direction: column; gap: 40px; }

  .demo-message { max-width: 90%; }
  .demo-messages { padding: 20px 16px; }
  .demo-input-area { padding: 12px 16px; }
  .demo-chat-topbar { padding: 12px 16px; }

  .demo-badge-block { display: none; }
}
