@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&family=Barlow:wght@300;400;500&display=swap');

:root {
  --black: #080a0c;
  --dark: #0f1318;
  --panel: #141820;
  --panel-2: #1c2230;
  --red: #dc2626;
  --red-bright: #ef4444;
  --red-dim: rgba(220,38,38,0.15);
  --yellow: #fbbf24;
  --yellow-dim: rgba(251,191,36,0.12);
  --steel: #94a3b8;
  --steel-bright: #cbd5e1;
  --border: rgba(148,163,184,0.12);
  --border-red: rgba(220,38,38,0.3);
  --text: #c8d4e0;
  --text-dim: #556070;
}

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

body {
  font-family: 'Barlow', sans-serif;
  background: var(--black);
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(220,38,38,0.08) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 18px,
      rgba(220,38,38,0.025) 18px,
      rgba(220,38,38,0.025) 19px
    );
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
}

.wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ── WARNING TOPBAR ── */
.warning-bar {
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0px, var(--red) 28px,
    var(--yellow) 28px, var(--yellow) 56px
  );
  height: 6px;
  width: 100%;
}

/* ── HEADER ── */
.header-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-red);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-strip .badge-live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--red-bright);
}

.dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-bright);
  animation: pulse 1.4s ease infinite;
}

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

/* ── HERO ── */
.hero {
  padding: 36px 0 16px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 32px;
  align-items: center;
}

@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; }
  .hero-svg-wrap { margin: 0 auto; }
}

.hero-text {}

.hero-category {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--steel-bright);
  line-height: 1;
}

.hero h1 span {
  color: var(--red-bright);
}

.hero-desc {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin-top: 14px;
  max-width: 520px;
}

.hero-svg-wrap {
  width: 200px;
  height: 260px;
  filter: drop-shadow(0 0 20px rgba(220,38,38,0.3));
  animation: eject-anim 3s ease-in-out infinite;
}

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

/* ── STAT ROW ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-red);
  border: 1px solid var(--border-red);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

@media (max-width: 600px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.stat-box {
  background: var(--panel);
  padding: 18px 14px;
  text-align: center;
  transition: background 0.2s;
}
.stat-box:hover { background: var(--panel-2); }

.s-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red-bright);
  display: block;
  line-height: 1;
}
.s-unit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.s-desc {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px;
  position: relative;
  transition: border-color 0.2s;
}

.panel::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.panel:hover { border-color: var(--border-red); }
.panel:hover::after { opacity: 1; }

.panel-head {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel-bright);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-head .icon { color: var(--red); }

.panel p { font-size: 0.91rem; line-height: 1.75; color: var(--text); }
.panel p + p { margin-top: 10px; }

.panel ul {
  list-style: none;
  padding: 0;
  font-size: 0.91rem;
  line-height: 1.95;
  color: var(--text);
}

.panel ul li::before {
  content: '// ';
  color: var(--red);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75em;
}

/* ── SEQUENCE ── */
.eject-seq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.es-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(220,38,38,0.1);
}

.es-row:last-child { border-bottom: none; }

.es-ms {
  background: var(--red-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--red-bright);
  text-align: center;
  padding: 10px 4px;
  border-right: 1px solid var(--border-red);
  letter-spacing: 0.04em;
}

.es-content {
  padding: 10px 14px;
}

.es-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--steel-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.es-detail {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: 2px;
}

/* ── WIDE ── */
.panel.wide { grid-column: 1 / -1; }

/* ── YELLOW WARNING BOX ── */
.warning-box {
  background: var(--yellow-dim);
  border: 1px solid rgba(251,191,36,0.3);
  border-left: 3px solid var(--yellow);
  border-radius: 4px;
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 0.88rem;
  color: #d4a017;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ── BOTTOM BAR ── */
.warning-bar-bot {
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0px, var(--yellow) 28px,
    var(--red) 28px, var(--red) 56px
  );
  height: 6px;
  width: 100%;
  margin-top: 60px;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }
