:root {
  --bg: #07090a;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f5f3;
  --muted: #8b958f;
  --faint: #5b645f;
  --accent: #40ff7a;
  --accent-deep: #16c24d;
  --accent-soft: rgba(64, 255, 122, 0.1);
  --accent-glow: 0 0 0 1px rgba(64, 255, 122, 0.5), 0 8px 30px rgba(64, 255, 122, 0.28);
  --radius: 16px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #041; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .88em; color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 5px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 50% -120px, rgba(64, 255, 122, 0.16), transparent 70%),
    radial-gradient(600px 400px at 90% 30%, rgba(64, 255, 122, 0.04), transparent 70%);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #03140a; box-shadow: 0 8px 24px rgba(64, 255, 122, 0.18); }
.btn-primary:hover { background: #6bff98; box-shadow: var(--accent-glow); }
.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(255,255,255,.07); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.btn-lg { height: 56px; padding: 0 34px; font-size: 17px; border-radius: 12px; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(7, 9, 10, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 30px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links { display: none; } }

.hero { text-align: center; padding-top: 110px; padding-bottom: 70px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; color: var(--muted); transition: border-color .2s;
}
.pill:hover { border-color: rgba(64,255,122,.4); }
.pill-new { background: var(--accent); color: #03140a; font-weight: 700; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.pill-arrow { color: var(--text); }
h1 {
  margin-top: 28px;
  font-size: clamp(44px, 8vw, 84px); font-weight: 800; line-height: 1.02; letter-spacing: -.045em;
  background: linear-gradient(180deg, #ffffff 30%, #a9b3ad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1 .accent {
  background: linear-gradient(180deg, #8dffb0, var(--accent) 45%, var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(64, 255, 122, 0.35));
}
.hero-sub { max-width: 560px; margin: 24px auto 0; font-size: 18px; color: var(--muted); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-meta {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px;
  margin-top: 34px; font-size: 13px; color: var(--faint); font-weight: 500;
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

#gui { padding-bottom: 40px; }
.gui-frame {
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  box-shadow: 0 40px 120px rgba(0,0,0,.55), 0 0 0 1px rgba(64,255,122,.06), 0 -20px 80px rgba(64,255,122,.07);
}
.gui-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted);
}
.gui-dots { display: flex; gap: 6px; }
.gui-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.1); }
.gui-label { font-weight: 600; color: var(--text); }
.gui-count b { color: var(--accent); }
.gui-count button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gui-count button:hover { color: var(--text); }
.gui-panels {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 22px;
  background:
    linear-gradient(rgba(7,9,10,.55), rgba(7,9,10,.8)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 12px, transparent 12px 24px);
}
@media (max-width: 900px) { .gui-panels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gui-panels { grid-template-columns: 1fr; padding: 14px; } }
.panel { border-radius: 10px; overflow: hidden; background: rgba(14, 18, 16, .95); border: 1px solid var(--border); align-self: start; }
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; font-weight: 700; font-size: 14px;
  background: linear-gradient(90deg, rgba(64,255,122,.22), rgba(64,255,122,.06));
  border-bottom: 1px solid rgba(64,255,122,.25);
}
.panel-head span { font-family: var(--mono); font-size: 11px; color: var(--accent); font-weight: 500; }
.module {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 8px 12px; background: none; border: 0; border-left: 2px solid transparent;
  font: inherit; font-size: 13.5px; color: #c4ccc7; text-align: left; cursor: pointer;
  transition: background .15s, color .15s;
}
.module:hover { background: rgba(255,255,255,.035); }
.module::after { content: ""; width: 26px; height: 14px; border-radius: 99px; background: rgba(255,255,255,.1); flex-shrink: 0; transition: background .2s, box-shadow .2s; }
.module.on { color: var(--accent); border-left-color: var(--accent); background: rgba(64,255,122,.06); }
.module.on::after { background: var(--accent); box-shadow: 0 0 10px rgba(64,255,122,.6); }
.gui-caption { text-align: center; margin-top: 16px; font-size: 13px; color: var(--faint); }

section { scroll-margin-top: 80px; }
#features, #changelog, #download, #faq { padding-top: 110px; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 12.5px; color: var(--accent); letter-spacing: .04em; margin-bottom: 12px; }
.section-head h2, .download h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 750; letter-spacing: -.035em; line-height: 1.1; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .25s, background .25s;
}
.card:hover { border-color: rgba(64,255,122,.28); background: rgba(255,255,255,.035); }
.card h3 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(64,255,122,.2);
  padding: 2px 9px; border-radius: 6px;
}
.card-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
@media (max-width: 600px) { .card-wide { grid-column: span 1; grid-template-columns: 1fr; } }

.chunk-map {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px;
  padding: 10px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--border);
}
.chunk-map i { aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,.045); transition: background .4s, box-shadow .4s; }
.chunk-map i.sus { background: var(--accent); box-shadow: 0 0 12px rgba(64,255,122,.55); }

