:root {
  --bg: rgb(7, 9, 18);
  --bg-raised: rgb(13, 16, 28);
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f4f8;
  --text-muted: #9aa3b2;
  --text-faint: #6b7280;
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --cyan-border: rgba(34, 211, 238, 0.35);
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; }

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

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 9, 18, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 12px;
}

.nav-tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.nav-tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn-download-nav {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04141a;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-download-nav:hover { filter: brightness(1.08); transform: translateY(-1px); }

.nav-toggle {
  display: none;
}

/* ---------- Generic buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--cyan);
  color: #04141a;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover { border-color: var(--cyan-border); color: var(--cyan); }

.btn-disabled {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-faint);
  cursor: not-allowed;
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero p.motto {
  color: var(--cyan);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Cards / grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- Level bars (Home) ---------- */

.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.level-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-card);
}

.level-card .hotkey {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 14px;
}

.level-card h3 { margin: 0 0 6px; font-size: 1.25rem; }

.level-card .pct {
  color: var(--cyan);
  font-weight: 700;
}

.bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  margin: 16px 0 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 999px;
}

/* ---------- Pricing tiers (Download) ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tier {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.tier.featured {
  border-color: var(--cyan-border);
  box-shadow: 0 0 0 1px var(--cyan-border), 0 0 32px -12px var(--cyan);
  position: relative;
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: #04141a;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier h3 { margin: 0 0 4px; font-size: 1.15rem; }
.tier .devices { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.tier .price { font-size: 1.9rem; font-weight: 700; margin-bottom: 4px; }
.tier .price span { font-size: 0.95rem; color: var(--text-faint); font-weight: 400; }

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.tier li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 7px 0;
}

.tier li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ---------- Coming soon banner ---------- */

.notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

.notice strong { color: var(--cyan); }

/* ---------- Legal / policy documents ---------- */

.doc {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
}

.doc h2 {
  color: var(--text);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

.doc h2:first-child { margin-top: 0; }

.doc p { margin: 0 0 16px; }

.doc ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.doc li { margin-bottom: 8px; }

.doc strong { color: var(--text); }

/* ---------- Guide sections (How It Works) ---------- */

.guide-section { padding: 72px 0; }

.guide-section.alt {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.guide-grid.reverse .guide-image { order: 2; }
.guide-grid.reverse .guide-text { order: 1; }

.guide-image {
  display: flex;
  justify-content: center;
}

.guide-image img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

.guide-text h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.guide-text > p {
  color: var(--text-muted);
  margin: 0 0 22px;
}

.tool-icon {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--cyan-border);
}

.tool-points {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.tool-points li {
  position: relative;
  padding: 3px 0 3px 26px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.tool-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 20px;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 4px 40px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps strong { color: var(--text); }

.guide-text .note {
  font-size: 0.88rem;
  color: var(--text-faint);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0;
}

kbd {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 2px 7px;
}

@media (max-width: 760px) {
  .guide-grid,
  .guide-grid.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .guide-grid.reverse .guide-image,
  .guide-grid.reverse .guide-text { order: initial; }
  .guide-section { padding: 48px 0; }
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 22px 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: inherit;
}

.faq-q .icon {
  color: var(--cyan);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item.open .faq-q .icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0 4px;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 4px 22px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover { color: var(--cyan); }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .grid, .levels, .tiers { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }

  .nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .brand { order: 1; }
  .btn-download-nav { order: 2; margin-left: auto; }
  .nav-tabs {
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: center;
  }
}

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.modal-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.modal-card p {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}

.modal-close:hover { color: var(--text); }
