:root {
  --bg: #07080a;
  --panel: #0e1013;
  --ink: #eef1f4;
  --muted: #8a929c;
  --line: #1d2127;
  --dots: #1a1e24;
  --a1: #b8ff3d;
  --a2: #36e0ff;
  --max: 1120px;
  --gutter: 24px;
  --radius: 14px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgb(54 224 255 / 12%), transparent 60%),
    radial-gradient(700px 400px at -10% 20%, rgb(184 255 61 / 8%), transparent 60%),
    radial-gradient(circle at 1px 1px, var(--dots) 1px, transparent 0) 0 0 / 28px 28px,
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--a2);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.grad {
  background: linear-gradient(90deg, var(--a1), var(--a2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.logo i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: 0 0 16px var(--a2);
}

.top nav {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 13px;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--ink);
}

/* Hero */

.hero {
  padding-block: 96px 112px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(14 16 19 / 70%);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--a1);
  box-shadow: 0 0 10px var(--a1);
}

.hero h1 {
  max-width: 15ch;
  margin-top: 28px;
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 60ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
}

.lead a {
  color: var(--ink);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 40px 0 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  list-style: none;
}

.stack li::before {
  content: "→ ";
  color: var(--a2);
}

/* Section labels */

.label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.label h2 {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

/* Products */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover,
.card:focus-within {
  border-color: #2d4a52;
  box-shadow: 0 0 0 1px rgb(54 224 255 / 15%), 0 20px 60px -30px rgb(54 224 255 / 40%);
}

.bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.stage {
  color: var(--a2);
}

.media {
  aspect-ratio: 1200 / 630;
  border-bottom: 1px solid var(--line);
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter 0.3s;
}

.card:hover .media img {
  filter: none;
}

.body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.body h3 {
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tagline {
  font-size: 17px;
  font-weight: 500;
}

.desc {
  color: var(--muted);
  font-size: 15px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  list-style: none;
}

.chips li {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.chips .ai {
  border-color: rgb(184 255 61 / 35%);
  color: var(--a1);
}

.go {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 8px;
  color: var(--a2);
  font-family: var(--mono);
  font-size: 14px;
  text-decoration: none;
}

/* Stretch the link so the whole card is clickable. */
.go::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card:hover .go {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.next {
  margin-top: 20px;
  padding: 18px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.prompt {
  color: var(--a1);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--a1);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Process */

.process {
  margin-top: 120px;
}

.process-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 48px;
  align-items: end;
  margin-bottom: 28px;
}

.process-intro h3 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.process-intro p {
  color: var(--muted);
}

.bar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.running {
  animation: running 2s ease-in-out infinite;
}

@keyframes running {
  50% {
    box-shadow: 0 0 0 5px rgb(184 255 61 / 15%), 0 0 10px var(--a1);
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

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

/* Arrow badge sitting on the divider between two steps. */
.step + .step::before {
  content: "→";
  position: absolute;
  top: 22px;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--a2);
  font-family: var(--mono);
  font-size: 12px;
  transform: translateX(-50%);
}

.step-id {
  color: var(--a1);
  font-family: var(--mono);
  font-size: 12px;
}

.step h4 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.step > p:not(.step-id) {
  color: var(--muted);
  font-size: 15px;
}

.step .chips {
  margin-top: auto;
  padding-top: 6px;
}

/* Company */

.company {
  margin-top: 120px;
}

.company-intro {
  max-width: 64ch;
  margin-bottom: 20px;
  color: var(--muted);
}

.term {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dots {
  margin-right: 12px;
  color: #2a2f36;
  letter-spacing: 2px;
}

.term dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px 24px;
  margin: 0;
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 14px;
}

.term dt {
  color: var(--muted);
}

.term dt::after {
  content: ":";
}

.term dd {
  margin: 0;
}

.term .key {
  color: var(--a2);
}

.term dd a,
.foot a {
  color: var(--a2);
  text-decoration: none;
}

.term dd a:hover,
.foot a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */

.foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 96px;
  padding-block: 28px 40px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

/* Divider that lines up with the content, not the padded box. */
.foot::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: var(--gutter);
  height: 1px;
  background: var(--line);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .media img {
    transition: none;
  }

  .cursor,
  .running {
    animation: none;
  }
}

/* Small screens */

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .top nav {
    gap: 16px;
  }

  .hero {
    padding-block: 48px 64px;
  }

  .body {
    padding: 20px;
  }

  .process,
  .company {
    margin-top: 88px;
  }

  .process-intro {
    grid-template-columns: 1fr;
  }

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

  .step {
    padding: 24px 20px 20px;
  }

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

  .step + .step::before {
    content: "↓";
    top: 0;
    left: 20px;
    transform: translateY(-50%);
  }

  .bar-prefix {
    display: none;
  }

  .term dl {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 16px 20px;
  }

  .term dd {
    margin-bottom: 10px;
  }

  .foot {
    margin-top: 64px;
  }
}
