/* ===========================================================
   COSMOS GAMES — stylesheet
   Deep-space dark theme. Brand blue #003ea5 -> violet nebula.
   Fonts: Orbitron (hero display), Rajdhani (headings/UI),
          Inter (body copy), JetBrains Mono (tactical accents).
=========================================================== */

:root{
  /* surfaces */
  --bg: #05060c;
  --bg-alt: #090b1a;
  --surface: rgba(255,255,255,0.035);
  --surface-solid: #0e1226;
  --surface-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.18);

  /* text */
  --text: #eef1ff;
  --text-dim: #a8afd6;
  --text-faint: #7b82b8;

  /* brand */
  --blue-deep: #003ea5;
  --blue: #2559d9;
  --blue-bright: #5b8dff;
  --violet: #7c3fe6;
  --violet-bright: #b98bff;
  --amber: #ffb020;
  --grad-primary: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  --grad-text: linear-gradient(100deg, var(--blue-bright) 0%, var(--violet-bright) 45%, var(--blue-bright) 100%);

  /* type */
  --f-display: 'Orbitron', sans-serif;
  --f-heading: 'Rajdhani', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* layout */
  --container: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-full: 999px;
  --space-section: clamp(5rem, 9vw, 9rem);
  --header-h: 84px;

  --ease: cubic-bezier(.16,.8,.24,1);
}

