:root {
  --a1: #19e3ff;
  --a2: #3b7bff;
  --a3: #7a2cff;
  --grad: linear-gradient(120deg, var(--a1), var(--a2) 55%, var(--a3));
  --bg: #0b0f1a;
  --bg2: #0e1322;
  --surface: #131a2c;
  --surface2: #1a2238;
  --line: #222c47;
  --text: #e8ecf8;
  --muted: #9aa4c2;
  --faint: #66708f;
  --ok: #2fd67b;
  --bad: #ff5c7a;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 'Segoe UI Variable Text', 'Segoe UI', Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--a1); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
code, kbd, pre { font-family: 'Cascadia Mono', Consolas, monospace; font-size: 0.88em; }
code, kbd { padding: 2px 7px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.08s, filter 0.15s, border-color 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; border-color: var(--faint); background: var(--surface2); }
.btn:active { transform: scale(0.98); }
.btn.primary { border: 0; background: var(--grad); color: #fff; box-shadow: 0 12px 34px -12px var(--a2); }
.btn.primary:hover { filter: brightness(1.1); background: var(--grad); }
.btn.lg { height: 54px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface); }
.btn.danger { background: transparent; border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.btn.disabled, .btn:disabled { opacity: 0.5; pointer-events: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); 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; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand b { font-size: 19px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand span { color: var(--muted); font-size: 14px; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { color: var(--muted); font-size: 15px; }
.nav nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 40px; text-align: center; overflow: hidden; }
.glow { position: absolute; inset: -220px 0 auto; height: 720px; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--a2) 38%, transparent), transparent 70%), radial-gradient(closest-side at 70% 40%, color-mix(in srgb, var(--a3) 30%, transparent), transparent 70%); filter: blur(20px); opacity: 0.7; }
.hero .wrap { position: relative; }
.eyebrow { display: inline-block; padding: 5px 14px; margin-bottom: 22px; border-radius: 30px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.06; letter-spacing: -1.5px; font-weight: 800; text-wrap: balance; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 660px; margin: 22px auto 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.meta { margin-top: 14px; color: var(--faint); font-size: 14px; }
.notice { display: inline-block; margin-top: 20px; padding: 8px 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--line)); color: var(--bad); font-size: 15px; }
.shot { margin: 56px auto 0; max-width: 1080px; padding: 8px; border-radius: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--a2) 40%, var(--line)), var(--line)); box-shadow: 0 50px 120px -40px color-mix(in srgb, var(--a2) 60%, transparent); }
.shot img { border-radius: 15px; width: 100%; }

/* ---------- strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg2); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 30px; text-align: center; }
.strip b { display: block; font-size: 28px; letter-spacing: -0.5px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip span { color: var(--muted); font-size: 15px; }

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section.alt { background: var(--bg2); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.8px; line-height: 1.15; text-align: center; text-wrap: balance; }
.sub { max-width: 620px; margin: 14px auto 0; text-align: center; color: var(--muted); font-size: 18px; text-wrap: pretty; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.cards article { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
.cards article:hover { border-color: color-mix(in srgb, var(--a2) 60%, var(--line)); transform: translateY(-3px); }
.ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 12px; background: color-mix(in srgb, var(--a2) 18%, transparent); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--a1); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cards h3 { font-size: 19px; margin-bottom: 8px; }
.cards p { color: var(--muted); font-size: 15.5px; }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 48px 0 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 26px 26px 26px 78px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 24px; top: 24px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; }
.steps b { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15.5px; }

.browsers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.browsers article { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.browsers h3 { font-size: 19px; }
.browsers ol { margin: 16px 0 24px; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.browsers li { margin-bottom: 8px; }
.browsers li b { color: var(--text); }
.browsers .btn { margin-top: auto; align-self: flex-start; }
.fine { margin-top: 26px; text-align: center; color: var(--muted); font-size: 15px; }

.log { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.log article { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.log header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.log header b { font-size: 18px; }
.log time { margin-left: auto; color: var(--faint); font-size: 14px; }
.log ul { margin: 12px 0; padding-left: 20px; color: var(--muted); }
.log p { margin: 10px 0; }
.tag { padding: 2px 10px; border-radius: 20px; background: var(--surface2); color: var(--muted); font-size: 12px; font-weight: 600; }
.log .tag, .tag.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }

#faq details { margin-top: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
#faq details:first-of-type { margin-top: 40px; }
#faq summary { padding: 18px 22px; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: '+'; color: var(--faint); font-size: 22px; line-height: 1; }
#faq details[open] summary::after { content: '–'; }
#faq details p { padding: 0 22px 20px; color: var(--muted); }

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

@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .browsers { grid-template-columns: 1fr; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 56px; }
  .section { padding: 64px 0; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
