/* ═══════════════════════════════════════════
   DualCPY — Website Stylesheet
   Dark tech/gaming aesthetic
   Exo 2 + Outfit + JetBrains Mono
═══════════════════════════════════════════ */

/* ── Variables ───────────────────────────── */
:root {
  --bg-base:       #07070d;
  --bg-surface:    #0c0c15;
  --bg-elevated:   #111120;
  --bg-card:       rgba(255,255,255,0.03);

  --accent-cyan:   #00d4ff;
  --accent-purple: #9b59ff;
  --accent-cyan-dim:   rgba(0,212,255,0.15);
  --accent-purple-dim: rgba(155,89,255,0.15);
  --accent-cyan-glow:  rgba(0,212,255,0.3);
  --accent-purple-glow:rgba(155,89,255,0.3);

  --text-primary:  #eeeeff;
  --text-secondary:#9898b8;
  --text-muted:    #55556a;
  --text-code:     #c0f0ff;

  --border:        rgba(255,255,255,0.06);
  --border-cyan:   rgba(0,212,255,0.2);
  --border-purple: rgba(155,89,255,0.2);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-cyan:   0 0 40px rgba(0,212,255,0.12);
  --shadow-purple: 0 0 40px rgba(155,89,255,0.12);

  --nav-height: 64px;
  --font-display: 'Exo 2', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

/* ── Reset & Base ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-cyan-dim); color: var(--accent-cyan); }

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

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

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent-cyan);
  background: rgba(0,212,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Keyframes ───────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes glow-pulse-cyan {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.05); }
}

@keyframes glow-pulse-purple {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.08); }
}

@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

@keyframes stream-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

@keyframes scale-fill {
  from { width: 0; }
  to   { width: 60%; }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes grid-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

@keyframes line-glow {
  0%, 100% { opacity: 0.03; }
  50%       { opacity: 0.08; }
}

@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(40px) skewY(2deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0); }
}

/* ── Navigation ──────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: transparent;
  transition: background 0.3s, border-bottom 0.3s;
}

#navbar.scrolled {
  background: rgba(7,7,13,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-dual { color: var(--accent-cyan); }
.logo-cpy  { color: var(--accent-purple); }

.logo-version {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text-primary); background: var(--bg-card); }

.nav-github {
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-elevated) !important;
}

.nav-github:hover {
  border-color: var(--border-cyan) !important;
  color: var(--accent-cyan) !important;
  background: var(--accent-cyan-dim) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 40%, var(--bg-base) 100%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  flex: 1;
}

/* Hero text */
.hero-text { display: flex; flex-direction: column; gap: 24px; }

.hero-eyebrow {
  display: flex;
  gap: 8px;
  animation: fade-in 0.6s ease both;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.badge-new {
  border-color: var(--border-cyan);
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -2px;
  animation: hero-text-in 0.7s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}

.title-dual {
  display: block;
  color: var(--accent-cyan);
  text-shadow: 0 0 60px rgba(0,212,255,0.4);
}

.title-cpy {
  display: block;
  color: var(--text-primary);
  -webkit-text-stroke: 1px rgba(155,89,255,0.4);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  animation: hero-text-in 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}

.hero-sub strong { color: var(--text-primary); font-weight: 600; }

/* Terminal */
.hero-terminal {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  animation: hero-text-in 0.7s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
}

.terminal-body {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-code);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
}

.term-prompt { color: var(--accent-cyan); font-weight: 500; }
.term-cmd    { flex: 1; word-break: break-all; }
.term-cursor {
  color: var(--accent-cyan);
  animation: cursor-blink 1s step-end infinite;
  font-size: 0.9em;
}

/* Dots (window buttons) */
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

/* CTA buttons */
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: hero-text-in 0.7s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-cyan);
  color: #050510;
}

