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

:root {
  color-scheme: dark;
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --bg-deep: #040811;
  --bg-mid: #09111f;
  --bg-surface: rgba(8, 15, 28, 0.74);
  --bg-surface-strong: rgba(7, 12, 24, 0.92);
  --bg-panel: linear-gradient(180deg, rgba(15, 23, 41, 0.86), rgba(7, 11, 22, 0.9));
  --line-soft: rgba(162, 194, 255, 0.12);
  --line-strong: rgba(162, 194, 255, 0.22);
  --text-main: #f4f7ff;
  --text-soft: #d8e3ff;
  --text-muted: #8a9bc5;
  --accent-ice: #96dcff;
  --accent-blue: #4f88ff;
  --accent-red: #ff5b4d;
  --accent-gold: #ffd479;
  --shadow-xl: 0 28px 80px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.32);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--header-height);
  font-family: var(--font-body);
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 14%, rgba(81, 136, 255, 0.22), transparent 20%),
    radial-gradient(circle at 86% 12%, rgba(255, 91, 77, 0.14), transparent 18%),
    radial-gradient(circle at 70% 76%, rgba(150, 220, 255, 0.1), transparent 22%),
    linear-gradient(180deg, #08111f 0%, #040811 44%, #03060d 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 84%);
}

body::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px),
    radial-gradient(circle at 62% 72%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 34% 82%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px);
  opacity: 0.48;
}

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

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-ice);
  outline-offset: 2px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
  padding: 16px 28px;
  background: rgba(5, 10, 20, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(162, 194, 255, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-gold) 42%, var(--accent-ice));
  color: #06101d;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.03em;
}

.brand small {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.site-nav a[aria-current='page'] {
  color: #fff;
}

.artemis-shell {
  width: min(1400px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.hero-card,
.tracker-panel,
.info-card,
.updates-panel {
  border: 1px solid var(--line-soft);
  background: var(--bg-panel);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px);
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 28px;
  padding: 34px;
  margin-bottom: 26px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 22%, rgba(150, 220, 255, 0.16), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(255, 91, 77, 0.12), transparent 20%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 42%);
  pointer-events: none;
}

.hero-copy,
.hero-meta {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ice);
}

.hero-card h1,
.tracker-panel h2,
.info-card h2,
.updates-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-card h1 {
  max-width: 8ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.hero-summary,
.panel-copy,
.info-card p,
.site-footer p,
.resource-block small,
.timeline-entry span,
.update-card p {
  color: var(--text-soft);
  line-height: 1.72;
}

.hero-summary {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-link,
.secondary-link,
.ghost-link,
.panel-link,
.refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-link {
  background: linear-gradient(135deg, var(--accent-red), #ff9361 42%, #ffe18a 100%);
  color: #120f0b;
}

.secondary-link,
.panel-link,
.refresh-button {
  border: 1px solid rgba(162, 194, 255, 0.18);
  background: rgba(13, 21, 39, 0.76);
  color: var(--text-main);
}

.ghost-link {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--text-soft);
}

.primary-link:hover,
.secondary-link:hover,
.ghost-link:hover,
.panel-link:hover,
.refresh-button:hover {
  transform: translateY(-1px);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.meta-card,
.stat-card,
.timeline-entry,
.update-card,
.resource-block,
.overlay-card {
  background: rgba(10, 17, 31, 0.74);
  border: 1px solid rgba(162, 194, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

.meta-card {
  min-height: 142px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.meta-label,
.resource-label,
.stat-card span,
.overlay-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.meta-card strong,
.meta-card small,
.overlay-card strong,
.stat-card strong {
  display: block;
}

.meta-card strong {
  font-size: 24px;
  line-height: 1.1;
}

.meta-card small {
  margin-top: 8px;
  color: var(--text-soft);
}

.progress-card strong {
  margin-bottom: 12px;
}

.progress-bar {
  overflow: hidden;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(162, 194, 255, 0.1);
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-ice) 68%, #ffffff);
  box-shadow: 0 0 18px rgba(150, 220, 255, 0.34);
}

.tracker-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.tracker-panel,
.updates-panel {
  padding: 26px;
  border-radius: var(--radius-xl);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.panel-copy {
  max-width: 74ch;
  margin: 14px 0 0;
  font-size: 15px;
}

.tracker-frame-shell {
  margin-top: 20px;
  padding: 16px;
  border-radius: calc(var(--radius-xl) - 4px);
  background:
    radial-gradient(circle at top left, rgba(79, 136, 255, 0.16), transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(255, 91, 77, 0.12), transparent 18%),
    rgba(5, 9, 17, 0.94);
  border: 1px solid rgba(162, 194, 255, 0.14);
}

.tracker-stage {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: calc(var(--radius-xl) - 10px);
  background:
    radial-gradient(circle at 24% 18%, rgba(150, 220, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.98), rgba(4, 8, 16, 0.98));
  border: 1px solid rgba(162, 194, 255, 0.12);
}

.tracker-stage::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(3, 6, 12, 0.82));
  pointer-events: none;
}

.tracker-scene {
  position: relative;
  width: 100%;
  min-height: 560px;
}

.tracker-scene canvas {
  display: block;
  width: 100%;
  height: 560px;
}

.tracker-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 32% 58%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 74% 26%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 82% 68%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 100%);
  opacity: 0.42;
  pointer-events: none;
}

.tracker-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.overlay-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(9, 15, 28, 0.74);
  backdrop-filter: blur(14px);
}

.overlay-card strong {
  font-size: 18px;
  line-height: 1.2;
}

.timeline-module {
  margin-top: 18px;
  padding: 18px;
  border-radius: calc(var(--radius-lg) - 2px);
  background: rgba(8, 13, 24, 0.84);
  border: 1px solid rgba(162, 194, 255, 0.12);
}

.timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.timeline-head strong {
  color: var(--accent-ice);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.timeline-head span {
  color: var(--text-muted);
  font-size: 12px;
}

.timeline-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--rail-count, 1), minmax(0, 1fr));
  align-items: center;
  margin-bottom: 18px;
  padding: 0 8px;
}

