:root {
  --bg: #030508;
  --surface: #0a0e14;
  --text: #f0f4fa;
  --muted: #7a8ba3;
  --accent: #ff3d2e;
  --accent-glow: rgba(255, 61, 46, 0.55);
  --cyan: #00e5c7;
  --cyan-dim: rgba(0, 229, 199, 0.12);
  --border: rgba(120, 140, 170, 0.14);
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --display: "Orbitron", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Atmosphere ── */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 30% 50%, black 10%, transparent 75%);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 100% at 50% 50%, transparent 30%, var(--bg) 85%);
}

.scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 229, 199, 0.03) 48%,
    transparent 52%
  );
  background-size: 100% 8px;
  animation: scan 6s linear infinite;
  opacity: 0.6;
}

@keyframes scan {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 100vh; }
}

/* ── HUD corners ── */
.hud {
  position: fixed;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a5d75;
  pointer-events: none;
}

.hud span:first-child {
  color: var(--cyan);
  font-weight: 500;
}

.hud-tl { top: 1.25rem; left: 1.25rem; }
.hud-tr { top: 1.25rem; right: 1.25rem; text-align: right; }
.hud-bl { bottom: 1.25rem; left: 1.25rem; }

.pulse-label {
  animation: label-pulse 1.2s ease-in-out infinite;
}

.heartbeat-val {
  font-size: 1.125rem;
  color: var(--accent);
  font-weight: 500;
}

.heartbeat-val .unit {
  font-size: 0.625rem;
  color: var(--muted);
  margin-left: 0.15rem;
}

@keyframes label-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ── Layout ── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.mark {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 61, 46, 0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  box-shadow: 0 0 24px var(--accent-glow);
}

.mark-core {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  animation: core-blink 1.2s ease-in-out infinite;
}

@keyframes core-blink {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 16px var(--accent);
  }
  14% {
    transform: scale(1.35);
    box-shadow: 0 0 32px var(--accent), 0 0 48px var(--accent-glow);
  }
  28% {
    transform: scale(1);
    box-shadow: 0 0 12px var(--accent);
  }
  42% {
    transform: scale(1.2);
    box-shadow: 0 0 24px var(--accent);
  }
}

.name {
  display: block;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
}

.legal {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a5d75;
}

/* ── Stage: core + copy ── */
.stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

/* ── Robot heart visual ── */
.core {
  position: relative;
  width: min(340px, 85vw);
  aspect-ratio: 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.ring-1 {
  inset: 8%;
  border-color: rgba(255, 61, 46, 0.25);
  animation: ring-pulse 1.2s ease-in-out infinite;
}

.ring-2 {
  inset: 18%;
  border-color: rgba(0, 229, 199, 0.15);
  animation: ring-pulse 1.2s ease-in-out infinite 0.15s;
}

.ring-3 {
  inset: 28%;
  border-color: rgba(255, 61, 46, 0.12);
  animation: ring-spin 24s linear infinite;
  border-style: dashed;
}

.ring-4 {
  inset: 38%;
  border-color: rgba(0, 229, 199, 0.2);
  animation: ring-pulse 1.2s ease-in-out infinite 0.3s;
}

@keyframes ring-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  14% {
    transform: scale(1.04);
    opacity: 1;
    border-color: rgba(255, 61, 46, 0.55);
    box-shadow: 0 0 40px var(--accent-glow);
  }
  28% {
    transform: scale(1);
    opacity: 0.5;
  }
}

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

.bracket {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.7;
}

.bracket-tl { top: 12%; left: 12%; border-width: 2px 0 0 2px; }
.bracket-tr { top: 12%; right: 12%; border-width: 2px 2px 0 0; }
.bracket-bl { bottom: 22%; left: 12%; border-width: 0 0 2px 2px; }
.bracket-br { bottom: 22%; right: 12%; border-width: 0 2px 2px 0; }

.heart {
  position: relative;
  z-index: 2;
  width: 42%;
  filter: drop-shadow(0 0 28px var(--accent-glow));
  animation: heart-thump 1.2s ease-in-out infinite;
}

.heart-path {
  fill: rgba(255, 61, 46, 0.12);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.heart-node {
  fill: var(--accent);
  animation: node-flash 1.2s ease-in-out infinite;
}

.heart-line {
  stroke: rgba(0, 229, 199, 0.5);
  stroke-width: 1;
}

@keyframes heart-thump {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.08); }
  28% { transform: scale(1); }
  42% { transform: scale(1.04); }
}

@keyframes node-flash {
  14%, 42% { fill: #fff; }
}

.ekg {
  position: absolute;
  bottom: 14%;
  left: 5%;
  right: 5%;
  height: 40px;
  opacity: 0.85;
  overflow: hidden;
}

.ekg-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: ekg-draw 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

@keyframes ekg-draw {
  0% { stroke-dashoffset: 220; opacity: 0.3; }
  40% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -80; opacity: 0.3; }
}

/* ── Copy ── */
.copy {
  text-align: left;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1.25rem;
  padding: 0.45rem 0.9rem 0.45rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
}

.status-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: core-blink 1.2s ease-in-out infinite;
}

.headline {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(2.25rem, 6.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.headline span {
  display: block;
  background: linear-gradient(105deg, var(--accent) 0%, #ff8a7a 45%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.lead {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 38ch;
}

.lead strong {
  color: var(--text);
  font-weight: 600;
}

.power-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}

.power-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-val {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.02em;
  line-height: 1;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a5d75;
}

.launch {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.launch-tag {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 229, 199, 0.25);
  letter-spacing: 0.1em;
}

/* ── Footer ── */
.foot {
  margin-top: auto;
  padding-top: 2.5rem;
  text-align: center;
}

.foot a {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.foot a:hover {
  color: var(--cyan);
}

.foot-legal {
  margin: 0.6rem 0 0;
  font-size: 0.625rem;
  color: #3d4d63;
  letter-spacing: 0.04em;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .scan,
  .ring,
  .heart,
  .ekg-line,
  .mark-core,
  .status-led,
  .pulse-label {
    animation: none;
  }

  .ring-3 {
    animation: none;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .hud-tr,
  .hud-bl {
    display: none;
  }

  .stage {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .copy {
    text-align: center;
  }

  .lead {
    margin-inline: auto;
  }

  .power-stats {
    justify-content: center;
  }

  .launch {
    justify-content: center;
  }

  .core {
    order: -1;
    width: min(280px, 75vw);
  }
}