.keys { display: flex; align-items: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; color: var(--faint); }
kbd {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  padding: 5px 10px; border-radius: 7px; background: var(--surface-2);
  border: 1px solid var(--border-strong); box-shadow: 0 2px 0 rgba(255,255,255,.08);
}
.keys .arrow { color: var(--accent); }

.finder-list { margin-top: 18px; display: grid; gap: 6px; }
.finder-list div, .sell-row {
  display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px;
  background: rgba(0,0,0,.3); border: 1px solid var(--border); font-size: 13px;
}
.finder-list span, .sell-row span { color: var(--muted); }
.finder-list b { font-family: var(--mono); font-weight: 500; color: var(--accent); font-size: 12px; }
.sell-row { margin-top: 18px; }
.sell-row b { color: var(--accent); }

.module-strip { margin-top: 14px; display: flex; gap: 18px; align-items: center; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
@media (max-width: 600px) { .module-strip { flex-direction: column; align-items: flex-start; } }
.strip-label { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.strip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.strip-list span { font-size: 12.5px; padding: 4px 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); color: #c4ccc7; }

.changelog { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.release { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 24px 26px; border-top: 1px solid var(--border); }
.release:first-child { border-top: 0; }
@media (max-width: 600px) { .release { grid-template-columns: 1fr; gap: 10px; } }
.release-side b { font-size: 18px; font-weight: 700; }
.release-side span { display: inline-block; margin-left: 10px; font-size: 11.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; vertical-align: 2px; }
.release ul { list-style: none; display: grid; gap: 8px; }
.release li { color: #c4ccc7; }
.release:not(.release-latest) li { color: var(--muted); }
.release li i { font-style: normal; font-family: var(--mono); color: var(--accent); margin-right: 12px; }
.release-latest { background: linear-gradient(90deg, rgba(64,255,122,.06), transparent 60%); }

.download {
  text-align: center; padding: 64px 32px 44px; border-radius: 22px;
  border: 1px solid rgba(64,255,122,.22);
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(64,255,122,.14), transparent 70%),
    var(--surface);
}
@media (max-width: 600px) { .download { padding: 44px 18px 30px; } }
.download-sub { color: var(--muted); font-size: 18px; margin: 14px 0 32px; }
.download-note { margin-top: 14px; font-size: 13px; color: var(--faint); font-family: var(--mono); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; text-align: left; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding: 22px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--border); }
.step-num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  font-weight: 700; font-size: 14px; color: #03140a; background: var(--accent);
}
.steps h3 { font-size: 16px; font-weight: 650; margin: 14px 0 6px; }
.steps p { font-size: 14.5px; color: var(--muted); }
.steps a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.faq-wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 4px 22px; color: var(--muted); max-width: 680px; }

.footer { margin-top: 130px; border-top: 1px solid var(--border); padding-top: 50px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-inner p { margin-top: 14px; font-size: 14px; color: var(--faint); }
.footer-cols { display: flex; gap: 70px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-cols b { font-weight: 600; margin-bottom: 4px; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { padding-top: 40px; padding-bottom: 40px; font-size: 13px; color: var(--faint); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.card-full { grid-column: 1 / -1; }