.timeline-rail::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: 12px;
  height: 2px;
  background: linear-gradient(90deg, rgba(79, 136, 255, 0.16), rgba(150, 220, 255, 0.32), rgba(255, 255, 255, 0.1));
}

.timeline-node {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-node::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(162, 194, 255, 0.06);
  z-index: 1;
}

.timeline-node.past::before {
  background: var(--accent-blue);
  box-shadow: 0 0 12px rgba(79, 136, 255, 0.28);
}

.timeline-node.current::before {
  background: var(--accent-ice);
  transform: scale(1.24);
  box-shadow: 0 0 14px rgba(150, 220, 255, 0.48);
}

.timeline-node.upcoming::before {
  background: rgba(150, 220, 255, 0.26);
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.timeline-entry {
  padding: 14px;
  border-radius: var(--radius-md);
}

.timeline-entry time,
.update-card time {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent-ice);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.timeline-entry strong,
.update-card strong,
.info-card h2 {
  display: block;
}

.timeline-entry strong {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.35;
}

.timeline-entry.current {
  border-color: rgba(150, 220, 255, 0.22);
  background: linear-gradient(180deg, rgba(13, 24, 45, 0.92), rgba(8, 16, 30, 0.88));
}

.timeline-entry.upcoming {
  border-color: rgba(79, 136, 255, 0.18);
}

.info-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.info-card h2 {
  font-size: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat-card {
  padding: 14px;
  border-radius: var(--radius-md);
}

.stat-card strong {
  font-size: 24px;
  line-height: 1.1;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(150, 220, 255, 0.14);
  background: rgba(11, 19, 34, 0.8);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.resource-block {
  padding: 16px;
  border-radius: var(--radius-md);
}

.resource-block + .resource-block {
  margin-top: 14px;
}

.resource-block a {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.updates-panel {
  margin-top: 24px;
}

.updates-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.update-card {
  padding: 18px;
  border-radius: var(--radius-md);
}

.update-card strong {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.34;
}

.muted-card {
  background: rgba(9, 14, 24, 0.56);
}

.site-footer {
  width: min(1400px, calc(100vw - 36px));
  margin: 0 auto 40px;
  padding: 0 0 20px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--accent-ice);
}

@media (max-width: 1180px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-card h1 {
    max-width: none;
  }

  .hero-meta,
  .info-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-list,
  .updates-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .artemis-shell,
  .site-footer {
    width: min(100vw - 24px, 1400px);
  }

  .site-header {
    padding: 14px 16px;
  }

  .site-nav {
    display: none;
  }

  .hero-card,
  .tracker-panel,
  .info-card,
  .updates-panel {
    padding: 20px;
  }

  .hero-meta,
  .tracker-overlay,
  .info-stack,
  .timeline-list,
  .updates-list,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .tracker-stage,
  .tracker-scene {
    min-height: 430px;
  }

  .tracker-scene canvas {
    height: 430px;
  }
}

@media (max-width: 560px) {
  .section-head,
  .hero-actions,
  .timeline-head {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-link,
  .secondary-link,
  .ghost-link,
  .panel-link,
  .refresh-button {
    width: 100%;
  }

  .tracker-stage,
  .tracker-scene {
    min-height: 340px;
  }

  .tracker-scene canvas {
    height: 340px;
  }
}
