/* ============================================================
   ZONIK PROYECTOS — Stylesheet principal
   Glassmorphism + Outline Gradient + Light/Dark mode
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties (Tokens) ──────────────────────── */
:root {
  /* Gradient palette */
  --grad-a: #7c3aed;
  --grad-b: #06b6d4;
  --grad-c: #f59e0b;
  --gradient: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  --gradient2: linear-gradient(135deg, #000000, #68617e);
  --gradient-warm: linear-gradient(135deg, var(--grad-a), #ec4899);

  /* Fonts */
  --font-main: 'Inter', sans-serif;
  --font-brand: 'Space Grotesk', sans-serif;

  /* Timing */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: 0.3s;

  /* Sizes */
  --nav-h: 72px;
  --nav-top: 14px;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-xl: 24px;
  
  /* Console / Terminal */
  --console-bg: #0a0a0f;
}

/* ── DARK MODE tokens (default) ───────────────────────────── */
:root, [data-theme="dark"] {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a26;
  --surface: rgba(255,255,255,0.05);
  --surface-hover: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text: #f0f0f8;
  --text-muted: #8888aa;
  --text-faint: #44445a;
  --glass-bg: rgba(10,10,20,0.6);
  --glass-border: rgba(255,255,255,0.10);
  --shadow: 0 4px 6px rgba(0,0,0,0.3), 0 10px 15px rgba(0,0,0,0.4), 0 20px 25px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(124,58,237,0.25);
  --nav-bg: rgba(10,10,20,0.40);
  --dropdown-bg: rgba(15,15,28,0.95);
  --tag-bg: rgba(124,58,237,0.15);
  --tag-color: #a78bfa;
  --status-stable: #10b981;
  --status-beta: #f59e0b;
  --status-dev: #ef4444;
  --card-border: rgba(255,255,255,0.07);
  --input-bg: rgba(255,255,255,0.05);
  --scrollbar-track: rgba(255,255,255,0.03);
  --scrollbar-thumb: rgba(124,58,237,0.4);
}

/* ── LIGHT MODE tokens ────────────────────────────────────── */
[data-theme="light"] {
  --bg: #f0f2ff;
  --bg2: #e8eaf8;
  --bg3: #dde0f5;
  --surface: rgba(255,255,255,0.6);
  --surface-hover: rgba(255,255,255,0.85);
  --border: rgba(0,0,0,0.07);
  --border-hover: rgba(124,58,237,0.3);
  --text: #0f0f1a;
  --text-muted: #555577;
  --text-faint: #aaaacc;
  --glass-bg: rgba(255,255,255,0.55);
  --glass-border: rgba(255,255,255,0.7);
  --shadow: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.05), 0 20px 25px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(124,58,237,0.12);
  --nav-bg: rgba(240,242,255,0.60);
  --dropdown-bg: rgba(248,248,255,0.97);
  --tag-bg: rgba(124,58,237,0.10);
  --tag-color: #7c3aed;
  --status-stable: #059669;
  --status-beta: #d97706;
  --status-dev: #dc2626;
  --card-border: rgba(124,58,237,0.12);
  --input-bg: rgba(255,255,255,0.7);
  --scrollbar-track: rgba(0,0,0,0.03);
  --scrollbar-thumb: rgba(124,58,237,0.3);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--surface);
  background: var(--bg);
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 99px; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  transition: color var(--dur) var(--ease);
}


a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
.hidden { display: none !important; }

/* ── Gradient text utility ────────────────────────────────── */
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Outline gradient utility ─────────────────────────────── */
.outline-grad {
  position: relative;
  border-radius: var(--radius);
}
.outline-grad::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: var(--gradient);
  z-index: -1;
  opacity: 0.7;
  transition: opacity var(--dur) var(--ease);
}
.outline-grad:hover::before { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: var(--nav-top);
  left: 16px;
  right: 16px;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.navbar.scrolled {
  background: var(--nav-bg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 0 1px var(--glass-border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  cursor: pointer;
}
.nav-brand .brand-icon {
  width: 36px; height: 36px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-code-icon {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #c084fc, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: codeGlow 2.5s ease-in-out infinite alternate;
  user-select: none;
}
@keyframes codeGlow {
  from { filter: drop-shadow(0 0 3px rgba(168,85,247,0.9)) drop-shadow(0 0 6px rgba(168,85,247,0.5)); }
  to   { filter: drop-shadow(0 0 8px rgba(103,232,249,0.9)) drop-shadow(0 0 16px rgba(103,232,249,0.4)); }
}
.nav-brand .brand-main { color: var(--text); }
.nav-brand .brand-sub {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Center Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); }

.nav-link svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--dur) var(--ease); }

/* Dropdown trigger */
.nav-item { position: relative; }
.nav-item:hover > .nav-link svg { transform: rotate(180deg); }
.nav-item:hover > .nav-link { color: var(--text); background: var(--surface); }

/* Invisible bridge — prevents hover gap from closing dropdown */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 14px;
  background: transparent;
  z-index: 99;
}

/* Dropdown L1 */
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 190px;
  background: var(--dropdown-bg);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.04);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  pointer-events: none;
  z-index: 100;
  overflow: visible;
  padding: 4px;
}
.nav-item:hover > .dropdown,
.nav-item.nav-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  margin: 4px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.dropdown-item:hover { color: var(--text); background: var(--surface-hover); }
.dropdown-item .dd-icon { font-size: 1em; }
.dropdown-item .dd-arrow { opacity: 0.5; flex-shrink: 0; }

/* Dropdown L2 (sub-menu) */
.dropdown-has-sub { position: relative; }
/* Bridge to L2 submenu — prevents gap from closing it */
.dropdown-has-sub::after {
  content: '';
  position: absolute;
  top: 0;
  right: -8px;
  width: 8px;
  height: 100%;
  background: transparent;
  z-index: 199;
}
.dropdown-sub {
  position: absolute;
  top: -4px;
  left: calc(100% + 4px);
  min-width: 210px;
  background: var(--dropdown-bg);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.04);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  transform: translateX(-4px);
  pointer-events: none;
  z-index: 200;
  padding: 4px;
}
.dropdown-has-sub:hover > .dropdown-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: all;
}
.dropdown-sub .dropdown-item { color: var(--text-muted); }
.dropdown-sub .dropdown-item:hover { color: var(--text); background: var(--surface-hover); }

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

/* Right controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Theme toggle — iOS pill slider */
.theme-toggle {
  width: 56px; height: 28px;
  border-radius: 99px;
  background: var(--nav-bg);
  border: 1px solid var(--glass-border);
  position: relative;
  padding: 0;
  display: flex; align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
/* Track slightly tinted in dark mode */
[data-theme="dark"] .theme-toggle {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.3);
}
/* The sliding thumb */
.theme-toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), background 0.3s ease;
  z-index: 2;
  backdrop-filter: blur(4px);
}
[data-theme="dark"] .theme-toggle::after {
  transform: translateX(28px);
  background: rgba(124,58,237,0.5);
  box-shadow: 0 1px 8px rgba(124,58,237,0.4);
}
/* Sun + Moon icon spans */
.theme-toggle .toggle-sun,
.theme-toggle .toggle-moon {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  transition: opacity 0.25s ease, transform 0.3s ease;
  z-index: 3;
  pointer-events: none;
}
.theme-toggle .toggle-sun  { left: 5px; }
.theme-toggle .toggle-moon { right: 5px; }
/* Light mode: sun = amber, moon = medium gray */
[data-theme="light"] .theme-toggle .toggle-sun  { color: #92400e; opacity: 1;  transform: scale(1); }
[data-theme="light"] .theme-toggle .toggle-moon { color: #6b7280; opacity: 1;  transform: scale(1); }
/* Dark mode: sun = light gray, moon = white */
[data-theme="dark"]  .theme-toggle .toggle-sun  { color: #fcff66; opacity: 0.5; transform: scale(0.85); }
[data-theme="dark"]  .theme-toggle .toggle-moon { color: #ffffff; opacity: 1;  transform: scale(1); }
.theme-toggle:hover { border-color: var(--border-hover); }
.theme-toggle:active::after { transform: translateX(2px) scaleX(1.15); }
[data-theme="dark"] .theme-toggle:active::after { transform: translateX(26px) scaleX(1.15); }

/* Mobile menu toggle */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.nav-burger span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 99px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL & HARDWARE ACCELERATION
═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════
═══════════════════════════════════════════════════════════ */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--orb-blur, 110px));
  opacity: var(--orb-opacity, 0.10);
  animation: orbFloat var(--orb-float-dur, 20s) ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px; height: 600px;
  background: var(--orb-color-a, var(--grad-a));
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: var(--orb-color-b, var(--grad-b));
  bottom: -150px; right: -100px;
  animation-delay: -7s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: var(--orb-color-c, #a855f7);
  top: 40%; left: 40%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.05); }
  66%  { transform: translate(-20px, 20px) scale(0.97); }
  100% { transform: translate(30px, 10px) scale(1.03); }
}

/* ═══════════════════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════════════════ */
main { position: relative; z-index: 1; }

section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-brand);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
#home {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + var(--nav-top) + 24px);
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-text {}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  animation: eyebrowPulse 3s ease-in-out infinite;
}
@keyframes eyebrowPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); border-color: var(--border); }
  40%     { box-shadow: 0 0 0 4px rgba(124,58,237,0.12); border-color: rgba(124,58,237,0.35); }
  70%     { box-shadow: 0 0 0 8px rgba(124,58,237,0); border-color: var(--border); }
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--gradient);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse-dot 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(124,58,237,0.6);
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px rgba(124,58,237,0.6); }
  50%      { transform: scale(1.6); opacity: 0.5; box-shadow: 0 0 12px rgba(6,182,212,0.8); }
}

.hero-greeting {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.hero-name {
  font-family: var(--font-brand);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-role-wrap {
  font-family: var(--font-brand);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
  height: 2em;
  overflow: hidden;
}
.hero-role {
  display: block;
  animation: roleSlide 9s ease-in-out infinite;
}
@keyframes roleSlide {
  0%,25%    { transform: translateY(0); }
  33%,58%   { transform: translateY(-100%); }
  66%,91%   { transform: translateY(-200%); }
  100%      { transform: translateY(0); }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ── Glassmorphism CTA buttons (match navbar style) ─────── */
.btn-primary {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(124,58,237,0.5);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient);
  opacity: 0.12;
  transition: opacity 0.2s;
  z-index: 0;
}
.btn-primary::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0.6;
}
.btn-primary span,
.btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover::before { opacity: 0.22; }
.btn-primary:hover {
  border-color: rgba(124,58,237,0.8);
  box-shadow: 0 4px 25px rgba(124,58,237,0.4), 0 0 15px rgba(6,182,212,0.3), 0 0 0 1px rgba(124,58,237,0.3);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Hero stats — 2x2 compact grid for 4 items */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  width: fit-content;
}
.stat-item {
  padding: 0 1.4rem 0 0;
  border-right: 1px solid var(--border);
  margin-right: 1.4rem;
}
.stat-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.stat-value {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 400px;
}
.hero-card-main {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow), var(--shadow-glow);
  position: relative;
  z-index: 2;
  animation: cardFloat 6s ease-in-out infinite alternate;
}
@keyframes cardFloat {
  0%   { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(0.5deg); }
}
.hero-card-bg1 {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: var(--gradient);
  opacity: 0.12;
  z-index: 1;
  transform: rotate(-3deg) scale(0.97);
  animation: cardFloat 6s ease-in-out infinite alternate;
  animation-delay: -2s;
}
.hero-card-bg2 {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--grad-b), var(--grad-c));
  opacity: 0.08;
  z-index: 0;
  transform: rotate(3deg) scale(0.95);
  animation: cardFloat 6s ease-in-out infinite alternate;
  animation-delay: -4s;
}
.hero-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.hero-card-title {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
/* ── Hero card checklist ─────────────────────────────────── */
.hero-card-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.855rem;
  opacity: 0;
  animation: checkSlideIn 0.35s var(--ease) forwards;
}
.check-item:nth-child(1) { animation-delay: 0.5s; }
.check-item:nth-child(2) { animation-delay: 1.0s; }
.check-item:nth-child(3) { animation-delay: 1.5s; }
.check-item:nth-child(4) { animation-delay: 2.0s; }
.check-item:nth-child(5) { animation-delay: 2.5s; }
@keyframes checkSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.check-mark {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  color: #10b981;
  flex-shrink: 0;
  font-weight: 900;
}
.check-label {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}
.check-ok {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  overflow: hidden;
  width: 0;
  white-space: nowrap;
  animation: typeOk 0.25s steps(2, end) forwards;
  opacity: 0;
}
.check-ok::after { content: 'ok'; }
.check-item:nth-child(1) .check-ok { animation-delay: 1.0s; }
.check-item:nth-child(2) .check-ok { animation-delay: 1.5s; }
.check-item:nth-child(3) .check-ok { animation-delay: 2.0s; }
.check-item:nth-child(4) .check-ok { animation-delay: 2.5s; }
.check-item:nth-child(5) .check-ok { animation-delay: 3.0s; }
@keyframes typeOk {
  from { width: 0; opacity: 0; }
  1%   { opacity: 1; }
  to   { width: 1.6em; opacity: 1; }
}
/* ── Hero card mini stats ─────────────────────────────────── */
.hero-card-mini-stats {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.hcs-item {
  flex: 1;
  text-align: center;
}
.hcs-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.hcs-value {
  display: block;
  font-family: var(--font-brand);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countUp 1.5s var(--ease) both;
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hcs-divider {
  width: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS SECTION
═══════════════════════════════════════════════════════════ */
#projects { padding-top: 6rem; }

.projects-tabs {
  position: relative; /* Crucial for absolute position of indicator */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  background: rgba(15, 23, 42, 0.45); /* Premium dark slate background */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 6px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03),
              0 10px 30px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tabs-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
  transition: left 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), 
              width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
/* Neon glow for indicator and border based on selected platform */
.projects-tabs[data-active-tab="windows"] {
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03),
              0 0 25px rgba(124, 58, 237, 0.15),
              0 10px 30px rgba(0, 0, 0, 0.4);
}
.projects-tabs[data-active-tab="android"] {
  border-color: rgba(6, 182, 212, 0.18);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03),
              0 0 25px rgba(6, 182, 212, 0.15),
              0 10px 30px rgba(0, 0, 0, 0.4);
}
.projects-tabs[data-active-tab="windows"] .tabs-indicator {
  border-color: rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.08);
}
.projects-tabs[data-active-tab="android"] .tabs-indicator {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.08);
}
.tab-btn {
  flex: 1;
  position: relative;
  z-index: 2; /* Render above the sliding indicator */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}