.btn-primary:hover {
  background: #33ddff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.4);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-purple);
  color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

/* ── Hero Visual / Mockup ────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-in 1s ease 0.5s both;
}

.mockup-wrapper {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: float 6s ease-in-out infinite;
}

.mockup-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.mockup-glow-cyan {
  width: 220px; height: 220px;
  background: rgba(0,212,255,0.25);
  top: -40px; left: -30px;
  animation: glow-pulse-cyan 4s ease-in-out infinite;
}

.mockup-glow-purple {
  width: 200px; height: 200px;
  background: rgba(155,89,255,0.2);
  bottom: -30px; right: -20px;
  animation: glow-pulse-purple 5s ease-in-out 1s infinite;
}

.mockup-container {
  width: 240px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,212,255,0.25);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-cyan);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: rgba(0,212,255,0.05);
  border-bottom: 1px solid var(--border);
}

.mockup-title-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.mockup-screens {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.mockup-divider { height: 2px; background: var(--border); }

.mockup-screen {
  background: #0a0a14;
  padding: 8px;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.screen-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

.screen-fps {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 500;
}

.fps-top    { background: rgba(0,212,255,0.12); color: var(--accent-cyan); }
.fps-bottom { background: rgba(155,89,255,0.12); color: var(--accent-purple); }

.screen-content {
  position: relative;
  height: 120px;
  background: #070711;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0,212,255,0.08);
}

.screen-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
  z-index: 2;
  pointer-events: none;
}

.screen-ui-bar {
  height: 3px;
  background: var(--bar-color, var(--accent-cyan));
  width: 100%;
  opacity: 0.6;
}

.screen-ui-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ui-block {
  height: 7px;
  border-radius: 3px;
  background: rgba(0,212,255,0.2);
  animation: glow-pulse-cyan 3s ease-in-out infinite;
}

.ui-block.purple { background: rgba(155,89,255,0.2); animation-name: glow-pulse-purple; }
.w45 { width: 45%; }
.w55 { width: 55%; }
.w60 { width: 60%; }
.w70 { width: 70%; }
.w80 { width: 80%; }
.w90 { width: 90%; }

.screen-stream-indicator {
  position: absolute;
  bottom: 6px; right: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  z-index: 3;
}

.purple-indicator { color: var(--accent-purple); }

.stream-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: stream-blink 1.2s ease-in-out infinite;
}

.purple-dot { background: var(--accent-purple); }

/* Control Panel */
.mockup-panel {
  width: 100px;
  background: var(--bg-elevated);
  border: 1px solid rgba(155,89,255,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-purple);
  align-self: center;
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.panel-btn {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 5px 4px;
  border-radius: 3px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  color: var(--accent-cyan);
  cursor: default;
  transition: background 0.2s;
}

.panel-btn.purple {
  background: rgba(155,89,255,0.06);
  border-color: rgba(155,89,255,0.15);
  color: var(--accent-purple);
}

.panel-btn.green {
  background: rgba(40,200,64,0.1);
  border-color: rgba(40,200,64,0.25);
  color: #28c840;
}

.panel-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--text-muted);
  padding-top: 4px;
}

.scale-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.scale-fill {
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 2px;
  animation: scale-fill 2s ease 1.5s both;
}

/* Scroll hint */
.hero-scroll-hint {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 32px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  animation: fade-in 1s ease 1.5s both;
}

.scroll-arrow {
  animation: float 2s ease-in-out infinite;
  color: var(--accent-cyan);
}

/* ── Stats ───────────────────────────────── */
#stats {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Sections shared ─────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.text-dual { color: var(--accent-cyan); }
.text-cpy  { color: var(--accent-purple); }

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Features ────────────────────────────── */
#features {
  padding: 100px 0;
}

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

.feature-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.card-accent-cyan:hover {
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-cyan);
}

.card-accent-purple:hover {
  border-color: var(--border-purple);
  box-shadow: var(--shadow-purple);
}

.feature-icon {
  width: 48px; height: 48px;
  margin-bottom: 18px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg { width: 100%; height: 100%; }

.card-accent-purple .feature-icon { color: var(--accent-purple); }

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── How It Works ────────────────────────── */
#how-it-works {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.step {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.step::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.step:hover::after { transform: scaleX(1); }

.step-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
}

/* ── Install ─────────────────────────────── */
#install {
  padding: 100px 0;
}

.install-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.install-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: -1px;
  z-index: 1;
  position: relative;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-cyan);
  border-bottom: 1px solid var(--bg-elevated);
}

