:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3f8;
  --text: #0b1b2b;
  --muted: #4e647b;
  --accent: #2f6fb2;
  --accent-2: #0f3a5b;
  --accent-3: #8ec5ff;
  --border: rgba(11, 27, 43, 0.14);
  --shadow: 0 20px 50px rgba(15, 32, 56, 0.14);
  --font-display: "Fraunces", serif;
  --font-body: "Source Sans 3", sans-serif;
}

body {
  background: radial-gradient(circle at top right, rgba(142, 197, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #f4f7fb 0%, #ffffff 45%, #eaf2fb 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  z-index: 0;
  opacity: 0.4;
}

body::before {
  width: 220px;
  height: 220px;
  background: rgba(15, 58, 91, 0.18);
  top: 120px;
  right: 10%;
}

body::after {
  width: 180px;
  height: 180px;
  background: rgba(47, 111, 178, 0.2);
  bottom: 140px;
  left: 8%;
}

.brand-mark {
  background: linear-gradient(135deg, #2f6fb2, #0f3a5b);
}

.hero-section {
  padding-top: 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-art {
  display: grid;
  gap: 1rem;
  background: linear-gradient(160deg, rgba(47, 111, 178, 0.12), rgba(15, 58, 91, 0.14));
  border: 1px solid rgba(15, 58, 91, 0.16);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.art-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(11, 27, 43, 0.12);
  box-shadow: 0 12px 24px rgba(15, 32, 56, 0.08);
}

.art-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.meter {
  height: 42px;
  border-radius: 999px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  padding: 0.25rem;
  margin-bottom: 0.6rem;
}

.meter span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 82%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
}

.missing,
.route {
  font-size: 0.9rem;
  color: var(--muted);
}

.timeline-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(11, 27, 43, 0.12);
  box-shadow: var(--shadow);
}

.timeline-row {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(11, 27, 43, 0.08);
  color: var(--muted);
}

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

.founder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
  align-items: center;
}

.diagram-node {
  background: var(--surface-alt);
  border: 1px dashed rgba(11, 27, 43, 0.2);
  border-radius: 16px;
  padding: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
}

.diagram-arrow {
  text-align: center;
  color: var(--muted);
  font-size: 1.2rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-item span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.code-card {
  background: #0f1f2f;
  color: #dfe8f2;
  border-radius: 18px;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  overflow: auto;
}

.status-card {
  margin-top: 1.5rem;
  background: var(--surface);
  border-radius: 18px;
  padding: 1.25rem;
  border: 1px solid rgba(11, 27, 43, 0.12);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.comparison-head {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.comparison-cell {
  background: var(--surface);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(11, 27, 43, 0.12);
  font-size: 0.9rem;
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.roi-grid label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.roi-grid input {
  border: 1px solid rgba(11, 27, 43, 0.18);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  font-family: var(--font-body);
}

.callout-inline {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(47, 111, 178, 0.1);
  border: 1px solid rgba(47, 111, 178, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.sources {
  margin-top: 1.5rem;
  background: var(--surface);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(11, 27, 43, 0.12);
}

.sources summary {
  cursor: pointer;
  font-weight: 600;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .diagram {
    grid-template-columns: 1fr;
  }
}