.tab-btn.active {
  color: #fff !important;
  transform: scale(1.04);
}
.tab-btn:not(.active):hover {
  color: var(--text);
}
.tab-btn:active {
  transform: scale(0.95);
}

/* ── LIGHT MODE switcher overrides ──────────────────────── */
[data-theme="light"] .projects-tabs {
  background: rgba(255, 255, 255, 0.65); /* Beautiful light slate background */
  border-color: rgba(124, 58, 237, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9),
              0 8px 24px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .projects-tabs[data-active-tab="windows"] {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9),
              0 0 20px rgba(124, 58, 237, 0.08),
              0 8px 24px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .projects-tabs[data-active-tab="android"] {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9),
              0 0 20px rgba(6, 182, 212, 0.08),
              0 8px 24px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .projects-tabs[data-active-tab="windows"] .tabs-indicator {
  background: var(--gradient); /* Solid gradient to contrast beautifully with white text */
  border-color: #6d28d9;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
[data-theme="light"] .projects-tabs[data-active-tab="android"] .tabs-indicator {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  border-color: #0891b2;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}
[data-theme="light"] .tab-btn {
  color: #555577; /* Correct dark grey text in light mode */
}
[data-theme="light"] .tab-btn.active {
  color: #fff !important; /* Perfect high contrast white text over active indicator gradient */
}
[data-theme="light"] .tab-btn:not(.active):hover {
  color: #0f0f1a;
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.projects-grid.hidden { display: none; }

/* Project card */
.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: var(--gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.project-card:hover::before { opacity: 0.4; }
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--shadow-glow);
  border-color: transparent;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.card-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.project-card:hover .card-icon {
  transform: scale(1.08) rotate(2deg);
}
#grid-windows .project-card:hover .card-icon {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}
#grid-android .project-card:hover .card-icon {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-stable { background: rgba(16,185,129,0.12); color: var(--status-stable); border: 1px solid rgba(16,185,129,0.25); }
.status-beta   { background: rgba(245,158,11,0.12);  color: var(--status-beta); border: 1px solid rgba(245,158,11,0.25); }
.status-dev    { background: rgba(239,68,68,0.12);   color: var(--status-dev); border: 1px solid rgba(239,68,68,0.25); }

/* Status Dot with Breathing Pulse Effect */
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}
.status-dot-stable { background: #10b981; }
.status-dot-stable::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid #10b981;
  animation: pulseDot 2s infinite ease-out;
  opacity: 0;
}
.status-dot-beta { background: #f59e0b; }
.status-dot-beta::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid #f59e0b;
  animation: pulseDot 2s infinite ease-out;
  animation-delay: 0.5s;
  opacity: 0;
}
.status-dot-dev { background: #ef4444; }
.status-dot-dev::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid #ef4444;
  animation: pulseDot 2s infinite ease-out;
  animation-delay: 1s;
  opacity: 0;
}
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.card-version { font-size: 0.72rem; color: var(--text-faint); font-weight: 500; }

.card-name {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
.project-card:hover .card-name {
  color: #fff;
}
.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  padding-right: 3rem; /* Keep clear of bottom right arrow */
}
.card-tag {
  padding: 0.25rem 0.6rem;
  background: var(--tag-bg);
  color: var(--tag-color);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.card-action {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transform: translateX(10px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-muted);
}
.project-card:hover .card-action {
  opacity: 1;
  transform: translateX(0) scale(1.05);
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
#grid-android .project-card:hover .card-action {
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}
.card-action svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform 0.3s var(--ease);
}
.project-card:hover .card-action svg {
  transform: translateX(1px);
}

/* ── LIGHT MODE project card overrides ───────────────────── */
[data-theme="light"] .project-card:hover .card-name {
  color: #0f0f1a; /* Keep dark contrast for text on hover in light mode */
}
[data-theme="light"] .card-action {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--text-muted);
}
[data-theme="light"] .project-card:hover .card-action {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}
[data-theme="light"] #grid-android .project-card:hover .card-action {
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   PROGRAM DETAIL PAGE
═══════════════════════════════════════════════════════════ */
#detail-page {
  display: none;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}
#detail-page.visible { display: block; }

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}
.detail-back:hover { color: var(--text); background: var(--surface-hover); }

.detail-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.detail-hero {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.04;
  pointer-events: none;
}
.detail-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.detail-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.detail-info { flex: 1; min-width: 200px; }
.detail-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.detail-name {
  font-family: var(--font-brand);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.detail-short-desc { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.detail-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.detail-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.detail-card-title {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.detail-card-title::before {
  content: '';
  width: 3px; height: 1em;
  background: var(--gradient);
  border-radius: 99px;
}

.detail-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }

.feature-list { display: flex; flex-direction: column; gap: 0.6rem; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.feature-icon {
  width: 24px; height: 24px;
  background: var(--gradient);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  color: #fff;
}

/* Rich feature sections */
.feature-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color var(--dur) var(--ease);
}
.feature-section:hover { border-color: var(--border-hover); }
.feature-section-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.feature-section-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  line-height: 1;
}
.feature-section-title {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.feature-section-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 2rem;
}
.feature-section-items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-left: 2rem;
  list-style: none;
}
.fsi-item {
  font-size: 0.855rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  padding-left: 1rem;
}
.fsi-item::before {
  content: '‣';
  position: absolute;
  left: 0;
  color: var(--tag-color);
  font-size: 1rem;
  line-height: 1.4;
}
.fsi-item strong {
  color: var(--text);
  font-weight: 600;
}

/* Changelog */
.changelog-list { display: flex; flex-direction: column; gap: 0.75rem; }
.changelog-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.changelog-ver {
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.changelog-date { font-size: 0.72rem; color: var(--text-faint); }
.changelog-notes { font-size: 0.85rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════════════════ */
#contact { padding-bottom: 6rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  font-weight: 500;
}
.contact-link-item:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateX(4px);
}
.contact-link-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: #fff;
}
.contact-link-label { font-size: 0.75rem; color: var(--text-faint); display: block; }
.contact-link-value { font-weight: 600; }

/* Contact form */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  resize: none;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--grad-a);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }

