/* ============================================================
   ROCKET CAPITAL — Styles
   ============================================================ */

:root {
  --color-bg: #000;
  --color-text: #fff;
  --color-accent: #FF6B35;
  --color-green: #00FF88;
  --color-red: #FF4444;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { width: 100%; min-height: 100%; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

/* ---------- Scroll Progress ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9999;
  background: rgba(255,255,255,0.03);
  opacity: 0;
  transition: opacity 0.4s;
}
#scroll-progress.visible { opacity: 1; }
#scroll-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--color-accent), #FF9A63, var(--color-accent));
  box-shadow: 0 0 12px rgba(255,107,53,0.5);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ---------- Navigation ---------- */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(.4,0,.2,1), opacity 0.5s;
  opacity: 0;
}
#main-nav.nav-visible {
  transform: translateY(0);
  opacity: 1;
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}
.nav-logo-icon {
  font-size: 1.1rem;
  color: var(--color-accent);
  filter: drop-shadow(0 0 6px rgba(255,107,53,0.4));
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  font-weight: 400;
}
.nav-links a:hover {
  color: var(--color-accent);
}

/* ---------- Custom Cursor ---------- */
@media (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }
}
body.native-cursor,
body.native-cursor a,
body.native-cursor button {
  cursor: auto !important;
}
body.custom-cursor,
body.custom-cursor a,
body.custom-cursor button {
  cursor: none !important;
}
body:not(.custom-cursor) #cursor,
body:not(.custom-cursor) #cursor-trail-canvas {
  opacity: 0;
  visibility: hidden;
}
body.custom-cursor #cursor,
body.custom-cursor #cursor-trail-canvas {
  opacity: 1;
  visibility: visible;
}
body.perf-low #cursor,
body.perf-low #cursor-trail-canvas {
  display: none !important;
}
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px;
  height: 52px;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
  mix-blend-mode: screen;
  --cursor-thrust: 0.35;
}
#cursor .cursor-shell {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 30%;
  will-change: transform;
}
#cursor .cursor-rocket {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(255, 126, 72, 0.24));
}
#cursor .cursor-flame {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 16px;
  height: calc(14px + 16px * var(--cursor-thrust));
  transform: translateX(-50%);
  transform-origin: 50% 0%;
  border-radius: 50% 50% 70% 70%;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.96) 0 20%, rgba(255,232,171,0.88) 21% 42%, rgba(255,158,66,0.9) 43% 66%, rgba(255,92,28,0.78) 67% 100%);
  clip-path: polygon(50% 0%, 84% 18%, 94% 44%, 82% 74%, 60% 100%, 50% 92%, 40% 100%, 18% 74%, 6% 44%, 16% 18%);
  opacity: calc(0.22 + var(--cursor-thrust) * 0.42);
  filter: blur(0.4px) drop-shadow(0 0 9px rgba(255, 119, 54, 0.34));
  animation: cursorFlameFlicker 0.16s ease-in-out infinite alternate;
}
#cursor .cursor-flame::before,
#cursor .cursor-flame::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}
#cursor .cursor-flame::before {
  top: 3px;
  width: 9px;
  height: calc(8px + 8px * var(--cursor-thrust));
  background: radial-gradient(circle at 50% 14%, rgba(255,255,255,0.96), rgba(255,244,196,0.9) 45%, rgba(255,171,84,0.2) 100%);
  clip-path: polygon(50% 0%, 88% 20%, 100% 46%, 76% 100%, 50% 84%, 24% 100%, 0% 46%, 12% 20%);
}
#cursor .cursor-flame::after {
  bottom: 1px;
  width: 22px;
  height: calc(7px + 10px * var(--cursor-thrust));
  background: radial-gradient(circle, rgba(255,122,52,0.42) 0 20%, rgba(255,122,52,0.1) 52%, rgba(255,122,52,0) 100%);
  filter: blur(4px);
}
#cursor .cursor-spark {
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: calc(7px + 7px * var(--cursor-thrust));
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,252,231,0.95), rgba(255,166,76,0));
  opacity: calc(0.08 + var(--cursor-thrust) * 0.22);
  filter: blur(0.25px);
}
#cursor .cursor-spark-a {
  left: 8px;
  transform: rotate(-14deg);
  animation: cursorSparkDriftA 0.22s linear infinite;
}
#cursor .cursor-spark-b {
  right: 8px;
  transform: rotate(14deg);
  animation: cursorSparkDriftB 0.26s linear infinite;
}
@keyframes cursorFlameFlicker {
  0% {
    transform: translateX(-50%) scaleY(0.88) scaleX(0.94);
    filter: blur(0.25px) drop-shadow(0 0 8px rgba(255, 119, 54, 0.34));
  }
  100% {
    transform: translateX(-50%) scaleY(1.08) scaleX(1.05);
    filter: blur(0.2px) drop-shadow(0 0 15px rgba(255, 119, 54, 0.58));
  }
}
@keyframes cursorSparkDriftA {
  0% { transform: translate(0, 0) rotate(-12deg); opacity: 0.22; }
  100% { transform: translate(-3px, 10px) rotate(-20deg); opacity: 0; }
}
@keyframes cursorSparkDriftB {
  0% { transform: translate(0, 0) rotate(12deg); opacity: 0.2; }
  100% { transform: translate(3px, 11px) rotate(20deg); opacity: 0; }
}

