:root {
  --navy: #0f3d5e;
  --navy-2: #0b2d46;
  --cyan: #3ec1d3;
  --ink: #1f2937;
  --muted: #5b6676;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --card: #ffffff;
  --line: #e3e8ee;
  --warn: #c2410c;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e6edf3; --muted: #9aa7b4; --bg: #0d1620; --bg-alt: #111e2b; --card: #15232f; --line: #22313f; --warn: #fb923c; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--cyan); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: .95rem; }
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.25rem; }
.brand b { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--cyan); color: #06222f; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover { border-color: var(--cyan); }
.btn.big { padding: 14px 26px; font-size: 1.05rem; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(62,193,211,.25), transparent), linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 96px 0 88px; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); font-weight: 700; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-card { background: #fff; color: #1f2937; border-radius: var(--radius); padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.hc-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #edf1f5; font-size: .92rem; }
.hc-row span { color: #6b7280; }
.hc-row.head { border-top: 0; font-weight: 600; color: #6b7280; }
.hc-title { font-size: 1.3rem; font-weight: 700; }
.hc-meta { color: #6b7280; margin-bottom: 8px; }
.pill { font-size: .75rem; padding: 2px 10px; border-radius: 999px; }
.pill.assigned { background: #e0f2fe; color: #075985; }
.warn { color: #c2410c; }
.hc-ask { margin-top: 12px; background: #f3f6f9; border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.hc-ask span { color: var(--navy); font-weight: 700; }

/* sections */
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--muted); margin: 0; }
.ico { font-size: 1.6rem; margin-bottom: 8px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.chat { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.msg { padding: 12px 14px; border-radius: 12px; max-width: 90%; }
.msg.me { justify-self: end; background: var(--navy); color: #fff; }
.msg.bot { background: var(--card); border: 1px solid var(--line); }
.src { display: block; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.cta { text-align: center; background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; }
.cta p { color: rgba(255,255,255,.8); margin-bottom: 24px; }
footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { text-decoration: none; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
  .hero-grid, .ai-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hide-sm { display: none; }
  .features, .steps { grid-template-columns: 1fr; }
}
