:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --text: #0b1c33;
  --text-muted: #566a86;
  --accent: #229ed9;
  --accent-strong: #1b82b3;
  --accent-soft: #e6f4fb;
  --border: #dbe4ef;
  --shadow: 0 1px 2px rgba(11, 28, 51, 0.06), 0 12px 32px rgba(11, 28, 51, 0.08);
  --radius: 16px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1320;
    --bg-alt: #101b2d;
    --surface: #15223a;
    --text: #eaf1fa;
    --text-muted: #9fb2cc;
    --accent: #45b6ec;
    --accent-strong: #6cc7f2;
    --accent-soft: #14304a;
    --border: #22334f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

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

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

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.125rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-strong);
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.wrap-narrow {
  max-width: 760px;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .btn {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.9375rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
}

/* Hero */
.hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 56px);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-strong);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.hero-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* Chat mockups */
.hero-card {
  display: flex;
  justify-content: center;
}

.chat {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.chat-head img {
  border-radius: 50%;
}

.chat-head strong {
  display: block;
  font-size: 0.9375rem;
}

.chat-head span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bubble {
  background: var(--accent-soft);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.bubble + .bubble {
  margin-top: 10px;
}

.bubble-warn {
  background: #fff4e0;
  color: #6b4a06;
}

@media (prefers-color-scheme: dark) {
  .bubble-warn {
    background: #3b2f10;
    color: #f4dfa8;
  }
}

.chat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-items: center;
}

/* Sections */
.section {
  padding: clamp(48px, 7vw, 88px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-lede {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 44em;
  margin-bottom: 40px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.steps p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9375rem;
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 1.25rem;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9375rem;
}

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--accent-strong);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
}

details[open] summary::after {
  content: "\2212";
}

.faq-body {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.faq-body p:last-child,
.faq-body ul:last-child {
  margin-bottom: 0;
}

.faq-body ul {
  margin: 0 0 1em;
  padding-left: 20px;
}

.faq-body li {
  margin-bottom: 6px;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 12px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
}

th,
td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  color: var(--text);
  font-weight: 600;
}

/* CTA band */
.cta-band {
  text-align: center;
}

.cta-band .section-lede {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 0;
    font-size: 1rem;
  }

  .site-nav .btn {
    margin-top: 8px;
    justify-content: center;
  }

  .header-inner {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}
