:root {
  --indigo: #6366f1;
  --sky: #0ea5e9;
  --grad: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #eef2ff;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #111a2e;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --line: #1e293b;
    --soft: #1e1b4b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 12px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px;
  border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s; font-family: inherit; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(99, 102, 241, .35); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(99, 102, 241, .45); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .22), transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--indigo);
  font-weight: 600; font-size: 13px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.12; margin: 16px 0; letter-spacing: -.02em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.meta { color: var(--muted); font-size: 14px; margin-top: 14px; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; }
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.mock-id { border-radius: 14px; background: var(--grad); color: #fff; padding: 20px; }
.mock-id small { opacity: .85; }
.mock-id b { display: block; font-size: 30px; letter-spacing: .08em; margin-top: 4px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.mock-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.mock-row .dot.off { background: var(--muted); }
.mock-row span { color: var(--muted); font-size: 13px; margin-left: auto; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 48px; } }

/* sections */
section { padding: 64px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 8px 0; letter-spacing: -.01em; }
.sec-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--indigo); }
.ico svg { width: 22px; height: 22px; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* download */
.dl { display: flex; gap: 20px; align-items: center; }
.dl .os { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--indigo); flex: none; }
.dl .os svg { width: 30px; height: 30px; }
.dl h3 { margin: 0; }
.dl .sub { color: var(--muted); font-size: 14px; }
.dl .act { margin-left: auto; }
@media (max-width: 560px) { .dl { flex-wrap: wrap; } .dl .act { margin-left: 0; width: 100%; } .dl .act .btn { width: 100%; } }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--indigo); }

/* steps */
.steps { counter-reset: s; display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step::before { counter-increment: s; content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; }
.step h4 { margin: 4px 0 2px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); }
code, .mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; }
code { background: var(--soft); padding: 1px 6px; border-radius: 6px; }

/* faq */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* forms */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 16px; }
.auth .card { width: 100%; max-width: 440px; padding: 32px; }
.auth h1 { font-size: 26px; margin: 0 0 6px; }
.auth .sub { color: var(--muted); margin: 0 0 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); }
.field .hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.alert-err { background: rgba(220, 38, 38, .1); color: var(--err); border: 1px solid rgba(220, 38, 38, .25); }
.alert-ok { background: rgba(22, 163, 74, .1); color: var(--ok); border: 1px solid rgba(22, 163, 74, .25); }
.center { text-align: center; }