#cursor-trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: opacity;
  contain: strict;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ---------- PRE-LAUNCH ---------- */
#prelaunch {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  background: #000;
}
#prelaunch.gone { display: none; }

#launch-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: none;
}

/* ---------- Rocket SVG ---------- */
#rocket-wrapper {
  position: relative;
  z-index: 1;
  width: clamp(100px, 18vw, 170px);
  will-change: transform;
}
#rocket-svg { width: 100%; height: auto; display: block; }

/* Line classes */
.rk-line  { stroke: #D0D0D0; stroke-width: 1.5; fill: none; stroke-linecap: round; }
.rk-thin  { stroke-width: 0.5; }
.rk-accent { stroke: var(--color-accent); stroke-width: 1; fill: none; stroke-linecap: round; }
.rk-dim   { stroke: #333; stroke-width: 0.3; stroke-dasharray: 4 4; fill: none; }
.rk-joint { stroke: #555; stroke-width: 0.5; fill: none; }

/* Draw-on animation */
.rk-line, .rk-accent, .rk-joint {
  stroke-dasharray: var(--len, 100);
  stroke-dashoffset: var(--len, 100);
  animation: drawLine var(--dur, 1.2s) var(--del, 0s) cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Porthole glow */
.porthole-glow {
  stroke: var(--color-accent);
  stroke-width: 2.5;
  fill: none;
  opacity: 0;
  filter: url(#none); /* avoid Safari quirks */
}
.porthole-glow.active {
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.65; }
}

/* ---------- IGNITE Button ---------- */
#ignite-btn {
  position: absolute;
  bottom: 8%;
  z-index: 3;
  background: transparent;
  border: 1px solid rgba(255, 107, 53, 0.5);
  color: var(--color-accent);
  padding: 14px 56px;
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 6px;
  opacity: 0;
  transition: opacity 0.8s ease, background 0.3s, box-shadow 0.3s;
}
#ignite-btn.show {
  opacity: 1;
  animation: ignitePulse 2.5s ease-in-out infinite;
}
#ignite-btn:hover {
  background: rgba(255, 107, 53, 0.08);
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes ignitePulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255,107,53,0.15), 0 0 30px rgba(255,107,53,0.04);
    border-color: rgba(255,107,53,0.35);
  }
  50% {
    box-shadow: 0 0 24px rgba(255,107,53,0.45), 0 0 60px rgba(255,107,53,0.12);
    border-color: rgba(255,107,53,0.8);
  }
}

/* ---------- Shockwave (injected via JS) ---------- */
@keyframes shockwave {
  0%   { width: 0; height: 0; opacity: 0.8; }
  100% { width: 250vmax; height: 250vmax; opacity: 0; }
}

/* ---------- White Flash ---------- */
#white-flash {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  z-index: 200;
  pointer-events: none;
}

/* ---------- SPACE BACKGROUND (body-level fixed layers) ---------- */
#space-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  contain: strict;
  transform: translateZ(0);
  backface-visibility: hidden;
}
#space-canvas.hidden { display: none; }

#vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 70% at center,
    transparent 30%,
    rgba(0,0,0,0.35) 58%,
    rgba(0,0,0,0.8) 80%,
    #000 100%
  );
  transition: opacity 0.4s;
}
#vignette.hidden { display: none; }

/* ---------- MAIN CONTENT ---------- */
#main-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  background: transparent;
}
#main-content.hidden { display: none; }

#content {
  position: relative;
  background: transparent;
}

.spacer { height: 30vh; }

/* ---------- SECTIONS ---------- */
.content-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  opacity: 0;
  transform: translateY(60px);
  content-visibility: auto;
  contain-intrinsic-size: 100vh;
  transition: opacity 1s cubic-bezier(.4,0,.2,1), transform 1s cubic-bezier(.4,0,.2,1);
}
.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- HERO OVERLAY (absolute, scrolls with page) ---------- */
#hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 12vh;
  text-align: center;
  pointer-events: none;
}

/* ---------- HERO ---------- */
#hero { text-align: center; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.05;
  background: linear-gradient(180deg, #FFFFFF 20%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(34px) scale(0.96);
  filter: blur(14px);
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.8vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.35em;
  margin-top: 28px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(22px);
  filter: blur(10px);
}

/* ---------- HERO LATENCY COUNTER ---------- */
.hero-latency {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
}
.main-entered .hero-title {
  animation: heroTitleReveal 1.15s cubic-bezier(.16,1,.3,1) 0.28s forwards;
}
.main-entered .hero-subtitle {
  animation: heroCopyReveal 0.95s cubic-bezier(.16,1,.3,1) 0.6s forwards;
}
.main-entered .hero-latency {
  animation: heroCopyReveal 0.95s cubic-bezier(.16,1,.3,1) 0.82s forwards;
}
.latency-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}
.latency-value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--color-green);
  text-shadow: 0 0 30px rgba(0,255,136,0.3), 0 0 60px rgba(0,255,136,0.1);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.latency-lt {
  font-size: 0.6em;
  opacity: 0.6;
}
.latency-unit {
  font-size: 0.45em;
  opacity: 0.5;
  margin-left: 2px;
}
.latency-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  animation: latencyPulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0,255,136,0.5);
}
@keyframes latencyPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
@keyframes heroTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.96);
    filter: blur(14px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes heroCopyReveal {
  0% {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ---------- GLASS CARD ---------- */
.glass-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 48px;
  max-width: 620px;
  width: 100%;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.glass-card:hover {
  border-color: rgba(255,107,53,0.25);
  box-shadow: 0 0 50px rgba(255,107,53,0.06);
}
.contact-card { text-align: center; }
.glass-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
  color: var(--color-accent);
}
.glass-card p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
}

/* ---------- STRATEGY GRID ---------- */
#strategies { flex-direction: column; }
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1120px;
  width: 100%;
}
.strategy-card { text-align: left; }
.card-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(255,107,53,0.15);
  margin-bottom: 12px;
  line-height: 1;
}
.strategy-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.card-sub {
  font-size: 0.8rem;
  color: var(--color-accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.strategy-card p:last-child {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
}

/* ---------- TERMINAL ---------- */
#terminal {
  flex-direction: column;
  min-height: auto;
  padding: 60px 40px;
}
.terminal-wrapper {
  max-width: 800px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.terminal-header {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 14px;
}
.terminal-dots {
  display: flex;
  gap: 7px;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  flex: 1;
}
.terminal-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-green);
  letter-spacing: 0.08em;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  animation: statusBlink 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(0,255,136,0.5);
}
@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.terminal-body {
  padding: 18px;
  height: 320px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.55);
}
.terminal-body::-webkit-scrollbar {
  width: 4px;
}
.terminal-body::-webkit-scrollbar-track {
  background: transparent;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}
