:root {
  --bg: #0d1117;
  --bg-2: #10151c;
  --surface: #161b22;
  --surface-2: #212830;
  --border: #30363d;
  --accent: #3ddc97;
  --accent-dim: #238456;
  --text: #e6edf3;
  --muted: #8b949e;
  --danger: #f85149;
  --warn: #d29922;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --sans: "Segoe UI", "Segoe UI Variable", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: radial-gradient(1200px 500px at 80% -10%, rgba(61, 220, 151, 0.08), transparent 50%), var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(13, 17, 23, 0.82);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 40px; height: 40px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-right: auto;
  margin-left: 8px;
}
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-short { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: 700 14px/1 var(--sans);
  padding: 11px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-accent { background: var(--accent); color: #062016; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 72px;
}
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--text);
}
.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.spec-strip li {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 10px;
}
.hero-stage {
  position: relative;
}
.hero-main {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.hero-tray {
  position: absolute;
  width: min(250px, 48%);
  right: -10px;
  bottom: -36px;
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.55));
}
.kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 10px 0 16px;
}
.lede { color: var(--muted); font-size: 18px; max-width: 38rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.price-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.download-note { margin-top: 8px; color: var(--muted); font-size: 13px; max-width: 38rem; }

.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.mock-body { padding: 12px; display: grid; gap: 8px; }
.row {
  display: grid;
  grid-template-columns: 16px 1fr auto auto;
  gap: 10px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 12px;
}
.row .name { color: var(--text); }
.row .ip { color: var(--muted); }
.row .ok { color: var(--accent); }
.row .down { color: var(--danger); }
.spark {
  width: 64px;
  height: 16px;
  background:
    linear-gradient(transparent 60%, rgba(61, 220, 151, 0.25) 60%),
    radial-gradient(circle at 20% 40%, var(--accent) 1.5px, transparent 2px),
    radial-gradient(circle at 45% 70%, var(--accent) 1.5px, transparent 2px),
    radial-gradient(circle at 70% 30%, var(--accent) 1.5px, transparent 2px),
    radial-gradient(circle at 90% 55%, var(--accent) 1.5px, transparent 2px);
}

.section { padding: 72px 0; }
.gallery { margin-top: 8px; }
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.gallery-tabs button {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: 700 13px/1 var(--sans);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.gallery-tabs button:hover { color: var(--text); }
.gallery-tabs button.is-on {
  color: #062016;
  background: var(--accent);
  border-color: var(--accent);
}
.shot {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px 0;
  box-shadow: var(--shadow);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.shot figcaption {
  color: var(--muted);
  font-size: 13px;
  padding: 12px 4px 14px;
}
.feature-stack { display: grid; gap: 56px; }
.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.feature-flip { grid-template-columns: 1.1fr 0.9fr; }
.feature-flip > div { order: 2; }
.feature h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.feature p { margin: 0; color: var(--muted); }
.feature img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.feature img[src*="compact"] {
  max-width: 380px;
  justify-self: center;
}
.section h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.section .sub { color: var(--muted); margin: 0 0 28px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.tag {
  display: inline-block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pricing {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.price-card {
  background: linear-gradient(180deg, #18221c, var(--surface));
  border: 1px solid var(--accent-dim);
  border-radius: 14px;
  padding: 28px;
}
.price-card .amount {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.price-card .amount span { font-size: 18px; color: var(--muted); font-weight: 600; }
.price-card ul {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.price-card li { padding: 6px 0 6px 18px; position: relative; }
.price-card li::before {
  content: "●";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 9px;
  top: 10px;
}
#buy-error, #portal-error { color: var(--danger); font-size: 13px; min-height: 1.2em; margin-top: 10px; }
.price-card .btn { width: 100%; }
.price-card .field { margin-top: 4px; }

.fulfill-steps {
  margin: 18px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}
.fulfill-steps li {
  padding: 14px 16px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.fulfill-steps strong { display: block; }

.steps { display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}
.num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }

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

.panel {
  width: min(640px, calc(100% - 40px));
  margin: 72px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.license-key {
  font-family: var(--mono);
  font-size: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  letter-spacing: 0.06em;
  user-select: all;
}
.field {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: 16px var(--sans);
}
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 18px; margin-top: 28px; }
.legal p, .legal li { color: var(--muted); }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 24px auto 72px;
}
.cta-band h2 { margin: 6px 0 8px; }
.cta-band .sub { margin: 0; }
.cta-band .download-note { margin-top: 10px; }
.cta-band-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: min(920px, calc(100vw - 32px));
  width: 100%;
}
.modal::backdrop {
  background: rgba(7, 10, 14, 0.78);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px 24px;
  max-height: min(90vh, 880px);
  overflow: auto;
  box-shadow: var(--shadow);
}
.modal-card-narrow { max-width: 520px; margin: 0 auto; }
.modal-card h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin: 0 20px 8px 0;
}
.modal-card > .sub { color: var(--muted); margin: 0 0 22px; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.modal-actions + .download-note { margin-top: 12px; }
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.footer-links button:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .hero, .pricing, .grid, .feature, .feature-flip { grid-template-columns: 1fr; }
  .feature-flip > div { order: 0; }
  .nav-links { display: none; }
  .nav-actions .btn { padding: 9px 11px; font-size: 12px; }
  .nav-full { display: none; }
  .nav-short { display: inline; }
  .hero { padding-bottom: 48px; }
  .hero-tray {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(320px, 100%);
    margin-top: 14px;
  }
  .cta-band { padding: 22px; }
}
