/* ══════════════════════════════════════════
   VANTA LAYER SYSTEMS — main.css
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --black: #000000;
  --gray-400: #999;
  --gray-500: #666;
  --gray-600: #444;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --cyan: #22d3ee; /* GLOW ONLY — never text color */
}

html { scroll-behavior: smooth; }

body {
  background: #0b1012;
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  /* Texture background */
  background-image: url('../img/bg-texture.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

body.light-mode {
  background: #f0f2f4;
  color: #000;
  background-image: none;
}

::selection { background: rgba(255,255,255,0.15); color: #fff; }
body.light-mode ::selection { background: rgba(0,0,0,0.15); color: #000; }

/* ── OVERLAY — keeps texture from being too bright/distracting */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  pointer-events: none;
  z-index: 0;
}
body.light-mode::before { display: none; }

/* All direct children of body need to sit above the overlay */
nav, main, footer, .modal-overlay { position: relative; z-index: 1; }

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: rgba(5, 10, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .4s, border-color .4s;
}
body.light-mode nav {
  background: rgba(255,255,255,0.94);
  border-bottom-color: rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo lockup */
.logo-lockup {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; text-decoration: none; user-select: none;
  flex-shrink: 0;
}
.logo-img-wrap { height: 56px; }
.logo-img-wrap img {
  height: 56px; width: auto; display: block;
  mix-blend-mode: screen;
}
body.light-mode .logo-img-wrap .logo-dark { display: none; }
.logo-img-wrap .logo-light { display: none; mix-blend-mode: multiply; }
body.light-mode .logo-img-wrap .logo-light { display: block; }

.logo-wordmark { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.logo-name { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; color: #fff; }
body.light-mode .logo-name { color: #000; }
.logo-sub { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 3px; color: #696969; margin-top: 3px; text-transform: uppercase; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }

/* Each nav item gets a tall hit zone — this is the key to the dropdown bug fix */
.nav-item {
  position: relative;
}

.nav-item > a,
.nav-item > button {
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  color: #888; text-decoration: none;
  transition: color .2s;
  display: flex; align-items: center; gap: 4px;
  padding: 0 14px;
  height: 80px; /* full nav height as hit zone */
  white-space: nowrap;
}
.nav-item > a:hover, .nav-item > button:hover { color: #fff; }
body.light-mode .nav-item > a, body.light-mode .nav-item > button { color: #555; }
body.light-mode .nav-item > a:hover, body.light-mode .nav-item > button:hover { color: #000; }

.nav-chevron { transition: transform .2s; }
.nav-item:hover .nav-chevron { transform: rotate(180deg); }

/* Dropdown — anchored to bottom of nav, no gap */
.dropdown {
  display: none;
  position: absolute;
  top: 80px; /* exactly the nav height */
  left: 0;
  min-width: 230px;
  background: rgba(6, 12, 14, 0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid rgba(255,255,255,0.08);
  border-radius: 0 0 10px 10px;
  padding: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.light-mode .dropdown {
  background: rgba(255,255,255,0.97);
  border-color: rgba(0,0,0,0.08);
}
.nav-item:hover .dropdown { display: block; }

.dd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 6px;
  cursor: pointer; text-decoration: none;
  transition: background .15s; width: 100%;
  background: none; border: none; text-align: left;
  color: inherit;
}
.dd-item:hover { background: rgba(255,255,255,0.06); }
body.light-mode .dd-item:hover { background: rgba(0,0,0,0.05); }
.dd-thumb {
  width: 52px; height: 28px;
  border-radius: 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: rgba(255,255,255,0.04);
}
.dd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: screen; }
body.light-mode .dd-thumb img { mix-blend-mode: multiply; }
.dd-label { font-size: 13px; font-weight: 700; color: #fff; display: block; }
body.light-mode .dd-label { color: #000; }
.dd-sub { font-size: 10px; color: #555; text-transform: uppercase; letter-spacing: 1px; font-family: 'Space Mono', monospace; }

/* Nav separator */
.nav-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.08); margin: 0 6px; }
body.light-mode .nav-sep { background: rgba(0,0,0,0.1); }

/* Social icons */
.nav-socials { display: flex; align-items: center; gap: 8px; }
.nav-socials a {
  color: #555; transition: color .2s;
  display: flex; align-items: center; text-decoration: none; gap: 2px;
}
.nav-socials a:hover { color: #aaa; }
.x-badge {
  font-family: 'Space Mono', monospace; font-size: 8px;
  color: #444; transition: color .2s;
}
.nav-socials a:hover .x-badge { color: #aaa; }

/* ══════════════════════════════════════════
   PAGE WRAPPER
   ══════════════════════════════════════════ */
main { padding-top: 80px; }

/* ══════════════════════════════════════════
   HERO / HOME
   ══════════════════════════════════════════ */
.hero-section { padding: 2.5rem 1.5rem 3rem; }
.hero-wrap { max-width: 1280px; margin: 0 auto; }

.hero-img-box {
  width: 100%; aspect-ratio: 16/9;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 80px -10px rgba(34,211,238,0.08), 0 30px 80px rgba(0,0,0,0.6);
}
.hero-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-meta {
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap;
  align-items: flex-start; justify-content: space-between; gap: 1.5rem;
}
.hero-title-block { display: flex; flex-direction: column; gap: 8px; }
.game-title {
  font-family: 'Space Mono', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 2px; line-height: 1; color: #fff;
}
.game-status {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: #666;
}

.btn-community {
  padding: 14px 28px;
  background: rgba(255,255,255,0.04);
  color: #bbb; font-weight: 700; font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 0 20px rgba(34,211,238,0.07);
  font-family: 'Space Mono', monospace;
}
.btn-community:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 32px rgba(34,211,238,0.15);
  color: #fff;
}

.game-desc { margin-top: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
.game-desc p { color: #888; font-size: 1.05rem; line-height: 1.85; max-width: 760px; font-weight: 500; }

/* ══════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════ */
.section { padding: 6rem 1.5rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-tag {
  display: inline-block; padding: 4px 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 99px; font-size: 10px; text-transform: uppercase;
  letter-spacing: 4px; color: #555; margin-bottom: 1.5rem;
  font-family: 'Space Mono', monospace;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 1px; line-height: 1; margin-bottom: 2rem;
}

/* ── ABOUT ── */
.about-section { border-top: 1px solid rgba(255,255,255,0.04); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media(max-width:768px){ .about-grid { grid-template-columns: 1fr; } }
.about-text p { color: #888; font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.5rem; }
.about-text strong { color: #ddd; }
.about-visual { position: relative; }
.about-glow {
  position: absolute; inset: -1rem;
  background: radial-gradient(circle at 50% 50%, rgba(34,211,238,0.06), transparent 70%);
  border-radius: 50%; animation: pulse 3s ease-in-out infinite; pointer-events: none;
}
@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:1} }
.about-box {
  position: relative; aspect-ratio: 1/1;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 2rem;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.4);
}
.about-logo-art { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.logo-rock-img { width: 100%; max-width: 1400px; height: auto; mix-blend-mode: screen; }
.logo-art-caption {
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: #888; text-transform: uppercase; letter-spacing: 4px; margin-top: 1.5rem;
}

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
@media(max-width:768px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.5rem,5vw,4.5rem); letter-spacing: 1px; margin-bottom: 1rem; }
.contact-info > p { color: #888; font-size: 1.05rem; margin-bottom: 3rem; }
.contact-item { display: flex; align-items: center; gap: 16px; margin-bottom: 2rem; }
.contact-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-label { font-size: 13px; font-weight: 700; color: #ddd; }
.contact-item-value { color: #555; font-size: 13px; }
.contact-item-value a { color: #aaa; text-decoration: none; }
.contact-item-value a:hover { color: #fff; text-decoration: underline; }

/* Contact form */
.contact-form {
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 2rem;
  backdrop-filter: blur(8px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media(max-width:500px){ .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; color: #555;
  margin-bottom: 8px; font-family: 'Space Mono', monospace;
}
.form-input, .form-select, .form-textarea {
  width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 12px 14px; color: #fff;
  font-family: 'Inter', sans-serif; font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.form-input::placeholder, .form-textarea::placeholder { color: #333; }
.form-select option { background: #0e1517; color: #fff; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { color: #f87171; font-size: 11px; margin-top: 5px; display: none; font-family: 'Space Mono', monospace; }
.form-error.visible { display: block; }

.btn-submit {
  width: 100%; padding: 16px; background: #fff; color: #000;
  font-weight: 900; font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  border: none; border-radius: 6px; cursor: pointer;
  transition: background .15s, opacity .15s;
  font-family: 'Space Mono', monospace;
}
.btn-submit:hover:not(:disabled) { background: #e0e0e0; }
.btn-submit:disabled { opacity: .4; cursor: not-allowed; }

.form-status {
  margin-top: 1rem; font-size: 12px; text-align: center;
  font-family: 'Space Mono', monospace; display: none; line-height: 1.6;
  padding: 12px; border-radius: 6px;
}
.form-status.success { display: block; color: #a8d8a8; background: rgba(168,216,168,0.08); border: 1px solid rgba(168,216,168,0.15); }
.form-status.error   { display: block; color: #f87171; background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.15); }

/* ══════════════════════════════════════════
   DEVLOG PAGE
   ══════════════════════════════════════════ */
.devlog-wrap { padding: 2.5rem 1.5rem 6rem; max-width: 960px; margin: 0 auto; }
.devlog-header { margin-bottom: 3rem; }
.devlog-header p { color: #555; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.devlog-header a { color: #888; text-decoration: none; }
.devlog-header a:hover { color: #fff; text-decoration: underline; }

.devlog-list { display: flex; flex-direction: column; margin-bottom: 3rem; }
.devlog-entry {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none; border-radius: 4px;
  transition: background .15s, padding .15s;
  cursor: pointer;
}
.devlog-entry:first-child { border-top: 1px solid rgba(255,255,255,0.05); }
.devlog-entry:hover {
  background: rgba(255,255,255,0.025);
  padding-left: 12px; padding-right: 12px;
  margin-left: -12px; margin-right: -12px;
}
.devlog-num {
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: #333; letter-spacing: 1px; flex-shrink: 0; min-width: 42px;
}
.devlog-title {
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  color: #bbb; flex: 1; line-height: 1.4; transition: color .15s;
}
.devlog-entry:hover .devlog-title { color: #fff; }
.devlog-meta { font-family: 'Space Mono', monospace; font-size: 10px; color: #333; flex-shrink: 0; letter-spacing: 1px; white-space: nowrap; }
.devlog-arrow { color: #2a2a2a; flex-shrink: 0; transition: color .15s, transform .15s; }
.devlog-entry:hover .devlog-arrow { color: #666; transform: translateX(3px); }

.devlog-empty { padding: 4rem 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.devlog-empty p { color: #333; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }

.devlog-reddit-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 1.5rem; padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.07); border-radius: 4px;
  color: #555; text-decoration: none;
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase; transition: all .2s;
}
.devlog-reddit-link:hover { border-color: rgba(255,255,255,0.2); color: #aaa; }

/* ══════════════════════════════════════════
   VANTACORE PAGE
   ══════════════════════════════════════════ */
.vc-wrap { padding: 2.5rem 1.5rem 6rem; max-width: 1280px; margin: 0 auto; }
.vc-header { display: flex; align-items: center; gap: 20px; margin-bottom: 3rem; }
.vc-icon {
  padding: 18px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; flex-shrink: 0;
}
.vc-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem,6vw,5rem); letter-spacing: 1px; }
.vc-version { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: #555; margin-top: 4px; }
.vc-grid { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }
@media(max-width:900px){ .vc-grid { grid-template-columns: 1fr; } }
.vc-hero-box {
  aspect-ratio: 16/9; background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.07); border-radius: 16px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.5);
}
.vc-hex-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12,1fr); gap: 2px; padding: 12px; opacity: 0.08; pointer-events: none; }
.vc-hex-bg span { font-family: 'Space Mono', monospace; font-size: 8px; color: #888; overflow: hidden; white-space: nowrap; }
.vc-hero-text { position: relative; text-align: center; padding: 3rem; }
.vc-hero-text h3 { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 1px; margin-bottom: 1rem; }
.vc-hero-text p { color: #888; font-size: 1.1rem; }
.vc-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:600px){ .vc-features { grid-template-columns: 1fr; } }
.vc-feature { padding: 1.5rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; transition: background .15s; }
.vc-feature:hover { background: rgba(255,255,255,0.06); }
.vc-feature-icon { color: var(--blue); margin-bottom: 1rem; }
.vc-feature h4 { font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.vc-feature p { color: #555; font-size: 13px; }
.vc-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.vc-cta { padding: 2rem; background: #fff; color: #000; border-radius: 16px; }
.vc-cta h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 1px; margin-bottom: 1rem; }
.vc-cta p { font-size: 13px; font-weight: 500; margin-bottom: 1.5rem; color: #333; }
.vc-cta button {
  width: 100%; padding: 14px; background: #000; color: #fff;
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; border: none; border-radius: 3px; cursor: pointer; transition: filter .15s;
}
.vc-cta button:hover { filter: invert(1); }
.vc-benchmarks { padding: 1.5rem; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; }
.vc-benchmarks h4 { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: #555; margin-bottom: 1rem; }
.bench-row { display: flex; justify-content: space-between; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.bench-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.bench-label { font-family: 'Space Mono', monospace; font-size: 13px; color: #888; }
.bench-val { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--blue); }

/* ══════════════════════════════════════════
   CRAFTTIMELOG PAGE
   ══════════════════════════════════════════ */
.ctl-page { background: #f0f2f4; color: #000; min-height: calc(100vh - 80px); background-image: none; }
.ctl-wrap { padding: 2.5rem 1.5rem 6rem; max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.ctl-glow-1 { position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 70%); pointer-events: none; }
.ctl-glow-2 { position: absolute; bottom: -150px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(59,130,246,0.08), transparent 70%); pointer-events: none; }
.ctl-hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 4rem; }
.ctl-icon-wrap { padding: 1.5rem; background: #fff; border-radius: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,0.12); border: 1px solid rgba(59,130,246,0.12); margin-bottom: 2.5rem; transition: transform .2s; }
.ctl-icon-wrap:hover { transform: scale(1.05); }
.ctl-icon-wrap svg { display: block; animation: spin 10s linear infinite; }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.ctl-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(4rem,12vw,9rem); letter-spacing: 2px; line-height: 1; color: #111; margin-bottom: 1.5rem; }
.ctl-title span { color: var(--blue-dark); }
.ctl-subtitle { color: #666; font-size: 1.2rem; max-width: 640px; font-weight: 500; line-height: 1.7; margin-bottom: 3rem; }
.ctl-download { padding: 18px 40px; background: #000; color: #fff; font-weight: 900; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; border: none; border-radius: 99px; cursor: pointer; display: flex; align-items: center; gap: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.18); transition: box-shadow .2s, background .2s; }
.ctl-download:hover { background: #222; }
.ctl-screenshots { width: 100%; margin-top: 3rem; }
.ctl-ss-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
@media(max-width:768px){ .ctl-ss-grid { grid-template-columns: 1fr; } }
.ctl-ss-item { aspect-ratio: 4/3; background: #e0e0e0; border: 1px solid rgba(59,130,246,0.1); border-radius: 24px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: box-shadow .2s; }
.ctl-ss-item:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.ctl-ss-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.ctl-ss-item:hover img { transform: scale(1.08); }
.ctl-platform-row { display: flex; justify-content: center; gap: 3rem; color: #999; }
.ctl-platform { display: flex; align-items: center; gap: 6px; font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; }
.ctl-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-bottom: 6rem; }
@media(max-width:768px){ .ctl-features { grid-template-columns: 1fr; } }
.ctl-feature { padding: 2.5rem; background: #fff; border: 1px solid rgba(59,130,246,0.06); border-bottom: 6px solid rgba(37,99,235,0.1); border-radius: 2.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: box-shadow .2s; }
.ctl-feature:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.ctl-feature-icon { width: 56px; height: 56px; background: #eff6ff; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; transition: background .2s, color .2s; }
.ctl-feature:hover .ctl-feature-icon { background: var(--blue-dark); color: white; }
.ctl-feature h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 1px; margin-bottom: 1rem; }
.ctl-feature p { color: #666; font-size: 1rem; line-height: 1.7; }
.ctl-cta { padding: 4rem; background: #111; border-radius: 4rem; border: 4px solid rgba(37,99,235,0.15); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3rem; color: white; }
@media(max-width:768px){ .ctl-cta { flex-direction: column; } }
.ctl-cta-text h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem,5vw,3.5rem); letter-spacing: 1px; line-height: 1.1; margin-bottom: 1.5rem; }
.ctl-cta-text p { color: #666; font-size: 1.05rem; max-width: 480px; }
.ctl-timer-box { background: var(--blue-dark); padding: 3rem; border-radius: 3rem; text-align: center; box-shadow: 0 20px 60px rgba(37,99,235,0.4); transform: scale(1.05); flex-shrink: 0; }
.ctl-timer-display { font-family: 'Space Mono', monospace; font-size: 3rem; font-weight: 700; letter-spacing: 3px; }
.ctl-timer-label { font-size: 9px; letter-spacing: 5px; text-transform: uppercase; opacity: 0.8; margin-top: 8px; font-family: 'Space Mono', monospace; }
.ctl-progress-bar { margin-top: 1.5rem; width: 100%; height: 4px; background: rgba(255,255,255,0.2); border-radius: 99px; overflow: hidden; }
.ctl-progress-fill { height: 100%; background: white; border-radius: 99px; animation: progress 2.5s ease-in-out infinite; }
@keyframes progress { 0%{width:5%;margin-left:0} 50%{width:50%;margin-left:25%} 100%{width:5%;margin-left:95%} }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  padding: 2.5rem 1.5rem;
  background: rgba(0,0,0,0.7);
  border-top: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}
body.light-mode footer { background: rgba(240,242,244,0.9); border-top-color: rgba(0,0,0,0.06); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-logo-row { display: flex; align-items: center; gap: 10px; }
.footer-logo-img { height: 32px; width: auto; mix-blend-mode: screen; }
body.light-mode .footer-logo-img { mix-blend-mode: multiply; }
.footer-wordmark { font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 2px; color: #333; }
body.light-mode .footer-wordmark { color: #999; }
.footer-copy { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #2a2a2a; }
body.light-mode .footer-copy { color: #bbb; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #2a2a2a; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #666; }
body.light-mode .footer-links a { color: #bbb; }
body.light-mode .footer-links a:hover { color: #555; }

/* ══════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 200; display: none; align-items: center; justify-content: center; padding: 2rem; }
.modal-overlay.open { display: flex; }
.modal-box { background: #0e1517; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 2.5rem; max-width: 600px; width: 100%; max-height: 80vh; overflow-y: auto; position: relative; }
.modal-box h2 { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 1px; margin-bottom: 1.5rem; color: #ddd; }
.modal-box p, .modal-box li { color: #666; font-size: 14px; line-height: 1.8; margin-bottom: .75rem; }
.modal-box strong { color: #aaa; }
.modal-box ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.06); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(255,255,255,0.12); }
