/* ============================================================
   cmdx — Landing Page Styles
   Design System: Neural Grid Terminal Aesthetic
   Palette: Void Black / Electric Cyan / Warm Amber / Violet
   ============================================================ */

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

:root {
  /* Colors */
  --void: #06060e;
  --cyan: #00e8ff;
  --amber: #ff8a00;
  --violet: #7b5cff;
  --text: #e4e4f0;
  --dim: #8888a0;
  --glow-cyan: rgba(0, 232, 255, 0.15);
  --glow-amber: rgba(255, 138, 0, 0.15);
  --glow-violet: rgba(123, 92, 255, 0.15);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-pad: 4rem 2rem;
}

/* --- Base --- */
html {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

body {
  background: var(--void);
  cursor: none;
}
body *, a, button, input, select, textarea {
  cursor: none !important;
}
@media (hover: none), (max-width: 768px) {
  body, body *, a, button, input, select, textarea {
    cursor: auto !important;
  }
}

/* --- WebGL Canvas --- */
#webgl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* --- Scanline Overlay --- */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  animation: flicker 8s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.35; }
  92%      { opacity: 0.4; }
  93%      { opacity: 0.5; }
  94%      { opacity: 0.4; }
}

/* --- Vignette --- */
.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(6, 6, 14, 0.8) 100%
  );
}


/* ============================================================
   SECTIONS — Homepage only
   ============================================================ */
body:not(.subpage) section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-pad);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  flex-direction: column;
  text-align: center;
  min-height: 100vh;
}

.hero h1,
.hero-sub,
.hero-tag,
.feature-content h3,
.feature-content p,
.interact-section h2,
.interact-hint,
.download h2,
.download .sub {
  text-shadow: 0 0 20px rgba(6, 6, 14, 0.95), 0 0 40px rgba(6, 6, 14, 0.8), 0 2px 8px rgba(6, 6, 14, 1);
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--cyan) 60%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--dim);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
}

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

/* --- Buttons --- */
.btn-primary {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.8rem 2rem;
  border: 1px solid var(--cyan);
  background: rgba(0, 232, 255, 0.08);
  color: var(--cyan);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  background: rgba(0, 232, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 232, 255, 0.2), inset 0 0 30px rgba(0, 232, 255, 0.05);
}

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(136, 136, 160, 0.25);
  background: transparent;
  color: var(--dim);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.btn-ghost:hover {
  border-color: var(--dim);
  color: var(--text);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--dim);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%      { transform: scaleY(0.5); opacity: 1; }
}


/* ============================================================
   FEATURES
   ============================================================ */
.features {
  flex-direction: column;
  gap: 0;
  padding: 0 2rem;
  min-height: 300vh;
  justify-content: flex-start;
  align-items: center;
}

.feature-block {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 960px;
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(40px);
  padding: 2rem;
  border-radius: 8px;
  background: rgba(6, 6, 14, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.feature-block:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-index {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(0, 232, 255, 0.08);
  line-height: 1;
  flex-shrink: 0;
}

.feature-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.accent       { color: var(--cyan); }
.accent-amber { color: var(--amber); }
.accent-violet{ color: var(--violet); }

.feature-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dim);
  max-width: 420px;
}

.feature-content .cmd-example {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  background: rgba(0, 232, 255, 0.06);
  border: 1px solid rgba(0, 232, 255, 0.12);
  padding: 0.6rem 1rem;
  margin-top: 1rem;
  display: inline-block;
  opacity: 0.7;
}


/* ============================================================
   DEMO VIDEO + SCREENSHOT SPHERE
   ============================================================ */
.demo-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--section-pad);
  text-align: center;
}
.demo-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 20px rgba(6,6,14,0.95), 0 0 40px rgba(6,6,14,0.8);
}
.demo-sub {
  font-size: 1rem;
  color: var(--dim);
  margin-bottom: 2rem;
  text-shadow: 0 0 20px rgba(6,6,14,0.95);
}
.demo-stage {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px;
}
#sphereCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  cursor: grab;
}
#sphereCanvas:active {
  cursor: grabbing;
}
.demo-video-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 55%;
  border: 1px solid rgba(0, 232, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(6, 6, 14, 0.95);
  box-shadow: 0 4px 60px rgba(0, 232, 255, 0.08), 0 0 80px rgba(6, 6, 14, 0.9);
}
.demo-video {
  width: 100%;
  display: block;
  background: #000;
}
.demo-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--dim);
  margin-top: 1rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.dl-card:hover {
  border-color: var(--cyan);
  background: rgba(0, 232, 255, 0.04);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 232, 255, 0.1);
}

