:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d6473;
  --paper: #f7f4ed;
  --panel: #fffdf8;
  --line: #d8d3c8;
  --violet: #5a45d6;
  --violet-dark: #3f2cac;
  --mint: #a8f0cf;
  --code: #17192a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(90, 69, 214, 0.13), transparent 28rem),
    linear-gradient(var(--paper), #f2eee5);
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 53px;
  height: auto;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 650;
}

nav a,
footer a {
  text-underline-offset: 4px;
  text-decoration-color: transparent;
}

nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  text-decoration-color: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(44px, 8vw, 100px);
  min-height: 610px;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--violet-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.4vw, 4.5rem);
  line-height: 0.97;
  letter-spacing: -0.065em;
}

.lede {
  max-width: 640px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.14);
}

.button.primary {
  border-color: var(--violet);
  color: white;
  background: var(--violet);
}

.button.secondary {
  background: transparent;
}

.code-card {
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.17);
  border-radius: 12px;
  color: #e9ecf5;
  background: var(--code);
  box-shadow: 22px 26px 0 rgba(90, 69, 214, 0.11), 0 26px 70px rgba(23, 32, 51, 0.2);
  transform: rotate(1.5deg);
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid #30334b;
  background: #202238;
}

.code-titlebar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #62677f;
}

.code-titlebar span:first-child {
  background: #f27878;
}

.code-titlebar span:nth-child(2) {
  background: #e8bd62;
}

.code-titlebar span:nth-child(3) {
  background: #72ce97;
}

.code-titlebar strong {
  margin-left: auto;
  color: #9fa5bf;
  font: 500 0.72rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  min-height: 0;
  margin: 0;
  padding: 24px;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font: 500 0.72rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.muted {
  color: #8c92aa;
}

.keyword {
  color: #d4a6ff;
}

.symbol {
  color: #9dd7ff;
}

.result {
  color: var(--mint);
}

.features {
  padding: 100px 0 110px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 46px;
}

.section-heading h2,
.runtime-note h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.7);
}

.lab-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 30px;
  color: inherit;
  text-decoration: none;
}

.lab-card + .lab-card {
  border-left: 1px solid var(--line);
}

.lab-card[href] {
  transition: color 140ms ease, background 140ms ease;
}

.lab-card[href]:hover,
.lab-card[href]:focus-visible {
  color: var(--violet-dark);
  background: rgba(90, 69, 214, 0.07);
  outline: none;
}

.lab-card.planned {
  background: rgba(23, 32, 51, 0.025);
}

.lab-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 54px;
}

.number {
  color: var(--violet);
  font: 750 0.78rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.lab-status {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-status.available {
  border-color: rgba(63, 44, 172, 0.28);
  color: var(--violet-dark);
  background: rgba(90, 69, 214, 0.08);
}

.feature-grid h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lab-action {
  margin-top: auto;
  padding-top: 32px;
  color: var(--violet-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.planned .lab-action {
  color: var(--muted);
}

.runtime-note {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
  margin-bottom: 96px;
  padding: clamp(34px, 6vw, 64px);
  border-radius: 12px;
  color: white;
  background: var(--ink);
}

.runtime-note .eyebrow {
  color: var(--mint);
}

.runtime-note > p {
  align-self: end;
  margin-bottom: 0;
  color: #ced2dd;
  font-size: 1.02rem;
  line-height: 1.75;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .code-card {
    max-width: 580px;
    transform: none;
  }

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

  .lab-card {
    min-height: 0;
  }

  .lab-card + .lab-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .lab-meta {
    margin-bottom: 28px;
  }

  .runtime-note {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    align-items: flex-start;
    padding: 22px 0;
  }

  nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4rem);
  }

  .actions,
  .button {
    width: 100%;
  }

  pre {
    min-height: 0;
    padding: 22px 18px;
    font-size: 0.74rem;
  }

  .features {
    padding: 76px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 12px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
