:root {
  --deep-navy: #00072C;
  --mid-navy:  #000619;
  --cyan:      #57C1FF;
  --magenta:   #800D3C;
  --ink:       #eaf3ff;
  --ink-dim:   #8ea6c9;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #000206;
  color: var(--ink);
  font-family: "Adwaita Sans", system-ui, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.34  0 0 0 0 0.76  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.35'/></svg>");
  opacity: 0.06;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  animation: grainShift 1.2s steps(4) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-6px, 4px); }
  50%  { transform: translate(4px, -3px); }
  75%  { transform: translate(-3px, -5px); }
  100% { transform: translate(0, 0); }
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(87,193,255,0.03) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
  z-index: 1;
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  gap: clamp(16px, 3vh, 32px);
}

.scene {
  width: min(1000px, 100%);
  aspect-ratio: 1000 / 560;
  display: block;
  filter: drop-shadow(0 0 40px rgba(87,193,255,0.08));
}

.scene .port { opacity: 0.5; }
.scene .port.hot {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--cyan));
}

.headline {
  font-family: "Saira Semi Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(32px, 6.4vw, 88px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-align: center;
  line-height: 1;
  text-shadow: 0 0 30px rgba(87,193,255,0.25);
}

.headline .dots { display: inline-block; margin-left: 4px; color: var(--cyan); }
.headline .dots span {
  display: inline-block;
  animation: blink 1.4s infinite;
}
.headline .dots span:nth-child(2) { animation-delay: 0.2s; }
.headline .dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 60%, 100% { opacity: 0.2; }
  30%           { opacity: 1; }
}

.tagline {
  font-family: "Saira Semi Condensed", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: clamp(10px, 1.2vw, 13px);
  color: var(--ink-dim);
  margin: 0;
  text-align: center;
}

.tagline a {
  color: inherit;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .headline .dots span { animation: none; opacity: 1; }
}