.dl-card .os-icon {
  font-size: 2rem;
}

.dl-card .os-icon-svg {
  width: 32px;
  height: 32px;
  fill: var(--cyan);
  transition: fill 0.3s ease;
}

.dl-card:hover .os-icon-svg {
  fill: var(--text);
}

.dl-card .os-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
}

.dl-card .os-arch {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dim);
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(136, 136, 160, 0.08);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--dim);
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-copy {
  font-size: 0.7rem;
  color: rgba(136, 136, 160, 0.4);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .feature-block,
  .feature-block:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
  .feature-content p { max-width: 100%; }
  .hero-cta { flex-direction: column; align-items: center; }
  .download-grid { flex-direction: column; align-items: center; }
  .feature-index { font-size: 3rem; }
  #interact-container { width: 300px !important; height: 300px !important; }
  .site-nav { padding: 1rem; }
  .nav-links { gap: 1rem; }
  .demo-video { max-width: 100%; }
  .contact-form { max-width: 100%; }
  .donate-grid { flex-direction: column; align-items: center; }
}


/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2.5rem;
  background: rgba(6, 6, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(136, 136, 160, 0.06);
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.3s;
  letter-spacing: 0.03em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}


/* ============================================================
   HERO BACKDROP — dark zone behind text for readability
   ============================================================ */
.hero-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(6,6,14,0.92) 0%, rgba(6,6,14,0.6) 50%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}


/* ============================================================
   CURSOR EFFECTS
   ============================================================ */
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 232, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s, opacity 0.3s;
}
.cursor-glow.hovering {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 232, 255, 0.1) 0%, transparent 70%);
}
.cursor-ring {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(0, 232, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-ring.hovering {
  width: 48px;
  height: 48px;
  border-color: rgba(0, 232, 255, 0.6);
}
@media (hover: none) {
  .cursor-glow, .cursor-ring { display: none; }
}

/* ============================================================
   CARD GLOW (inner element)
   ============================================================ */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  background: radial-gradient(600px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(0, 232, 255, 0.06), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   SUBPAGES (download, donate, contact)
   ============================================================ */
.subpage {
  background: var(--void);
  min-height: 100vh;
  cursor: none;
}
.subpage *,
.subpage a,
.subpage button,
.subpage input,
.subpage select,
.subpage textarea {
  cursor: none !important;
}
.subpage #webgl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.subpage .scanlines {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 232, 255, 0.008) 2px,
    rgba(0, 232, 255, 0.008) 4px
  );
  pointer-events: none;
  z-index: 1;
}
.subpage .vignette {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(6, 6, 14, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}
.subpage .site-nav,
.subpage main,
.subpage footer {
  position: relative;
  z-index: 2;
}
.subpage-main {
  padding-top: 2.8rem;
}
.subpage-hero {
  text-align: center;
  padding: 1.2rem 2rem 0.8rem;
}
.subpage-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 30px rgba(6,6,14,0.95), 0 0 60px rgba(6,6,14,0.7);
  background: linear-gradient(135deg, var(--text) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subpage-desc {
  font-size: 0.95rem;
  color: var(--dim);
  max-width: 520px;
  margin: 0 auto 0.8rem;
  line-height: 1.5;
  text-shadow: 0 0 20px rgba(6,6,14,0.9);
}
/* Ensure .reveal elements are visible even without GSAP */
.reveal {
  opacity: 1;
}

/* ============================================================
   DOWNLOAD PAGE
   ============================================================ */
.download-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
}
.download-grid {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1.5rem;
  border: 1px solid rgba(136, 136, 160, 0.1);
  background: rgba(6, 6, 14, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  color: var(--text);
  min-width: 200px;
  border-radius: 12px;
  overflow: hidden;
}
.dl-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 60px rgba(0, 232, 255, 0.12), 0 0 0 1px rgba(0, 232, 255, 0.1);
}
.dl-card:hover .card-glow { opacity: 1; }
.os-icon-svg {
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 232, 255, 0.3));
  transition: filter 0.3s;
}
.dl-card:hover .os-icon-svg {
  filter: drop-shadow(0 0 16px rgba(0, 232, 255, 0.6));
}
.os-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}
.os-arch {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dim);
  letter-spacing: 0.03em;
}
.dl-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  border: 1px solid rgba(0, 232, 255, 0.2);
  padding: 0.5rem 1.2rem;
  margin-top: auto;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s;
}
.dl-btn-group {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}
.dl-btn-group .dl-btn {
  margin-top: 0;
}
.dl-card:hover .dl-btn {
  background: rgba(0, 232, 255, 0.1);
  border-color: rgba(0, 232, 255, 0.4);
}


