:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --text: #0f1b2d;
  --muted: #52607a;
  --border: #e2e8f0;
  --brand: #0e7c86;
  --brand-strong: #0a5f67;
  --navy: #1b3a6b;
  --accent-soft: #e6f6f7;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
  --radius: 14px;
  --max: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #111a2c;
    --surface: #152036;
    --text: #e6edf7;
    --muted: #9fb0c8;
    --border: #24324c;
    --brand: #2bb3bd;
    --brand-strong: #5eead4;
    --navy: #93b4e8;
    --accent-soft: #123038;
    --ok: #4ade80;
    --ok-soft: #12301f;
    --warn: #fbbf24;
    --warn-soft: #33270d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75em 1.35em;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--brand);
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--brand); }
.btn-small { padding: 0.45em 1em; font-size: 0.95rem; }
.btn-light { background: #fff; color: #0a5f67; border-color: #fff; }
.btn-light:hover { background: #e6f6f7; border-color: #e6f6f7; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; }
.brand strong { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav-links a:not(.btn):hover { color: var(--brand); }
.nav-links .btn { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); border-radius: 2px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 12px; text-align: center; }
}

/* Hero */
.hero {
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 400px at 85% 0%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: 88px 0 96px; } }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: var(--brand); margin-bottom: 0.8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.call-card, .chat-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.call-head, .chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.call-head p, .chat-head p { margin: 0; }
.call-title { font-weight: 600; }
.call-sub { color: var(--muted); font-size: 0.9rem; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.5); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(21, 128, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } }

.bubbles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 0.95rem; line-height: 1.45; }
.bubble.them { align-self: flex-start; background: var(--bg-alt); border-bottom-left-radius: 4px; }
.bubble.us { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.source { display: block; margin-top: 6px; font-size: 0.8rem; opacity: 0.85; }
.call-foot, .chat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag, .chip { font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }
.tag-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip { background: var(--accent-soft); color: var(--brand); border-color: transparent; font-weight: 600; }
.caption { font-size: 0.8rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); max-width: 46em; font-size: 1.08rem; margin-bottom: 40px; }

.cards { display: grid; gap: 22px; }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

.card, .mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card p, .mini p { color: var(--muted); }
.mini p { font-size: 0.95rem; margin: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; fill: var(--brand); }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin: 8px 0; font-size: 0.97rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* Products */
.product {
  display: grid; gap: 36px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; margin-bottom: 28px;
}
@media (min-width: 960px) { .product { grid-template-columns: 1.15fr 0.85fr; padding: 40px; } }
.product-copy p { color: var(--muted); }
.note { font-size: 0.93rem; border-left: 3px solid var(--brand); padding-left: 12px; margin-top: 18px; }
.status { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.status-beta { background: var(--ok-soft); color: var(--ok); }
.status-dev { background: var(--warn-soft); color: var(--warn); }

.flow { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; }
.flow-title { font-weight: 600; margin-bottom: 14px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 46px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 0.9rem;
  display: grid; place-items: center;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 2px; background: var(--border); }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 0.92rem; }

.chat-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.chat-head p { font-weight: 600; }

/* Stack */
.stack { margin-top: 44px; }
.stack-title { font-weight: 600; margin-bottom: 14px; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.9rem; color: var(--muted); }

/* Timeline */
.timeline { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 860px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline > li { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--border); border-radius: var(--radius); padding: 22px; }
.timeline > li.now { border-top-color: var(--brand); }
.timeline .when { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--brand); font-size: 1.3rem; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 0.95rem; margin: 0; }
/* About */
.about { display: grid; gap: 40px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.4fr 0.6fr; align-items: center; } }
.about p { color: var(--muted); }
.motto { margin: 24px 0 0; padding: 18px 22px; border-left: 4px solid var(--brand); background: var(--accent-soft); border-radius: 0 12px 12px 0; }
.motto p { margin: 0; color: var(--text); font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; font-weight: 500; line-height: 1.45; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts div { background: var(--bg-alt); border-radius: 12px; padding: 14px 18px; }
.facts dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* Contact */
.contact { background: linear-gradient(135deg, #0e7c86, #1b3a6b); color: #fff; text-align: center; }
.contact-inner { max-width: 760px; }
.contact p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }
.contact .hero-cta { justify-content: center; }
.contact .btn-light { overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; font-size: 0.9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }

/* Let grid children shrink on narrow screens */
.hero-grid > *, .product > *, .about > * { min-width: 0; }
