:root {
  --bg: #0b0d14;
  --bg-2: #11141e;
  --card: #161a27;
  --card-border: #232838;
  --text: #e9ecf5;
  --muted: #9aa3b8;
  --accent-a: #8b6cff;
  --accent-b: #1ec8ff;
  --accent: #5b8cff;
  --radius: 16px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-b); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: .88em;
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: .1em .4em;
  word-break: break-all;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 13, 20, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand small { color: var(--muted); font-weight: 500; }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
.brand { white-space: nowrap; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.btn, .nav a.btn:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px;
  font-weight: 650; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 8px 30px -8px rgba(91, 140, 255, .65);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 36px -8px rgba(91, 140, 255, .8); }
.btn.small { padding: 8px 16px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.btn.ghost { background: transparent; border: 1px solid var(--card-border); box-shadow: none; color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 900px;
  background:
    radial-gradient(closest-side at 35% 45%, rgba(139, 108, 255, .28), transparent),
    radial-gradient(closest-side at 65% 50%, rgba(30, 200, 255, .2), transparent);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero-icon { width: 128px; height: 128px; margin: 0 auto 28px; filter: drop-shadow(0 18px 40px rgba(91, 140, 255, .55)); }
.badge {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-b); border: 1px solid rgba(30, 200, 255, .35); background: rgba(30, 200, 255, .08);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(18px, 2.3vw, 21px); color: var(--muted); max-width: 680px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 20px; font-size: 14px; color: var(--muted); }

.sources { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 52px; }
.chip {
  font-size: 14px; color: var(--muted); padding: 7px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-border);
}

/* Screenshots */
section.shots { padding: 0 0 80px; }
.shot { margin: 0; }
.shot a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--card-border); background: var(--card); transition: transform .2s ease, border-color .2s ease; }
.shot a:hover { transform: translateY(-3px); border-color: rgba(91, 140, 255, .6); }
.shot img { width: 100%; height: auto; }
.shot figcaption { color: var(--muted); font-size: 14.5px; margin-top: 10px; text-align: center; }
.shot-main a { border-radius: 18px; box-shadow: 0 40px 100px -40px rgba(91, 140, 255, .55); }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-b); }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 8px 0 14px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin: 14px 0 8px; font-size: 19px; }
.card p, .card li { color: var(--muted); font-size: 15.5px; }
.card p { margin: 0; }
.card ul { margin: 0; padding-left: 18px; }
.card li + li { margin-top: 4px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(139, 108, 255, .22), rgba(30, 200, 255, .18));
  border: 1px solid rgba(91, 140, 255, .3);
}
.icon svg { width: 22px; height: 22px; stroke: #b9c9ff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split + .split { margin-top: 80px; }
.split h2 { margin-top: 6px; }
.split p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.5 14.2-4.2-4.2 1.4-1.4 2.8 2.8 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.5 14.2-4.2-4.2 1.4-1.4 2.8 2.8 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.panel {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 20px; padding: 28px;
  box-shadow: 0 30px 80px -40px rgba(91, 140, 255, .45);
}
.systems { display: flex; flex-wrap: wrap; gap: 10px; }
.systems span {
  font-size: 14.5px; padding: 8px 14px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--card-border);
}
.panel-title { font-size: 13px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.panel-title + .systems + .panel-title { margin-top: 26px; }

/* Achievement mock */
.ach { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--card-border); }
.ach:last-of-type { border-bottom: 0; }
.ach-badge { width: 44px; height: 44px; border-radius: 10px; flex: none; background: linear-gradient(135deg, #f5b84a, #e9692c); }
.ach.locked .ach-badge { background: #2a3044; }
.ach strong { display: block; font-size: 15.5px; }
.ach span { color: var(--muted); font-size: 14px; }
.ach .tick { margin-left: auto; font-size: 13px; color: #5fd49a; font-weight: 600; white-space: nowrap; }
.ach.locked .tick { color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin: 6px 0 18px; }
.bar i { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); }
.bar-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.mock-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; opacity: .8; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.steps .card { position: relative; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
}

/* Keys table */
.table-wrap { overflow-x: auto; border: 1px solid var(--card-border); border-radius: var(--radius); margin-top: 28px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--card-border); vertical-align: top; }
th { background: var(--card); color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
tr:last-child td { border-bottom: 0; }

/* Download CTA */
.cta { text-align: center; }
.cta .panel { padding: 56px 28px; background: linear-gradient(135deg, rgba(139, 108, 255, .16), rgba(30, 200, 255, .1)), var(--card); }
.cta img { width: 80px; height: 80px; margin: 0 auto 18px; }
.reqs { list-style: none; padding: 0; margin: 28px auto 0; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; color: var(--muted); font-size: 15px; }

/* Footer */
footer { padding: 48px 0 56px; border-top: 1px solid var(--card-border); color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 22px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.footer-top .brand { margin-right: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.fine { font-size: 13px; line-height: 1.6; opacity: .85; margin: 0; }

/* Plain content pages */
.page { padding: 72px 0 40px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 10px; }
.page h2 { font-size: 24px; margin-top: 40px; }
.page p, .page li { color: #c6ccdb; }

@media (max-width: 960px) {
  .brand small { display: none; }
  .nav { gap: 18px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .panel { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .brand small { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero-icon { width: 96px; height: 96px; }
  section { padding: 60px 0; }
  .grid, .steps, .shot-row { grid-template-columns: 1fr; }
  .shot-main a { border-radius: 12px; }
  .btn { width: 100%; justify-content: center; }
  .btn.small { width: auto; }
  .ach .tick { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shot a { transition: none; }
}