/* ============================================================
   DONATE PAGE
   ============================================================ */
.donate-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
}
.donate-grid {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.donate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1.5rem;
  border: 1px solid rgba(136, 136, 160, 0.1);
  background: rgba(6, 6, 14, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 200px;
  max-width: 260px;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}
.donate-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 60px rgba(0, 232, 255, 0.12), 0 0 0 1px rgba(0, 232, 255, 0.1);
}
.donate-card:hover .card-glow { opacity: 1; }
.donate-card.featured {
  border-color: rgba(0, 232, 255, 0.3);
  background: rgba(0, 232, 255, 0.04);
}
.donate-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0 0 6px 6px;
}
.donate-icon {
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 232, 255, 0.3));
}
.donate-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}
.donate-amount {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 232, 255, 0.3);
}
.donate-card p {
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.5;
}
.donate-note {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid rgba(136, 136, 160, 0.08);
  border-radius: 12px;
  background: rgba(6, 6, 14, 0.4);
}
.donate-note p {
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.6;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(136, 136, 160, 0.08);
  border-radius: 12px;
  background: rgba(6, 6, 14, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--dim);
  letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  background: rgba(6, 6, 14, 0.8);
  border: 1px solid rgba(136, 136, 160, 0.12);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  border-radius: 8px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 232, 255, 0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(136, 136, 160, 0.4);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--void); }
.btn-submit {
  align-self: flex-start;
  cursor: pointer;
}
.contact-alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.alt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2rem;
  border: 1px solid rgba(136, 136, 160, 0.08);
  border-radius: 12px;
  background: rgba(6, 6, 14, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.alt-card:hover {
  border-color: rgba(0, 232, 255, 0.2);
  box-shadow: 0 4px 40px rgba(0, 232, 255, 0.06);
}
.alt-card:hover .card-glow { opacity: 1; }
.alt-card svg {
  color: var(--cyan);
}
.alt-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}
.alt-card p {
  font-size: 0.8rem;
  color: var(--dim);
  line-height: 1.5;
}

/* ============================================================
   SHARED BUTTON STYLES (subpages)
   ============================================================ */
.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  border: 1px solid rgba(0, 232, 255, 0.2);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  margin-top: 0.5rem;
}
.btn-ghost:hover {
  background: rgba(0, 232, 255, 0.1);
  border-color: rgba(0, 232, 255, 0.4);
}

/* ============================================================
   VERSIONS / 3D CUBE + TIMELINE
   ============================================================ */
.versions-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0.5rem 2rem 2rem;
}

