:root {
  --bg: #06131a;
  --bg-soft: #0d2027;
  --panel: rgba(8, 26, 34, 0.72);
  --panel-strong: rgba(14, 41, 52, 0.88);
  --line: rgba(125, 219, 214, 0.18);
  --text: #ecf6f2;
  --muted: #93b5b2;
  --teal: #7ddbd6;
  --mint: #b8ffdf;
  --amber: #f3b562;
  --rose: #ff7a6b;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(125, 219, 214, 0.14), transparent 35%),
    linear-gradient(180deg, #041017 0%, #071920 45%, #0b232d 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 95%);
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  pointer-events: none;
}

.bg-orb-left {
  top: -8rem;
  left: -8rem;
  background: #2bd9c8;
  animation: drift 16s ease-in-out infinite;
}

.bg-orb-right {
  right: -10rem;
  bottom: -10rem;
  background: #f3b562;
  animation: drift 20s ease-in-out infinite reverse;
}

.shell {
  width: min(1120px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.hero,
.panel {
  animation: rise 640ms ease both;
}

.hero {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.eyebrow,
.panel-label {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  font-size: 0.8rem;
}

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.95;
  margin-top: 0.5rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin-top: 0.75rem;
}

.hero-copy,
.hero-aside,
.muted,
.rule-list,
.steps {
  color: var(--muted);
}

.hero-copy {
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.hero-aside {
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-top: 0.9rem;
}

.status-grid,
.detail-grid {
  display: grid;
  gap: 1rem;
}

.status-grid {
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
}

.detail-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 1rem;
}

.saimi-panel {
  margin-top: 1rem;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.panel-highlight {
  background:
    linear-gradient(145deg, rgba(20, 52, 63, 0.95), rgba(9, 24, 31, 0.88)),
    var(--panel-strong);
}

.metric-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
}

.metric-list div {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(125, 219, 214, 0.12);
}

dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

dd {
  margin: 0.35rem 0 0;
  font-size: 1.02rem;
  line-height: 1.5;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.pill-neutral {
  background: rgba(236, 246, 242, 0.08);
  color: var(--text);
}

.pill-good {
  background: rgba(184, 255, 223, 0.14);
  color: var(--mint);
}

.pill-warn {
  background: rgba(243, 181, 98, 0.14);
  color: var(--amber);
}

.pill-bad {
  background: rgba(255, 122, 107, 0.14);
  color: var(--rose);
}

.steps,
.rule-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.source-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--text);
  text-decoration-color: rgba(125, 219, 214, 0.4);
}

.source-link:hover {
  text-decoration-color: var(--teal);
}

code {
  font-family: "Space Grotesk", sans-serif;
  color: var(--mint);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.5rem, 2rem, 0) scale(1.08);
  }
}

@media (max-width: 980px) {
  .status-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    padding-top: 2.5rem;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100vw - 1rem, 100%);
  }

  .panel {
    border-radius: 1.2rem;
    padding: 1rem;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }
}