/* ═══════════════════════════════════════════════════════════
   HERO TERMINAL
═══════════════════════════════════════════════════════════ */
.hero-terminal {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  max-width: 480px;
}
[data-theme="light"] .hero-terminal {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
[data-theme="light"] .terminal-titlebar {
  background: rgba(0,0,0,0.03);
  border-bottom-color: rgba(0,0,0,0.05);
}
.t-dots { display: flex; gap: 6px; align-items: center; }
.t-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t-dot.t-red    { background: #ff5f57; }
.t-dot.t-yellow { background: #ffbd2e; }
.t-dot.t-green  { background: #28c840; }
.t-title {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.03em;
  flex: 1;
  text-align: center;
}
.terminal-body {
  padding: 0.85rem 1.1rem;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.t-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.9;
}
.t-prompt {
  color: var(--grad-a);
  font-weight: 700;
  font-size: 0.85rem;
  user-select: none;
  flex-shrink: 0;
}
.t-prompt-ok {
  color: #10b981;
  font-weight: 700;
  font-size: 0.85rem;
  user-select: none;
  flex-shrink: 0;
}
#t-text-1 {
  color: var(--text-muted);
  font-size: 0.85rem;
}
#t-text-2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.t-success-text {
  color: #10b981;
  font-size: 0.78rem;
}
.t-cursor {
  color: var(--grad-b);
  animation: blinkCursor 0.75s step-end infinite;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  margin-left: 1px;
}
@keyframes blinkCursor {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   NEON FOOTER (Minimalist Extreme)
═══════════════════════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 2rem 3% 1rem 3%;
  font-family: var(--font-main);
  overflow: hidden;
  margin-top: 4rem; /* separation from contact section */
}

.neon-footer-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  box-shadow: 0 0 15px rgba(124,58,237,0.4), 0 0 30px rgba(6,182,212,0.3);
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.neon-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Left: Brand */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-brand {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.footer-logo {
  color: var(--text);
}
.footer-projects {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* Center: Links */
.footer-center {
  display: flex;
  gap: 2rem;
}
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s var(--ease);
}
.footer-link:hover {
  color: var(--grad-b);
}

/* Right: Socials */
.footer-right {
  display: flex;
  gap: 1rem;
}
.footer-social {
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social:hover {
  color: var(--grad-a);
  transform: translateY(-3px) scale(1.1);
}

@media (max-width: 768px) {
  .neon-footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .footer-left { align-items: center; }
  .footer-center { flex-direction: column; gap: 1rem; }
}

/* ═══════════════════════════════════════════════════════════
   PAGE TRANSITIONS
═══════════════════════════════════════════════════════════ */
.page { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.page.fade-out { opacity: 0; transform: translateY(8px); pointer-events: none; }
.page.fade-in { animation: fadeIn 0.4s var(--ease) forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE NAVIGATION
═══════════════════════════════════════════════════════════ */
.nav-mobile-panel {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--dropdown-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-mobile-panel.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.mobile-nav-link:hover { color: var(--text); background: var(--surface); }
.mobile-sub-list {
  padding-left: 1.5rem;
  display: none;
}
.mobile-sub-list.open { display: block; }
.mobile-sub-item {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.mobile-sub-item:hover { color: var(--text); background: var(--surface); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .nav-links { display: flex !important; }
  .nav-burger { display: none !important; }
  .hero-stats { gap: 1.5rem; }
  section { padding: 3rem 1.25rem; }
  #home { padding-top: calc(var(--nav-h) + 2rem) !important; }
  .projects-grid { grid-template-columns: 1fr; }
  .detail-hero-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  
  /* Hero stats 2x2 layout on mobile */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }
  .stat-item {
    border-right: none !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    padding-left: 0.5rem !important;
    border-left: 1px solid var(--border) !important;
  }
  .stat-item:nth-child(2n+1) {
    border-left: none !important;
    padding-left: 0 !important;
  }

  /* Responsive Terminal Hero (Fixes wrapping and vertical height push out) */
  .hero-terminal {
    width: 100% !important;
    max-width: 100% !important;
  }
  .t-line {
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
  }
  #t-text-2 {
    font-size: 0.8rem !important;
  }

  /* Responsive Legal Modals */
  #legal-modal-overlay .dl-modal {
    padding: 1.5rem 1rem !important;
    max-width: 95vw !important;
    width: 95% !important;
    border-radius: 16px !important;
  }
  #legal-modal-title {
    font-size: 1.35rem !important;
    margin-bottom: 1rem !important;
  }
  #legal-modal-body {
    padding: 0.25rem 0.5rem !important;
    max-height: 55vh !important;
    font-size: 0.82rem !important;
  }

  /* Mobile Logo Collapse (No icon, text only ZP in gradient) */
  .nav-brand .brand-icon { display: none !important; }
  .nav-brand .brand-main { display: none !important; }
  .nav-brand .brand-sub { display: none !important; }
  .nav-brand span::after {
    content: 'ZP';
    font-family: var(--font-brand);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
  }

  /* Inline Nav Options (No Hamburger Menu) */
  .nav-burger { display: none !important; }
  .nav-links {
    display: flex !important;
    gap: 0.1rem !important;
    margin: 0 auto !important;
  }
  .nav-link {
    padding: 0.25rem 0.4rem !important;
    font-size: 0.78rem !important;
    gap: 0.15rem !important;
  }
  .nav-link svg {
    width: 10px !important;
    height: 10px !important;
  }
  .nav-inner {
    padding: 0 0.4rem !important;
    gap: 0.2rem !important;
  }
  .nav-controls {
    gap: 0.35rem !important;
  }
  .lang-globe {
    width: 32px !important;
    height: 32px !important;
  }
  .lang-globe-text {
    font-size: 0.6rem !important;
  }
  .theme-toggle {
    width: 46px !important;
    height: 24px !important;
  }
  .theme-toggle::after {
    width: 18px !important;
    height: 18px !important;
    left: 2px !important;
  }
  [data-theme="dark"] .theme-toggle::after {
    transform: translateX(22px) !important;
  }
  .theme-toggle .toggle-sun,
  .theme-toggle .toggle-moon {
    width: 14px !important;
    height: 14px !important;
  }
  .theme-toggle .toggle-sun { left: 4px !important; }
  .theme-toggle .toggle-moon { right: 4px !important; }

  /* Mobile Pricing Modal */
  .pricing-modal {
    width: 92vw !important;
    height: 80vh !important;
    max-height: 580px !important;
    padding: 1rem !important;
    border-radius: 16px !important;
    gap: 0.5rem !important;
  }
  .dl-pricing-header {
    padding: 0.1rem 0 !important;
    margin-bottom: 0.2rem !important;
  }
  .dl-pricing-grid {
    gap: 0.75rem !important;
    padding-bottom: 0.5rem !important;
  }
  .price-card {
    flex: 0 0 250px !important;
    padding: 1rem 0.85rem !important;
    gap: 0.35rem !important;
  }
  .price-num {
    font-size: 1.8rem !important;
  }
  .price-name {
    font-size: 0.9rem !important;
  }
  .price-bullets {
    gap: 0.25rem !important;
  }
  .price-bullet {
    font-size: 0.7rem !important;
  }

  /* Slanted preview image responsiveness */
  .feat-preview-section {
    padding: 1.5rem 0 !important;
    margin: 1rem 0 !important;
    gap: 1.5rem !important;
  }
  .feat-logo-wrap {
    padding: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .feat-logo-img {
    max-width: 100% !important;
    max-height: 220px !important;
    height: auto !important;
    width: auto !important;
  }
  .feat-logo-placeholder {
    width: 100% !important;
    max-width: 220px !important;
    height: 150px !important;
    font-size: 3.5rem !important;
  }

  /* Mobile GPU Performance Optimization (Remove heavy blurs to fix lag on high-DPI viewports) */
  .navbar, .pricing-overlay, .feat-modal-overlay, .hero-terminal, .pricing-modal, .feat-modal, .hero-eyebrow {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Mobile Dropdown Sub-menu Accordion (nested vertical list to prevent horizontal cutting/overflow) */
  .dropdown {
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 210px !important;
    max-width: 95vw !important;
    width: max-content !important;
  }
  .dropdown-has-sub {
    display: flex !important;
    flex-direction: column !important;
  }
  .dropdown-sub {
    display: none !important;
    position: static !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
    border: none !important;
    box-shadow: none !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 0 0 0.5rem !important;
    margin: 0.15rem 0 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 8px !important;
  }
  .dropdown-has-sub.open .dropdown-sub {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
  }
  .dropdown-has-sub::after { display: none !important; }
  .dropdown-item .dd-arrow { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   HERO DEVICE SCENE
═══════════════════════════════════════════════════════════ */
.hero-scene {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Windows window ───────────────────────────────────────── */
.scene-win {
  position: absolute;
  width: 290px;
  left: 0;
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 13px;
  overflow: visible;
  animation: winFloat 8s ease-in-out infinite alternate;
  z-index: 2;
  isolation: isolate;
}
/* Windows border — dark elegant charcoal/slate */
.scene-win::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(7, 55, 99, 1), rgba(9, 48, 83, 1), rgba(30,41,59,0.9));
  z-index: -1;
  opacity: 1;
}
@keyframes winFloat {
  0%   { transform: translateY(0px) rotate(-1deg); }
  100% { transform: translateY(-18px) rotate(0.8deg); }
}
.win-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: 13px 13px 0 0;
}
[data-theme="light"] .win-titlebar { background: rgba(0,0,0,0.03); }
.win-dots { display: flex; gap: 5px; flex-shrink: 0; }
.win-dot { width: 10px; height: 10px; border-radius: 50%; }
.win-dot-r { background: #ff5f57; }
.win-dot-y { background: #ffbd2e; }
.win-dot-g { background: #28c840; }
.win-title-text {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  color: var(--text-faint);
  flex: 1;
  text-align: center;
  letter-spacing: 0.02em;
}
.win-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
/* Animated code lines */
.code-line {
  height: 9px;
  border-radius: 5px;
  background: var(--surface);
  animation: codePulse 2.8s ease-in-out infinite;
  flex-shrink: 0;
}
.code-line-1 { width: 72%; background: linear-gradient(90deg, rgba(124,58,237,0.5), rgba(6,182,212,0.2)); animation-delay: 0s; }
.code-line-2 { width: 90%; animation-delay: 0.2s; }
.code-line-3 { width: 58%; background: rgba(245,158,11,0.3); animation-delay: 0.4s; }
.code-line-4 { width: 82%; background: linear-gradient(90deg, rgba(16,185,129,0.35), transparent); animation-delay: 0.6s; }
.code-line-5 { width: 48%; animation-delay: 0.8s; }
.code-line-6 { width: 78%; background: linear-gradient(90deg, rgba(124,58,237,0.4), rgba(6,182,212,0.15)); animation-delay: 1.0s; }
.code-line-7 { width: 63%; animation-delay: 1.2s; }
@keyframes codePulse {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
.win-toolbar {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  align-items: center;
}
.win-tb-btn {
  height: 20px;
  flex: 1;
  border-radius: 4px;
  background: var(--surface);
}
.win-tb-accent {
  background: var(--gradient);
  flex: 1.5;
  animation: codePulse 3s ease-in-out infinite;
}
.win-badge {
  position: absolute;
  bottom: -14px;
  right: 10px;
  background: var(--dropdown-bg);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  padding: 0.28rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--tag-color);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  z-index: 5;
}

/* ── Android phone ────────────────────────────────────────── */
.scene-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 148px;
  height: 268px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 26px;
  overflow: visible;
  animation: phoneFloat 7s ease-in-out infinite alternate;
  animation-delay: -3.5s;
  z-index: 3;
  isolation: isolate;
}
/* Android phone border — dark elegant indigo/slate */
.scene-phone::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 27px;
  background: linear-gradient(135deg, rgba(7, 55, 99, 1), rgba(9, 48, 83, 1), rgba(30,41,59,0.9));
  z-index: -1;
  opacity: 1;
}
@keyframes phoneFloat {
  0%   { transform: translateY(0px) rotate(1.5deg); }
  100% { transform: translateY(-14px) rotate(-0.8deg); }
}
.phone-notch {
  width: 44px;
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  margin: 10px auto 0;
}
.phone-screen {
  padding: 0.65rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}
.phone-header-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gradient);
  animation: codePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.phone-header-title {
  font-family: var(--font-brand);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
}
.phone-app-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.35rem;
  background: var(--surface);
  border-radius: 9px;
  border: 1px solid var(--border);
}
.phone-app-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.phone-app-name {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.phone-app-sub {
  font-size: 0.55rem;
  color: var(--text-muted);
}
.phone-bar {
  height: 7px;
  border-radius: 4px;
  background: var(--surface);
  animation: codePulse 3s ease-in-out infinite;
}
.phone-bar-1 { width: 100%; animation-delay: 0.1s; }
.phone-bar-2 { width: 75%; background: linear-gradient(90deg, rgba(6,182,212,0.35), transparent); animation-delay: 0.5s; }
.phone-bar-3 { width: 88%; animation-delay: 0.9s; }
.phone-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0.3rem;
}
.phone-nav-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
}
.phone-nav-active {
  background: var(--gradient);
  width: 18px;
  border-radius: 99px;
}
.phone-badge {
  position: absolute;
  top: -12px;
  left: -12px;
  background: var(--dropdown-bg);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  padding: 0.28rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--tag-color);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  z-index: 5;
}

/* ── Scene ambient dots ───────────────────────────────────── */
.scene-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient);
  animation: dotPulse 3s ease-in-out infinite alternate;
  pointer-events: none;
}
.scene-dot-1 { width: 10px; height: 10px; top: 10px; left: 50%; opacity: 0.5; animation-delay: 0s; }
.scene-dot-2 { width: 7px; height: 7px; bottom: 40px; left: 8px; opacity: 0.4; animation-delay: -1s; }
.scene-dot-3 { width: 5px; height: 5px; top: 45%; right: 0; opacity: 0.35; animation-delay: -2s; }
@keyframes dotPulse {
  0%   { transform: translateY(0) scale(1); opacity: 0.4; }
  100% { transform: translateY(-10px) scale(1.4); opacity: 0.8; }
}

/* ── Scene bottom label ───────────────────────────────────── */
.scene-label {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-faint);
  white-space: nowrap;
}
.scene-label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  animation: dotPulse 2s ease-in-out infinite alternate;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   TERMINAL CHECKLIST LINES (injected by JS)
═══════════════════════════════════════════════════════════ */
.t-check-line {
  padding-left: 0.6rem;
  gap: 0.5rem;
  line-height: 1.65;
  font-size: 0.82rem;
}
.t-chk-mark {
  color: #10b981;
  font-size: 0.78rem;
  flex-shrink: 0;
  width: 14px;
}
.t-chk-text {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.t-chk-ok {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  min-width: 1.4em;
  letter-spacing: 0.02em;
}
/* ── Generic platform tags inside device scene ─────────── */
.scene-platform-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-bottom: 0.2rem;
  font-size: 0.65rem;
}
.spt-icon { font-size: 0.75rem; }
.spt-text {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.phone-platform-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.6rem;
}
.phone-plat-text {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Increase terminal body height for all check lines */
.terminal-body {
  min-height: auto !important;
  max-height: 280px !important;
}

/* ═══════════════════════════════════════════════════════════
   MACOS SCREENSHOT SHOWCASE
═══════════════════════════════════════════════════════════ */
.macos-showcase {
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.07),
    inset 0 1px 0 rgba(255,255,255,0.04);
  background: #1c1c1e;
  margin-bottom: 2.5rem;
  position: relative;
}
[data-theme="light"] .macos-showcase {
  background: #ececec;
  box-shadow: 0 16px 50px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.07);
}

/* ── Title bar ─────────────────────────────────────────── */
.macos-titlebar {
  height: 44px;
  background: #2c2c2e;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  user-select: none;
  flex-shrink: 0;
}
[data-theme="light"] .macos-titlebar {
  background: #d5d5d5;
  border-bottom-color: rgba(0,0,0,0.08);
}
.macos-dots { display: flex; gap: 7px; flex-shrink: 0; }
.macos-btn {
  width: 13px; height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: filter 0.15s;
}
.macos-btn:hover { filter: brightness(1.2); }
.macos-btn-close { background: #ff5f57; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); }
.macos-btn-min   { background: #ffbd2e; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); }
.macos-btn-max   { background: #28c840; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); }

.macos-title {
  flex: 1;
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.38);
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-theme="light"] .macos-title { color: rgba(0,0,0,0.45); }

.macos-counter {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
[data-theme="light"] .macos-counter { color: rgba(0,0,0,0.25); }

/* ── Screen / slide track ──────────────────────────────── */
.macos-screen {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.macos-slides {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.macos-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}
.macos-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--surface);
}

/* ── Navigation arrows ─────────────────────────────────── */
.macos-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.macos-arrow:hover {
  background: rgba(0,0,0,0.72);
  transform: translateY(-50%) scale(1.08);
}
.macos-showcase:hover .macos-arrow { opacity: 1; }
.macos-arrow-prev { left: 14px; }
.macos-arrow-next { right: 14px; }

/* ── Dot navigation ────────────────────────────────────── */
.macos-nav {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  background: rgba(0,0,0,0.42);
  padding: 6px 10px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}
.macos-nav-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  border: none;
  padding: 0;
}
.macos-nav-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 99px;
}
.macos-nav-dot:hover:not(.active) { background: rgba(255,255,255,0.6); }