/* Vertical timeline */
.ver-timeline {
  position: relative;
  padding-left: 3rem;
}
.ver-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(0, 232, 255, 0.5) 0%,
    rgba(0, 232, 255, 0.15) 50%,
    rgba(123, 92, 255, 0.25) 100%);
}
.ver-entry {
  position: relative;
  margin-bottom: 3rem;
}
.ver-spine-node {
  position: absolute;
  left: -3rem;
  top: 0.3rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--void);
  border: 2px solid rgba(0, 232, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.ver-entry.latest .ver-spine-node {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 232, 255, 0.3);
}
.ver-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: nodePulse 2s ease-in-out infinite;
}
@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
.ver-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.ver-tag {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}
.ver-tag:hover {
  color: var(--cyan);
}
.ver-meta time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dim);
}
.version-badge {
  background: var(--cyan);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* --- Cube --- */
.cube-viewport {
  width: 340px;
  height: 340px;
  margin: 0 auto;
  perspective: 900px;
  perspective-origin: 50% 50%;
}
.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.05s linear;
}
.cube-face {
  position: absolute;
  width: 340px;
  height: 340px;
  padding: 1.8rem;
  border: 1px solid rgba(0, 232, 255, 0.12);
  border-radius: 12px;
  background: rgba(6, 6, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: var(--text);
  box-shadow: inset 0 0 30px rgba(0, 232, 255, 0.03);
}
.cube-face h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.3rem;
}
.cube-face p {
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.55;
}
.cube-face ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cube-face li {
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}
.cube-face li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.cube-face .btn-primary,
.cube-face .btn-ghost {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  padding: 0.6rem 1.4rem;
  text-align: center;
  display: inline-block;
}

/* Face positions */
.cube-front  { transform: translateZ(170px); }
.cube-back   { transform: rotateY(180deg) translateZ(170px); }
.cube-right  { transform: rotateY(90deg) translateZ(170px); }
.cube-left   { transform: rotateY(-90deg) translateZ(170px); }
.cube-top    { transform: rotateX(90deg) translateZ(170px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(170px); }

/* Code block inside cube */
.cube-code {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 232, 255, 0.08);
}
.cube-code code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
}

/* Screenshot placeholders */
.cube-screenshot {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.screenshot-placeholder {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(136, 136, 160, 0.08);
  color: var(--dim);
}
.screenshot-placeholder span {
  font-size: 0.78rem;
}

/* Cube controls */
.cube-controls {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 3rem;
  position: relative;
  z-index: 10;
}
.cube-nav {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 14, 0.6);
  border: 1px solid rgba(136, 136, 160, 0.12);
  border-radius: 8px;
  color: var(--dim);
  transition: all 0.3s ease;
  padding: 0;
}
.cube-nav:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 232, 255, 0.06);
  box-shadow: 0 0 15px rgba(0, 232, 255, 0.1);
}
.cube-hint {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dim);
  margin-top: 0.8rem;
  opacity: 0.6;
}

/* ============================================================
   CONTACT GRID
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(136, 136, 160, 0.1);
  border-radius: 12px;
  background: rgba(6, 6, 14, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-card:hover {
  border-color: rgba(0, 232, 255, 0.3);
  box-shadow: 0 4px 40px rgba(0, 232, 255, 0.1);
}
.contact-card:hover .card-glow { opacity: 1; }
.contact-card svg {
  color: var(--cyan);
  flex-shrink: 0;
}
.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.contact-card p {
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.5;
}

/* Donate extras */
.donate-icon {
  color: var(--cyan);
}
.donate-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.donate-desc {
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.5;
}
.donate-message {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid rgba(136, 136, 160, 0.06);
  border-radius: 12px;
  background: rgba(6, 6, 14, 0.4);
}
.donate-message p {
  font-size: 0.88rem;
  color: var(--dim);
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE (subpages)
   ============================================================ */
@media (max-width: 768px) {
  .download-grid, .donate-grid { flex-direction: column; align-items: center; }
  .dl-card, .donate-card { min-width: 260px; max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .subpage { cursor: auto; }
  .subpage *, .subpage a, .subpage button, .subpage input, .subpage select, .subpage textarea {
    cursor: auto !important;
  }
  .cursor-glow, .cursor-ring { display: none; }

  /* Cube mobile */
  .cube-viewport {
    width: 280px;
    height: 280px;
  }
  .cube-face {
    width: 280px;
    height: 280px;
    padding: 1.2rem;
  }
  .cube-front  { transform: translateZ(140px); }
  .cube-back   { transform: rotateY(180deg) translateZ(140px); }
  .cube-right  { transform: rotateY(90deg) translateZ(140px); }
  .cube-left   { transform: rotateY(-90deg) translateZ(140px); }
  .cube-top    { transform: rotateX(90deg) translateZ(140px); }
  .cube-bottom { transform: rotateX(-90deg) translateZ(140px); }
}

