:root {
  color-scheme: dark;
  --ink: #f4f0e7;
  --muted: #a9ada8;
  --paper: #111412;
  --panel: #191d1a;
  --panel-2: #20251f;
  --line: rgba(244, 240, 231, 0.12);
  --accent: #f06f27;
  --accent-2: #d8ff73;
  --blue: #7fb7ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", sans-serif;
  background:
    linear-gradient(120deg, rgba(240, 111, 39, 0.18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(216, 255, 115, 0.12), transparent 24%),
    linear-gradient(180deg, #0b0d0b 0%, #151915 52%, #0e100f 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(244, 240, 231, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 231, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 82%);
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  border-bottom: 1px solid var(--line);
}

.kicker,
.section-label,
.panel-label {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 0.9;
}

h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  font-weight: 500;
  line-height: 0.96;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(216, 255, 115, 0.28);
  border-radius: 999px;
  background: rgba(216, 255, 115, 0.08);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(216, 255, 115, 0.55);
  animation: pulse 1.8s infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  padding: 34px 0 18px;
}

.operator-panel,
.model-stack,
.system-card,
.workbench {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.operator-panel {
  min-height: 480px;
  padding: clamp(26px, 5vw, 54px);
}

.operator-panel p {
  max-width: 640px;
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 850;
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #180b05;
}

.button.ghost {
  background: rgba(244, 240, 231, 0.05);
}

.model-stack {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.stack-row {
  display: grid;
  align-content: end;
  min-height: 140px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.stack-row.strong {
  background: linear-gradient(150deg, rgba(240, 111, 39, 0.24), rgba(127, 183, 255, 0.08)), var(--panel-2);
}

.stack-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stack-row strong {
  margin: 8px 0 4px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.stack-row small {
  color: var(--accent-2);
  font-size: 0.82rem;
}

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

.system-card {
  min-height: 270px;
  padding: 20px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.health {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

dl {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
}

.roadmap {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
}

.roadmap span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.roadmap p {
  margin: 0;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(216, 255, 115, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(216, 255, 115, 0);
  }
}

@media (max-width: 860px) {
  .topbar,
  .actions {
    align-items: flex-start;
  }

  .topbar,
  .hero-grid,
  .systems-grid,
  .workbench {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    padding-bottom: 18px;
  }

  .operator-panel {
    min-height: auto;
  }

  .systems-grid {
    padding-top: 0;
  }
}