.terminal-line {
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  animation: termFadeIn 0.3s forwards;
}
.terminal-line.terminal-init {
  opacity: 1;
  animation: none;
  color: rgba(255,255,255,0.3);
}
@keyframes termFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.terminal-line .t-time {
  color: rgba(255,255,255,0.2);
}
.terminal-line .t-type {
  font-weight: 500;
}
.terminal-line .t-buy {
  color: var(--color-green);
}
.terminal-line .t-sell {
  color: var(--color-red);
}
.terminal-line .t-signal {
  color: #FFD700;
}
.terminal-line .t-pair {
  color: var(--color-accent);
}
.terminal-line .t-latency {
  color: rgba(255,255,255,0.3);
}
.terminal-line .t-pnl-pos {
  color: var(--color-green);
}
.terminal-line .t-pnl-neg {
  color: var(--color-red);
}

/* ---------- METRICS ---------- */
#metrics {
  flex-direction: column;
  min-height: auto;
  padding: 80px 40px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  width: 100%;
}
.metric-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.metric-card:hover {
  border-color: rgba(255,107,53,0.2);
  box-shadow: 0 0 40px rgba(255,107,53,0.05);
}
.metric-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.metric-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}
.metric-suffix {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.3);
  margin-top: 12px;
  text-transform: uppercase;
}
.metric-bar {
  margin-top: 16px;
  height: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: 1px;
  overflow: hidden;
}
.metric-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), rgba(255,107,53,0.3));
  border-radius: 1px;
  transition: width 1.5s cubic-bezier(.4,0,.2,1);
}
.metric-card.counted .metric-bar-fill {
  width: var(--bar-width);
}

/* ---------- SECTION TITLE ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 40px;
  text-align: center;
}

/* ---------- ECOSYSTEM ---------- */
#ecosystem {
  flex-direction: column;
  min-height: auto;
  padding: 80px 40px;
}
.eco-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 800px;
}
.eco-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 110px;
  padding: 24px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.015);
  transition: all 0.4s;
}
.eco-item:hover {
  border-color: rgba(255,107,53,0.2);
  background: rgba(255,107,53,0.03);
  transform: translateY(-4px);
}
.eco-icon {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.4s;
}
.eco-item:hover .eco-icon {
  color: var(--color-accent);
}
.eco-item span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  text-align: center;
}

/* ---------- CONTACT ---------- */
.contact-link {
  display: inline-block;
  color: var(--color-accent);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  letter-spacing: 0.08em;
  margin-top: 20px;
  padding: 12px 36px;
  border: 1px solid rgba(255,107,53,0.35);
  border-radius: 8px;
  transition: all 0.3s;
}
.contact-link:hover {
  background: rgba(255,107,53,0.1);
  border-color: var(--color-accent);
  box-shadow: 0 0 25px rgba(255,107,53,0.15);
}

body.perf-low #main-nav,
body.perf-low .terminal-wrapper {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.perf-low .glass-card,
body.perf-low .metric-card,
body.perf-low .eco-item,
body.perf-low .contact-link {
  box-shadow: none !important;
  transition-duration: 0.2s;
}
body.perf-low .terminal-line {
  animation: none;
  opacity: 1;
}
body.perf-low .latency-pulse,
body.perf-low .status-dot,
body.perf-low #ignite-btn.show {
  animation-duration: 3.2s;
}
body.perf-medium #main-nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.input-coarse #main-nav,
body.input-coarse .terminal-wrapper {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.input-coarse #main-nav {
  background: rgba(0,0,0,0.82);
}
body.input-coarse .terminal-wrapper {
  background: rgba(0,0,0,0.82);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #cursor,
  #cursor-trail-canvas {
    display: none !important;
  }
  .hero-title,
  .hero-subtitle,
  .hero-latency {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 60px 20px 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.15);
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.08em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .strategy-grid { grid-template-columns: 1fr; max-width: 500px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.65rem; }
}
@media (max-width: 600px) {
  .glass-card { padding: 28px 22px; }
  .content-section { padding: 50px 18px; }
  .spacer { height: 20vh; }
  #cursor { display: none !important; }
  #cursor-trail-canvas { display: none !important; }
  body { cursor: auto !important; }
  a, button { cursor: pointer !important; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .metric-card { padding: 22px 16px; }
  .metric-num { font-size: 1.6rem; }
  .nav-links { display: none; }
  #main-nav { padding: 0 20px; }
  .terminal-body { height: 240px; font-size: 0.68rem; }
  .eco-grid { gap: 12px; }
  .eco-item { width: 90px; padding: 18px 10px; }
}
