:root {
  color-scheme: dark;
  --bg: #060914;
  --surface: #0c1224;
  --surface-raised: #111a31;
  --border: #243151;
  --text: #f2f7ff;
  --muted: #9daccc;
  --royal-blue: #4169e1;
  --cyan: #27d9f5;
  --cyan-soft: #8cecfb;
  --success: #3ee6a3;
  --warning: #ffcb66;
  --danger: #ff758d;
  --radius: 18px;
  --shadow: 0 22px 60px rgb(0 0 0 / 30%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgb(65 105 225 / 18%), transparent 33rem),
    radial-gradient(circle at 90% 30%, rgb(39 217 245 / 9%), transparent 28rem),
    var(--bg);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  color: #06101a;
  background: var(--cyan);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.safety-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgb(255 117 141 / 40%);
  color: #fff7f8;
  background: rgb(99 19 43 / 96%);
  box-shadow: 0 5px 25px rgb(0 0 0 / 25%);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-align: center;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0 3rem;
}

.hero {
  max-width: 780px;
  margin-bottom: 2.4rem;
}

.eyebrow,
.section-label {
  margin: 0 0 0.65rem;
  color: var(--cyan-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgb(39 217 245 / 12%), 0 0 20px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 10vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

h1 span {
  color: var(--cyan);
  text-shadow: 0 0 35px rgb(39 217 245 / 28%);
}

h2 {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  line-height: 1.25;
}

.lede {
  max-width: 620px;
  margin: 1.2rem 0 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.scope span {
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #dce7ff;
  background: rgb(17 26 49 / 78%);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.progress-card,
.milestones-card,
.fact-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgb(17 26 49 / 96%), rgb(9 14 29 / 96%));
  box-shadow: var(--shadow);
}

.progress-card {
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius);
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
}

.card-heading.compact {
  align-items: center;
}

.percent {
  color: var(--cyan);
  font-size: clamp(2.3rem, 7vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.progress-track {
  position: relative;
  height: 14px;
  margin-top: 1.6rem;
  overflow: hidden;
  border: 1px solid #26365d;
  border-radius: 999px;
  background: #050914;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--royal-blue), var(--cyan));
  box-shadow: 0 0 22px rgb(39 217 245 / 55%);
  transition: width 500ms ease;
}

.current-stage {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.current-stage strong {
  color: var(--warning);
  text-align: right;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.milestones-card {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.dot.done { background: var(--success); }
.dot.review { background: var(--warning); }
.dot.pending { background: #64708a; }

.milestone-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.milestone {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgb(5 9 20 / 55%);
  color: var(--muted);
  font-size: 0.86rem;
}

.milestone .marker {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #35415c;
  border-radius: 8px;
  color: #75829e;
  font-size: 0.7rem;
  font-weight: 800;
}

.milestone small {
  color: #78849d;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.milestone.is-done {
  color: #dcfff1;
}

.milestone.is-done .marker {
  border-color: rgb(62 230 163 / 30%);
  color: var(--success);
  background: rgb(62 230 163 / 8%);
}

.milestone.is-done small { color: var(--success); }

.milestone.is-review {
  border-color: rgb(255 203 102 / 38%);
  color: #fff7df;
  background: rgb(255 203 102 / 8%);
  box-shadow: inset 3px 0 var(--warning);
}

.milestone.is-review .marker {
  border-color: rgb(255 203 102 / 40%);
  color: var(--warning);
}

.milestone.is-review small { color: var(--warning); }

.facts {
  display: grid;
  align-content: start;
  gap: 1.2rem;
  min-width: 0;
}

.fact-card {
  padding: 1.35rem;
  border-radius: var(--radius);
}

.fact-card > strong {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--cyan);
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.fact-card > span {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.fact-card p:last-child {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.fact-card.warning > strong { color: var(--warning); }
.fact-card.muted > strong { color: #dce5f7; font-size: 1.1rem; }

.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.connection {
  margin: 0;
}

.connection::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.connection.offline {
  color: var(--danger);
}

.connection.offline::before { background: var(--danger); }

.metadata {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.2rem;
  margin: 0;
  text-align: right;
}

.metadata div { min-width: 105px; }
.metadata dt { color: #77839d; }
.metadata dd { margin: 0.15rem 0 0; color: #d9e4fa; }
.metadata code { color: var(--cyan-soft); }

@keyframes pulse {
  50% { opacity: 0.55; transform: scale(0.82); }
}

@media (max-width: 800px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .milestone-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .safety-banner {
    flex-wrap: wrap;
    gap: 0.2rem 0.5rem;
    font-size: 0.65rem;
  }

  .shell { width: min(100% - 1.15rem, 1120px); padding-top: 2.7rem; }
  .card-heading, .current-stage, .page-footer { align-items: flex-start; flex-direction: column; }
  .card-heading.compact { align-items: flex-start; }
  .legend { justify-content: flex-start; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .current-stage strong { text-align: left; }
  .metadata { justify-content: flex-start; text-align: left; }
  .milestone { grid-template-columns: 32px minmax(0, 1fr); }
  .milestone small { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
