:root {
  --bg-0: #080c14;
  --bg-1: #0f1a28;
  --bg-card: rgba(13, 22, 36, 0.95);
  --bg-holo: linear-gradient(135deg, rgba(124, 255, 107, 0.18), rgba(97, 232, 255, 0.12) 40%, rgba(230, 0, 122, 0.12));
  --surface-soft: rgba(20, 32, 46, 0.9);
  --text: #eaf2ff;
  --muted: #a8b9d4;
  --accent: #8df574;
  --cyan: #76e9ff;
  --pink: #f36edc;
  --border: #234065;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font-display: "Chakra Petch", "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Fira Code", monospace;
}

body.theme-light {
  --bg-0: #f2f7ff;
  --bg-1: #e6efff;
  --bg-card: rgba(255, 255, 255, 0.98);
  --bg-card-solid: #ffffff;
  --bg-holo: linear-gradient(135deg, rgba(0, 122, 204, 0.08), rgba(42, 150, 104, 0.06));
  --surface-soft: rgba(255, 255, 255, 0.95);
  --text: #0a1628;
  --muted: #3d4a5c;
  --accent: #1a8a5c;
  --cyan: #0066aa;
  --pink: #9920cc;
  --border: #c4d6f0;
  --shadow: 0 8px 32px rgba(18, 42, 76, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at 22% 18%, rgba(124, 255, 107, 0.08), transparent 22%),
              radial-gradient(circle at 78% 10%, rgba(97, 231, 255, 0.1), transparent 28%),
              linear-gradient(135deg, var(--bg-0), var(--bg-1) 60%, #0b1220);
  overflow-x: hidden;
}

body.theme-light {
  background: radial-gradient(circle at 22% 18%, rgba(0, 122, 204, 0.06), transparent 28%),
              radial-gradient(circle at 78% 10%, rgba(42, 150, 104, 0.05), transparent 32%),
              linear-gradient(145deg, var(--bg-0), var(--bg-1) 50%, #dce8f8);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.2;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

body.theme-light .bg-grid {
  background-image: linear-gradient(rgba(0, 40, 80, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 40, 80, 0.03) 1px, transparent 1px);
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.scanline {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  mix-blend-mode: soft-light;
  opacity: 0.15;
  pointer-events: none;
  animation: flicker 3s infinite;
  z-index: 0;
}

body.theme-light .scanline {
  display: none;
}

@keyframes flicker {
  0%, 100% { opacity: 0.15; }
  45% { opacity: 0.12; }
  50% { opacity: 0.2; }
  60% { opacity: 0.1; }
}

main {
  position: relative;
  z-index: 1;
  padding: 48px min(6vw, 64px) 96px;
  max-width: 1200px;
  margin: 0 auto;
}

.front-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.front-hero__banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.front-hero__banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 480px;
}

.front-hero__content {
  position: relative;
  padding: 32px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-text {
  max-width: 720px;
}

.front-hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  margin: 8px 0 14px;
  line-height: 1.15;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.front-hero__content .lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 600px;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.chip-soft {
  background: rgba(97, 231, 255, 0.1);
  border-color: rgba(97, 231, 255, 0.3);
}

body.theme-light .chip-soft {
  background: rgba(0, 122, 204, 0.08);
  border-color: rgba(0, 122, 204, 0.25);
}

.command-pill {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, rgba(141, 245, 116, 0.15), rgba(118, 233, 255, 0.1));
  box-shadow: 0 8px 32px rgba(141, 245, 116, 0.12);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
}

body.theme-light .command-pill {
  background: linear-gradient(135deg, rgba(42, 150, 104, 0.12), rgba(0, 122, 204, 0.08));
  border-color: var(--accent);
  color: var(--accent);
}

.scroll-hint {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  right: 20px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 180ms ease;
}

.scroll-hint:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.subnav {
  position: sticky;
  top: 70px;
  z-index: 9;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

body.theme-light .subnav {
  background: rgba(255, 255, 255, 0.95);
}

.subnav-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 150ms ease;
}

.subnav-chip:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
  background: var(--surface-soft);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px min(6vw, 64px);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

body.theme-light .topbar {
  background: rgba(255, 255, 255, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.brand-mark {
  color: var(--cyan);
}

.brand-name {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav .chip { padding: 8px 14px; }

.theme-toggle {
  margin-left: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: transform 120ms ease, border-color 120ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: center;
  margin-top: 28px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(20, 32, 46, 0.9), rgba(12, 24, 38, 0.82));
  box-shadow: var(--shadow);
}

.hero__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  margin: 12px 0;
  letter-spacing: 0.4px;
}

.hero__copy .lede {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cyan);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn-primary {
  background: linear-gradient(120deg, rgba(124, 255, 107, 0.18), rgba(97, 231, 255, 0.18));
  border-color: rgba(124, 255, 107, 0.5);
  box-shadow: 0 10px 30px rgba(124, 255, 107, 0.15);
}

.btn-ghost {
  color: var(--cyan);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.badge {
  background: rgba(124, 255, 107, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.hero__panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0c1524;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #0a111d;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
}

.panel-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

.panel-header .dot:nth-child(2) { background: #ffc542; }
.panel-header .dot:nth-child(3) { background: #ff5f5f; }

.panel-title {
  color: var(--muted);
  margin-left: auto;
}

.terminal {
  margin: 0;
  padding: 18px;
  font-family: var(--font-mono);
  color: #d1e7ff;
  background: radial-gradient(circle at 20% 20%, rgba(124, 255, 107, 0.12), transparent 40%), #0c1524;
  line-height: 1.65;
  font-size: 14px;
}

.panel-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 20px;
  margin-top: 38px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

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

.matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.matrix-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(10, 17, 28, 0.85);
  box-shadow: var(--shadow);
}

.matrix-card h3 { margin: 0 0 4px; font-family: var(--font-display); }
.matrix-card p { margin: 0; color: var(--muted); line-height: 1.45; }

.logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(97, 231, 255, 0.12);
}

.bubble.arch { background: radial-gradient(circle at 30% 30%, #8be9fd, #1d7cf5); }
.bubble.ubuntu { background: radial-gradient(circle at 40% 30%, #e95420, #b04116); }
.bubble.fedora { background: radial-gradient(circle at 50% 40%, #51a2f3, #304bff); }
.bubble.debian { background: radial-gradient(circle at 40% 40%, #d70a53, #6b1235); }
.bubble.nix { background: radial-gradient(circle at 30% 30%, #7dd3ff, #2f6fab); }
.bubble.manjaro { background: radial-gradient(circle at 30% 30%, #2ecc71, #0c6c3d); }

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tech-badge {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
  box-shadow: var(--shadow);
}

.tech-badge.wine { background: linear-gradient(135deg, rgba(233, 80, 80, 0.16), rgba(92, 14, 14, 0.3)); }
.tech-badge.dxvk { background: linear-gradient(135deg, rgba(124, 255, 107, 0.16), rgba(14, 92, 33, 0.3)); }
.tech-badge.vkd3d { background: linear-gradient(135deg, rgba(97, 231, 255, 0.18), rgba(9, 58, 85, 0.28)); }
.tech-badge.python { background: linear-gradient(135deg, rgba(255, 203, 72, 0.22), rgba(29, 39, 82, 0.28)); }
.tech-badge.cli { background: linear-gradient(135deg, rgba(180, 180, 180, 0.18), rgba(40, 40, 40, 0.32)); }

.infographic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: rgba(11, 18, 30, 0.9);
  box-shadow: var(--shadow);
}

.step h3 { margin: 0 0 4px; font-family: var(--font-display); }
.step p { margin: 0 0 8px; color: var(--muted); }

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 255, 107, 0.2), rgba(97, 231, 255, 0.18));
  border: 1px solid var(--border);
  font-weight: 700;
}

.mini-code {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0b1323;
  padding: 12px 88px 12px 12px;
  font-family: var(--font-mono);
  color: #e8f4ff;
  overflow: hidden;
}

.copy-btn.tiny {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(97, 231, 255, 0.14);
  border: 1px solid var(--cyan);
  border-radius: 10px;
}

.mini-code code {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.card.holo {
  background: var(--bg-holo);
  border-color: rgba(97, 231, 255, 0.45);
}

.card-label {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.card h2 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.code-block {
  position: relative;
  margin-top: 12px;
}

.code-block pre {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: #0b1323;
  border: 1px solid var(--border);
  color: #e8f4ff;
  font-family: var(--font-mono);
  overflow-x: auto;
  line-height: 1.6;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(97, 231, 255, 0.12);
  border: 1px solid var(--cyan);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: transform 120ms ease;
}

.copy-btn:hover { transform: translateY(-2px); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  background: rgba(5, 9, 14, 0.55);
}

.feature-list span {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.feature-list small {
  color: var(--muted);
}

.section {
  margin-top: 54px;
}

.section-header h2 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  letter-spacing: 0.3px;
}

.section-header .muted {
  color: var(--muted);
}

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

.profile-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(11, 17, 29, 0.9);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.profile-card.hot {
  border-color: rgba(124, 255, 107, 0.6);
  box-shadow: 0 16px 48px rgba(124, 255, 107, 0.12);
}

.profile-card h3 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
}

.profile-card p {
  color: var(--muted);
  line-height: 1.5;
}

.profile-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--cyan);
  background: rgba(97, 231, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.flow-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

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

.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  background: rgba(8, 14, 24, 0.85);
  box-shadow: var(--shadow);
}

.stat-num {
  display: block;
  font-size: 24px;
  font-family: var(--font-display);
  color: var(--cyan);
}

.stat-label {
  color: var(--muted);
  letter-spacing: 0.4px;
}

.media {
  margin-top: 54px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.media-grid img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: cover;
  min-height: 200px;
}

.faq {
  margin-top: 54px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(8, 14, 24, 0.85);
}

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

.trading-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(97, 231, 255, 0.08), rgba(10, 18, 30, 0.9));
  box-shadow: var(--shadow);
}

.trading-card .card-top {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 8px;
}

.trading-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.qa + .qa { margin-top: 14px; }

.qa h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
}

.qa p { color: var(--muted); line-height: 1.55; }

.footer {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  padding: 20px min(6vw, 64px) 32px;
  border-top: 1px solid var(--border);
  background: rgba(5, 9, 14, 0.8);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer a {
  color: var(--text);
  text-decoration: none;
  transition: color 120ms ease;
}

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

.muted { color: var(--muted); }

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */
body.theme-light .matrix-card {
  background: var(--bg-card);
  border-color: var(--border);
}

body.theme-light .matrix-card h3 {
  color: var(--text);
}

body.theme-light .profile-card {
  background: var(--bg-card);
}

body.theme-light .profile-card.hot {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(26, 138, 92, 0.12);
}

body.theme-light .step {
  background: var(--bg-card);
}

body.theme-light .step-num {
  background: linear-gradient(135deg, rgba(26, 138, 92, 0.15), rgba(0, 102, 170, 0.12));
}

body.theme-light .stat {
  background: var(--bg-card);
}

body.theme-light .faq {
  background: var(--bg-card);
}

body.theme-light .trading-card {
  background: var(--bg-card);
}

body.theme-light .feature-list li {
  background: var(--bg-card);
}

body.theme-light .pill {
  color: var(--cyan);
  background: rgba(0, 102, 170, 0.08);
  border-color: rgba(0, 102, 170, 0.25);
}

body.theme-light .tech-badge {
  background: var(--bg-card);
  border-color: var(--border);
}

body.theme-light .tech-badge.wine {
  background: linear-gradient(135deg, rgba(233, 80, 80, 0.12), rgba(255, 255, 255, 0.9));
}

body.theme-light .tech-badge.dxvk {
  background: linear-gradient(135deg, rgba(26, 138, 92, 0.12), rgba(255, 255, 255, 0.9));
}

body.theme-light .tech-badge.vkd3d {
  background: linear-gradient(135deg, rgba(0, 102, 170, 0.12), rgba(255, 255, 255, 0.9));
}

body.theme-light .tech-badge.python {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.18), rgba(255, 255, 255, 0.9));
}

body.theme-light .tech-badge.cli {
  background: linear-gradient(135deg, rgba(100, 100, 100, 0.12), rgba(255, 255, 255, 0.9));
}

body.theme-light .hero {
  background: var(--bg-card);
  border-color: var(--border);
}

body.theme-light .hero__panel {
  background: #1a2332;
  border-color: var(--border);
}

body.theme-light .panel-header {
  background: #141c28;
}

body.theme-light .terminal {
  background: radial-gradient(circle at 20% 20%, rgba(26, 138, 92, 0.08), transparent 40%), #1a2332;
}

body.theme-light .badge {
  background: rgba(26, 138, 92, 0.08);
  border-color: rgba(26, 138, 92, 0.2);
}

body.theme-light .card.holo {
  background: var(--bg-holo);
  border-color: rgba(0, 102, 170, 0.3);
}

body.theme-light .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.theme-light .eyebrow {
  color: var(--cyan);
}

body.theme-light .logo {
  background: rgba(0, 102, 170, 0.1);
  border-color: var(--border);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-card {
  transition-delay: var(--stagger-delay, 0s);
}

/* ============================================
   ACTIVE NAVIGATION
   ============================================ */
.nav a.active,
.subnav-chip.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(141, 245, 116, 0.1);
}

body.theme-light .nav a.active,
body.theme-light .subnav-chip.active {
  color: var(--accent);
  background: rgba(42, 150, 104, 0.1);
}

/* ============================================
   3D CARD HOVER EFFECTS
   ============================================ */
.card,
.profile-card,
.trading-card,
.matrix-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.card:hover,
.profile-card:hover,
.trading-card:hover,
.matrix-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35),
              0 0 40px rgba(118, 233, 255, 0.08);
  border-color: var(--cyan);
}

body.theme-light .card:hover,
body.theme-light .profile-card:hover,
body.theme-light .trading-card:hover,
body.theme-light .matrix-card:hover {
  box-shadow: 0 20px 50px rgba(18, 42, 76, 0.18),
              0 0 30px rgba(0, 122, 204, 0.06);
}

/* ============================================
   BUTTON RIPPLE EFFECT
   ============================================ */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-effect 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn.copied {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ============================================
   CURSOR GLOW EFFECT
   ============================================ */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 233, 255, 0.08), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.theme-light .cursor-glow {
  background: radial-gradient(circle, rgba(0, 122, 204, 0.05), transparent 70%);
}

/* ============================================
   PARALLAX HERO BANNER
   ============================================ */
.front-hero__banner img {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ============================================
   COMMAND PILL TYPING CURSOR
   ============================================ */
.command-pill span {
  display: inline-block;
  border-right: 2px solid var(--accent);
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  50% { border-color: transparent; }
}

/* ============================================
   GLOW EFFECTS
   ============================================ */
.btn-primary {
  position: relative;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 0.4;
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.section::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ============================================
   ENHANCED CHIPS
   ============================================ */
.chip-soft {
  transition: all 0.2s ease;
}

.chip-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(97, 231, 255, 0.15);
  border-color: var(--cyan);
}

/* ============================================
   PROFILE CARD HOT GLOW
   ============================================ */
.profile-card.hot::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  opacity: 0.15;
  z-index: -1;
  filter: blur(20px);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.02); }
}

/* ============================================
   TECH BADGES HOVER
   ============================================ */
.tech-badge {
  transition: all 0.25s ease;
  cursor: default;
}

.tech-badge:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* ============================================
   FOOTER ENHANCEMENT
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  padding: 24px min(6vw, 64px) 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

body.theme-light .footer {
  background: rgba(255, 255, 255, 0.95);
}

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

.footer a {
  color: var(--text);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.footer a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 720px) {
  .topbar { position: sticky; }
  .nav { gap: 12px; font-size: 13px; }
  .hero { padding: 24px; }
  .front-hero__content { padding: 24px; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}
