:root {
  --ink: #0b0b0c;
  --soft: #6e6e73;
  --font: "SF Pro Display", -apple-system, "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; }
html { background: #fff; }
body {
  min-height: 100vh;
  color: var(--ink);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.92em; }

/* Faint colour behind the glass: without it, glass on white is invisible. */
.field { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(90px); opacity: 0.32;
  animation: drift 26s ease-in-out infinite alternate;
}
.orb.a { background: #ffb38a; top: 18%; left: -12%; }
.orb.b { background: #9cc8ff; top: 38%; right: -16%; animation-duration: 32s; animation-delay: -8s; }
.orb.c { background: #d9c4ff; bottom: -30%; left: 30%; animation-duration: 38s; opacity: 0.22; }
@keyframes drift {
  to { transform: translate(6vmax, -4vmax) scale(1.08); }
}

/* Liquid glass */
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 40px -12px rgba(0, 0, 0, 0.12);
}
.glass::before {
  /* specular sheen along the top edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 38%);
  mix-blend-mode: soft-light;
}

/* Header */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(20px, 5vw, 56px);
}
.word { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.03em; }
.pill { padding: 8px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; }

/* Hero */
main { width: min(1080px, 100% - 40px); margin: 0 auto; }
.hero { padding: clamp(150px, 22vh, 220px) 0 72px; text-align: center; }
h1 {
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 600;
}
.sub {
  max-width: 540px; margin: 28px auto 40px;
  color: var(--soft); font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}
.install {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 14px 16px 14px 26px; border-radius: 999px;
  font: inherit; color: var(--ink); cursor: pointer;
  transition: transform 0.25s ease;
}
.install:hover { transform: scale(1.02); }
.install code { font-size: 1rem; }
.hint {
  font-size: 0.75rem; color: var(--soft);
  padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.05);
}

/* Demo in a tilting glass frame */
.stage { perspective: 1400px; padding-bottom: 120px; }
.frame {
  padding: 10px; border-radius: 22px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.frame::after {
  /* moving highlight that follows the tilt */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px circle at var(--gx, 50%) 0%, rgba(255,255,255,0.35), transparent 60%);
}
.term {
  font-family: var(--mono); font-size: clamp(0.78rem, 1.35vw, 0.95rem); line-height: 1.75;
  padding: clamp(22px, 4vw, 40px); border-radius: 14px; text-align: left; color: var(--ink);
  min-height: 300px;
}
.cmd { font-weight: 500; }
.ps { color: var(--soft); }
.caret {
  display: inline-block; width: 0.55em; height: 1.1em; margin-left: 2px; vertical-align: -0.18em;
  background: var(--ink); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.out { margin-top: 18px; opacity: 0; transform: translateY(6px); transition: opacity 0.6s ease, transform 0.6s ease; }
.out.show { opacity: 1; transform: none; }
.out table { border-collapse: collapse; margin: 10px 0 0 1.4em; }
.out td { padding: 1px 22px 1px 0; white-space: nowrap; }
.bad { color: #d8432f; }
.info { color: #3a7bd5; }
.dim { color: var(--soft); }
.ink { color: var(--ink); }
.row b { font-weight: 600; }
.why {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-family: var(--font); font-size: clamp(0.92rem, 1.5vw, 1.02rem); line-height: 1.6; color: #3a3a3c;
  max-width: 62ch;
}
.why code { font-size: 0.9em; background: rgba(0, 0, 0, 0.05); padding: 1px 5px; border-radius: 5px; }
.tag {
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--soft); margin-right: 10px;
}
@media (max-width: 720px) { .out table { margin-left: 0; } .out td:nth-child(3) { display: none; } }

/* Three lines, nothing else */
.lines { text-align: center; padding-bottom: 140px; }
.lines p {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem); letter-spacing: -0.03em;
  color: var(--soft); line-height: 1.6;
}
.lines span { color: var(--ink); font-weight: 600; }

.foot {
  display: flex; justify-content: center; gap: 28px;
  padding: 0 0 48px; font-size: 0.85rem; color: var(--soft);
}
.foot a:hover { color: var(--ink); }

/* Sections below the fold */
.lines { padding-bottom: 180px; }
.block { padding: 0 0 180px; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; }
.center { text-align: center; }
.kicker { font-size: 0.85rem; color: var(--soft); margin-bottom: 18px; }
.sub.left { margin: 22px 0 28px; text-align: left; }

.agents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.agents > * { min-width: 0; }
.line { display: inline-block; font-size: 0.9rem; color: var(--soft); border-bottom: 1px solid rgba(0,0,0,0.12); padding-bottom: 4px; }
.reply { border-radius: 22px; padding: 30px 32px; font-family: var(--mono); font-size: 0.92rem; }
.reply .call { font-weight: 500; margin-bottom: 16px; }
.reply pre { font: inherit; line-height: 1.8; white-space: pre; overflow-x: auto; }
.reply .k { color: var(--soft); }
.warn { color: #c98a0e; }

.flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; position: relative; margin-top: 12px; }
.flow::before { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.12) 15%, rgba(0,0,0,0.12) 85%, transparent); }
.flow li { position: relative; padding-top: 44px; }
.flow li::before { content: ""; position: absolute; top: 9px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,0.25); }
.flow b { display: block; font-size: 1.35rem; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 8px; }
.flow span { color: var(--soft); }

.codes { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.chip { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 14px; border-radius: 999px; color: var(--soft); }
.chip b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,0.05); color: var(--ink); font-family: var(--mono); font-weight: 600; }
.chip b.warn { color: #c98a0e; } .chip b.bad { color: #d8432f; }

.end .sub { margin-bottom: 40px; }
.actions { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.dark { padding: 15px 26px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; transition: transform 0.25s ease; }
.dark:hover { transform: scale(1.02); }

.box { border-radius: 22px; padding: 8px; margin-top: 44px; max-width: 820px; margin-inline: auto; }
.tabs { display: flex; gap: 4px; padding: 6px; flex-wrap: wrap; }
.tab {
  font: inherit; font-size: 0.9rem; border: 0; background: transparent; color: var(--soft);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.tab:hover { color: var(--ink); }
.tab.on { background: rgba(255,255,255,0.85); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.panel { display: none; padding: 6px 14px 14px; }
.panel.on { display: block; }
.snippet {
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.7; color: var(--ink);
  background: rgba(255,255,255,0.55); border-radius: 14px; padding: 20px 22px; margin: 6px 0 14px;
  overflow-x: auto; white-space: pre;
}
.snippet.prose { white-space: pre-wrap; font-size: 0.84rem; max-height: 300px; overflow-y: auto; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; padding: 0 6px; }
.btns { display: flex; gap: 10px; align-items: center; }
.copy {
  font: inherit; font-size: 0.88rem; cursor: pointer; border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.8); padding: 8px 18px; border-radius: 999px; color: var(--ink);
}
.dark.small { padding: 8px 18px; font-size: 0.88rem; }

@media (max-width: 860px) {
  .agents, .flow { grid-template-columns: 1fr; }
  .flow::before { display: none; }
  .block, .lines { padding-bottom: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}
