@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Rajdhani:wght@300;500;700&family=Share+Tech+Mono&family=Orbitron:wght@900&display=swap');

:root {
  --void: #000000;
  --hyper-cyan: #00f0ff;
  --hyper-pink: #ff003c;
  --hyper-violet: #bc13fe;
  --hyper-lime: #ccff00;
}

/* ── RESET & BASE ── */
* { box-sizing: border-box; cursor: none; margin: 0; padding: 0; }
body {
  background: var(--void);
  color: var(--hyper-cyan);
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  z-index: 0;
}

/* ── CANVAS ── */
#warp-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ── CURSOR ── */
#cursor {
  position: fixed;
  width: 20px; height: 20px;
  background: var(--hyper-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px var(--hyper-cyan);
  will-change: left, top;
}
#cursor.hover {
  width: 50px; height: 50px;
  background: transparent;
  border: 2px solid var(--hyper-pink);
  box-shadow: 0 0 20px var(--hyper-pink);
}

/* ── BRANDING ── */
.brand-corner {
  position: fixed;
  top: 40px; left: 40px;
  z-index: 1000;
}
.glitch-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 42px;
  color: #fff;
  text-shadow: 2px 0 var(--hyper-pink), -2px 0 var(--hyper-cyan);
  letter-spacing: 4px;
}

/* ── LAYOUT ── */
#main-scroller {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* ── HERO ── */
.hero-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}
.logo-container { width: 280px; margin-bottom: 30px; }
.main-logo { width: 100%; }

.subtitle-box { margin-bottom: 50px; }
.decrypt-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 18px;
  color: #fff;
  letter-spacing: 5px;
  text-align: center;
}

.btn-group { display: flex; gap: 30px; }
.vims-btn {
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--hyper-cyan);
  color: var(--hyper-cyan);
  padding: 18px 45px;
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  transition: 0.3s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.vims-btn.primary { border-color: var(--hyper-violet); color: var(--hyper-violet); }
.vims-btn:hover { background: #fff; color: #000; box-shadow: 0 0 30px currentColor; }

/* ── STICKY SCENE ── */
.sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  margin-top: 20vh;
  overflow: visible;
  z-index: 0;
}
.synth-scene {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(10,5,20,0.8) 50%, #0a0514 100%);
}

.synth-sun {
  position: fixed;
  bottom: 40%; left: 50%;
  transform: translateX(-50%);
  width: 64vh; height: 64vh;
  background: linear-gradient(to bottom, #ffe600, #ff6a00, #ff003c);
  border-radius: 50%;
  box-shadow: 0 0 150px rgba(255, 100, 0, 0.6);
  z-index: -1;
  /* V11 EXACT STRIPES */
  -webkit-mask-image: linear-gradient(to bottom, 
    black 0%, black 50%, 
    transparent 50%, transparent 52%, 
    black 52%, black 55%, 
    transparent 55%, transparent 58%,
    black 58%, black 62%,
    transparent 62%, transparent 66%,
    black 66%, black 72%,
    transparent 72%, transparent 78%,
    black 78%, black 85%,
    transparent 85%, transparent 92%,
    black 92%
  );
  mask-image: linear-gradient(to bottom, 
    black 0%, black 50%, 
    transparent 50%, transparent 52%, 
    black 52%, black 55%, 
    transparent 55%, transparent 58%,
    black 58%, black 62%,
    transparent 62%, transparent 66%,
    black 66%, black 72%,
    transparent 72%, transparent 78%,
    black 78%, black 85%,
    transparent 85%, transparent 92%,
    black 92%
  );
}

#terrain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ── CONTENT OVERLAY ── */
.content-overlay {
  position: relative;
  z-index: 10;
  margin-top: -30vh; 
  padding: 0;
  background: transparent;
}

.copy-block {
  max-width: 900px; margin: 0 auto 100px;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 35;
}
.title-xl {
  font-family: 'Orbitron', sans-serif;
  font-size: 56px; color: #fff;
  text-shadow: 0 0 20px var(--hyper-cyan);
  margin-bottom: 20px;
}
.subtitle-lg {
  font-size: 24px; color: #ddd;
  line-height: 1.5;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-grid {
  max-width: 1200px; margin: 0 auto 200px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  z-index: 30;
}
.f-card {
  background: rgba(0,0,0,0.85);
  border: none;
  padding: 40px;
  border-radius: 4px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.f-card:hover { transform: translateY(-10px); box-shadow: 0 0 30px rgba(0,240,255,0.2); }
.f-icon { display: none; }
.f-card h3 {
  font-family: 'Syncopate', sans-serif;
  font-size: 15px;
  margin-bottom: 15px;
  white-space: nowrap;
  letter-spacing: 1px;
  overflow: hidden;
}
.f-card p {
  font-size: 15px;
  color: #bbb;
  line-height: 1.65;
  min-height: 4.95em;
  overflow: hidden;
  word-break: break-word;
  text-align: justify;
}

/* ── CAR SPACER (gap between cards and footer for car reveal) ── */
.car-spacer {
  position: relative;
  z-index: 5;
  height: 60vh;
  pointer-events: none;
}

/* ── 80s CAR (inside synth-scene) ── */
.car-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0.08);
  transform-origin: center bottom;
  z-index: 3;
  pointer-events: none;
  will-change: transform, bottom;
}
.car-sprite {
  width: 640px;
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 8px rgba(0,240,255,0.6))
          drop-shadow(0 0 20px rgba(0,240,255,0.3))
          drop-shadow(0 0 40px rgba(255,0,60,0.2));
}
.license-plate {
  position: absolute;
  bottom: 17%;
  left: 50%;
  transform: translateX(-50%);
  background: #e8e0c8;
  color: #1a237e;
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 3px;
  padding: 14px 20px;
  border-radius: 3px;
  border: 2px solid #aaa;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  transition: 0.2s;
}
.license-plate:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 12px rgba(0,240,255,0.8);
}

