:root {
  --bg: #0d1118;
  --panel: #131926;
  --panel-soft: #171f2f;
  --ink: #eef4ff;
  --muted: #9ca9be;
  --line: #2b364c;
  --accent: #79e2cf;
  --accent-2: #8ea8ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(142, 168, 255, 0.2), transparent 36%),
    radial-gradient(circle at 88% 82%, rgba(121, 226, 207, 0.15), transparent 38%),
    linear-gradient(170deg, #0a0f16 0%, #0d1118 48%, #0d1220 100%);
}

.glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.glow-a {
  top: -120px;
  left: -60px;
  background: rgba(142, 168, 255, 0.2);
}

.glow-b {
  bottom: -120px;
  right: -80px;
  background: rgba(121, 226, 207, 0.18);
}

.top {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.2rem 1rem 0.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}

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

h1,
h2,
h3 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

h1 {
  margin-top: 0.35rem;
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  line-height: 1.02;
  max-width: 14ch;
}

.subhead {
  margin-top: 0.6rem;
  color: var(--muted);
  max-width: 62ch;
}

.top-links {
  display: flex;
  gap: 0.55rem;
}

.top-links a {
  text-decoration: none;
  color: #091018;
  background: linear-gradient(135deg, var(--accent) 0%, #65d9b8 100%);
  border-radius: 999px;
  padding: 0.45rem 0.76rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
  display: grid;
  gap: 0.9rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(175deg, rgba(24, 32, 47, 0.94), rgba(17, 23, 35, 0.95));
  backdrop-filter: blur(6px);
  padding: 0.95rem;
  box-shadow: 0 18px 34px rgba(4, 7, 13, 0.35);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 0.8rem;
}

.context-card,
.snapshot-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22, 30, 45, 0.86), rgba(17, 25, 38, 0.88));
  padding: 0.85rem;
}

.snapshot-card h3 {
  margin-top: 0.3rem;
  font-size: 1.4rem;
}

.snapshot-card ul {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.5rem;
}

input,
select,
textarea,
button {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #121927;
  color: var(--ink);
  padding: 0.46rem 0.6rem;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #73829a;
}

button {
  border: 0;
  background: linear-gradient(140deg, var(--accent-2) 0%, #89e7d6 100%);
  color: #0d1118;
  font-weight: 800;
  cursor: pointer;
}

.hint {
  color: var(--muted);
  font-size: 0.86rem;
}

.tabs-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.tabs button {
  background: #182133;
  color: #b8c4da;
  border: 1px solid #29354c;
}

.tabs button.active {
  background: linear-gradient(135deg, #8ea8ff 0%, #79e2cf 100%);
  color: #09101b;
  border-color: transparent;
}

.tab-body {
  display: none;
}

.tab-body.active {
  display: block;
  animation: fadeIn 240ms ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(20, 28, 42, 0.85), rgba(18, 24, 37, 0.9));
  padding: 0.78rem;
  display: grid;
  gap: 0.58rem;
}

.stack {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.stack li {
  border: 1px solid #2f3a52;
  border-radius: 10px;
  padding: 0.58rem;
  background: #12192a;
}

.stack a {
  color: #9cd9ff;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Manrope", sans-serif;
  color: #d7e2f4;
  line-height: 1.55;
}

@media (min-width: 940px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

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

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