:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --card: #0f0f0f;
  --accent: #00ff41;
  --accent-secondary: #00cc33;
  --danger: #ff0000;
  --warning: #ffd700;
  --text-primary: var(--accent);
  --text-secondary: #4ee66b;
  --border: rgba(0, 255, 65, 0.4);
  --border-dim: rgba(78, 230, 107, 0.3);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* ---------- CRT scanline overlay (static lines + slow sweep) ---------- */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 65, 0.05) 0px,
    rgba(0, 255, 65, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
}

body::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 9998;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 255, 65, 0.06),
    transparent
  );
  top: 0;
  transform: translateY(-120px);
  animation: sweep 6s linear infinite;
}

@keyframes sweep {
  0% { transform: translateY(-120px); }
  100% { transform: translateY(100vh); }
}

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

img {
  max-width: 100%;
  display: block;
}

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

/* ---------- Bracket button convention ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--accent);
  color: #000;
}

.btn-dim {
  border-color: var(--border-dim);
  color: var(--text-secondary);
}

.btn-dim:hover {
  background: var(--text-secondary);
  color: #000;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border-dim);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-primary);
}

.brand img {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: inherit;
  padding: 6px 10px;
  cursor: pointer;
}

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

.hero {
  padding: 90px 0 70px;
  text-align: center;
}

.hero-first {
  border-top: none;
}

.hero .tag {
  color: var(--warning);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.4;
  margin: 0 0 20px;
}

.hero p.sub {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: none;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.blink {
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- Section shell ---------- */

section {
  padding: 70px 0;
  border-top: 1px solid var(--border-dim);
}

.section-label {
  font-size: 12px;
  color: var(--warning);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 40px;
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.feature-card {
  border: 1px solid var(--border-dim);
  background: var(--card);
  padding: 22px;
}

.feature-card .icon {
  font-size: 22px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 14px;
  letter-spacing: 1.5px;
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  text-transform: none;
  margin: 0;
  line-height: 1.7;
}

/* ---------- Download / install ---------- */

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.download-card {
  border: 1px solid var(--border-dim);
  background: var(--card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-card h3 {
  font-size: 14px;
  letter-spacing: 1.5px;
  margin: 0;
}

.download-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  text-transform: none;
  margin: 0;
  line-height: 1.7;
}

.download-card .btn {
  align-self: flex-start;
}

.btn-disabled {
  border-color: var(--border-dim);
  color: var(--text-secondary);
  cursor: default;
  align-self: flex-start;
}

.steps {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--text-secondary);
  text-transform: none;
  line-height: 1.8;
}

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

.fallback-note {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: none;
  margin: 0;
}

.fallback-note a {
  text-decoration: underline;
}

/* ---------- User guide ---------- */

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.guide-list li {
  border-left: 2px solid var(--border);
  padding-left: 20px;
}

.guide-list h3 {
  font-size: 13.5px;
  letter-spacing: 1.5px;
  margin: 0 0 8px;
}

.guide-list p {
  font-size: 12.5px;
  color: var(--text-secondary);
  text-transform: none;
  margin: 0;
  line-height: 1.7;
}

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border-dim);
  background: var(--card);
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  list-style: none;
  position: relative;
  padding-right: 24px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  font-size: 12.5px;
  color: var(--text-secondary);
  text-transform: none;
  line-height: 1.7;
  margin: 14px 0 0;
}

/* ---------- Screenshots (mockup panels) ---------- */

.mockups {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.mockup-note {
  font-size: 11.5px;
  color: var(--text-secondary);
  text-transform: none;
  margin: -22px 0 34px;
  opacity: 0.8;
}

.phone {
  flex: 0 0 220px;
  border: 1px solid var(--border);
  background: #000;
  padding: 16px 14px;
  min-height: 400px;
  position: relative;
}

.phone .phone-label {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.phone .phone-line {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1.5;
}

.phone .phone-dim {
  color: var(--text-secondary);
  font-size: 10px;
  text-transform: none;
  margin-bottom: 16px;
}

.phone .phone-btn {
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 10px;
  padding: 8px;
  text-align: center;
  position: absolute;
  bottom: 16px;
  left: 14px;
  right: 14px;
}

/* ---------- Changelog ---------- */

.changelog-list {
  border-left: 2px solid var(--border);
  padding-left: 24px;
}

.changelog-entry {
  margin-bottom: 30px;
  position: relative;
}

.changelog-entry::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.changelog-date {
  font-size: 11px;
  color: var(--warning);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.changelog-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.changelog-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  text-transform: none;
  margin: 0;
}

.changelog-loading {
  font-size: 12px;
  color: var(--text-secondary);
}

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

.site-footer {
  border-top: 1px solid var(--border-dim);
  padding: 40px 0;
  text-align: center;
}

.site-footer p {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin: 6px 0;
}

.site-footer a {
  color: var(--accent);
}

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

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid var(--border-dim);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 60px 0 50px;
  }

  section {
    padding: 50px 0;
  }
}
