:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #5b6b82;
  --brand: #2563eb;
  --brand-dark: #1e40af;
  --accent: #10b981;
  --danger: #ef4444;
  --line: #e5eaf2;
  --hero-from: #0b1526;
  --hero-to: #14243f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 0.9rem;
}
.brand:hover { text-decoration: none; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block;
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.menu a:hover { background: rgba(37, 99, 235, 0.08); text-decoration: none; }
.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 10px;
}
.nav-cta:hover { background: var(--brand-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px;
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .menu {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px; gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.22s ease;
  }
  body.nav-open .menu { transform: translateY(0); }
  .menu a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(37, 99, 235, 0.55), transparent 55%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
  padding: 96px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: #7db2ff; }
.hero p.lead { font-size: 1.12rem; color: #c6d4ec; margin: 0 0 28px; max-width: 32em; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.badge-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; color: #e9f1ff;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 11px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 0; transition: transform 0.08s ease, background 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); text-decoration: none; }

.hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.mock-status { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; margin-bottom: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.ok { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.mock-title { font-weight: 700; margin-bottom: 14px; }
.mock-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-card {
  background: rgba(0, 0, 0, 0.22); border-radius: 12px; padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mock-card .tag { display: inline-block; font-size: 0.72rem; padding: 3px 8px; border-radius: 999px; font-weight: 700; margin-bottom: 8px; }
.tag.safe { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.tag.live { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }
.mock-card .name { font-weight: 600; font-size: 0.95rem; }
.mock-card .sub { font-size: 0.78rem; color: #b9c6de; }
.mock-card .timer { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; color: #fff; margin-top: 8px; }
.mock-demo { margin-top: 14px; font-size: 0.78rem; color: #9fb1cf; font-style: italic; }

@media (max-width: 980px) {
  .hero { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: rgba(37, 99, 235, 0.1); color: var(--brand);
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px 22px; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.step h3 { margin: 14px 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- Download ---------- */
.download-panel {
  background: linear-gradient(135deg, var(--hero-to), var(--hero-from));
  color: #fff; border-radius: 20px; padding: 44px 40px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.download-panel h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.download-panel p { color: #c6d4ec; margin: 0 0 22px; }
.version-big { font-size: 1.05rem; font-weight: 700; }
.version-big #latest-version { color: #7db2ff; }
.dl-meta { font-size: 0.85rem; color: #9fb1cf; margin-top: 8px; }
.dl-notes { margin-top: 18px; font-size: 0.85rem; color: #9fb1cf; }
.dl-notes ul { margin: 8px 0 0; padding-left: 18px; }
.download-side { display: flex; flex-direction: column; gap: 14px; }
.dl-row { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 16px 18px; }
.dl-row .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #9fb1cf; }
.dl-row .v { font-size: 1.05rem; font-weight: 700; margin-top: 2px; }
@media (max-width: 820px) { .download-panel { grid-template-columns: 1fr; padding: 34px 24px; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 20px; font: inherit; font-weight: 700; font-size: 1rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q .chev { color: var(--brand); transition: transform 0.2s ease; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--muted); font-size: 0.96rem; }
.faq-item.open .faq-a { display: block; }

/* ---------- Support / Contact ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.contact-list .ic { font-size: 1.2rem; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: var(--surface); color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(37, 99, 235, 0.35); outline-offset: -1px; }
.support-status { padding: 12px 14px; border-radius: 10px; font-size: 0.92rem; margin-top: 4px; }
.support-status.ok { background: rgba(16, 185, 129, 0.12); color: var(--success-text); }
.support-status.err { background: rgba(239, 68, 68, 0.12); color: var(--error-text); }
@media (max-width: 820px) { .support-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--hero-from); color: #9fb1cf; padding: 40px 0 26px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #c6d4ec; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

:root { color-scheme: light; --header: rgba(255,255,255,.94); --success-text: #047857; --error-text: #b91c1c; }
:root[data-theme="dark"] {
  color-scheme: dark; --bg: #0a101e; --surface: #121d31; --ink: #edf4ff;
  --muted: #a7b8d1; --brand: #7cb3ff; --brand-dark: #2b63c2;
  --line: #293a58; --header: rgba(10,16,30,.94); --hero-from: #080f1e;
  --hero-to: #13233f; --success-text: #6ee7b7; --error-text: #fda4af;
  --shadow: 0 10px 30px rgba(0,0,0,.23);
}
.brand-icon { width: 30px; height: 30px; }
.nav { gap: 12px; }
.theme-control { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 650; }
.theme-control select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; }
.tag.cooldown { background: rgba(245,158,11,.18); color: #fcd38d; }
.dashboard-preview { min-width: 0; margin: 0; }
.dashboard-preview img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.34); }
.dashboard-preview figcaption { margin-top: .65rem; color: #aec1df; font-size: .82rem; }
.btn-primary { background: #2563eb; color: #fff; }
.steps .step::before { background: #2563eb; }
@media (max-width: 980px) {
  .nav-toggle { order: 3; }
  .theme-control { margin-left: auto; }
  .theme-control span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu { transition: none; }
}
