/* SadSloth — Bubbly immersive landing */

@font-face {
  font-family: 'Retro';
  src: url('../assets/Retro.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #050208;
  --deep: #0c0618;
  --surface: #14101f;
  --purple: #2a1548;
  --purple-glow: rgba(120, 60, 200, 0.35);
  --blue: #5eb8ff;
  --blue-soft: #93d4ff;
  --cyan: #67e8f9;
  --red-eye: #ff3344;
  --red-glow: rgba(255, 51, 68, 0.5);
  --text: #f0ecf8;
  --muted: #8b7fa8;
  --line: rgba(255, 255, 255, 0.07);
  --font: 'Retro', 'Courier New', monospace;
  --header-h: 68px;

  /* Retro font renders best at fixed pixel sizes */
  --fs-xs: 14px;
  --fs-sm: 16px;
  --fs-base: 20px;
  --fs-md: 22px;
  --fs-lg: 28px;
  --fs-xl: 34px;
  --fs-2xl: 44px;
  --fs-3xl: 64px;
  --fs-countdown: 58px;
  --lh-base: 30px;
  --lh-relaxed: 34px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

html.is-mobile { scroll-behavior: auto; }

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  background: var(--void);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* One continuous ambient backdrop — sections sit on top, no hard cuts */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 110% 55% at 50% -5%, rgba(55, 28, 95, 0.3) 0%, transparent 52%),
    radial-gradient(ellipse 65% 45% at 12% 38%, rgba(38, 18, 68, 0.22) 0%, transparent 48%),
    radial-gradient(ellipse 55% 40% at 88% 58%, rgba(32, 14, 58, 0.18) 0%, transparent 44%),
    radial-gradient(ellipse 75% 35% at 50% 92%, rgba(45, 22, 75, 0.16) 0%, transparent 48%),
    linear-gradient(180deg, #06030c 0%, #090514 22%, #0b0616 48%, #080410 72%, #050208 100%);
}

main { position: relative; z-index: 1; }

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(1140px, 92vw); margin-inline: auto; }

/* Visually hidden — kept for SEO / screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 9999;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px rgba(94, 184, 255, 0.6);
  transition: width 0.1s linear;
}

/* Film grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Crosshair cursor */
.cursor-crosshair {
  position: fixed;
  width: 44px;
  height: 44px;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.18s var(--ease-out), height 0.18s var(--ease-out);
  mix-blend-mode: difference;
}

.cursor-crosshair.pop { width: 64px; height: 64px; }

.crosshair-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(94, 184, 255, 0.4);
}

.crosshair-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: #fff;
  border-radius: 50%;
}

@media (max-width: 768px), (pointer: coarse) {
  body { cursor: auto; }
  .cursor-crosshair { display: none; }

  a,
  button,
  .btn,
  .menu-toggle {
    cursor: pointer;
  }
}

