:root {
  --brand: #5b6cff;
  --brand-strong: #4351e8;
  --brand-soft: #eceeff;
  --bg: #ffffff;
  --bg-tint: #f6f7fc;
  --surface: #ffffff;
  --text: #14162b;
  --muted: #5a5f7a;
  --line: #e3e5f0;
  --good: #188a55;
  --bad: #c62f3e;
  --live: #ef3b4f;
  --shadow: 0 1px 2px rgba(20, 22, 43, 0.06), 0 12px 32px rgba(20, 22, 43, 0.08);
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8b97ff;
    --brand-strong: #a7b0ff;
    --brand-soft: #23264a;
    --bg: #0e1020;
    --bg-tint: #141731;
    --surface: #181b36;
    --text: #eceefb;
    --muted: #a3a8c6;
    --line: #2a2e52;
    --good: #4fd08f;
    --bad: #ff7a87;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { 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 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none;
  padding: 12px 22px; white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
@media (prefers-color-scheme: dark) { .btn { color: #0e1020; } }
.btn:hover { background: var(--brand-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--small { padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }

.link { color: var(--muted); text-decoration: none; font-weight: 500; }
.link:hover { color: var(--text); }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { border-radius: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 24px; margin-left: 16px; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__links a:hover { color: var(--text); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__actions { gap: 12px; }
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(60% 60% at 85% 20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand-strong); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 20px;
}
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; }
.accent { color: var(--brand); }
.lede { font-size: 19px; color: var(--muted); margin: 20px 0 28px; max-width: 34em; }
.fine { font-size: 14px; color: var(--muted); margin-top: 12px; }

.inline-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.inline-form input { flex: 1 1 240px; }
.inline-form .form-status { flex-basis: 100%; }
.inline-form .form-status:empty { display: none; }

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* hero illustration */

.hero__visual { position: relative; padding: 24px 24px 40px; }
.device {
  background: #11132a; border-radius: 22px; padding: 14px; box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06); color: #fff;
}
.device__bar { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 2px 4px 12px; }
.device__title { font-weight: 600; }
.device__count { margin-left: auto; opacity: 0.6; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--live); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 6px; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

.stage { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr auto; gap: 8px; }
.tile { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(160deg, #2b2f5c, #1a1d3d); }
.tile--spot {
  grid-column: 1 / -1; aspect-ratio: 16 / 9; position: relative;
  background:
    radial-gradient(40% 55% at 50% 45%, #7f8bff 0 28%, transparent 29%),
    radial-gradient(70% 45% at 50% 100%, #5b6cff 0 60%, transparent 61%),
    linear-gradient(160deg, #303670, #1b1e40);
}
.tile--spot span { position: absolute; left: 10px; bottom: 8px; font-size: 12px; background: rgba(0, 0, 0, 0.45); padding: 2px 8px; border-radius: 6px; }
.t1 { background: radial-gradient(35% 45% at 50% 45%, #ffb38a 0 40%, transparent 41%), linear-gradient(160deg, #3a2f5c, #1e1a3d); }
.t2 { background: radial-gradient(35% 45% at 50% 45%, #7dd3b0 0 40%, transparent 41%), linear-gradient(160deg, #24435a, #16263a); }
.t3 { background: radial-gradient(35% 45% at 50% 45%, #f3d27a 0 40%, transparent 41%), linear-gradient(160deg, #4a3a2a, #2a2118); }
.t4 { background: radial-gradient(35% 45% at 50% 45%, #c69cff 0 40%, transparent 41%), linear-gradient(160deg, #3a2a5a, #201638); }

.device__controls { display: flex; align-items: center; gap: 10px; padding: 14px 4px 2px; }
.ctl { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.ctl--end { background: var(--live); }
.music { margin-left: auto; font-size: 12px; font-weight: 600; background: rgba(139, 151, 255, 0.2); color: #c3c9ff; padding: 6px 10px; border-radius: 999px; }

.float {
  position: absolute; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); font-size: 13px; padding: 10px 14px;
}
.float--chat { right: 0; top: 8px; max-width: 220px; }
.float--chat b { display: block; font-size: 12px; color: var(--brand-strong); }
.float--chat .react { display: inline-block; margin-top: 6px; background: var(--brand-soft); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.float--cal { left: 0; bottom: 0; display: flex; gap: 12px; align-items: center; line-height: 1.35; }
.cal-day { background: var(--brand); color: #fff; font-weight: 700; font-size: 11px; border-radius: 8px; padding: 8px 6px; }
@media (prefers-color-scheme: dark) { .cal-day { color: #0e1020; } }

@media (max-width: 480px) {
  .hero__visual { padding: 52px 0 32px; }
  .float--chat { right: -4px; top: 0; }
}

/* ---------------------------------------------------------------- sections */

.section { padding: 88px 0; }
.section--tint { background: var(--bg-tint); border-block: 1px solid var(--line); }
.section__title { font-size: clamp(30px, 4vw, 42px); font-weight: 800; text-align: center; }
.section__lede { color: var(--muted); font-size: 18px; text-align: center; max-width: 40em; margin: 16px auto 0; }
@media (max-width: 600px) { .section { padding: 64px 0; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 19px; margin: 18px 0 8px; }
.card p { color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
@media (prefers-color-scheme: dark) { .step__n { color: #0e1020; } }
.steps h3 { font-size: 19px; margin: 16px 0 8px; }
.steps p { color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { margin-top: 32px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; }

/* ---------------------------------------------------------------- forms */

input {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0;
}
input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
input[aria-invalid="true"] { border-color: var(--bad); }

.form-status { font-size: 14px; min-height: 1.4em; margin-top: 4px; }
.form-status[data-state="ok"] { color: var(--good); }
.form-status[data-state="error"] { color: var(--bad); }

.cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 48px; box-shadow: var(--shadow);
}
.cta h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
.cta__copy p { color: var(--muted); font-size: 18px; margin-top: 12px; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; padding: 28px; gap: 28px; } }

.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 400; }

/* ---------------------------------------------------------------- footer */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-pill i { animation: none; }
}
