*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.15);
  --green-border: rgba(34,197,94,0.3);
  --bg: #050505;
  --bg2: #0a0a0a;
  --bg3: #111;
  --text: #f3f4f6;
  --muted: #6b7280;
  --border: rgba(255,255,255,0.07);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5,5,5,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Space Mono', monospace;
  font-size: 18px; color: var(--green);
  letter-spacing: 0.05em;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--green-dim) !important;
  border: 1px solid var(--green-border) !important;
  color: var(--green) !important;
  padding: 8px 18px; border-radius: 8px;
  font-size: 13px !important; font-weight: 600;
}
.btn-nav:hover { background: rgba(34,197,94,0.25) !important; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 24px 80px;
  position: relative; overflow: hidden;
  max-width: 1100px; margin: 0 auto;
  gap: 60px;
}
.hero-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.glow {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.12;
}
.glow-1 { width: 600px; height: 600px; background: var(--green); top: -200px; left: -200px; }
.glow-2 { width: 400px; height: 400px; background: #3b82f6; bottom: -100px; right: -100px; }

.hero-content { flex: 1; position: relative; z-index: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-dim); border: 1px solid var(--green-border);
  color: var(--green); font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
  letter-spacing: 0.05em; margin-bottom: 28px;
  text-transform: uppercase;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s infinite;
}

h1 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1; font-weight: 700;
  margin-bottom: 24px;
}
.green { color: var(--green); }

.hero-sub {
  font-size: 18px; color: var(--muted);
  max-width: 520px; margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }

.btn-primary {
  background: var(--green); color: #052e16;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 15px;
  text-decoration: none; transition: all 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: #16a34a; transform: translateY(-1px); }

.btn-ghost {
  color: var(--muted); text-decoration: none;
  font-size: 15px; transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }

.hero-platforms { font-size: 13px; color: #374151; }
.sep { margin: 0 8px; }

/* ── Mockup ── */
.hero-mockup {
  flex: 0 0 340px; position: relative; z-index: 1;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.mockup-window {
  background: rgba(10,10,10,0.95);
  border: 1px solid var(--green-border);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 60px rgba(34,197,94,0.1), 0 24px 60px rgba(0,0,0,0.6);
  font-size: 13px;
}
.mockup-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); animation: pulse 1.5s infinite;
}
.mockup-title { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--green); flex: 1; }
.mockup-close { color: var(--muted); font-size: 13px; cursor: pointer; }
.mockup-transcript {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.t-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.t-text { color: #9ca3af; font-size: 12px; line-height: 1.5; }
.mockup-answer { padding: 12px 14px; }
.mockup-q { font-size: 10px; color: #374151; margin-bottom: 8px; }
.mockup-a { color: #f3f4f6; font-size: 12px; line-height: 1.7; }
.mockup-a strong { color: var(--green); }
.mockup-controls {
  display: flex; gap: 6px; padding: 8px 10px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.mockup-controls span { cursor: pointer; opacity: 0.6; }

/* ── Sections shared ── */
section { padding: 100px 24px; }
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: var(--green);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 16px;
}
h2 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15; font-weight: 700;
  margin-bottom: 60px;
}

/* ── Features ── */
.features { max-width: 1100px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--green-border);
  transform: translateY(-4px);
}
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── How it works ── */
.how {
  max-width: 1100px; margin: 0 auto;
  background: var(--bg2);
  border-radius: 24px;
  border: 1px solid var(--border);
}
.steps {
  display: flex; align-items: flex-start;
  gap: 20px; flex-wrap: wrap;
}
.step { flex: 1; min-width: 200px; }
.step-num {
  font-family: 'Space Mono', monospace;
  font-size: 48px; font-weight: 700;
  color: var(--green-border); line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.step-arrow {
  font-size: 28px; color: var(--green-border);
  padding-top: 16px; flex-shrink: 0;
}
kbd {
  background: var(--bg3); border: 1px solid #2a2a2a;
  border-radius: 4px; padding: 2px 6px;
  font-family: 'Space Mono', monospace;
  font-size: 12px; color: #9ca3af;
}

/* ── Privacy ── */
.privacy {
  background: linear-gradient(135deg, rgba(34,197,94,0.05), rgba(59,130,246,0.05));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.privacy-inner {
  max-width: 600px; margin: 0 auto;
  text-align: center;
}
.privacy-icon { font-size: 48px; margin-bottom: 24px; }
.privacy-inner h2 { margin-bottom: 16px; }
.privacy-inner p { color: var(--muted); font-size: 16px; line-height: 1.7; }

/* ── Download ── */
.download { max-width: 900px; margin: 0 auto; text-align: center; }
.download-sub { color: var(--muted); margin-bottom: 48px; font-size: 16px; }
.download-sub a { color: var(--green); text-decoration: none; }
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.download-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
  text-decoration: none; color: var(--text);
  transition: all 0.2s;
}
.download-card:hover {
  border-color: var(--green-border);
  background: var(--green-dim);
  transform: translateY(-2px);
}
.dl-icon { font-size: 28px; flex-shrink: 0; }
.dl-info { flex: 1; text-align: left; }
.dl-os { font-weight: 600; font-size: 15px; }
.dl-arch { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dl-arrow { font-size: 20px; color: var(--green); }
.github-link {
  color: var(--muted); text-decoration: none;
  font-size: 14px; transition: color 0.2s;
}
.github-link:hover { color: var(--green); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto;
  color: var(--muted); font-size: 13px;
  flex-wrap: wrap; gap: 12px;
}

/* ── Animations ── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding-top: 100px; }
  .hero-mockup { flex: none; width: 100%; max-width: 340px; margin: 0 auto; }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .nav-links a:not(.btn-nav) { display: none; }
}

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  height: 80px; border-radius: 14px;
  pointer-events: none;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Version badge ── */
.version-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 12px; color: var(--muted);
  background: var(--bg2); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 32px;
}

/* ── Detected OS highlight ── */
.download-card.detected {
  border-color: var(--green);
  background: var(--green-dim);
  box-shadow: 0 0 20px rgba(34,197,94,0.15);
  order: -1;
}
.download-card.detected::after {
  content: 'Recommended for your system';
  display: block;
  font-size: 10px; color: var(--green);
  margin-top: 6px; width: 100%;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.download-cards { flex-wrap: wrap; }

.download-card.unavailable {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
}
