:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0d1324;
  background: #080b14;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(75, 123, 255, 0.35), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(42, 212, 163, 0.18), transparent 30rem),
    linear-gradient(180deg, #070a12 0%, #0c1220 44%, #f6f8fb 44%, #f6f8fb 100%);
}

button,
input,
.button-link {
  font: inherit;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #3f6df6, #1b55f5);
  color: white;
  padding: 0.7rem 1rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(40, 94, 255, 0.3);
  transition: transform 160ms ease, box-shadow 160ms ease;
  text-decoration: none;
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(40, 94, 255, 0.36);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #d7deea;
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  background: #f9fbff;
}

pre {
  overflow: auto;
  white-space: pre-wrap;
  margin: 0;
  color: #dbe7ff;
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
}

.shell {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  color: white;
}

.brand,
.nav-links a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #f7fbff, #9db7ff);
  color: #0b1020;
}

.nav-links {
  display: flex;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.nav-links a.active {
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.25rem;
  align-items: center;
  padding: 3rem 0 2.5rem;
  color: white;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.hero-panel pre {
  min-height: 260px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.panel-bar {
  display: flex;
  gap: 0.45rem;
  margin: 0.35rem 0 0.85rem;
}

.panel-bar span {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fb2ff;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 0 1rem;
}

.metrics div {
  border: 1px solid #e0e7f2;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  padding: 1.1rem;
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.08);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 1.1rem;
}

.metrics span {
  margin-top: 0.25rem;
  color: #687386;
}

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

.route-panel {
  display: none;
}

.route-panel.active {
  display: grid;
}

.card {
  min-height: 300px;
  border: 1px solid #e1e7ef;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  padding: 1.35rem;
  box-shadow: 0 22px 58px rgba(23, 32, 51, 0.09);
}

.card-wide {
  grid-column: span 2;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.summary-item,
.news-item {
  border-top: 1px solid #edf1f6;
  padding: 0.9rem 0;
}

.summary-item:first-child,
.news-item:first-child {
  border-top: 0;
}

.muted {
  color: #6b7788;
}

.positive {
  color: #087f5b;
}

.negative {
  color: #c92a2a;
}

@media (max-width: 860px) {
  .hero,
  .grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .card-wide {
    grid-column: auto;
  }

  .nav-links {
    display: none;
  }
}