/* ===================== RESET ===================== */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body, h1, h2, h3, h4, p, ul, figure{ margin: 0; }
ul{ padding: 0; list-style: none; }
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg{ display: block; fill: none; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

::selection{ background: var(--violet); color: #fff; }

/* scrollbar */
html{ scrollbar-color: var(--blue) var(--bg-alt); scrollbar-width: thin; }
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-track{ background: var(--bg-alt); }
::-webkit-scrollbar-thumb{ background: var(--blue-deep); border-radius: 10px; border: 2px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover{ background: var(--blue); }

:focus-visible{
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===================== UTILITIES ===================== */
.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link{
  position: fixed;
  top: -60px; left: 1rem;
  z-index: 999;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
  font-family: var(--f-heading);
  font-weight: 600;
}
.skip-link:focus{ top: 1rem; }

.kicker{
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.9rem;
  display: block;
}

.section-title{
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  max-width: 18ch;
}
.section-title--sm{ font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: none; }

.section-lead{
  margin-top: 1.1rem;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 56ch;
  line-height: 1.7;
}

.section-head--center{ text-align: center; margin-inline: auto; }
.section-head--center .section-title{ max-width: none; margin-inline: auto; }
.section-lead--center{ margin-inline: auto; }

/* ===================== PRELOADER ===================== */
.preloader{
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.preloader.is-hidden{ opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-mark{ position: relative; width: 90px; height: 90px; display: grid; place-items: center; }
.preloader-mark img{ width: 56px; height: 56px; animation: pulse-fade 1.4s ease-in-out infinite; }
.preloader-ring{
  position: absolute; inset: 0; width: 90px; height: 90px;
  color: var(--blue);
  animation: spin 1.4s linear infinite;
  transform-origin: center;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
@keyframes pulse-fade{ 0%,100%{ opacity: 0.55; } 50%{ opacity: 1; } }

/* ===================== CURSOR GLOW ===================== */
.cursor-glow{
  position: fixed; top: 0; left: 0; z-index: 2;
  width: 480px; height: 480px;
  margin-left: -240px; margin-top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,141,255,0.10) 0%, rgba(139,92,246,0.06) 45%, transparent 72%);
  pointer-events: none;
  transform: translate(var(--mx, 50vw), var(--my, 50vh));
  will-change: transform;
  display: none;
}
@media (hover: hover) and (pointer: fine){
  .cursor-glow{ display: block; }
}

/* ===================== HEADER ===================== */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  background: rgba(5,6,12,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.brand{ display: flex; align-items: center; }
.brand-logo{ height: 40px; width: auto; }

.nav-links{ display: flex; align-items: center; gap: 2.1rem; }
.nav-links a{
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding: 0.3rem 0.1rem;
  transition: color 0.25s var(--ease);
}
.nav-links a::after{
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--grad-primary);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active{ color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after{ width: 100%; }

.header-actions{ display: flex; align-items: center; gap: 1rem; }

.menu-toggle{
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  align-items: center; justify-content: center;
  background: var(--surface);
}

/* mobile menu panel */
.mobile-menu{
  position: fixed; inset: var(--header-h) 0 0 0;
  background: rgba(5,6,12,0.98);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2.5rem clamp(1.25rem, 6vw, 3rem);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 90;
}
.js .mobile-menu{ display: flex; }
.mobile-menu.is-open{
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.mobile-menu nav{ display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu nav a{
  font-family: var(--f-heading);
  font-size: 2rem;
  font-weight: 700;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-menu-footer{ display: flex; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; }

@media (min-width: 901px){
  .mobile-menu{ display: none !important; }
}

/* ===================== BUTTONS / CHIPS ===================== */
.btn{
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg{ flex-shrink: 0; }
.btn-sm{ padding: 0.6rem 1.15rem; font-size: 0.95rem; }
.btn-lg{ padding: 0.95rem 1.7rem; font-size: 1.08rem; }

.btn-primary{
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(47,107,255,0.55), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(139,92,246,0.65), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.btn-ghost{
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.35);
}

.chip-row{ display: flex; flex-wrap: wrap; gap: 0.65rem; }
.chip{
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
}

/* ===================== HERO ===================== */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg{
  position: absolute; inset: -2% -2% -2% -2%; z-index: -6;
  background-image: url('/images/hero-bg-mobile.jpg');
  background-size: cover;
  background-position: center 20%;
  animation: hero-kenburns 22s ease-in-out infinite alternate;
}
@media (min-width: 720px){
  .hero-bg{ background-image: url('/images/hero-bg.jpg'); background-position: center 42%; }
}
@keyframes hero-kenburns{
  from{ transform: scale(1); }
  to{ transform: scale(1.08); }
}
.hero-scrim{
  position: absolute; inset: 0; z-index: -5;
  background:
    linear-gradient(100deg, rgba(5,6,12,0.97) 0%, rgba(5,6,12,0.88) 32%, rgba(5,6,12,0.6) 56%, rgba(5,6,12,0.4) 74%, rgba(5,6,12,0.62) 100%),
    linear-gradient(to top, rgba(5,6,12,0.95) 0%, rgba(5,6,12,0.15) 26%, transparent 46%);
}
.starfield{
  position: absolute; inset: 0; z-index: -4;
  width: 100%; height: 100%;
  mix-blend-mode: screen;
}
.hero-glow{
  position: absolute; z-index: -3; border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow-a{
  width: 640px; height: 640px;
  top: -180px; left: -160px;
  background: radial-gradient(circle, rgba(0,62,165,0.55), transparent 70%);
}
.hero-glow-b{
  width: 560px; height: 560px;
  bottom: -220px; right: -140px;
  background: radial-gradient(circle, rgba(139,92,246,0.4), transparent 70%);
}
.hero-scanlines{
  position: absolute; inset: 0; z-index: -2;
  background: repeating-linear-gradient(
    to bottom, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px,
    transparent 1px, transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
}
.hero-cut{
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1;
  height: clamp(46px, 7vw, 96px);
  background: var(--bg);
  clip-path: polygon(0% 72%, 100% 4%, 100% 100%, 0% 100%);
}
@media (prefers-reduced-motion: reduce){
  .hero-bg{ animation: none; }
}

.hero-inner{ padding-top: 2rem; padding-bottom: 3.5rem; }

.eyebrow{
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--blue-bright);
  background: rgba(47,107,255,0.09);
  border: 1px solid rgba(91,141,255,0.3);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.8rem;
}
.eyebrow .flag{ font-size: 1rem; }

.hero-title{
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 10vw, 7.8rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-shadow: 0 6px 40px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  margin-bottom: 1.7rem;
}
.hero-title-line{ color: var(--text); }
.hero-title-accent{
  background: var(--grad-text);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shine 7s linear infinite;
  filter: drop-shadow(0 0 34px rgba(139,92,246,0.35));
}
@keyframes shine{
  to{ background-position: -220% center; }
}

.hero-subtitle{
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: 2.4rem;
}
.hero-subtitle strong{ color: var(--text); font-weight: 600; }

.trailer-cta{
  display: inline-flex; align-items: center; gap: 0.9rem;
  margin-bottom: 1.9rem;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.82);
  transition: color 0.25s var(--ease);
}
.trailer-cta:hover{ color: #fff; }
.trailer-cta-ring{
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.trailer-cta-ring svg{ margin-left: 2px; }
.trailer-cta-ring::before{
  content: '';
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  animation: trailer-pulse 2.6s ease-out infinite;
}
.trailer-cta:hover .trailer-cta-ring{
  transform: scale(1.08);
  background: rgba(255,255,255,0.16);
  border-color: #fff;
}
@keyframes trailer-pulse{
  0%{ transform: scale(0.92); opacity: 0.8; }
  100%{ transform: scale(1.4); opacity: 0; }
}

.hero-ctas{ display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.3rem; }
.hero-ctas--center{ justify-content: center; margin-bottom: 0; }

.scroll-cue{
  position: absolute; left: 50%; bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob{ 0%,100%{ transform: translate(-50%,0); } 50%{ transform: translate(-50%,8px); } }

/* ===================== MARQUEE ===================== */
.marquee{
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(0,62,165,0.12), rgba(139,92,246,0.12));
  overflow: hidden;
  padding: 0.9rem 0;
}
.marquee-track{
  display: flex; width: max-content;
  animation: scroll-left 26s linear infinite;
}
.marquee-track span{
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding-right: 2.5rem;
  white-space: nowrap;
}
@keyframes scroll-left{ to{ transform: translateX(-50%); } }
.marquee:hover .marquee-track{ animation-play-state: paused; }

/* ===================== SECTIONS ===================== */
.section{ padding-block: var(--space-section); position: relative; }
.section--tight{ padding-block: calc(var(--space-section) * 0.6); }

.section-head{ max-width: 62ch; margin-bottom: 3.5rem; }

/* ===================== BENTO GRID ===================== */
.bento{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 4.5rem;
}
.bento-card{
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.bento-card:hover{
  transform: translateY(-4px);
  border-color: rgba(91,141,255,0.4);
  background: rgba(255,255,255,0.055);
}
.bento-card--wide{ grid-column: span 4; }
@media (min-width: 700px){
  .bento-card{ grid-column: span 2; }
  .bento-card--wide{ grid-column: span 4; display: flex; align-items: center; gap: 1.5rem; }
  .bento-card--wide h3{ margin-bottom: 0; }
}
.bento-icon{
  color: var(--blue-bright);
  margin-bottom: 1rem;
  padding: 0.6rem;
  background: rgba(47,107,255,0.1);
  border-radius: var(--radius-sm);
}
.bento-card h3{
  font-family: var(--f-heading);
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.bento-card p{ color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

/* ===================== CLASSES ===================== */
.classes-head{ margin-bottom: 2rem; }
.classes-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 4rem;
}
.class-card{
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  transition: transform 0.15s ease-out, border-color 0.3s var(--ease);
  will-change: transform;
}
.class-card:hover{ transform: translateY(-4px); border-color: rgba(139,92,246,0.45); }
.class-icon{
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  margin-bottom: 1.1rem;
}
.class-card h4{ font-family: var(--f-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.class-card p{ color: var(--text-dim); font-size: 0.92rem; }

/* ===================== GALLERY ===================== */
.gallery-head{ margin-top: 4rem; margin-bottom: 2rem; }
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  background: var(--surface-solid);
}
.gallery-item--wide{ grid-column: span 2; }
.gallery-item img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
  filter: brightness(0.92);
}
.gallery-item::after{
  content: '';
  position: absolute; inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  pointer-events: none;
}
.gallery-item:hover img, .gallery-item:focus-visible img{
  transform: scale(1.06);
  filter: brightness(1.02);
}
.gallery-item:hover::after, .gallery-item:focus-visible::after{
  border-color: rgba(91,141,255,0.55);
  box-shadow: 0 0 0 1px rgba(91,141,255,0.2) inset;
}

/* ===================== LIGHTBOX ===================== */
.lightbox{
  position: fixed; inset: 0; z-index: 300;
  background: rgba(2,3,8,0.94);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 5vw, 4rem);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.is-open{ opacity: 1; visibility: visible; }
.lightbox img{
  max-width: 100%; max-height: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  border: 1px solid var(--border-strong);
}
.lightbox-close{
  position: absolute; top: clamp(1rem, 4vw, 2rem); right: clamp(1rem, 4vw, 2rem);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: grid; place-items: center;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox-close:hover{ border-color: var(--blue-bright); color: var(--blue-bright); transform: rotate(90deg); }

/* ===================== VIDEO MODAL (trailer) ===================== */
.video-modal{
  position: fixed; inset: 0; z-index: 300;
  background: rgba(2,3,8,0.94);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 5vw, 4rem);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.video-modal.is-open{ opacity: 1; visibility: visible; }
.video-modal-frame{
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 90px -20px rgba(0,0,0,0.75);
  border: 1px solid var(--border-strong);
  background: #000;
}
.video-modal-frame iframe{ width: 100%; height: 100%; display: block; }

/* ===================== STATUS BADGE + ROADMAP ===================== */
.roadmap-head{ margin-bottom: 1.6rem; }
.status-badge{
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  white-space: nowrap;
  border: 1px solid rgba(255,176,32,0.35);
  background: rgba(255,176,32,0.08);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
}
.status-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255,176,32,0.6);
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring{
  0%{ box-shadow: 0 0 0 0 rgba(255,176,32,0.55); }
  70%{ box-shadow: 0 0 0 8px rgba(255,176,32,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,176,32,0); }
}

.roadmap{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.roadmap-item{
  position: relative;
  padding: 1.9rem 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.roadmap-item--active{
  border-color: rgba(91,141,255,0.45);
  background: linear-gradient(160deg, rgba(47,107,255,0.12), rgba(139,92,246,0.05));
}
.roadmap-item:hover{ transform: translateY(-3px); }
.roadmap-index{
  display: block;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.roadmap-item--active .roadmap-index{ color: var(--blue-bright); }
.roadmap-tag{
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.roadmap-item--active .roadmap-tag{ background: var(--grad-primary); color: #fff; }
.roadmap-item h4{
  font-family: var(--f-heading);
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.roadmap-item p{ color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }

/* ===================== TACTICAL HUD ===================== */
.tactical{ background: radial-gradient(ellipse at 50% 20%, rgba(0,62,165,0.1), transparent 60%); }
.hud-panel{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 880px;
  margin-inline: auto;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.hud-radar{
  position: relative;
  width: 220px; height: 220px;
  margin-inline: auto;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(91,141,255,0.16) 0 1px, transparent 1px 25%),
    radial-gradient(circle, rgba(47,107,255,0.08), rgba(5,6,12,0.4));
  border: 1px solid rgba(91,141,255,0.35);
  overflow: hidden;
}
.hud-radar::before, .hud-radar::after{
  content: ''; position: absolute; background: rgba(91,141,255,0.18);
}
.hud-radar::before{ left: 0; right: 0; top: 50%; height: 1px; }
.hud-radar::after{ top: 0; bottom: 0; left: 50%; width: 1px; }
.hud-radar-sweep{
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, rgba(91,141,255,0.55), transparent 32%);
  animation: radar-spin 3.4s linear infinite;
}
@keyframes radar-spin{ to{ transform: rotate(360deg); } }
.hud-blip{
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 8px 2px rgba(91,141,255,0.7);
  animation: blip-fade 2.6s ease-in-out infinite;
}
.hud-blip--1{ top: 32%; left: 62%; animation-delay: 0.2s; }
.hud-blip--2{ top: 68%; left: 40%; animation-delay: 1.1s; }
.hud-blip--3{ top: 45%; left: 25%; animation-delay: 1.8s; }
.hud-blip--you{
  top: 50%; left: 50%; width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: var(--amber);
  box-shadow: 0 0 10px 3px rgba(255,176,32,0.7);
  animation: none;
}
@keyframes blip-fade{ 0%,100%{ opacity: 0.35; transform: scale(0.85); } 50%{ opacity: 1; transform: scale(1.15); } }

.hud-readout{ font-family: var(--f-mono); }
.hud-row{
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.5rem;
}
.hud-row--sm{ font-size: 0.72rem; color: var(--text-faint); margin-top: -0.3rem; margin-bottom: 1.1rem; letter-spacing: 0.04em; }
.hud-label{ font-size: 0.75rem; color: var(--text-faint); letter-spacing: 0.08em; }
.hud-value{ font-size: 0.95rem; color: var(--text); font-weight: 500; letter-spacing: 0.04em; }
.hud-bar{
  height: 7px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  overflow: hidden; margin-bottom: 0.35rem;
}
.hud-bar-fill{ display: block; height: 100%; border-radius: var(--radius-full); }
.hud-bar-fill--hp{ width: 86%; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.hud-bar-fill--shield{ width: 100%; background: linear-gradient(90deg, var(--violet), var(--violet-bright)); }

/* ===================== PLATFORMS BAND ===================== */
.platforms{
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  background: linear-gradient(180deg, transparent, rgba(47,107,255,0.06) 40%, rgba(139,92,246,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.platforms-inner{ display: flex; flex-direction: column; align-items: center; gap: 2rem; }

/* ===================== ABOUT ===================== */
.about-grid{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-visual{ position: relative; display: flex; align-items: center; justify-content: center; }
.about-logo{ width: min(320px, 70%); position: relative; z-index: 1; filter: drop-shadow(0 20px 50px rgba(0,62,165,0.4)); }
.about-orbit{
  position: absolute; inset: 8% ;
  border: 1px dashed rgba(91,141,255,0.25);
  border-radius: 50%;
  animation: spin-slow 40s linear infinite;
}
.about-orbit::before{
  content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px;
  background: var(--violet-bright); border-radius: 50%;
  box-shadow: 0 0 12px 3px rgba(185,139,255,0.8);
}
@keyframes spin-slow{ to{ transform: rotate(360deg); } }

.milestone-strip{ display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.milestone-strip li{
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
}

/* ===================== CONTACT ===================== */
.contact-panel{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1.2rem;
  max-width: 720px; margin-inline: auto;
}
.contact-email{
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.6rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface);
  font-family: var(--f-heading);
  font-size: 1.05rem;
  font-weight: 600;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact-email:hover{ border-color: var(--blue-bright); background: rgba(47,107,255,0.08); transform: translateY(-2px); }
.contact-email svg{ color: var(--blue-bright); flex-shrink: 0; }
.contact-copy-icon{ position: relative; width: 18px; height: 18px; color: var(--text-faint); }
.contact-copy-icon svg{ position: absolute; inset: 0; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.contact-copy-icon .icon-check{ opacity: 0; transform: scale(0.5); color: #34d399; }
.contact-email.is-copied .icon-copy{ opacity: 0; transform: scale(0.5); }
.contact-email.is-copied .icon-check{ opacity: 1; transform: scale(1); }

.contact-location{
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text-dim);
  font-family: var(--f-mono);
  font-size: 0.9rem;
}
.contact-location svg{ color: var(--violet-bright); }

.toast{
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 20px);
  background: #10b981; color: #04150e;
  font-family: var(--f-heading); font-weight: 700; font-size: 0.95rem;
  padding: 0.75rem 1.4rem; border-radius: var(--radius-full);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 200;
}
.toast.is-visible{ opacity: 1; transform: translate(-50%, 0); }

/* ===================== FOOTER ===================== */
.site-footer{
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 6vw, 5rem);
  background: var(--bg-alt);
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand img{ height: 34px; width: auto; margin-bottom: 1rem; }
.footer-brand p{ color: var(--text-faint); font-size: 0.9rem; max-width: 26ch; }
.footer-col h5{
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.footer-col{ display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a{ color: var(--text-dim); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-col a:hover{ color: var(--blue-bright); }
.footer-muted{ color: var(--text-faint); font-size: 0.88rem; }

.footer-bottom{
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p{ font-size: 0.85rem; color: var(--text-faint); }

/* ===================== BACK TO TOP ===================== */
.back-to-top{
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 80;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, border-color 0.25s var(--ease);
}
.back-to-top.is-visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover{ border-color: var(--blue-bright); color: var(--blue-bright); }

/* ===================== SCROLL REVEAL ===================== */
.js [data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].in-view{
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px){
  .footer-inner{ grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand{ grid-column: span 3; }
}

@media (max-width: 900px){
  .nav-links, .header-actions .btn-primary{ display: none; }
  .menu-toggle{ display: inline-flex; }
  .about-grid{ grid-template-columns: 1fr; text-align: left; }
  .about-visual{ order: -1; max-width: 280px; margin-inline: auto; }
  .hud-panel{ grid-template-columns: 1fr; text-align: center; }
  .hud-readout{ text-align: left; }
}

@media (max-width: 720px){
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: span 2; }
  .classes-grid{ grid-template-columns: repeat(2, 1fr); }
  .bento{ grid-template-columns: repeat(2, 1fr); }
  .bento-card{ grid-column: span 2; }
  .bento-card--wide{ grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .bento-card--wide h3{ margin-bottom: 0.5rem; }
  .gallery-grid{ grid-template-columns: 1fr 1fr; }
  .roadmap{ grid-template-columns: 1fr; }
}

/* Hero content (title + subtitle + trailer CTA + 2 buttons + chips) can run
   taller than the viewport on shorter screens — common laptop heights
   (768–800px) included, not just phones. The scroll hint is purely
   decorative, so it's dropped whenever vertical space is tight rather than
   risk it overlapping the chip row. */
@media (max-height: 900px){
  .scroll-cue{ display: none; }
}

@media (max-width: 480px){
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-brand{ grid-column: span 1; }
  .classes-grid{ grid-template-columns: 1fr 1fr; }
  .contact-email-text{ font-size: 0.85rem; word-break: break-all; }
  .hero-title{ font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .gallery-grid{ grid-template-columns: 1fr; }
  .gallery-item--wide{ grid-column: span 1; }
}