/* ── Placeholder (no screenshots) ─────────────────────── */
.macos-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(
    135deg,
    rgba(124,58,237,0.05) 0%,
    rgba(6,182,212,0.03) 100%
  );
  border-top: 1px solid rgba(255,255,255,0.03);
}
[data-theme="light"] .macos-placeholder {
  background: linear-gradient(135deg, rgba(124,58,237,0.04), rgba(6,182,212,0.02));
}
.macos-ph-icon { font-size: 2.8rem; opacity: 0.3; }
.macos-ph-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.28);
  font-weight: 600;
  letter-spacing: 0.01em;
}
[data-theme="light"] .macos-ph-text { color: rgba(0,0,0,0.3); }
.macos-ph-sub {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.15);
}
[data-theme="light"] .macos-ph-sub { color: rgba(0,0,0,0.18); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .macos-titlebar { height: 36px; padding: 0 12px; gap: 7px; }
  .macos-btn { width: 11px; height: 11px; }
  .macos-arrow { width: 34px; height: 34px; opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   DETAIL PAGE V2 — Hero / Scrollytelling / Timeline / Modal
═══════════════════════════════════════════════════════════ */

/* ── Wrapper ───────────────────────────────────────────────── */
.dv2-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

/* ── Hero split ────────────────────────────────────────────── */
.dv2-hero {
  display: grid;
  grid-template-columns: 56% 44%;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
  position: relative;
}
.dv2-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent 80%);
}

/* breadcrumb */
.dv2-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.dv2-bc-sep { opacity: 0.35; }

/* badges row */
.dv2-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* app name */
.dv2-name {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* short desc */
.dv2-short-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 2rem;
}

/* action buttons */
.dv2-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}
.dv2-btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124,58,237,0.55);
  color: var(--text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(124,58,237,0.15);
}
.dv2-btn-dl::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.08;
  transition: opacity 0.25s;
}
.dv2-btn-dl:hover {
  border-color: rgba(124,58,237,0.85);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(124,58,237,0.3);
}
.dv2-btn-dl:hover::before { opacity: 0.16; }
.dv2-btn-dl span { position: relative; z-index: 1; }

.dv2-btn-sec {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.dv2-btn-sec:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

/* quick stats bar */
.dv2-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.dv2-stat {
  display: flex;
  flex-direction: column;
  padding-right: 1.25rem;
  margin-right: 1.25rem;
  border-right: 1px solid var(--border);
}
.dv2-stat-last { border-right: none; padding-right: 0; margin-right: 0; }
.dv2-stat-v {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.dv2-stat-l {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.2rem;
}

/* Right: icon showcase */
.dv2-hero-right { display: flex; justify-content: center; align-items: center; }
.dv2-icon-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  width: 100%;
}
.dv2-icon-glow {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--gradient);
  filter: blur(55px);
  opacity: 0.35;
  animation: dv2Glow 4s ease-in-out infinite alternate;
}
@keyframes dv2Glow {
  0%   { transform: scale(0.9);  opacity: 0.28; }
  100% { transform: scale(1.25); opacity: 0.48; }
}
.dv2-icon-circle {
  width: 130px; height: 130px;
  border-radius: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), 0 0 50px rgba(124,58,237,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.2rem;
  position: relative;
  z-index: 2;
  animation: dv2Bob 6s ease-in-out infinite;
}
@keyframes dv2Bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.dv2-float {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.dv2-float-1 { top: 18%;  left:  4%; animation: flt1 5s ease-in-out infinite; }
.dv2-float-2 { top: 16%;  right: 4%; animation: flt2 6s ease-in-out infinite; }
.dv2-float-3 { bottom: 20%; left: 50%; transform: translateX(-50%); animation: flt3 7s ease-in-out infinite; }
@keyframes flt1 { 0%,100%{transform:translateY(0)}    50%{transform:translateY(-8px)} }
@keyframes flt2 { 0%,100%{transform:translateY(-5px)} 50%{transform:translateY(5px)}  }
@keyframes flt3 { 0%,100%{transform:translateX(-50%) translateY(3px)} 50%{transform:translateX(-50%) translateY(-6px)} }

/* ── Description card ─────────────────────────────────────── */
.dv2-desc-section {
  margin: 2.5rem 0;
  padding: 1.6rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.dv2-desc-section::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--gradient);
  border-radius: 0 99px 99px 0;
}
.dv2-desc-text {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Section title ────────────────────────────────────────── */
.dv2-section-title {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
}

/* ── Tags row ─────────────────────────────────────────────── */
.dv2-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

/* ── SCROLLYTELLING ───────────────────────────────────────── */
.scrolly-outer { padding: 3rem 0 2rem; }

.scrolly-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.scrolly-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gradient);
  opacity: 0.25;
  border-radius: 99px;
}

/* Grid */
.scrolly-grid {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 0;
  align-items: start;
}

/* ── LEFT sticky panel ─────────────────────────────────────── */
.scrolly-sticky {
  position: sticky;
  top: 88px;
  padding-right: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* macOS window */
.scrolly-window {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.07);
  background: #1c1c1e;
}
[data-theme="light"] .scrolly-window {
  background: #ececec;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.07);
}
.scrolly-titlebar {
  height: 40px;
  background: #2c2c2e;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  user-select: none;
}
[data-theme="light"] .scrolly-titlebar { background: #d5d5d5; }
.scrolly-win-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.35s ease;
}
[data-theme="light"] .scrolly-win-title { color: rgba(0,0,0,0.45); }

