:root {
  --ink: #14213d;
  --ink-2: #2b3a5c;
  --text: #1f2633;
  --muted: #5b6474;
  --line: #e3e6ec;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --accent: #f2a541;
  --accent-dark: #c97c10;
  --ok: #1f8a5b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; }
a { color: var(--ink-2); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 12px; }

/* Buttons */
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 10px; border: 2px solid var(--ink); transition: transform .15s, background .15s; }
.btn:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #f5b862; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-small { padding: 8px 16px; font-size: 0.95rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--accent); font-weight: 900; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.main-nav a[aria-current="page"] { color: var(--accent-dark); }
.main-nav .btn-small { color: #fff; white-space: nowrap; }

/* Hero */
.hero { background: linear-gradient(180deg, #fbf7f0 0%, #fff 100%); padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-note { font-size: 0.95rem; color: var(--muted); margin-top: 14px; }

/* Command demo card */
.demo-card { background: var(--ink); color: #e8ecf4; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.demo-top { display: flex; gap: 6px; margin-bottom: 16px; }
.demo-top span { width: 10px; height: 10px; border-radius: 50%; background: #3a4a6e; }
.demo-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3c4; margin-bottom: 6px; }
.demo-cmd { background: #1e2d4f; border: 1px solid #34466f; border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, Consolas, monospace; font-size: 0.95rem; margin-bottom: 18px; }
.demo-cmd::before { content: "> "; color: var(--accent); }
.demo-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-out div { background: #1a2847; border-radius: 10px; padding: 12px; font-size: 0.92rem; }
.demo-out b { display: block; color: #fff; }
.demo-out small { color: #8fd3b0; }

/* Sections */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 11px; background: #fdf1de; color: var(--accent-dark); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-weight: 800; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: 2rem; color: var(--ink); }

.cta-band { background: var(--ink); color: #dfe5f1; border-radius: 20px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.badge { position: absolute; top: -13px; left: 30px; background: var(--accent); color: var(--ink); font-size: 0.78rem; font-weight: 800; padding: 4px 12px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.05em; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: 6px 0 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-year { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price-card li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed var(--line); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.price-card li.no { color: var(--muted); }
.price-card li.no::before { content: "–"; color: var(--muted); }

table.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: 0.97rem; }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare thead th { background: var(--ink); color: #fff; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--ink); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Legal pages */
.page-head { background: var(--bg-soft); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); margin: 0; }
.legal { max-width: 820px; padding: 48px 24px 80px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.4em; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: 0.4em; }
.legal .box { background: #fdf6ea; border: 1px solid #f3dcb6; border-radius: 12px; padding: 18px 20px; margin: 1.5em 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #fdf1de; color: var(--accent-dark); display: grid; place-items: center; font-weight: 800; }
.contact-item b { display: block; color: var(--ink); }
.map-frame { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--radius); }

/* Footer */
.site-footer { background: #0f1a31; color: #b9c2d6; padding: 56px 0 24px; font-size: 0.95rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer a { display: block; color: #dfe5f1; text-decoration: none; margin-bottom: 8px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .muted { color: #9aa5bd; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 32px; }
.brand-footer { color: #fff !important; margin-bottom: 12px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #253457; margin-top: 36px; padding-top: 20px; font-size: 0.85rem; color: #8994ad; }

@media (max-width: 900px) {
  .hero-grid, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .price-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { gap: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .main-nav a:not(.btn) { display: none; }
  .main-nav a[href="/pricing.html"] { display: inline; }
  .steps, .footer-grid, .stat-row, .demo-out { grid-template-columns: 1fr; }
  .cta-band { padding: 30px; }
  section { padding: 52px 0; }
}
