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

:root {
  --dark: #353d47;
  --lime: #a3e635;
  --lime-glow: rgba(163, 230, 53, 0.3);
  --white: #ffffff;
  --off-white: #f4f5f7;
  --gray: #6b7280;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

/* ---- ANIMATED BACKGROUND ---- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(163, 230, 53, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 230, 53, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lime-glow) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  z-index: 0;
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite alternate;
}

.bg-glow-2 {
  left: -200px;
  bottom: -200px;
  top: auto;
  right: auto;
  animation-delay: 4s;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  100% { transform: translate(60px, 40px) scale(1.3); opacity: 0.8; }
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(163, 230, 53, 0.15);
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--dark);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #2a313a; transform: translateY(-1px); }

/* ---- SECTIONS ---- */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  padding-top: 9rem;
  padding-bottom: 2rem;
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-header h1 span { color: var(--lime); }

.page-header p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 1rem auto 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--lime);
  background: rgba(163, 230, 53, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(53, 61, 71, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(53, 61, 71, 0.4);
}

.btn-lime {
  background: var(--lime);
  color: var(--dark);
  box-shadow: 0 4px 20px var(--lime-glow);
}

.btn-lime:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(163, 230, 53, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

/* ---- HERO ---- */
.hero {
  padding-top: 10rem;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: 90vh;
}

.hero-left { flex: 1.2; }
.hero-right { flex: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(163, 230, 53, 0.12);
  border: 1px solid rgba(163, 230, 53, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero h1 span { color: var(--lime); }

.hero p {
  font-size: 1.15rem;
  color: var(--gray);
  margin: 1.5rem 0 2rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- TERMINAL MOCK ---- */
.terminal {
  background: #1a1e24;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(163, 230, 53, 0.1);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  transform: perspective(800px) rotateY(-3deg);
  transition: transform 0.5s;
  position: relative;
}

.terminal:hover {
  transform: perspective(800px) rotateY(0deg);
}

.term-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  background: #252b33;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.term-dot.red { background: #ff5f56; }
.term-dot.yellow { background: #ffbd2e; }
.term-dot.green { background: #27c93f; }

.term-title {
  margin-left: auto;
  color: #888;
  font-size: 0.7rem;
}

.term-body {
  padding: 1.2rem;
  min-height: 240px;
}

.term-line {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeSlide 0.4s forwards;
}

.term-line:nth-child(1) { animation-delay: 0.5s; }
.term-line:nth-child(2) { animation-delay: 1.0s; }
.term-line:nth-child(3) { animation-delay: 1.5s; }
.term-line:nth-child(4) { animation-delay: 2.0s; }
.term-line:nth-child(5) { animation-delay: 2.5s; }
.term-line:nth-child(6) { animation-delay: 3.0s; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.term-prompt { color: var(--lime); }
.term-cmd { color: #e4e4e4; }
.term-output { color: #a0a4a8; }
.term-bug { color: #ff6b6b; }
.term-fix { color: var(--lime); }
.term-diff { color: #ffd93d; }

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--lime);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

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

/* ---- GUI WINDOW MOCK ---- */
.gui-window {
  background: #1a1e24;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(163, 230, 53, 0.1);
  overflow: hidden;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.8rem;
  transform: perspective(800px) rotateY(-3deg);
  transition: transform 0.5s;
  position: relative;
}

.gui-window:hover {
  transform: perspective(800px) rotateY(0deg);
}

.gui-header {
  background: #252b33;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gui-title-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
}

.gui-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.gui-dot.red { background: #ff5f56; }
.gui-dot.yellow { background: #ffbd2e; }
.gui-dot.green { background: #27c93f; }

.gui-title {
  margin-left: auto;
  color: #888;
  font-size: 0.75rem;
  font-weight: 500;
}

.gui-toolbar {
  display: flex;
  gap: 0;
  padding: 0 0.8rem;
  background: #1e232b;
}

.gui-toolbar-btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  color: #888;
  cursor: default;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.gui-toolbar-btn.active {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.gui-body {
  display: flex;
  min-height: 220px;
}

.gui-sidebar {
  width: 140px;
  background: #161a20;
  padding: 0.8rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.gui-folder {
  color: #ffd93d;
  font-size: 0.75rem;
  padding: 0.25rem 0;
  font-weight: 500;
}

.gui-folder-sub {
  padding-left: 0.6rem;
}

.gui-file {
  color: #a0a4a8;
  font-size: 0.72rem;
  padding: 0.2rem 0 0.2rem 0.6rem;
}

.gui-main {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

.gui-log-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeSlide 0.4s forwards;
  font-size: 0.8rem;
  color: #e4e4e4;
}

.gui-log-line:nth-child(1) { animation-delay: 0.5s; }
.gui-log-line:nth-child(2) { animation-delay: 1.0s; }
.gui-log-line:nth-child(3) { animation-delay: 1.5s; }
.gui-log-line:nth-child(4) { animation-delay: 2.0s; }
.gui-log-line:nth-child(5) { animation-delay: 2.5s; }

.gui-icon { font-size: 0.9rem; }
.scan-icon { }
.bug-icon { }
.fix-icon { }
.diff-icon { }

.gui-bug { color: #ff6b6b; }
.gui-code {
  background: rgba(163, 230, 53, 0.12);
  color: var(--lime);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.gui-statusbar {
  background: #161a20;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  color: #666;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 1rem;
}

/* ---- STATS ---- */
.stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 4rem 3rem;
  background: var(--dark);
  color: var(--white);
  border-radius: 20px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--lime);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.3rem;
}

/* ---- FEATURES (GRID) ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--off-white);
  border: 1px solid rgba(53, 61, 71, 0.06);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(53, 61, 71, 0.08); }

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(163, 230, 53, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; }

/* ---- MODES ---- */
.mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.mode-card {
  background: var(--off-white);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  border: 1px solid rgba(53, 61, 71, 0.06);
  transition: all 0.35s;
  text-align: center;
}

.mode-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(53, 61, 71, 0.08); }

.mode-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.mode-card h3 { font-weight: 700; margin-bottom: 0.3rem; }
.mode-card p { color: var(--gray); font-size: 0.85rem; }

.mode-key {
  display: inline-block;
  margin-top: 1rem;
  background: var(--dark);
  color: var(--white);
  padding: 0.25rem 0.8rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

/* ---- STEPS ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -1.5rem;
  top: 1.5rem;
  font-size: 1.8rem;
  color: var(--lime);
  font-weight: 700;
}

.step-num {
  width: 52px;
  height: 52px;
  background: var(--dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 1.2rem;
  position: relative;
}

.step-num::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--lime);
  opacity: 0.3;
}

.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { color: var(--gray); font-size: 0.85rem; }

/* ---- DIFF ---- */
.diff-box {
  background: #1a1e24;
  border-radius: 12px;
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  margin-top: 2rem;
  overflow-x: auto;
}

.diff-box .diff-header {
  color: #888;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.diff-line { white-space: pre; }
.diff-add { color: var(--lime); }
.diff-remove { color: #ff6b6b; }
.diff-context { color: #a0a4a8; }

/* ---- CTA SECTION ---- */
.cta-section {
  text-align: center;
  padding: 6rem 3rem;
}

.cta-section h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.cta-section h2 span { color: var(--lime); }

.cta-section p {
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---- DOWNLOAD PAGE ---- */
.download-hero {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.download-card {
  background: var(--off-white);
  border: 1px solid rgba(53, 61, 71, 0.06);
  border-radius: 24px;
  padding: 3rem 3.5rem;
  text-align: center;
  max-width: 520px;
  width: 100%;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--lime);
}

.download-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(53, 61, 71, 0.1);
}

.dl-version {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.dl-sub {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.dl-meta {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.dl-badge {
  display: inline-block;
  background: rgba(53, 61, 71, 0.08);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.dl-badge-green {
  background: rgba(163, 230, 53, 0.2);
  color: #4a7c0e;
}

.dl-btn {
  font-size: 1.2rem;
  padding: 1rem 3.5rem;
  border-radius: 14px;
  width: 100%;
  justify-content: center;
}

.dl-note {
  color: var(--gray);
  font-size: 0.8rem;
  margin-top: 0.8rem;
}

[data-theme="dark"] .download-card {
  background: #1a1e24;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .download-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dl-version {
  color: #e4e4e4;
}

[data-theme="dark"] .dl-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e4;
}

[data-theme="dark"] .dl-badge-green {
  background: rgba(163, 230, 53, 0.15);
  color: var(--lime);
}

/* ---- FEATURE ICON (text-based) ---- */
.feature-icon-feat {
  width: 48px;
  height: 48px;
  background: var(--dark);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

[data-theme="dark"] .feature-icon-feat {
  background: #e4e4e4;
  color: #0f1117;
}

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 2.5rem 3rem;
  border-top: 1px solid rgba(53, 61, 71, 0.06);
  color: var(--gray);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

footer a { color: var(--dark); font-weight: 600; text-decoration: none; }
footer a:hover { color: var(--lime); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: 8rem; gap: 2rem; }
  .hero h1 { font-size: 2.8rem; }
  .hero-right { width: 100%; }
  .mode-cards { grid-template-columns: 1fr; }
  .steps .step:not(:last-child)::after { display: none; }
  .stats { flex-direction: column; gap: 2rem; padding: 3rem 2rem; }
  nav { padding: 1rem 1.5rem; }
  section { padding: 4rem 1.5rem; }
  .page-header { padding-top: 7rem; }
  .page-header h1 { font-size: 2.5rem; }
  .nav-links a:not(.nav-cta):not(.theme-toggle) { display: none; }
  .theme-toggle { margin-left: auto; }
}

/* =============================================
   DARK MODE
   ============================================= */
[data-theme="dark"] body {
  background: #0f1117;
  color: #e4e4e4;
}

[data-theme="dark"] .bg-grid {
  background-image:
    linear-gradient(rgba(163, 230, 53, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 230, 53, 0.06) 1px, transparent 1px);
}

[data-theme="dark"] nav {
  background: rgba(15, 17, 23, 0.85);
  border-bottom-color: rgba(163, 230, 53, 0.1);
}

[data-theme="dark"] .logo,
[data-theme="dark"] .nav-links a {
  color: #e4e4e4;
}

[data-theme="dark"] .nav-cta {
  background: var(--lime);
  color: #0f1117 !important;
}
[data-theme="dark"] .nav-cta:hover {
  background: #8bc34a;
}

[data-theme="dark"] .hero-badge {
  color: #e4e4e4;
}

[data-theme="dark"] .btn-primary {
  background: #e4e4e4;
  color: #0f1117;
  box-shadow: 0 4px 20px rgba(228, 228, 228, 0.15);
}
[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(228, 228, 228, 0.25);
}

[data-theme="dark"] .btn-outline {
  border-color: #e4e4e4;
  color: #e4e4e4;
}
[data-theme="dark"] .btn-outline:hover {
  background: #e4e4e4;
  color: #0f1117;
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .mode-card,
[data-theme="dark"] .command-card {
  background: #1a1e24;
  border-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .mode-card:hover,
[data-theme="dark"] .command-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .mode-card h3 {
  color: #e4e4e4;
}
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .mode-card p,
[data-theme="dark"] .command-card p {
  color: #9ca3af;
}

[data-theme="dark"] .stats {
  background: #1a1e24;
}

[data-theme="dark"] .mode-key {
  background: #e4e4e4;
  color: #0f1117;
}

[data-theme="dark"] .step-num {
  background: #e4e4e4;
  color: #0f1117;
}
[data-theme="dark"] .step-num::after {
  border-color: var(--lime);
}

[data-theme="dark"] .step h3 {
  color: #e4e4e4;
}
[data-theme="dark"] .step p {
  color: #9ca3af;
}

[data-theme="dark"] .command-card code {
  background: #e4e4e4;
  color: #0f1117;
}

[data-theme="dark"] footer {
  border-top-color: rgba(255, 255, 255, 0.06);
  color: #9ca3af;
}
[data-theme="dark"] footer a {
  color: #e4e4e4;
}
[data-theme="dark"] footer a:hover {
  color: var(--lime);
}

[data-theme="dark"] .diff-box,
[data-theme="dark"] .terminal,
[data-theme="dark"] .gui-window,
[data-theme="dark"] .install-box {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .section-tag {
  background: rgba(163, 230, 53, 0.1);
}

[data-theme="dark"] .cta-section p,
[data-theme="dark"] .page-header p,
[data-theme="dark"] .hero p {
  color: #9ca3af;
}

/* =============================================
   THEME TOGGLE
   ============================================= */
.theme-toggle {
  background: none;
  border: 2px solid var(--dark);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s;
  color: var(--dark);
  position: relative;
  overflow: hidden;
  line-height: 1;
}
.theme-toggle:hover {
  background: var(--dark);
  color: var(--white);
  transform: rotate(30deg);
}
[data-theme="dark"] .theme-toggle {
  border-color: #e4e4e4;
  color: #e4e4e4;
}
[data-theme="dark"] .theme-toggle:hover {
  background: #e4e4e4;
  color: #0f1117;
}
.theme-toggle .icon {
  transition: transform 0.4s, opacity 0.4s;
  position: absolute;
}
.theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}
[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}
[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.fade-up-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-up-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-up-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-up-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-up-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.fade-up-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.fade-up-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }
.fade-up-stagger.visible > *:nth-child(7) { transition-delay: 0.6s; }
.fade-up-stagger.visible > *:nth-child(8) { transition-delay: 0.7s; }
.fade-up-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   TERMINAL SCANLINE
   ============================================= */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
.terminal::after,
.gui-window::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 0%, rgba(163, 230, 53, 0.03) 50%, transparent 100%);
  pointer-events: none;
  animation: scanline 4s linear infinite;
  z-index: 1;
}

/* =============================================
   GLOW PULSE ON CARDS
   ============================================= */
@keyframes cardGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(163, 230, 53, 0); }
  50% { box-shadow: 0 0 30px rgba(163, 230, 53, 0.1); }
}
.feature-card:hover {
  animation: cardGlow 2s ease-in-out infinite;
}

/* =============================================
   FIRE / EMBER PARTICLES
   ============================================= */
.fire-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ember {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 4px;
  background: var(--lime);
  border-radius: 50%;
  opacity: 0;
  animation: emberRise linear infinite;
}

@keyframes emberRise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0);
  }
}


