:root {
  --bg: #0b0d12;
  --bg-alt: #10131a;
  --surface: #151923;
  --surface-2: #1c2130;
  --border: #262c3d;
  --text: #eef0f6;
  --muted: #9aa3b8;
  --accent: #7c5cff;
  --accent-hover: #8f74ff;
  --on-accent: #ffffff;
  --ok: #2fbf71;
  --bad: #ff5d6c;
  --warn: #f5a524;
  --glow: rgba(124, 92, 255, .22);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-alt: #eceef5;
    --surface: #ffffff;
    --surface-2: #f1f2f8;
    --border: #dfe2ec;
    --text: #12141c;
    --muted: #5d6478;
    --accent: #6544f5;
    --accent-hover: #5534e6;
    --glow: rgba(101, 68, 245, .14);
    --shadow: 0 20px 50px rgba(30, 30, 60, .12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.top__row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; }
.top__nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top__nav a:not(.btn) { color: var(--muted); }
.top__nav a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 12px;
  font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .05s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }

/* hero */
.hero { position: relative; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto 0; height: 560px; pointer-events: none;
  background: radial-gradient(600px 320px at 75% 30%, var(--glow), transparent 70%),
              radial-gradient(500px 280px at 10% 10%, var(--glow), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
.lead { margin: 20px 0 30px; font-size: 18px; color: var(--muted); max-width: 34em; }
.facts { display: flex; gap: 12px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.facts li {
  flex: 1 1 120px; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.facts b { font-size: 22px; }
.facts span { color: var(--muted); font-size: 14px; }

/* trial card */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); min-height: 340px;
  display: flex; flex-direction: column; justify-content: center;
}
.state { display: flex; flex-direction: column; gap: 14px; }
.state h2 { font-size: 24px; }
.muted { color: var(--muted); margin: 0; }
.fine { color: var(--muted); font-size: 13px; margin: 0; }
.captcha { min-height: 65px; display: flex; justify-content: center; }
.captcha:empty { display: none; }
.ref { margin: 0; font-size: 14px; color: var(--muted); }
.ref code { color: var(--text); background: var(--surface-2); padding: 2px 8px; border-radius: 6px; font-size: 14px; }

.badge { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge--ok   { color: var(--ok);   background: color-mix(in srgb, var(--ok) 14%, transparent); }
.badge--bad  { color: var(--bad);  background: color-mix(in srgb, var(--bad) 14%, transparent); }
.badge--warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }

.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid var(--surface-2); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } html { scroll-behavior: auto; } }

.qr { align-self: center; width: 220px; max-width: 100%; border-radius: 14px; overflow: hidden; background: #fff; line-height: 0; }
.qr svg { width: 100%; height: auto; display: block; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field__row { display: flex; gap: 8px; }
.field input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 10px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  font: 14px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* sections */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 32px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps__n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.platforms span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 14px; }

details { border-bottom: 1px solid var(--border); padding: 4px 0; }
summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; font-size: 17px; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); }

.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot__links { display: flex; gap: 18px; }

/* tablet / phone */
@media (max-width: 900px) {
  .hero { padding: 32px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .lead { font-size: 17px; margin-bottom: 24px; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .top__nav a:not(.btn) { display: none; }
  .card { padding: 22px 18px; min-height: 0; }
  .facts li { flex-basis: 0; padding: 12px; }
  .facts b { font-size: 19px; }
  .facts span { font-size: 13px; }
  .state h2 { font-size: 22px; }
  summary { font-size: 16px; }
}
