:root {
  color-scheme: dark;
  --bg: #07071a;
  --surface: rgb(20 18 48 / 0.6);
  --border: rgb(167 139 250 / 0.2);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #a78bfa;
  --glow: rgb(124 58 237 / 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(
      ellipse at 70% 20%,
      rgb(124 58 237 / 0.25),
      transparent 50%
    ),
    radial-gradient(
      ellipse at 10% 80%,
      rgb(34 211 238 / 0.08),
      transparent 50%
    ),
    var(--bg);
  background-attachment: fixed;
}

a {
  color: inherit;
}

/* Three layers of tiny stars, drifting at different speeds for depth. */
.stars,
.stars::before,
.stars::after {
  position: fixed;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, white, transparent),
    radial-gradient(1px 1px at 70% 80%, white, transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, #c4b5fd, transparent),
    radial-gradient(1px 1px at 85% 15%, white, transparent);
  background-size: 260px 260px;
  opacity: 0.5;
  animation: drift 160s linear infinite;
}

.stars::before {
  content: '';
  inset: 0;
  background-size: 380px 380px;
  opacity: 0.35;
  animation:
    drift 240s linear infinite reverse,
    twinkle 5s ease-in-out infinite alternate;
}

.stars::after {
  content: '';
  inset: 0;
  background-size: 540px 540px;
  opacity: 0.6;
  animation: twinkle 7s ease-in-out infinite alternate;
}

@keyframes drift {
  to {
    transform: translate(260px, 130px);
  }
}

@keyframes twinkle {
  to {
    opacity: 0.15;
  }
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1 / -1;
  font-weight: 500;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--accent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand img,
footer img {
  width: 32px;
  filter: drop-shadow(0 0 8px var(--glow));
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 32px 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.badge:hover {
  box-shadow: 0 0 20px var(--glow);
  color: var(--text);
}

.badge span {
  padding: 2px 10px;
  border-radius: 999px;
  background: #7c3aed;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.shimmer {
  background: linear-gradient(90deg, #a78bfa, #f472b6, #60a5fa, #a78bfa);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 300% 0;
  }
}

.hero-text p {
  max-width: 34ch;
  margin: 0 0 28px;
  font-size: 19px;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--glow);
}

.primary {
  border-color: #7c3aed;
  background: #7c3aed;
  color: white;
  box-shadow: 0 0 24px var(--glow);
}

.demo {
  margin: 0;
  text-align: center;
}

#demo {
  display: block;
  width: 100%;
  height: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

#demo:active {
  cursor: grabbing;
}

figcaption {
  font-size: 14px;
  color: var(--muted);
}

/* The demo map: the same look as the app. */
.string {
  fill: none;
  opacity: 0.75;
}

.beam {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 100;
  animation: travel 2.6s linear infinite;
}

@keyframes travel {
  from {
    stroke-dashoffset: 7;
  }
  to {
    stroke-dashoffset: -100;
  }
}

.node rect {
  fill: rgb(12 12 32 / 0.9);
  stroke-width: 1.5;
}

.node.main rect {
  fill: rgb(20 18 48 / 0.95);
  stroke-width: 2;
}

.node text {
  fill: #cbd5e1;
  font-size: 13px;
  text-anchor: middle;
  dominant-baseline: central;
}

.node.main text {
  fill: #f8fafc;
  font-size: 15px;
  font-weight: 700;
}

.cloud {
  stroke-width: 2.5;
}

.node.root text {
  fill: white;
  font-size: 19px;
  font-weight: 800;
}

/* Screenshots sit in a glowing frame, like a window into the app. */
.window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  box-shadow:
    0 30px 80px rgb(0 0 0 / 0.5),
    0 0 60px rgb(124 58 237 / 0.25);
}

.window img {
  display: block;
  width: 100%;
  height: auto;
}

.showcase {
  padding-top: 0;
}

.mcp {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 48px;
  text-align: left;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mcp h2 {
  margin-bottom: 16px;
}

.mcp-text p {
  margin: 0 0 20px;
  color: var(--muted);
}

blockquote {
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  background: var(--surface);
  font-style: italic;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  color: var(--muted);
}

.steps li {
  position: relative;
  padding-left: 38px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #7c3aed;
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.steps b {
  color: var(--text);
}

.lead {
  max-width: 56ch;
  margin: -12px auto 32px;
  font-size: 18px;
  color: var(--muted);
}

/* Each use case leads with the prompt you could try, set like a quote. */
.uses p {
  font-style: italic;
}

.proof {
  margin: 48px 0 0;
}

.proof figcaption {
  margin-top: 14px;
}

.proof q {
  color: var(--text);
  font-style: italic;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 56px 0;
  text-align: center;
}

h2 {
  margin: 0 0 32px;
  /* Evens out line lengths, so no word is left alone on a line. */
  text-wrap: balance;
  line-height: 1.15;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.features li {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(6px);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.features li:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 32px rgb(124 58 237 / 0.25);
}

.features svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--glow));
}

h3 {
  margin: 12px 0 6px;
  font-size: 18px;
}

.features p {
  margin: 0;
  color: var(--muted);
}

.keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keys li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

kbd {
  min-width: 64px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 -3px 0 rgb(167 139 250 / 0.3);
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.closing p {
  max-width: 52ch;
  margin: 0 auto 28px;
  font-size: 18px;
  color: var(--muted);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 24px 48px;
  font-size: 14px;
  color: var(--muted);
}

footer img {
  width: 22px;
}

/* Sections rise into view once, as they are scrolled to. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.shown {
  opacity: 1;
  transform: none;
}

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

  .hero-text p {
    margin-inline: auto;
  }

  .actions {
    justify-content: center;
  }

  .mcp {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
