:root {
  --bg: #071430;
  --bg-2: #0b1d42;
  --panel: #10295c;
  --panel-2: #14306a;
  --line: rgba(234, 243, 255, 0.10);
  --text: #eaf3ff;
  --muted: #a7b8d6;
  --yellow: #fbbf24;
  --teal: #42d6cf;
  --blue: #60a5fa;
  --pink: #f472b6;
  --violet: #a78bfa;
  --orange: #fb923c;
  --radius: 18px;
  --wrap: 1140px;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  font-family: inherit; color: var(--text);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  background: linear-gradient(135deg, var(--yellow), #f59e0b);
  color: #1a1300;
  box-shadow: 0 10px 30px -10px rgba(251, 191, 36, .6);
}
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(251, 191, 36, .8); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-small { padding: 8px 16px; font-size: 14px; border-radius: 10px; background: rgba(66,214,207,.14); color: var(--teal); border-color: rgba(66,214,207,.3); }
.btn-block { width: 100%; }
.btn-disabled { background: rgba(255,255,255,.05); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 20, 48, .75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(66, 214, 207, .16), transparent 60%),
    radial-gradient(700px 400px at 5% 90%, rgba(251, 191, 36, .10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--muted); font-size: 14px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--yellow), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); margin: 22px 0 32px; max-width: 34em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* Hero illustration */
.hero-art { display: flex; justify-content: center; }
.stage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 520 / 300; }
.screen {
  position: absolute; top: 8%; width: 44%; height: 62%;
  border: 3px solid var(--text); border-radius: 14px;
  background: linear-gradient(160deg, #173a7d, #0d2552);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  padding: 10px 12px; overflow: hidden;
}
.screen-a { left: 0; }
.screen-b { right: 0; }
.bar { display: flex; gap: 5px; margin-bottom: 12px; }
.bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(234,243,255,.3); }
.lines b { display: block; height: 7px; border-radius: 4px; background: rgba(234,243,255,.15); margin-bottom: 9px; }
.lines b.short { width: 60%; }
.label { position: absolute; bottom: 10px; left: 12px; font-size: 12px; color: var(--muted); }
.stands span { position: absolute; top: calc(70% + 2px); height: 12%; width: 18%; }
.stands span::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 3px; width: 4px; margin-left: -2px; background: var(--text); border-radius: 2px; }
.stands span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--text); border-radius: 3px; }
.stands span:first-child { left: 13%; }
.stands span:last-child { right: 13%; }

.edge {
  position: absolute; top: 10%; left: 44%; width: 3px; height: 58%;
  border-radius: 3px; opacity: 0;
  background: linear-gradient(180deg, #f43f5e, #fbbf24, #42d6cf, #60a5fa, #a78bfa);
  box-shadow: 0 0 18px 3px rgba(66, 214, 207, .7);
  animation: edge 6s ease-in-out infinite;
}
.cursor {
  position: absolute; width: 26px; height: 26px; z-index: 3;
  fill: #fff; stroke: #0b1d42; stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.5));
  animation: cursor 6s ease-in-out infinite;
}
.chip {
  position: absolute; z-index: 2; white-space: nowrap;
  padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: var(--teal); color: #052a28;
  box-shadow: 0 10px 20px -8px rgba(66, 214, 207, .8);
  animation: chip 6s ease-in-out infinite;
}

@keyframes cursor {
  0%   { left: 14%; top: 42%; }
  20%  { left: 26%; top: 30%; }
  45%  { left: 42%; top: 36%; }
  55%  { left: 58%; top: 38%; }
  80%  { left: 74%; top: 30%; }
  92%  { left: 70%; top: 46%; }
  100% { left: 14%; top: 42%; }
}
@keyframes chip {
  0%, 18%  { left: 20%; top: 52%; opacity: 0; transform: scale(.8); }
  24%      { left: 30%; top: 40%; opacity: 1; transform: scale(1); }
  45%      { left: 44%; top: 45%; opacity: 1; }
  55%      { left: 60%; top: 47%; opacity: 1; }
  80%      { left: 76%; top: 40%; opacity: 1; transform: scale(1); }
  88%, 100%{ left: 76%; top: 40%; opacity: 0; transform: scale(.85); }
}
@keyframes edge {
  0%, 38%  { opacity: 0; }
  46%, 56% { opacity: 1; }
  66%, 100%{ opacity: 0; }
}

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.strip-inner div { display: flex; flex-direction: column; gap: 2px; }
.strip-inner strong { font-size: 16px; }
.strip-inner span { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; text-align: center; }
.section-lead { color: var(--muted); font-size: 18px; text-align: center; max-width: 40em; margin: 14px auto 56px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 48, 106, .55), rgba(16, 41, 92, .25));
  border: 1px solid var(--line);
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(66, 214, 207, .35); }
.card h3 { font-size: 19px; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i-yellow { color: var(--yellow); background: rgba(251,191,36,.13); }
.i-teal   { color: var(--teal);   background: rgba(66,214,207,.13); }
.i-blue   { color: var(--blue);   background: rgba(96,165,250,.13); }
.i-pink   { color: var(--pink);   background: rgba(244,114,182,.13); }
.i-violet { color: var(--violet); background: rgba(167,139,250,.13); }
.i-orange { color: var(--orange); background: rgba(251,146,60,.13); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-weight: 800; color: #052a28; background: var(--teal); margin-bottom: 16px;
}
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* Download */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 24px; }
.dl-card {
  position: relative; text-align: center;
  padding: 36px 32px 30px; border-radius: 22px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(251, 191, 36, .35);
  box-shadow: 0 30px 60px -30px rgba(251, 191, 36, .35);
}
.dl-soon { border-color: var(--line); box-shadow: none; background: rgba(255,255,255,.03); }
.dl-soon .os-icon, .dl-soon h3 { opacity: .7; }
.os-icon { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--text); }
.os-icon svg { width: 100%; height: 100%; }
.dl-card h3 { font-size: 24px; }
.dl-meta { color: var(--muted); font-size: 14px; margin: 6px 0 24px; }
.dl-version { color: var(--muted); font-size: 13px; margin-top: 14px; }
.badge {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--violet); background: rgba(167,139,250,.15); border: 1px solid rgba(167,139,250,.35);
}
.dl-hint { text-align: center; color: var(--muted); font-size: 14px; max-width: 44em; margin: 32px auto 0; }

/* Changelog */
.changelog { display: flex; flex-direction: column; gap: 18px; }
.release {
  padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.release-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.release-head h3 { font-size: 22px; }
.release-head time { color: var(--muted); font-size: 14px; }
.tag-latest { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #052a28; background: var(--teal); }
.release ul { margin: 0; padding-left: 20px; color: var(--muted); }
.release li { margin: 4px 0; }
.release .kind { font-weight: 700; color: var(--text); }
.empty {
  text-align: center; padding: 44px 28px; border-radius: var(--radius);
  border: 1px dashed rgba(234,243,255,.2); color: var(--muted);
}
.empty strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* FAQ */
.faq { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }
kbd {
  font-family: inherit; font-size: 13px; padding: 1px 7px; border-radius: 6px;
  border: 1px solid rgba(234,243,255,.25); background: rgba(255,255,255,.06); color: var(--text);
}

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { font-size: 16px; }
.footer .copy { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 56px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-inner .btn-small { margin-left: auto; }
  .grid, .strip-inner, .dl-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero-cta .btn { width: 100%; }
  .footer .copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor, .chip, .edge { animation: none; }
  .cursor { left: 70%; top: 40%; }
  .chip { display: none; }
}