/* ── FOOTER ── */
.vims-footer {
  width: 100%;
  border-top: 1px solid var(--hyper-violet);
  padding: 5px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  position: relative;
  z-index: 100;
  background: #000;
}
.foot-right a { color: #fff; text-decoration: none; margin-left: 30px; opacity: 0.6; }
.foot-right a:hover { opacity: 1; color: var(--hyper-cyan); }

/* ── MODALS ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  z-index: 20000;
  display: none;
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #0a0514;
  border: 1px solid var(--hyper-violet);
  padding: 40px;
  max-width: 500px; width: 90%;
  position: relative;
}
.modal-close { position: absolute; top: 15px; right: 15px; cursor: pointer; color: #555; }
.modal-title { font-family: 'Orbitron'; font-size: 24px; margin-bottom: 30px; text-align: center; }
.os-list { display: flex; flex-direction: column; gap: 15px; }
.os-btn {
  background: var(--hyper-cyan); border: none;
  color: #000; padding: 15px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Share Tech Mono';
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}
.os-btn:hover { background: #fff; box-shadow: 0 0 20px rgba(0,240,255,0.4); }
.os-btn.locked { background: #1a1a2e; opacity: 0.5; pointer-events: none; color: #555; }
.os-label { display: flex; align-items: center; gap: 10px; }
.modal-subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--hyper-violet);
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 25px;
}
.modal-text-content {
  color: #bbb;
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  max-height: 60vh;
  overflow-y: auto;
  text-align: left;
  padding-right: 10px;
}
.modal-text-content::-webkit-scrollbar { width: 4px; }
.modal-text-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.modal-text-content::-webkit-scrollbar-thumb { background: var(--hyper-violet); }

.tag {
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.8;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .title-xl { font-size: 40px; }
}
@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 16px; margin-bottom: 100px; }
  .f-card { padding: 28px; }
  .f-card h3 { font-size: 12px; white-space: normal; }
  .f-card p { min-height: auto; }
  .title-xl { font-size: 28px; }
  .subtitle-lg { font-size: 16px; }
  .copy-block { margin-bottom: 60px; padding: 0 16px; }
  .car-sprite { width: 320px; }
  .car-spacer { height: 40vh; }
  .glitch-text { font-size: 28px; }
  .brand-corner { top: 20px; left: 20px; }
  .btn-group { flex-direction: column; gap: 15px; }
  .vims-btn { padding: 14px 30px; font-size: 11px; }
  .decrypt-sub { font-size: 13px; letter-spacing: 3px; }
  .vims-footer { flex-direction: column; gap: 8px; padding: 10px 16px; text-align: center; }
  .foot-right a { margin-left: 15px; }
}