.tab-btn:hover:not(.active) {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
}

.tab-content {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-cyan);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 28px;
  gap: 20px;
  flex-direction: column;
}

.tab-content.active { display: flex; }

.install-step { display: flex; flex-direction: column; gap: 8px; }

.install-step-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.code-block {
  position: relative;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #060610;
  overflow: hidden;
}

.code-block pre {
  padding: 16px 50px 16px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-code);
  overflow-x: auto;
  white-space: pre;
}

.c-comment { color: var(--text-muted); }
.c-cmd     { color: var(--accent-cyan); font-weight: 500; }

.copy-btn {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(0,212,255,0.08);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}

.copy-btn:hover {
  background: var(--accent-cyan-dim);
}

.copy-btn.copied {
  background: rgba(40,200,64,0.12);
  border-color: rgba(40,200,64,0.3);
  color: #28c840;
}

.install-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(155,89,255,0.06);
  border: 1px solid var(--border-purple);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.install-note svg { color: var(--accent-purple); flex-shrink: 0; margin-top: 1px; }
.install-note strong { color: var(--accent-purple); }

/* ── Requirements ────────────────────────── */
#requirements {
  padding: 0 0 80px;
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.req-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.2s;
}

.req-card:hover { border-color: var(--border-cyan); }

.req-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-cyan-dim);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
}

.req-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.req-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Changelog ───────────────────────────── */
#changelog {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.changelog-timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple), transparent);
  opacity: 0.3;
}

.cl-entry {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 20px 0;
  position: relative;
}

.cl-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
  position: relative;
}

.cl-marker::before {
  content: '';
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 12px var(--accent-cyan);
  position: absolute;
  left: 9px;
  top: 22px;
}

.cl-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #050510;
  margin-left: 26px;
  margin-top: 12px;
  white-space: nowrap;
}

.cl-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  padding: 24px;
  transition: border-color 0.2s;
}

.cl-card:hover { border-color: rgba(255,255,255,0.1); }

.cl-entry:first-child .cl-card {
  border-color: rgba(0,212,255,0.2);
  background: rgba(0,212,255,0.03);
}

.cl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cl-version {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

.cl-entry:first-child .cl-version { font-size: 1.4rem; }

.cl-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cl-sections { display: flex; flex-direction: column; gap: 14px; }

.cl-section { display: flex; flex-direction: column; gap: 8px; }

.cl-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.tag-added   { background: rgba(40,200,64,0.12);  color: #28c840; border: 1px solid rgba(40,200,64,0.2); }
.tag-changed { background: rgba(255,180,0,0.1);   color: #ffb400; border: 1px solid rgba(255,180,0,0.2); }
.tag-fixed   { background: rgba(0,212,255,0.1);   color: var(--accent-cyan); border: 1px solid var(--border-cyan); }

.cl-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cl-section li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.cl-section li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ── Reveal animations ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ──────────────────────────────── */
#footer {
  position: relative;
  padding: 70px 0 36px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 200px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-logo {
  display: inline-flex;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.footer-brand a { color: var(--accent-cyan); }
.footer-brand a:hover { text-decoration: underline; }

.footer-license {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-purple);
  color: var(--accent-purple);
  background: var(--accent-purple-dim);
}

.footer-links-group h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-links-group ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-links-group a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-secondary); }
.footer-bottom a:hover { color: var(--accent-cyan); }

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .stat-item     { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2) { border-right: none; }
  .req-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 24px 40px;
    gap: 48px;
  }

  .hero-visual {
    justify-content: center;
    order: -1;
  }

  .mockup-wrapper { transform: scale(0.85); }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(7,7,13,0.97);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { width: 100%; padding: 12px 14px; }

  .features-grid { grid-template-columns: 1fr; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-arrow { display: none; }

  .req-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > :first-child { grid-column: auto; }

  .cl-entry { grid-template-columns: 40px 1fr; gap: 12px; }
  .cl-badge { display: none; }
  .cl-marker::before { left: 15px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .req-grid   { grid-template-columns: 1fr; }
  .hero-title { font-size: 3.2rem; }
  .mockup-wrapper { transform: scale(0.7); }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