/* Visual area */
.scrolly-vis-area {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

/* Category visuals */
.cat-visual {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.cat-visual.active { opacity: 1; }

/* Shared deco blob */
.cat-vis-deco { display: none; }
@keyframes decoPulse {
  0%   { transform: scale(0.9) translateY(-10px); }
  100% { transform: scale(1.15) translateY(10px); }
}

.cat-vis-emoji {
  font-size: 4.5rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 24px rgba(255,255,255,0.12));
  animation: catFloat 4s ease-in-out infinite;
}
@keyframes catFloat {
  0%, 100% { transform: translateY(0)   scale(1); }
  50%       { transform: translateY(-8px) scale(1.04); }
}
.cat-vis-label {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

/* ── 6 Category gradients ──────────────────────────────────── */
.cat-visual-0 { background: linear-gradient(145deg, #0f0a2e, #1e1052, #2d1b69); }
.cat-visual-0 .cat-vis-label { color: #a5b4fc; }
.cat-visual-0 .cat-vis-deco { background: #6366f1; }

.cat-visual-1 { background: linear-gradient(145deg, #190520, #3a0a5b, #5b118e); }
.cat-visual-1 .cat-vis-label { color: #d8b4fe; }
.cat-visual-1 .cat-vis-deco { background: #a855f7; }

.cat-visual-2 { background: linear-gradient(145deg, #001829, #003458, #00528e); }
.cat-visual-2 .cat-vis-label { color: #67e8f9; }
.cat-visual-2 .cat-vis-deco { background: #06b6d4; }

.cat-visual-3 { background: linear-gradient(145deg, #07090f, #0c1824, #0f2540); }
.cat-visual-3 .cat-vis-label { color: #93c5fd; }
.cat-visual-3 .cat-vis-deco { background: #3b82f6; }

.cat-visual-4 { background: linear-gradient(145deg, #011a10, #013828, #026048); }
.cat-visual-4 .cat-vis-label { color: #6ee7b7; }
.cat-visual-4 .cat-vis-deco { background: #10b981; }

.cat-visual-5 { background: linear-gradient(145deg, #1a0800, #3c1400, #6a2200); }
.cat-visual-5 .cat-vis-label { color: #fcd34d; }
.cat-visual-5 .cat-vis-deco { background: #f59e0b; }

/* Screenshot variant */
.cat-visual-screenshot { background: #000; }
.cat-visual-screenshot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Dot progress */
.scrolly-progress {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}
.scrolly-dot {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.scrolly-dot.active {
  background: var(--gradient);
  height: 22px;
  background: linear-gradient(to bottom, #7c3aed, #06b6d4);
}
.scrolly-dot:hover:not(.active) { background: var(--border-hover); height: 10px; }

/* ── RIGHT scrolling content ──────────────────────────────── */
.scrolly-content { padding: 0 0 8rem 2rem; }

.scrolly-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.scrolly-section.scrolly-in {
  opacity: 1;
  transform: translateY(0);
}

.scrolly-num {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--tag-color);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.scrolly-num::after {
  content: '';
  width: 50px;
  height: 1px;
  background: var(--gradient);
  opacity: 0.5;
  flex-shrink: 0;
}

.scrolly-feat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.scrolly-feat-icon { font-size: 1.85rem; flex-shrink: 0; }
.scrolly-feat-title {
  font-family: var(--font-brand);
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.scrolly-feat-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 500px;
}

/* Feature items list */
.scrolly-items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
}
.scrolly-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  align-items: flex-start;
}
.scrolly-item:hover { border-color: var(--border-hover); transform: translateX(3px); }
.scrolly-item-chk {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
  flex-shrink: 0;
  margin-top: 1px;
}
.scrolly-item strong { color: var(--text); font-weight: 600; }

/* ── Timeline changelog ───────────────────────────────────── */
.dv2-timeline-section {
  padding: 1rem 0 5rem;
  scroll-margin-top: 90px;
}
.timeline-list {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 2rem;
}
.timeline-list::before {
  content: '';
  position: absolute;
  left: 8px; top: 6px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #7c3aed, #06b6d4, transparent);
  border-radius: 99px;
}
.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(124,58,237,0.25);
}
.timeline-item:first-child::before {
  animation: tlPulse 2.2s ease-in-out infinite;
}
@keyframes tlPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(124,58,237,0.5); }
  50%       { box-shadow: 0 0 0 3px var(--bg), 0 0 0 10px rgba(124,58,237,0); }
}
.timeline-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}
.timeline-ver {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 800;
  color: #a855f7;
}
.timeline-latest {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
  background: rgba(124,58,237,0.12);
  color: var(--tag-color);
  border: 1px solid rgba(124,58,237,0.22);
  animation: latestBlink 3s ease-in-out infinite;
}
@keyframes latestBlink {
  0%, 80%, 100% { opacity: 1; }
  90%           { opacity: 0.5; }
}
.timeline-date {
  font-size: 0.76rem;
  color: var(--text-faint);
  margin-left: auto;
}
.timeline-notes { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; white-space: pre-line; margin-top: 0.5rem; }

/* ── Simple features fallback ─────────────────────────────── */
.dv2-simple-features { padding: 1rem 0 2rem; }

/* ── Download Modal ───────────────────────────────────────── */
.dl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.dl-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.dl-modal {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2.5rem 2.5rem;
  max-width: 430px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dl-modal-overlay.open .dl-modal {
  transform: translateY(0) scale(1);
}
.dl-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.dl-modal-close:hover { background: var(--surface-hover); color: var(--text); }
.dl-modal-rocket { font-size: 3.5rem; display: block; margin-bottom: 0.75rem; }
.dl-modal-title {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.dl-modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}
.dl-modal-desc strong { color: var(--text); }
.dl-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.dl-modal-footer {
  margin-top: 1.25rem;
  font-size: 0.7rem;
  color: var(--text-faint);
  font-family: 'Courier New', monospace;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1000px) {
  .dv2-hero { grid-template-columns: 60% 40%; gap: 1.5rem; }
  .dv2-icon-zone { height: 260px; }
}
@media (max-width: 820px) {
  .dv2-hero { grid-template-columns: 1fr; }
  .dv2-hero-right { display: none; } /* hide icon zone on small screens */
  .scrolly-grid { grid-template-columns: 38% 62%; }
  .scrolly-content { padding-left: 1.5rem; }
  .scrolly-section { min-height: 65vh; }
}
@media (max-width: 600px) {
  .dv2-wrap { padding: 0 1rem 4rem; }
  .scrolly-grid { grid-template-columns: 40% 60%; }
  .scrolly-sticky { padding-right: 1rem; }
  .scrolly-content { padding-left: 1rem; }
  .scrolly-section { min-height: 60vh; padding: 2.5rem 0; }
  .scrolly-feat-icon { font-size: 1.5rem; }
}
@media (max-width: 500px) {
  /* Stack: sticky panel above each section */
  .scrolly-grid { grid-template-columns: 1fr; }
  .scrolly-sticky {
    position: relative;
    top: auto;
    padding-right: 0;
    margin-bottom: 1.5rem;
  }
  .scrolly-window { max-height: 220px; }
  .scrolly-vis-area { aspect-ratio: 16/9; }
  .scrolly-progress { flex-direction: row; }
  .scrolly-dot.active { width: 22px; height: 6px; }
  .scrolly-content { padding-left: 0; }
  .scrolly-section { min-height: auto; }
  .dv2-stats-bar { gap: 0.75rem; flex-direction: row; flex-wrap: wrap; }
  .dv2-stat { border-right: none; padding-right: 0; }
}

/* ═══════════════════════════════════════════════════════════
   CONSOLE TERMINAL PANEL  (replaces macOS window)
═══════════════════════════════════════════════════════════ */

/* Outer wrapper: the gradient border */
.console-wrap {
  width: 100%;
  border-radius: 16px;
  padding: 2px;                       /* "border" thickness */
  background: linear-gradient(135deg, #7c3aed, #06b6d4, #a855f7, #7c3aed);
  background-size: 300% 300%;
  animation: consoleGradFlow 5s ease infinite;
  box-shadow:
    0 0 28px rgba(124,58,237,0.22),
    0 0 60px rgba(6,182,212,0.10),
    0 24px 60px rgba(0,0,0,0.55);
  position: relative;
}
@keyframes consoleGradFlow {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

/* Subtle outer glow pulse */
.console-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  background: inherit;
  background-size: 300% 300%;
  animation: consoleGradFlow 5s ease infinite;
  filter: blur(10px);
  opacity: 0.4;
  z-index: -1;
}

/* Inner dark body */
.console-inner {
  border-radius: 14px;
  background: #08080e;
  overflow: hidden;
  position: relative;
}
[data-theme="light"] .console-inner { background: #0f0f1a; }

/* ── Header bar ────────────────────────────────────────────── */
.console-header {
  height: 42px;
  background: rgba(0,0,0,0.45);
  border-bottom: 1px solid rgba(124,58,237,0.25);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  user-select: none;
  position: relative;
}
/* tiny gradient line at the very top of the header */
.console-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4, #a855f7);
  background-size: 200% 100%;
  animation: consoleTopLine 4s linear infinite;
}
@keyframes consoleTopLine {
  0%   { background-position: 0%   0; }
  100% { background-position: 200% 0; }
}

.console-prompt {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  line-height: 1;
}

/* win-title already defined; override colors for console */
.console-header .scrolly-win-title {
  flex: 1;
  text-align: left;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(167,139,250,0.8);        /* soft purple */
  letter-spacing: 0.03em;
  transition: opacity .18s ease, transform .18s ease;
}
[data-theme="light"] .console-header .scrolly-win-title { color: rgba(124,58,237,0.7); }

.console-cursor {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #06b6d4;
  flex-shrink: 0;
  animation: cursorBlink 1.1s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   ICON IMAGE + EMOJI FALLBACK
═══════════════════════════════════════════════════════════ */
.dv2-icon-circle {
  position: relative;     /* allow absolute children */
}
.dv2-icon-img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: inherit;
  padding: 10px;
  position: relative;
  z-index: 1;
}
/* Emoji fallback: hidden while image loads */
.dv2-icon-emoji-fb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.2rem;
  opacity: 0;
  pointer-events: none;
}
/* Show emoji + hide img when all formats fail */
.dv2-icon-circle.icon-no-img .dv2-icon-img  { opacity: 0; }
.dv2-icon-circle.icon-no-img .dv2-icon-emoji-fb { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   DIRECTIONAL VISUAL TRANSITIONS
═══════════════════════════════════════════════════════════ */
/* Base: hidden until activated */
.cat-visual {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1),
              transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.cat-visual.active {
  opacity: 1;
  transform: translateY(0);
}

/* Exit: old visual slides out */
.cat-visual.vis-exit-up {
  opacity: 0 !important;
  transform: translateY(-28px) !important;
  transition: opacity 0.38s ease, transform 0.38s ease !important;
}
.cat-visual.vis-exit-down {
  opacity: 0 !important;
  transform: translateY(28px) !important;
  transition: opacity 0.38s ease, transform 0.38s ease !important;
}

/* Enter: new visual's START position (no transition so it snaps) */
.cat-visual.vis-enter-down {
  opacity: 0 !important;
  transform: translateY(28px) !important;
  transition: none !important;
}
.cat-visual.vis-enter-up {
  opacity: 0 !important;
  transform: translateY(-28px) !important;
  transition: none !important;
}

/* ═══════════════════════════════════════════════════════════
   STAGGER ANIMATIONS — section content cascade in from right
═══════════════════════════════════════════════════════════ */

/* Children start hidden & offset right */
.scrolly-section .scrolly-num,
.scrolly-section .scrolly-feat-header,
.scrolly-section .scrolly-feat-desc {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}
.scrolly-section .scrolly-item {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Remove parent-level opacity/transform (we animate children instead) */
.scrolly-section {
  opacity: 1 !important;
  transform: none !important;
}

/* When section enters viewport → cascade children in */
.scrolly-section.scrolly-in .scrolly-num {
  opacity: 1; transform: translateX(0);
  transition-delay: 0s;
}
.scrolly-section.scrolly-in .scrolly-feat-header {
  opacity: 1; transform: translateX(0);
  transition-delay: 0.07s;
}
.scrolly-section.scrolly-in .scrolly-feat-desc {
  opacity: 1; transform: translateX(0);
  transition-delay: 0.14s;
}
/* Items: stagger by position */
.scrolly-section.scrolly-in .scrolly-item:nth-child(1) { opacity:1; transform:translateX(0); transition-delay:0.20s; }
.scrolly-section.scrolly-in .scrolly-item:nth-child(2) { opacity:1; transform:translateX(0); transition-delay:0.27s; }
.scrolly-section.scrolly-in .scrolly-item:nth-child(3) { opacity:1; transform:translateX(0); transition-delay:0.34s; }
.scrolly-section.scrolly-in .scrolly-item:nth-child(4) { opacity:1; transform:translateX(0); transition-delay:0.41s; }
.scrolly-section.scrolly-in .scrolly-item:nth-child(5) { opacity:1; transform:translateX(0); transition-delay:0.48s; }
.scrolly-section.scrolly-in .scrolly-item:nth-child(6) { opacity:1; transform:translateX(0); transition-delay:0.55s; }
.scrolly-section.scrolly-in .scrolly-item:nth-child(7) { opacity:1; transform:translateX(0); transition-delay:0.62s; }
.scrolly-section.scrolly-in .scrolly-item:nth-child(8) { opacity:1; transform:translateX(0); transition-delay:0.69s; }

/* ═══════════════════════════════════════════════════════════
   GRADIENT OUTLINE FRAME  (clean, no console UI)
═══════════════════════════════════════════════════════════ */

/* Outer: the animated gradient border */
.grad-frame {
  width: 100%;
  border-radius: 18px;
  padding: 2.5px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4, #a855f7, #38bdf8, #7c3aed);
  background-size: 400% 400%;
  animation: gfFlow 6s ease infinite;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.08),
    0 0 32px rgba(124,58,237,0.18),
    0 0 64px rgba(6,182,212,0.08),
    0 28px 60px rgba(0,0,0,0.52);
}
@keyframes gfFlow {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
/* Diffused glow halo behind the frame */
.grad-frame::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 23px;
  background: inherit;
  background-size: 400% 400%;
  animation: gfFlow 6s ease infinite;
  filter: blur(14px);
  opacity: 0.3;
  z-index: -1;
}

/* Inner: dark canvas for the visual */
.grad-frame-inner {
  border-radius: 16px;
  background: #0a0a12;
  overflow: hidden;
  position: relative;
}
[data-theme="light"] .grad-frame-inner { background: #f0f0f8; }

/* ── Caption below frame ─────────────────────────────────── */
.scrolly-caption {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.4rem 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ── Horizontal dot progress (override vertical) ─────────── */
.scrolly-progress {
  flex-direction: row !important;
  gap: 6px !important;
  justify-content: center;
}
.scrolly-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 99px;
  flex-shrink: 0;
}
.scrolly-dot.active {
  width: 24px !important;   /* expands horizontally */
  height: 6px !important;
  background: linear-gradient(90deg, #7c3aed, #06b6d4) !important;
}
.scrolly-dot:hover:not(.active) {
  width: 12px !important;
  height: 6px !important;
}

/* ═══════════════════════════════════════════════════════════
   X-AXIS DIRECTIONAL VISUAL TRANSITIONS
   Forward  (↓): old slides LEFT,  new enters from RIGHT
   Backward (↑): old slides RIGHT, new enters from LEFT
═══════════════════════════════════════════════════════════ */

/* Override base cat-visual transition */
.cat-visual {
  opacity: 0;
  transform: translateX(0) scale(1);
  transition:
    opacity  0.52s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
}
.cat-visual.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Exit: slides out */
.cat-visual.vis-exit-left {
  opacity: 0 !important;
  transform: translateX(-32px) scale(0.97) !important;
  transition: opacity 0.4s ease, transform 0.4s ease !important;
}
.cat-visual.vis-exit-right {
  opacity: 0 !important;
  transform: translateX(32px) scale(0.97) !important;
  transition: opacity 0.4s ease, transform 0.4s ease !important;
}

/* Enter: snap to off-screen start (NO transition) */
.cat-visual.vis-enter-right {
  opacity: 0 !important;
  transform: translateX(32px) scale(0.97) !important;
  transition: none !important;
}
.cat-visual.vis-enter-left {
  opacity: 0 !important;
  transform: translateX(-32px) scale(0.97) !important;
  transition: none !important;
}

/* ── Enhanced content stagger (stronger offset for cinematic feel) ── */
.scrolly-section .scrolly-num {
  transform: translateX(44px);
}
.scrolly-section .scrolly-feat-header {
  transform: translateX(44px);
}
.scrolly-section .scrolly-feat-desc {
  transform: translateX(36px);
}
.scrolly-section .scrolly-item {
  transform: translateX(30px);
}

/* ═══════════════════════════════════════════════════════════
   GRAD FRAME — partial outline (fades at mid-sides)
═══════════════════════════════════════════════════════════ */

/* Override previous grad-frame: no shadow, just the partial border */
.grad-frame {
  width: 100%;
  border-radius: 18px;
  background: transparent;        /* no background on the wrapper */
  padding: 0;                      /* no padding — border is ::after */
  box-shadow: none !important;     /* remove all shadows */
  position: relative;
  /* Smoothly fade when switchVisual fires */
  transition: opacity 0.26s ease, transform 0.26s ease;
}

/* Remove the glow halo ::before from previous definition */
.grad-frame::before { display: none !important; }

/* Partial gradient border via padding-box / border-box mask trick */
.grad-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  /* Gradient: vivid at TL + BR corners, transparent mid-sides */
  background: linear-gradient(
    145deg,
    #7c3aed        0%,
    rgba(124,58,237,0.7) 18%,
    rgba(6,182,212,0.25) 38%,
    transparent    50%,
    transparent    62%,
    rgba(168,85,247,0.25) 78%,
    #06b6d4        100%
  );
  /* Mask: show only the "border" strip, not the fill */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Inner canvas: transparent so cat-visual backgrounds show through */
.grad-frame-inner {
  border-radius: 16px !important;
  background: transparent !important;
  overflow: hidden;
  position: relative;
}

/* ── cat-visual: opacity only (frame handles movement) ────── */
.cat-visual {
  opacity: 0 !important;
  transform: none !important;
  transition: opacity 0.3s ease !important;
}
.cat-visual.active {
  opacity: 1 !important;
  transform: none !important;
}

/* ═══════════════════════════════════════════════════════════
   SCROLLY CARD — glass card with gradient outline, slides from right
═══════════════════════════════════════════════════════════ */

.scrolly-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  overflow: hidden;

  /* Entry state: hidden, offset to the right */
  opacity: 0;
  transform: translateX(48px);
  transition:
    opacity  0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gradient outline border on the card (same partial-fade trick) */
.scrolly-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(124,58,237,0.5) 0%,
    rgba(6,182,212,0.3) 35%,
    transparent 55%,
    rgba(168,85,247,0.2) 80%,
    rgba(6,182,212,0.4) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Active: card slides in to position */
.scrolly-card.card-in {
  opacity: 1;
  transform: translateX(0);
}

/* Children stagger INSIDE the card */
.scrolly-card .scrolly-num,
.scrolly-card .scrolly-feat-header,
.scrolly-card .scrolly-feat-desc,
.scrolly-card .scrolly-item {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.scrolly-card.card-in .scrolly-num {
  opacity: 1; transform: translateX(0); transition-delay: 0.05s;
}
.scrolly-card.card-in .scrolly-feat-header {
  opacity: 1; transform: translateX(0); transition-delay: 0.12s;
}
.scrolly-card.card-in .scrolly-feat-desc {
  opacity: 1; transform: translateX(0); transition-delay: 0.19s;
}
.scrolly-card.card-in .scrolly-item:nth-child(1) { opacity:1; transform:translateX(0); transition-delay:0.26s; }
.scrolly-card.card-in .scrolly-item:nth-child(2) { opacity:1; transform:translateX(0); transition-delay:0.32s; }
.scrolly-card.card-in .scrolly-item:nth-child(3) { opacity:1; transform:translateX(0); transition-delay:0.38s; }
.scrolly-card.card-in .scrolly-item:nth-child(4) { opacity:1; transform:translateX(0); transition-delay:0.44s; }
.scrolly-card.card-in .scrolly-item:nth-child(5) { opacity:1; transform:translateX(0); transition-delay:0.50s; }
.scrolly-card.card-in .scrolly-item:nth-child(6) { opacity:1; transform:translateX(0); transition-delay:0.56s; }
.scrolly-card.card-in .scrolly-item:nth-child(7) { opacity:1; transform:translateX(0); transition-delay:0.62s; }
.scrolly-card.card-in .scrolly-item:nth-child(8) { opacity:1; transform:translateX(0); transition-delay:0.68s; }

/* Override section-level animation (card handles it now) */
.scrolly-section {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.scrolly-section .scrolly-num,
.scrolly-section .scrolly-feat-header,
.scrolly-section .scrolly-feat-desc,
.scrolly-section .scrolly-item {
  /* Reset section-level stagger (card-level takes over) */
  opacity: unset;
  transform: unset;
  transition: unset;
}

/* ═══════════════════════════════════════════════════════════
   3D CAROUSEL SHOWCASE
═══════════════════════════════════════════════════════════ */

.c3d-section { padding: 3rem 0 2rem; }

/* ── Stage ────────────────────────────────────────────────── */
.c3d-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1300px;
  perspective-origin: 50% 38%;
  padding: 2rem 3rem 3rem;
  overflow: visible;
}

/* ── Track ────────────────────────────────────────────────── */
.c3d-track {
  position: relative;
  height: 360px;
  width: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Card base ────────────────────────────────────────────── */
.car-card {
  position: absolute;
  width: 248px;
  height: 330px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition:
    transform   0.62s cubic-bezier(0.34, 1.15, 0.64, 1),
    opacity     0.5s  ease,
    box-shadow  0.5s  ease;
  transform-style: preserve-3d;
}
.car-card-inner {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ── Positions ────────────────────────────────────────────── */
.car-card[data-pos="0"] {
  transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
  z-index: 10; opacity: 1; cursor: default;
  box-shadow:
    0 0 0 2px rgba(124,58,237,0.75),
    0 0 42px rgba(124,58,237,0.38),
    0 0 80px rgba(6,182,212,0.15),
    0 32px 64px rgba(0,0,0,0.65);
}
.car-card[data-pos="0"] .car-card-inner { border-color: transparent; }

.car-card[data-pos="1"]  { transform: translateX(285px)  translateZ(-110px) rotateY(-16deg) scale(0.86); z-index:8; opacity:0.72; box-shadow:0 20px 50px rgba(0,0,0,0.5); }
.car-card[data-pos="-1"] { transform: translateX(-285px) translateZ(-110px) rotateY(16deg)  scale(0.86); z-index:8; opacity:0.72; box-shadow:0 20px 50px rgba(0,0,0,0.5); }
.car-card[data-pos="2"]  { transform: translateX(510px)  translateZ(-230px) rotateY(-26deg) scale(0.65); z-index:6; opacity:0.40; box-shadow:0 12px 30px rgba(0,0,0,0.4); }
.car-card[data-pos="-2"] { transform: translateX(-510px) translateZ(-230px) rotateY(26deg)  scale(0.65); z-index:6; opacity:0.40; box-shadow:0 12px 30px rgba(0,0,0,0.4); }
.car-card[data-pos="3"],.car-card[data-pos="-3"],
.car-card[data-pos="4"],.car-card[data-pos="-4"],
.car-card[data-pos="5"],.car-card[data-pos="-5"] {
  transform: translateX(0) translateZ(-500px) scale(0.3);
  opacity: 0; pointer-events: none; z-index: 0;
}
.car-card:not([data-pos="0"]):hover { opacity: 0.9 !important; filter: brightness(1.08); }

/* ── Card visual ──────────────────────────────────────────── */
.car-card-vis {
  flex: 1; position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.6rem; overflow: hidden;
}
.car-card-vis .cat-vis-deco { position:absolute; width:160px; height:160px; border-radius:50%; opacity:0.14; animation: decoPulse 5s ease-in-out infinite alternate; }
.car-card-vis .cat-vis-emoji { font-size:3.4rem; position:relative; z-index:2; filter:drop-shadow(0 0 16px rgba(255,255,255,0.1)); animation:catFloat 4s ease-in-out infinite; }

.car-card-screenshot { flex:1; overflow:hidden; }
.car-card-screenshot img { width:100%; height:100%; object-fit:cover; display:block; }

/* ── Card footer ──────────────────────────────────────────── */
.car-card-footer {
  padding: 0.85rem 1rem;
  background: rgba(0,0,0,0.32);
  display: flex; align-items: center; gap: 0.55rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
[data-theme="light"] .car-card-footer { background: rgba(255,255,255,0.55); border-top-color: rgba(0,0,0,0.07); }
.car-card-icon { font-size: 1.1rem; flex-shrink: 0; }
.car-card-name {
  font-size: 0.72rem; font-weight: 700; color: var(--text);
  line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Arrows ───────────────────────────────────────────────── */
.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 20; width: 46px; height: 46px; border-radius: 50%;
  background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.22s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.car-prev { left: 0; }
.car-next { right: 0; }
.car-arrow:hover {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 15px rgba(124,58,237,0.3);
}

/* ═══════════════════════════════════════════════════════════
   COOKIE BANNER
═══════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
  transform: translateY(200%);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 420px;
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cookie-icon {
  font-size: 1.5rem;
}
.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.cookie-text a {
  color: var(--grad-b);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.25rem;
}
.cookie-text a:hover {
  text-decoration: underline;
}
.cookie-banner .btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: none;
  }
  .cookie-banner .btn-sm {
    width: 100%;
  }
}

.car-arrow:hover { transform: translateY(-50%) scale(1.08); }
.car-arrow:active { transform: translateY(-50%) scale(0.95); }

/* ── Dots ─────────────────────────────────────────────────── */
.c3d-dots {
  display: flex; justify-content: center;
  gap: 7px; padding: 0.25rem 0 0;
}
.car-dot {
  width: 7px; height: 7px; border-radius: 99px;
  background: var(--border); border: none; cursor: pointer;
  transition: all 0.3s ease; flex-shrink: 0; padding: 0;
}
.car-dot.active { width: 26px; background: linear-gradient(90deg, #7c3aed, #06b6d4); }
.car-dot:hover:not(.active) { background: var(--border-hover); width: 12px; }

/* ── Feature content below ────────────────────────────────── */
.c3d-content {
  padding: 2.5rem 0 1rem;
  min-height: 300px;
}
.c3d-feat { display: none; }
.c3d-feat.active {
  display: block;
  animation: c3dFeatIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes c3dFeatIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.c3d-feat-num {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--tag-color); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  animation: c3dFeatIn 0.45s ease both;
}
.c3d-feat-num::after { content:''; width:50px; height:1px; background:var(--gradient); opacity:0.4; flex-shrink:0; }
.c3d-feat-header { display:flex; align-items:center; gap:0.8rem; margin-bottom:0.85rem; animation: c3dFeatIn 0.52s ease 0.06s both; }
.c3d-feat-icon { font-size: 2rem; flex-shrink: 0; }
.c3d-feat-title { font-family:var(--font-brand); font-size:clamp(1.2rem,3vw,1.65rem); font-weight:800; color:var(--text); letter-spacing:-0.025em; line-height:1.1; }
.c3d-feat-desc { font-size:0.95rem; color:var(--text-muted); line-height:1.7; max-width:640px; margin-bottom:1.75rem; animation: c3dFeatIn 0.52s ease 0.11s both; }
.c3d-feat-items { display:flex; flex-direction:column; gap:0.6rem; list-style:none; }
.c3d-item {
  display:flex; align-items:flex-start; gap:0.75rem;
  font-size:0.875rem; line-height:1.6; color:var(--text-muted);
  padding:0.75rem 1rem;
  background:var(--surface); border:1px solid var(--border); border-radius:10px;
  transition: border-color 0.2s, transform 0.2s;
  animation: c3dItemIn 0.45s ease calc(0.18s + var(--d, 0s)) both;
}
.c3d-item:hover { border-color:var(--border-hover); transform:translateX(3px); }
.c3d-chk { width:20px; height:20px; border-radius:6px; background:var(--gradient); display:flex; align-items:center; justify-content:center; font-size:0.65rem; color:#fff; flex-shrink:0; margin-top:1px; }
.c3d-item strong { color:var(--text); font-weight:600; }
@keyframes c3dItemIn {
  from { opacity:0; transform:translateX(22px); }
  to   { opacity:1; transform:translateX(0); }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .c3d-track { height:300px; }
  .car-card  { width:210px; height:280px; }
  .car-card[data-pos="1"]  { transform:translateX(230px)  translateZ(-95px) rotateY(-14deg) scale(0.84); }
  .car-card[data-pos="-1"] { transform:translateX(-230px) translateZ(-95px) rotateY(14deg)  scale(0.84); }
  .car-card[data-pos="2"]  { transform:translateX(415px)  translateZ(-200px) rotateY(-22deg) scale(0.63); opacity:0.32; }
  .car-card[data-pos="-2"] { transform:translateX(-415px) translateZ(-200px) rotateY(22deg)  scale(0.63); opacity:0.32; }
}
@media (max-width: 600px) {
  .c3d-stage { padding:1rem 2.5rem 2rem; }
  .c3d-track { height:250px; }
  .car-card  { width:170px; height:230px; border-radius:14px; }
  .car-card[data-pos="1"]  { transform:translateX(178px)  translateZ(-75px) rotateY(-12deg) scale(0.82); }
  .car-card[data-pos="-1"] { transform:translateX(-178px) translateZ(-75px) rotateY(12deg)  scale(0.82); }
  .car-card[data-pos="2"]  { transform:translateX(320px)  translateZ(-150px) rotateY(-18deg) scale(0.6); opacity:0.25; }
  .car-card[data-pos="-2"] { transform:translateX(-320px) translateZ(-150px) rotateY(18deg)  scale(0.6); opacity:0.25; }
  .car-arrow { width:36px; height:36px; }
  .car-prev  { left:-4px; }
  .car-next  { right:-4px; }
}
/* ═══════════════════════════════════════════════════════════
   PREMIUM HERO — SPLIT LAYOUT
═══════════════════════════════════════════════════════════ */

.dv2-hero-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0 3rem;
  position: relative;
}
.dv2-hero-left { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }

/* Breadcrumb */
.dv2-breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--text-muted); flex-wrap: wrap;
}
.bc-link {
  background: none; border: none; cursor: pointer;
  color: var(--tag-color); font-size: inherit; font-family: inherit;
  padding: 0; transition: color 0.2s;
}
.bc-sep { opacity: 0.4; }
.bc-current { color: var(--text); font-weight: 600; }

/* Badges */
.dv2-badges-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.dv2-plat-badge {
  padding: 0.2rem 0.65rem; border-radius: 99px;
  background: rgba(124,58,237,0.15); color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.3);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
}

/* Giant gradient title */
.dv2-split-title {
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.0;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin: 0;
}

/* Short desc */
.dv2-split-desc {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.65;
  max-width: 520px; margin: 0;
  max-height: 120px; overflow-y: auto;
}

/* Buttons */
.dv2-split-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-ghost {
  padding: 0.65rem 1.25rem; border-radius: 10px;
  background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); color: var(--text);
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: all 0.22s ease; font-family: inherit;
}
.btn-ghost:hover { background: rgba(124,58,237,0.12); border-color: rgba(124,58,237,0.4); }

/* Mini stats */
.dv2-mini-stats {
  display: inline-flex; align-items: center;
  align-self: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.85rem 1.2rem;
  flex-wrap: wrap; row-gap: 0.6rem;
}
.mstat { display: flex; flex-direction: column; align-items: center; gap: 0.18rem; padding: 0 1rem; }
.mstat-val { font-size: 1rem; font-weight: 800; color: var(--text); line-height: 1; }
.mstat-lbl { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mstat-div { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }

/* RIGHT — glass icon scene */
.dv2-hero-right { display: flex; align-items: center; justify-content: center; }
.dv2-icon-scene {
  position: relative; width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.dv2-icon-glow {
  position: absolute; inset: -28px;
  background: radial-gradient(circle, rgba(124,58,237,0.45) 0%, rgba(6,182,212,0.2) 55%, transparent 75%);
  border-radius: 50%; animation: glowPulse 3s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes glowPulse {
  from { opacity: 0.5; transform: scale(0.9); }
  to   { opacity: 1;   transform: scale(1.1); }
}
.dv2-icon-glass {
  width: 160px; height: 160px; border-radius: 28px;
  background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid transparent;
  background-image: linear-gradient(var(--glass-bg), var(--glass-bg)), linear-gradient(135deg, rgba(124,58,237,0.8), rgba(6,182,212,0.8));
  background-origin: border-box; background-clip: padding-box, border-box;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(124,58,237,0.2);
  animation: iconFloat 5s ease-in-out infinite;
}
@keyframes iconFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.dv2-glass-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.dv2-glass-emoji { font-size: 4.5rem; display: flex; align-items: center; justify-content: center; }

/* Floating badges */
.dv2-float-badge {
  position: absolute;
  background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: 99px;
  padding: 0.25rem 0.75rem; font-size: 0.65rem; font-weight: 700; color: var(--text);
  white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.fb-1 { top: 0; right: -20px; animation: floatBadge1 4s ease-in-out infinite; }
.fb-2 { bottom: 20px; left: -30px; animation: floatBadge2 5s ease-in-out infinite 0.8s; }
.fb-3 { top: 50%; right: -40px; animation: floatBadge3 3.5s ease-in-out infinite 1.4s; }
@keyframes floatBadge1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes floatBadge2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
@keyframes floatBadge3 { 0%,100%{transform:translateY(-50%) translateX(0)} 50%{transform:translateY(-50%) translateX(-5px)} }

@media (max-width: 768px) {
  .dv2-hero-split { grid-template-columns: 1fr; gap: 2rem; }
  .dv2-hero-right { display: none; }
  .dv2-split-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
}

/* ═══════════════════════════════════════════════════════════
   LOGO PREVIEW SECTION
═══════════════════════════════════════════════════════════ */
.feat-preview-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; padding: 3rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 2rem 0;
}
.feat-preview-left { display: flex; align-items: center; justify-content: center; }
.feat-logo-wrap {
  position: relative; display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.feat-logo-glow { display: none; }
.feat-logo-img {
  max-width: 500px; max-height: 400px; width: auto; height: auto;
  border-radius: 12px; display: block;
  transform: perspective(700px) rotateY(-12deg) rotateX(4deg);
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,100% { transform: perspective(700px) rotateY(-12deg) rotateX(4deg) translateY(0); }
  50%      { transform: perspective(700px) rotateY(-10deg) rotateX(2deg) translateY(-12px); }
}
.feat-logo-placeholder {
  width: 260px; height: 200px; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
  transform: perspective(700px) rotateY(-12deg) rotateX(4deg);
  animation: logoFloat 6s ease-in-out infinite;
}
.feat-preview-right { display: flex; flex-direction: column; gap: 1rem; }
.feat-preview-title {
  font-family: var(--font-brand); font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; margin: 0; letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.feat-preview-sub { font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; margin: 0; }
.btn-ver-feat {
  align-self: flex-start;
}
@media (max-width: 768px) {
  .feat-preview-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .feat-logo-img, .feat-logo-placeholder { transform: perspective(400px) rotateY(-6deg) rotateX(2deg); }
}

/* ═══════════════════════════════════════════════════════════
   FEATURES MODAL — STACKED CARDS
═══════════════════════════════════════════════════════════ */
.feat-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.feat-modal-overlay.open { opacity: 1; pointer-events: all; }
.feat-modal {
  position: relative; width: min(92vw, 980px); max-height: 88vh;
  background: var(--console-bg, var(--bg)); border: 1px solid var(--border); border-radius: 24px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(124,58,237,0.15), 0 40px 100px rgba(0,0,0,0.7), 0 0 80px rgba(124,58,237,0.1);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34,1.2,0.64,1);
}
.feat-modal-overlay.open .feat-modal { transform: scale(1) translateY(0); }
/* IDE Header */
.ide-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--console-header, rgba(0,0,0,0.3)); border-bottom: 1px solid var(--border);
}
.ide-controls { display: flex; gap: 0.45rem; }
.w-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: none; cursor: pointer; display: inline-block;
  opacity: 0.8; transition: opacity 0.2s; padding: 0;
}
.w-dot:hover { opacity: 1; }
.w-red { background: #ff5f56; }
.w-ylw { background: #ffbd2e; cursor: default; }
.w-grn { background: #27c93f; cursor: default; }
.ide-title {
  font-family: monospace; font-size: 0.8rem;
  color: var(--text-muted); font-weight: 600;
  letter-spacing: 0.05em;
}
.ide-divider {
  background: linear-gradient(to bottom, transparent, rgba(6,182,212,0.3), transparent);
  width: 1px; height: 100%;
}
.feat-modal-body {
  display: grid; grid-template-columns: 380px 1px 1fr; flex: 1; overflow: hidden;
}

/* LEFT stacked area */
.stacked-area {
  position: relative;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1.5rem; overflow: hidden;
}
.modal-blueprint-grid { display: none; }
/* ───────────────────────────────────────────────
   Stacked cards — 3D tilt + float
─────────────────────────────────────────────── */
.stacked-perspective {
  perspective: 900px;
  perspective-origin: 45% 50%;
}
.stacked-cards {
  position: relative; width: 260px; height: 320px;
  transform-style: preserve-3d;
  /* Global tilt: incline left-to-right into the background */
  transform: rotateX(6deg) rotateY(12deg);
  animation: stackFloat 6s ease-in-out infinite alternate;
}
@keyframes stackFloat {
  0%   { transform: rotateX(6deg) rotateY(12deg) translateY(0px); }
  50%  { transform: rotateX(8deg) rotateY(10deg)  translateY(12px); }
  100% { transform: rotateX(5deg) rotateY(12deg) translateY(4px); }
}

.scard {
  position: absolute; inset: 0; border-radius: 20px; overflow: visible;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.34,1.15,0.64,1), opacity 0.45s ease, filter 0.45s ease;
}
.scard-inner {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
  border-radius: inherit; background: transparent; border: none;
  position: relative; overflow: visible;
}
.scard-icon  { font-size: 3.8rem; position: relative; z-index: 2; animation: catFloat 4s ease-in-out infinite; }
.scard-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-align: center; padding: 0 1rem; position: relative; z-index: 2; }

/* Window frames & Reflections */
.window-frame {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  background: var(--bg);
}
.window-header {
  height: 22px; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 4px; padding: 0 8px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.window-header .w-dot { width: 8px; height: 8px; }
.scard-reflection { display: none; }

/* Stack positions */
.scard[data-stack="0"] {
  transform: translateX(0) translateZ(0) rotateY(0) scale(1);
  z-index: 6; opacity: 1; cursor: default;
}
.scard[data-stack="0"] .scard-inner { border-color: transparent; }
.scard[data-stack="1"] {
  transform: translateX(-30px) translateZ(-70px) rotateY(10deg) scale(0.9);
  z-index: 5; opacity: 0.65;
}
.scard[data-stack="2"] {
  transform: translateX(-55px) translateZ(-140px) rotateY(18deg) scale(0.8);
  z-index: 4; opacity: 0.4;
}
.scard[data-stack="3"] {
  transform: translateX(-75px) translateZ(-210px) rotateY(24deg) scale(0.7);
  z-index: 3; opacity: 0.22;

}
.scard[data-stack="4"],
.scard[data-stack="5"],
.scard:not([data-stack="0"]):not([data-stack="1"]):not([data-stack="2"]):not([data-stack="3"]) {
  transform: translateX(-90px) translateZ(-280px) rotateY(28deg) scale(0.6);
  z-index: 2; opacity: 0.1; pointer-events: none;
}
.scard:not([data-stack="0"]):hover { opacity: 0.85 !important; filter: brightness(1.12); }

/* RIGHT feature info */
.si-area { padding: 2rem; overflow-y: auto; display: flex; flex-direction: column; }
.si-panel { display: none; }
.si-panel.active {
  display: flex; flex-direction: column; gap: 0.75rem;
  animation: siPanelIn 0.42s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes siPanelIn {
  from { opacity: 0; transform: translateX(28px) translateY(6px); }
  to   { opacity: 1; transform: translateX(0)    translateY(0); }
}

/* Animations & Syntax Highlighting */
.hl-kw { color: #06b6d4; font-weight: 700; text-shadow: 0 0 8px rgba(6,182,212,0.3); }
.anim-typewriter {
  opacity: 0;
  animation: glitchReveal 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.anim-typewriter-delay {
  opacity: 0;
  animation: glitchReveal 0.35s cubic-bezier(0.25, 1, 0.5, 1) 0.15s forwards;
}
@keyframes glitchReveal {
  0%   { opacity: 0; transform: translateX(-5px) skewX(10deg); filter: blur(3px) drop-shadow(0 0 5px #06b6d4); color: #06b6d4; }
  70%  { opacity: 1; transform: translateX(2px) skewX(-5deg); filter: blur(0px); color: #06b6d4; }
  100% { opacity: 1; transform: translateX(0) skewX(0deg); }
}

.si-num {
  font-family: 'Courier New', monospace; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--tag-color);
  display: flex; align-items: center; gap: 0.75rem;
}
.si-num::after { content:''; width:40px; height:1px; background:var(--gradient); opacity:0.4; }
.si-header { display:flex; align-items:center; gap:0.75rem; }
.si-icon   { font-size:1.8rem; flex-shrink:0; }
.si-title  { font-family:var(--font-brand); font-size:clamp(1.1rem,2.5vw,1.45rem); font-weight:800; color:var(--text); letter-spacing:-0.025em; line-height:1.1; }
.si-desc   { font-size:0.88rem; color:var(--text-muted); line-height:1.65; max-width:520px; }
.si-items  {
  display:flex; flex-direction:column; gap:0; list-style:none; padding:0; margin:0;
  background:var(--console-card-bg, var(--surface)); border:1px solid var(--border); border-radius:12px;
  overflow:hidden;
}
.si-item {
  display:flex; align-items:flex-start; gap:0.65rem;
  font-size:0.82rem; line-height:1.55; color:var(--text-muted);
  padding:0.7rem 1rem;
  border-bottom:1px solid var(--border);
  transition: background 0.15s;
  animation: siItemIn 0.4s ease calc(0.15s + var(--d,0s)) both;
}
.si-item:last-child { border-bottom:none; }
.si-item:hover { background: rgba(124,58,237,0.05); }
.si-chk { width:18px; height:18px; display:flex; align-items:center; justify-content:center; font-size:0.85rem; flex-shrink:0; margin-top:1px; }
.si-item strong { color:var(--text); font-weight:600; }
@keyframes siItemIn { from { opacity:0; transform:translateX(18px); } to { opacity:1; transform:translateX(0); } }

/* Navigation bar */
.feat-modal-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.75rem; border-top: 1px solid var(--border);
  background: var(--console-nav-bg, var(--surface)); flex-shrink: 0;
}
.feat-modal-counter { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.btn-stack-next, .btn-stack-prev {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 1.2rem; border-radius: 6px;
  background: var(--surface-hover); color: var(--text); 
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--border-hover);
  cursor: pointer; font-size: 0.85rem; font-weight: 700; font-family: inherit;
  transition: all 0.1s ease;
}
.btn-stack-next:hover, .btn-stack-prev:hover { 
  background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.4); border-bottom-color: rgba(6,182,212,0.6);
  color: #06b6d4;
}
.btn-stack-next:active, .btn-stack-prev:active { 
  transform: translateY(2px); border-bottom-width: 1px; margin-bottom: 2px;
}

@media (max-width: 768px) {
  .feat-modal-body { grid-template-columns: 1fr; }
  .stacked-area { border-right:none; border-bottom:1px solid var(--border); padding:2rem 1rem; }
  .stacked-cards { width:200px; height:260px; }
  .scard[data-stack="1"] { transform:translateX(-22px) translateZ(-55px) rotateY(9deg) scale(0.89); }
  .scard[data-stack="2"] { transform:translateX(-42px) translateZ(-110px) rotateY(16deg) scale(0.78); }
  .si-area { max-height:50vh; padding:1.5rem; }
}

@media (max-width: 480px) {
  .stacked-cards { width: 130px !important; height: 170px !important; }
  .stacked-area { padding: 1rem 0.5rem !important; }
  .scard[data-stack="1"] { transform: translateX(-12px) translateZ(-30px) rotateY(6deg) scale(0.88) !important; }
  .scard[data-stack="2"] { transform: translateX(-24px) translateZ(-60px) rotateY(12deg) scale(0.76) !important; }
  .feat-modal-nav { padding: 0.6rem 0.75rem !important; }
  .feat-modal-nav-btns { gap: 0.35rem !important; }
  .btn-stack-prev, .btn-stack-next { padding: 0.4rem 0.75rem !important; font-size: 0.75rem !important; }
  .feat-modal {
    width: 92vw !important;
    height: 82vh !important;
    max-height: 580px !important;
    border-radius: 16px !important;
  }
  .si-area { max-height: 38vh !important; padding: 1rem !important; }
}


/* Responsive: tablet → 2-col, phone → 1-col with scroll */
@media (max-width: 900px) {
  .pricing-modal { height: min(94vh, 860px); overflow-y: auto; }
  .dl-pricing-grid { grid-template-columns: repeat(2, 1fr); overflow-y: visible; }
}
@media (max-width: 560px) {
  .pricing-modal { padding: 1.2rem 0.8rem; }
}


/* ── Stacked cards modal nav: Anterior + Siguiente buttons ── */
.feat-modal-nav { justify-content: space-between; }
.feat-modal-nav-btns {
  display: flex; gap: 0.5rem; align-items: center;
}
.btn-stack-prev {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-stack-prev:hover { background: var(--surface-hover); color: var(--text); border-color: var(--border-hover); }

/* ── Gradient text on si-title (project info panel) ──────── */
.si-title {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── scard-img: fill card, no overflow, no crop issues ────── */
.scard-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: transparent;
  display: block;
  border-radius: 12px;
}

/* ── Faster stacked card transitions (less lag) ──────────── */
.scard {
  transition: transform 0.32s cubic-bezier(0.34,1.05,0.64,1),
              opacity   0.28s ease,
              box-shadow 0.28s ease !important;
}

/* ═══════════════════════════════════════════════════════════
   LANGUAGE GLOBE BUTTON (replaces two-button pill)
═══════════════════════════════════════════════════════════ */
.lang-globe {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.lang-globe:hover { 
  transform: scale(1.1); 
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 15px rgba(124,58,237,0.2);
}

/* Language text label */
.lang-globe-text {
  position: relative; z-index: 2;
  font-family: var(--font-brand);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  user-select: none;
  line-height: 1;
}

/* Flip animation on language switch */
@keyframes langFlip {
  0%   { transform: rotateY(0deg)   scale(1); }
  40%  { transform: rotateY(90deg)  scale(0.85); }
  60%  { transform: rotateY(-90deg) scale(0.85); }
  100% { transform: rotateY(0deg)   scale(1); }
}
.lang-globe.lang-flip {
  animation: langFlip 0.42s cubic-bezier(0.22,1,0.36,1) both;
}

/* Keep old lang-toggle/lang-btn invisible in case any markup remains */
.lang-toggle { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   THEME TOGGLE SWING ANIMATION
═══════════════════════════════════════════════════════════ */
/* Icon-only swing — applied to .toggle-sun or .toggle-moon span */
@keyframes iconSwing {
  0%   { transform: rotate(0deg)   scale(1);    }
  22%  { transform: rotate(-22deg) scale(1.25); }
  48%  { transform: rotate(16deg)  scale(1.15); }
  68%  { transform: rotate(-10deg) scale(1.05); }
  84%  { transform: rotate(5deg)   scale(1.02); }
  100% { transform: rotate(0deg)   scale(1);    }
}
.toggle-sun.icon-swing,
.toggle-moon.icon-swing {
  animation: iconSwing 0.5s cubic-bezier(0.36,0.07,0.19,0.97) both;
}

/* ═══════════════════════════════════════════════════════════
   PRICING PLANS MODAL
═══════════════════════════════════════════════════════════ */
/* Overlay (reuse dl-modal-overlay) */
/* Pricing Overlay (independent from dl-modal) */
.pricing-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.pricing-overlay.open { opacity: 1; visibility: visible; pointer-events: all; }

/* Pricing Modal Container — Full-Screen Decoupled */
.pricing-modal {
  position: relative;
  width: min(98vw, 1340px);
  height: min(94vh, 860px);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1.4rem 1.5rem 1.5rem;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 1rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.06);
  animation: pricingModalIn 0.38s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes pricingModalIn {
  from { opacity:0; transform: translateY(32px) scale(0.97); }
  to   { opacity:1; transform: translateY(0)     scale(1); }
}

/* Close button */
.pricing-close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-hover); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 10;
}
.pricing-close:hover { background: rgba(239,68,68,0.15); color: #ef4444; transform: scale(1.08); }

/* Header — compact */
.dl-pricing-header { text-align: center; flex-shrink: 0; padding: 0.2rem 0 0.5rem; }
.dl-pricing-eyebrow {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.25rem; display: block;
}
.dl-pricing-sub { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Cards grid — 5 columns filling all available height */
.dl-pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  flex: 1;
  min-height: 0;
  overflow: visible;
}

/* Individual card — fills grid cell, no fixed width */
.price-card {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.2rem 1rem 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  position: relative; overflow: hidden;
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
  /* Float animation per card */
  animation-name: cardFloatIn, cardFloat;
  animation-duration: 0.5s, 5s;
  animation-delay: var(--card-delay,0s), calc(var(--card-delay,0s) + 0.5s);
  animation-timing-function: cubic-bezier(0.22,1,0.36,1), ease-in-out;
  animation-fill-mode: both, none;
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
}
@keyframes cardFloatIn {
  from { opacity:0; transform: translateY(24px) scale(0.96); }
  to   { opacity:1; transform: translateY(0)     scale(1); }
}
@keyframes cardFloat {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}
.price-card:hover {
  transform: translateY(-12px) scale(1.025) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(6,182,212,0.4);
  border-color: rgba(6,182,212,0.6);
  z-index: 2;
}

/* Popular card highlight */
.price-card--popular {
  border-color: rgba(124,58,237,0.7);
  background: linear-gradient(160deg, rgba(124,58,237,0.12), rgba(6,182,212,0.06));
  box-shadow: 0 0 0 2px rgba(124,58,237,0.5), 0 0 40px rgba(124,58,237,0.2);
}
.price-card--popular:hover {
  box-shadow: 0 0 0 2px rgba(124,58,237,0.85), 0 0 60px rgba(124,58,237,0.4), 0 24px 60px rgba(0,0,0,0.5) !important;
}
.price-popular-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 0.22rem 0.75rem; border-radius: 0 0 10px 10px;
  white-space: nowrap; box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

/* Card content */
.price-tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--tag-color);
  margin-top: 0.6rem;
}
.price-name {
  font-family: var(--font-brand); font-size: 1rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.02em;
}
.price-amount { display: flex; flex-direction: column; gap: 0.1rem; }
.price-num {
  font-family: var(--font-brand); font-size: 2.2rem; font-weight: 900;
  letter-spacing: -0.05em; line-height: 1;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.price-sub { font-size: 0.7rem; color: var(--text-muted); line-height: 1.3; }
.price-desc { font-size: 0.77rem; color: var(--text-muted); line-height: 1.55; margin: 0; flex: 0; }

/* Bullets */
.price-bullets {
  list-style: none; display: flex; flex-direction: column; gap: 0.35rem;
  padding: 0 0.5rem 0 0; margin: 0; flex: 1;
  overflow-y: auto;
}
.price-bullets::-webkit-scrollbar { width: 2px; }
.price-bullets::-webkit-scrollbar-track { background: transparent; }
.price-bullets::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.4); border-radius: 10px; }
.price-bullets::-webkit-scrollbar-thumb:hover { background: rgba(124, 58, 237, 0.7); }
.price-bullets::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.price-bullet {
  display: flex; align-items: flex-start; gap: 0.45rem;
  font-size: 0.73rem; color: var(--text-muted); line-height: 1.45;
}
.price-bullet--no { opacity: 0.5; }
.price-bullet-icon {
  font-size: 0.7rem; flex-shrink: 0; margin-top: 0.12rem;
}
.price-bullet:not(.price-bullet--no) .price-bullet-icon { color: #10b981; }
.price-bullet--no .price-bullet-icon { color: #ef4444; }

/* Card CTA button */
.price-btn {
  display: block; width: 100%; text-align: center;
  padding: 0.75rem 1rem; border-radius: 12px; margin-top: auto;
  font-size: 0.8rem; font-weight: 700; font-family: var(--font-brand);
  background: rgba(124, 58, 237, 0.05); color: var(--text);
  border: 1px solid var(--border-hover);
  cursor: pointer; text-decoration: none;
  transition: all 0.24s ease;
  position: relative; overflow: hidden;
}
.price-btn:hover { 
  background: rgba(6,182,212,0.15); 
  border-color: rgba(6,182,212,0.6); 
  transform: translateY(-2px); 
  box-shadow: 0 4px 20px rgba(6,182,212,0.15);
  color: var(--text);
}
.price-btn--popular {
  background: var(--gradient); color: #fff; border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}
.price-btn--popular:hover { 
  box-shadow: 0 8px 30px rgba(124,58,237,0.6); 
  transform: translateY(-3px); 
  filter: brightness(1.1);
  border-color: transparent;
}

/* Responsive: horizontal slider for pricing cards on small screens */
@media (max-width: 768px) {
  .dl-modal--pricing { padding: 2rem 1rem 1.5rem; }
  .dl-pricing-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1.5rem;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .price-card {
    flex: 0 0 280px !important;
    scroll-snap-align: center;
    max-height: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   TERMINAL CONTACT SECTION
═══════════════════════════════════════════════════════════ */
.contact-terminal-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.contact-terminal {
  background: var(--console-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  overflow: hidden;
  font-family: monospace;
  cursor: text;
  min-height: 350px;
  display: flex;
  flex-direction: column;
}
.term-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  color: var(--text); /* Adaptable a claro/oscuro */
  font-size: 0.95rem;
  line-height: 1.7;
}
.term-history {
  margin-bottom: 0.5rem;
}
.term-line {
  margin-bottom: 0.5rem;
  animation: fadeUp 0.3s ease-out forwards;
}
.term-prompt {
  color: #10b981; /* Green */
  font-weight: 700;
}
.term-prompt-text {
  color: #60a5fa; /* Blue */
}
.term-active-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text); /* Adaptable a claro/oscuro */
  font-family: monospace;
  font-size: 0.95rem;
  flex: 1;
  min-width: 100px;
  text-shadow: 0 0 5px rgba(255,255,255,0.3);
}
.term-input:focus {
  text-shadow: 0 0 8px rgba(124,58,237,0.8);
}
.term-action-area {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}
.term-btn-neon {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.5);
  border-radius: 8px;
  color: var(--text); /* Adaptable a claro/oscuro */
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(124,58,237,0.2), inset 0 0 15px rgba(124,58,237,0.1);
  animation: fadeUp 0.5s ease-out forwards;
}
.term-btn-neon:hover {
  background: rgba(124,58,237,0.25);
  box-shadow: 0 0 30px rgba(124,58,237,0.6), inset 0 0 20px rgba(124,58,237,0.4);
  transform: translateY(-2px);
}
.term-text-highlight { color: #fcd34d; } /* Yellow */
.term-text-success { color: #34d399; } /* Green */
.term-text-error { color: #f87171; } /* Red */

/* ═══════════════════════════════════════════════════════════
   GOOGLE TRANSLATE HACKS
═══════════════════════════════════════════════════════════ */
body {
  top: 0 !important;
}
.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM GLASSMORPHISM NEON BUTTON WITH ANIMATED OUTLINE
   (Matches visual design from user image)
   ═══════════════════════════════════════════════════════════ */
.btn-glass-neon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border-radius: 14px !important;
  background: transparent !important;
  color: var(--text) !important;
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s ease !important;
  z-index: 1;
}

/* Giant rotating square to form the sweeping light outline */
.btn-glass-neon::before {
  content: '';
  position: absolute;
  top: -150%;
  left: -50%;
  width: 200%;
  height: 400%;
  background: conic-gradient(from 0deg, transparent 30%, #7c3aed 50%, #06b6d4 70%, transparent 90%);
  animation: rotateBorder 4s linear infinite;
  z-index: -2;
  opacity: 0.35; /* Faint glowing trace by default */
  transition: opacity 0.3s ease;
}

/* Inner Glass Mask (Translúcido con blur) */
.btn-glass-neon::after {
  content: '';
  position: absolute;
  inset: 1.5px; /* Perfect border width of 1.5px */
  background: var(--console-bg, rgba(20, 16, 27, 0.96)) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 13px;
  z-index: -1;
  transition: background 0.3s ease, opacity 0.3s ease;
}

/* Ensure contents sit above the outline mask */
.btn-glass-neon span,
.btn-glass-neon svg {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Hover State */
.btn-glass-neon:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35), 0 0 15px rgba(6, 182, 212, 0.2) !important;
}

.btn-glass-neon:hover::before {
  opacity: 1; /* Intense orbital highlight sweep on hover */
  animation-duration: 2.2s; /* Sweeps faster on hover */
}

.btn-glass-neon:hover::after {
  background: rgba(124, 58, 237, 0.12) !important; /* Elegant background tint glow */
}

/* Active / Click State */
.btn-glass-neon:active {
  transform: scale(0.97) translateY(-1px);
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2) !important;
}

.btn-glass-neon:hover svg {
  transform: translateX(4px);
}
.btn-glass-neon:hover svg.arrow-down {
  transform: translateY(4px);
}

@keyframes rotateBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Requisitos e Instalación Section ────────────────────────── */
.dv2-req-install-section {
  margin: 3rem 0;
}
.req-install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 868px) {
  .req-install-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.req-box, .install-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.req-box::before, .install-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.8;
}

.req-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.req-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.req-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.req-icon {
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.55rem;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.req-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.req-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Steps list */
.install-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.install-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.install-step-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.install-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.install-step-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.install-step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Collapsible Changelog ────────────────────────────── */
.timeline-older-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.timeline-older-wrapper.is-expanded {
  grid-template-rows: 1fr;
}
.timeline-older-inner {
  min-height: 0;
}

.timeline-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  margin-left: 0.25rem;
  padding: 0.6rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text);
  font-family: var(--font-main, sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  align-self: flex-start;
}
.timeline-toggle-btn:focus-visible {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}
.timeline-toggle-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, 0.15));
}
.timeline-toggle-btn:active {
  transform: translateY(0);
}
.timeline-toggle-btn.active {
  background: var(--tag-bg);
  border-color: rgba(124, 58, 237, 0.4);
}
.timeline-toggle-btn .toggle-arrow {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
  color: #a855f7;
}