@media (pointer: fine) {
  a,
  button,
  .btn,
  .menu-toggle,
  input,
  select,
  textarea,
  label[for],
  summary {
    cursor: none;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: linear-gradient(to bottom, rgba(5, 2, 8, 0.85), transparent);
  transition: background 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
  background: rgba(7, 4, 14, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-base);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo {
  border-radius: 50%;
  transition: transform 0.4s var(--ease-out);
}

.logo-link:hover .logo { transform: rotate(-12deg) scale(1.08); }

.nav { display: flex; align-items: center; gap: 2.25rem; }

.nav a {
  position: relative;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.3s var(--ease-out);
}

.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav a:hover { opacity: 1; }

.nav-cta {
  opacity: 1 !important;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  transition: background 0.25s, border-color 0.25s;
}

.nav-cta:hover {
  background: rgba(94, 184, 255, 0.12);
  border-color: var(--blue);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.5;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.3;
  animation: heroBgDrift 30s ease-in-out infinite alternate;
}

@keyframes heroBgDrift {
  from { transform: scale(1.05) translateY(0); }
  to { transform: scale(1.12) translateY(-2%); }
}

.hero-bg-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 38%, rgba(18, 8, 36, 0.45) 0%, transparent 68%),
    linear-gradient(to bottom, rgba(5, 2, 8, 0.25) 0%, transparent 72%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(5, 2, 8, 0.4) 60%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: min(980px, 96vw);
  margin: 0 auto;
  padding: calc(var(--header-h) + 36px) 0 72px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  position: relative;
  margin-bottom: 36px;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-logo-halo {
  position: absolute;
  inset: -16% -8%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(94, 184, 255, 0.28) 0%, rgba(103, 232, 249, 0.12) 35%, transparent 70%);
  filter: blur(20px);
  animation: haloPulse 5s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.hero-logo {
  width: min(540px, 92vw);
  border-radius: 14px;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
}

.hero-headline {
  font-size: var(--fs-2xl);
  line-height: 52px;
  color: rgba(240, 236, 248, 0.5);
  width: 100%;
  max-width: min(920px, 96vw);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-headline .accent {
  color: var(--blue);
  text-shadow: 0 0 20px rgba(94, 184, 255, 0.45);
}

/* Countdown */
.countdown-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 24px 28px;
  margin-bottom: 32px;
  background: rgba(8, 4, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.countdown-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(94, 184, 255, 0.4), transparent 40%, transparent 60%, rgba(103, 232, 249, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.countdown-heading {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 84px;
}

.countdown-value {
  font-size: var(--fs-countdown);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 24px rgba(94, 184, 255, 0.35);
  transition: transform 0.2s var(--ease-out);
}

.countdown-value.tick { animation: tickPulse 0.4s var(--ease-out); }

@keyframes tickPulse {
  0% { transform: translateY(0) scale(1); color: var(--cyan); }
  40% { transform: translateY(-4px) scale(1.12); color: var(--cyan); }
  100% { transform: translateY(0) scale(1); color: #fff; }
}

.countdown-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.countdown-colon {
  font-size: var(--fs-xl);
  color: var(--blue);
  padding: 0 2px 18px;
  opacity: 0.4;
}

.countdown-date {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 480px;
}

.btn-hero {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: var(--fs-base);
}

.icon-steam { flex-shrink: 0; }

.scroll-cue {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}

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

@keyframes cueSlide {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: var(--fs-sm);
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s;
  will-change: transform;
}

.btn-steam {
  background: linear-gradient(135deg, #2aa7ff 0%, #1478c4 100%);
  color: #fff;
  box-shadow: 0 6px 26px rgba(27, 156, 240, 0.4);
}

.btn-steam:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 38px rgba(27, 156, 240, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-lg { padding: 18px 34px; font-size: var(--fs-base); }

/* Sections */
.section {
  position: relative;
  z-index: 5;
  padding: 90px 0;
  background: transparent;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about::before {
  background:
    radial-gradient(ellipse 90% 70% at 30% 30%, rgba(42, 21, 72, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 70% 70%, rgba(25, 12, 48, 0.12) 0%, transparent 50%);
}

.bubbly-section::before {
  background:
    radial-gradient(ellipse 85% 65% at 75% 40%, rgba(35, 18, 62, 0.2) 0%, transparent 52%),
    radial-gradient(ellipse 70% 55% at 20% 60%, rgba(28, 14, 50, 0.12) 0%, transparent 48%);
}

.loop-section::before {
  background: radial-gradient(ellipse 100% 60% at 50% 50%, rgba(38, 20, 65, 0.16) 0%, transparent 58%);
}

.cta-section::before {
  background:
    radial-gradient(ellipse 70% 80% at 50% 80%, rgba(255, 51, 68, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 90% 50% at 50% 20%, rgba(42, 21, 72, 0.12) 0%, transparent 50%);
}

.section > .container { position: relative; z-index: 1; }

.eyebrow {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.eyebrow-center { text-align: center; }

.section-title-center {
  font-size: var(--fs-2xl);
  line-height: 52px;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 52px;
}

h2 {
  font-size: var(--fs-xl);
  line-height: 44px;
  letter-spacing: 0.02em;
}

/* Stats strip */
.stats-strip {
  position: relative;
  z-index: 5;
  margin-top: -40px;
  padding: 24px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  text-align: center;
  padding: 26px 16px;
  border-radius: 16px;
  background: rgba(12, 8, 22, 0.4);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 184, 255, 0.2);
  background: rgba(20, 14, 36, 0.55);
}

.stat-value {
  display: block;
  font-size: var(--fs-3xl);
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 28px rgba(94, 184, 255, 0.3);
  margin-bottom: 12px;
}

.stat-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* About */
.about {
  background: transparent;
  margin-top: 8px;
  padding-top: 90px;
}

.about-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-logo-ring {
  position: relative;
  padding: 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-logo-ring::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  padding: 1px;
  background: conic-gradient(from 0deg, transparent, var(--blue), transparent, var(--purple-glow), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.about-body .eyebrow { margin-bottom: 1rem; }

.about-text {
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  margin: 1.5rem 0 2rem;
  max-width: 52ch;
}

.about-text strong { color: var(--text); }

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.about-columns p {
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

.about-columns strong { color: var(--text); }

.social-row { display: flex; gap: 1.5rem; }

.social-row a {
  position: relative;
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.social-row a:hover { color: var(--blue-soft); }

/* Monitor showcase */
.bubbly-section { background: transparent; }

.monitor {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: stretch;
}

.monitor-stage {
  perspective: 1000px;
  display: flex;
  align-items: stretch;
}

.monitor-bezel {
  background: linear-gradient(145deg, #2a2a32 0%, #1a1a22 50%, #0e0e14 100%);
  border-radius: 28px;
  padding: 1.5rem 1.5rem 1rem;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(94, 184, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.1s linear;
  transform-style: preserve-3d;
}

.monitor-screen {
  position: relative;
  flex: 1;
  min-height: 300px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.monitor-screen img { width: 100%; height: 100%; object-fit: cover; }

.monitor-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 42%);
  pointer-events: none;
}

.monitor-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 3px);
  opacity: 0.5;
}

.monitor-chin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.5rem 0.35rem;
  flex-shrink: 0;
}

.monitor-brand {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.monitor-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-eye);
  box-shadow: 0 0 8px var(--red-glow);
  animation: ledBlink 0.9s ease-in-out infinite;
}

@keyframes ledBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--red-glow); }
  50% { opacity: 0.3; box-shadow: 0 0 4px rgba(255, 51, 68, 0.25); }
}

.monitor-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.monitor-copy .tags {
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 16px;
}

.monitor-copy p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

.monitor-copy strong { color: var(--text); }
.monitor-copy .btn {
  margin-top: 0.5rem;
  align-self: center;
}

/* Loop steps */
.loop-section { background: transparent; }

.loop-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.loop-step {
  position: relative;
  background: rgba(14, 10, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease-out), background 0.35s, border-color 0.35s;
}

.loop-step::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(94, 184, 255, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.loop-step:hover {
  transform: translateY(-6px);
  background: rgba(28, 16, 48, 0.55);
  border-color: rgba(125, 211, 252, 0.18);
}

.loop-step:hover::after { opacity: 1; }

.loop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--blue);
  background: rgba(94, 184, 255, 0.1);
  border: 1px solid rgba(94, 184, 255, 0.18);
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease-out), color 0.35s;
}

.loop-step:hover .loop-icon { transform: scale(1.08) rotate(-4deg); color: var(--cyan); }

.step-num {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: var(--fs-2xl);
  color: rgba(94, 184, 255, 0.12);
  line-height: 1;
}

.loop-step h3 { font-size: var(--fs-base); margin-bottom: 10px; }

.loop-step p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: var(--lh-relaxed);
}

/* CTA */
.cta-section { padding-bottom: 70px; }

.cta-panel {
  position: relative;
  text-align: center;
  padding: 60px 32px;
  border-radius: 24px;
  background: rgba(14, 10, 24, 0.5);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 90% at 50% 110%, rgba(255, 51, 68, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(94, 184, 255, 0.14) 0%, transparent 55%);
}

.cta-eyebrow {
  position: relative;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.cta-panel h2 {
  position: relative;
  font-size: var(--fs-2xl);
  line-height: 52px;
  margin-bottom: 14px;
}

.cta-sub {
  position: relative;
  color: var(--muted);
  margin-bottom: 28px;
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

.cta-panel .btn { position: relative; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 5;
  padding: 48px 0 36px;
  background: transparent;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1) 50%, transparent);
  pointer-events: none;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--muted);
  opacity: 0.6;
}

/* Entrance animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 0.12s + 0.1s);
}

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 900px) {
  :root { --fs-countdown: 46px; --fs-3xl: 50px; }
  .site-header { padding: 0 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; text-align: center; }
  .about-text { max-width: none; }
  .about-columns { grid-template-columns: 1fr; }
  .social-row { justify-content: center; }
  .monitor { grid-template-columns: 1fr; }

  .monitor-stage { display: block; }

  .monitor-bezel {
    flex: none;
    display: block;
  }

  .monitor-screen {
    flex: none;
    min-height: unset;
    aspect-ratio: 460 / 215;
  }

  .loop-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  html.is-mobile body {
    -webkit-tap-highlight-color: transparent;
  }

  .section {
    padding: 64px 0;
  }

  .loop-step:hover,
  .stat:hover,
  .btn-steam:hover,
  .btn-ghost:hover {
    transform: none;
  }

  /* Performance: drop expensive layers and animations on touch devices */
  #hero-canvas,
  .grain,
  .hero-logo-halo,
  .scroll-cue {
    display: none !important;
  }

  .hero-bg-img,
  .hero-logo-wrap,
  .about-logo-ring::before,
  .scroll-cue-line {
    animation: none !important;
  }

  .hero-bg-img {
    transform: none;
    opacity: 0.22;
  }

  .hero-headline .accent,
  .countdown-value,
  .stat-value {
    text-shadow: none;
  }

  .countdown-panel,
  .stat,
  .loop-step,
  .cta-panel,
  .btn-ghost,
  .site-header,
  .site-header.scrolled,
  .nav.open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .countdown-panel {
    background: rgba(8, 4, 16, 0.82);
  }

  .stat,
  .loop-step,
  .cta-panel {
    background: rgba(14, 10, 24, 0.72);
  }

  .reveal {
    transition-duration: 0.35s;
  }

  .reveal-up {
    animation-duration: 0.45s;
  }

  /* Hero banner layout */
  .hero {
    min-height: auto;
    padding-bottom: 8px;
  }

  .hero-inner {
    width: 100%;
    padding: calc(var(--header-h) + 16px) 16px 40px;
  }

  .hero-logo-wrap {
    margin-bottom: 20px;
  }

  .hero-logo {
    width: min(400px, 90vw);
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5));
  }

  .hero-headline {
    font-size: var(--fs-xl);
    line-height: 40px;
    max-width: 100%;
    margin-bottom: 24px;
    padding: 0 4px;
  }

  .countdown-panel {
    max-width: 100%;
    padding: 16px 12px;
    margin-bottom: 24px;
  }

  .countdown-unit {
    min-width: 60px;
  }

  .countdown-colon {
    padding-bottom: 14px;
  }

  .hero-actions {
    max-width: 100%;
  }

  .btn-hero {
    width: 100%;
  }

  .stats-strip {
    margin-top: -24px;
    padding: 16px 0;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 1.5rem;
    background: rgba(5, 2, 8, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s, opacity 0.35s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    background: rgba(5, 2, 8, 0.98);
  }
  .nav a { padding: 0.85rem 2rem; width: 100%; text-align: center; opacity: 1; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin: 0.5rem 2rem 0; }
  .menu-toggle { display: flex; }
  .site-header {
    background: rgba(5, 2, 8, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .menu-toggle.open span:first-child { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:last-child { transform: translateY(-8px) rotate(-45deg); }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .loop-steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root {
    --fs-base: 18px;
    --fs-md: 20px;
    --fs-lg: 22px;
    --fs-xl: 24px;
    --fs-2xl: 28px;
    --fs-3xl: 40px;
    --fs-countdown: 38px;
    --lh-base: 28px;
    --lh-relaxed: 30px;
  }

  .hero-inner {
    padding: calc(var(--header-h) + 12px) 14px 32px;
  }

  .hero-logo {
    width: min(340px, 92vw);
  }

  .hero-headline {
    font-size: var(--fs-lg);
    line-height: 32px;
    letter-spacing: 0.01em;
  }

  .countdown-unit {
    min-width: 50px;
  }

  .countdown-panel {
    padding: 14px 10px;
  }

  .section-title-center { line-height: 34px; }
  .cta-panel h2 { line-height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .about-logo-ring::before,
  .hero-logo-wrap,
  .hero-bg-img,
  .hero-logo-halo,
  .scroll-cue-line,
  .reveal-up { animation: none; }
  .reveal-up { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-steam:hover, .btn-ghost:hover, .stat:hover, .loop-step:hover { transform: none; }
}
