@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f8f9f8;
  --surface: #fdfefd;
  --sunken: #f0f1f0;
  --border: #e3e5e3;
  --border-strong: #c8cac8;
  --fg: #141514;
  --fg-2: #505250;
  --fg-3: #6e706e;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 10px;
  --r-sm: 6px;
  --r-lg: 16px;
  --maxw: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a:focus, button:focus, input:focus {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.w {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section {
  padding-block: clamp(5rem, 12vw, 9rem);
}

.section + .section {
  border-top: 1px solid var(--border);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--fg);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
  max-width: 22ch;
}

h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  line-height: 1.5;
  color: var(--fg);
}

p {
  color: var(--fg-2);
  max-width: 56ch;
}

.lede {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 52ch;
}

.note {
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  color: var(--fg-3);
}

.note code {
  font-family: var(--mono);
  font-size: 0.875em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--fg-2);
}

.link {
  color: var(--fg-2);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
}

.link:hover {
  color: var(--fg);
  text-decoration-color: var(--fg);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
  background: rgba(248, 249, 248, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header .w {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  text-decoration: none;
}

.logo-mark,
.footer-mark,
.side-mark,
.mock-mark {
  display: block;
  flex: none;
  background-color: var(--fg);
  -webkit-mask: url("logo.svg") no-repeat center / contain;
  mask: url("logo.svg") no-repeat center / contain;
}

.logo-mark { width: 18px; height: 18px; }
.footer-mark { width: 14px; height: 14px; }

.logo-text {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 0.9375rem;
  line-height: 1;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.header nav a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 0.875rem;
}

.header nav a:hover { color: var(--fg); }

/* Hero */
.hero {
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero-sub {
  margin-top: 1.75rem;
  font-size: 1.1875rem;
  line-height: 1.6;
  max-width: 44ch;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin-top: 2.75rem;
}

.cmd {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem 0.55rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--surface);
}

.cmd code {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--fg);
  white-space: nowrap;
}

.cmd-copy {
  flex: none;
  min-width: 5.5rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.4;
  cursor: pointer;
}

.cmd-copy:hover {
  color: var(--fg);
  border-color: var(--border-strong);
}

.cmd-copy.is-done {
  color: var(--fg);
  border-color: var(--fg);
}

/* Core pair */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.pair-col > h3 { margin-top: 0.75rem; }

.pair-col > p:not(.figure) {
  margin-top: 0.875rem;
  font-size: 1rem;
}

.figure {
  font-family: var(--mono);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
  max-width: none;
}

.figure-of {
  color: var(--fg-3);
  letter-spacing: -0.02em;
}

/* Terminal */
.term {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 620px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid #2a2c2a;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: #222322;
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3e403e;
}

.term pre {
  padding: 1.25rem 1.5rem;
  background: #1a1b1a;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.85;
  color: rgba(238, 240, 238, 0.85);
  white-space: pre;
  overflow-x: auto;
}

/* Desktop mock */
.mock {
  max-width: 880px;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(20, 21, 20, 0.03),
    0 8px 24px rgba(20, 21, 20, 0.05),
    0 24px 48px rgba(20, 21, 20, 0.04);
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.mock-light {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--border-strong);
}

.mock-tab {
  margin-left: 10px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--fg-3);
}

.mock-body {
  display: grid;
  grid-template-columns: 196px 1fr;
  min-height: 404px;
}

/* Sidebar: projects, each holding the sessions that belong to it. */
.mock-side {
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.side-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 6px 14px;
}

.side-mark { width: 15px; height: 15px; }

.side-name {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--fg);
}

.side-caret {
  width: 5px;
  height: 5px;
  border-right: 1.4px solid var(--fg-3);
  border-bottom: 1.4px solid var(--fg-3);
  transform: translateY(-2px) rotate(45deg);
}

.side-new {
  margin-bottom: 16px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--fg-2);
}

.side-group { margin-bottom: 14px; }

.side-label {
  max-width: none;
  margin-bottom: 3px;
  padding: 0 9px;
  font-family: var(--mono);
  font-size: 0.625rem;
  line-height: 1.6;
  color: var(--fg-3);
}

.side-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: var(--r-sm);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--fg-2);
}

.side-item.is-active {
  background: var(--sunken);
  color: var(--fg);
}

.side-txt {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Real state, not decoration: this session is still running. */
.side-run {
  width: 5px;
  height: 5px;
  flex: none;
  margin-left: auto;
  border-radius: 50%;
  background: var(--fg);
}

.side-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 10px 7px 2px;
  border-top: 1px solid var(--border);
}

.side-avatar {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--border-strong);
}

.side-user {
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--fg-2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mock-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
}

.mock-mark {
  width: 26px;
  height: 26px;
  margin-bottom: 16px;
}

.mock-q {
  max-width: none;
  font-size: clamp(1.05rem, 1.9vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-align: center;
}

.mock-proj {
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 5px;
}

.mock-sug {
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  margin-top: 14px;
}

.sug-row {
  padding: 5px 10px;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--fg-3);
  text-align: center;
}

.mock-composer {
  width: min(100%, 460px);
  margin-top: 22px;
  padding: 10px 10px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(20, 21, 20, 0.04);
}

.mock-ctx {
  display: inline-block;
  margin-bottom: 9px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--sunken);
  font-family: var(--mono);
  font-size: 0.625rem;
  line-height: 1.6;
  color: var(--fg-3);
}

.mock-field {
  padding: 0 3px 18px;
  font-size: 0.875rem;
  color: var(--fg-3);
}

.mock-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--fg-2);
  white-space: nowrap;
}

.pill-caret {
  width: 4px;
  height: 4px;
  flex: none;
  border-right: 1.2px solid var(--fg-3);
  border-bottom: 1.2px solid var(--fg-3);
  transform: translateY(-1px) rotate(45deg);
}

.mock-send {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  margin-left: auto;
  border-radius: 50%;
  background: var(--fg);
}

.mock-send::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--surface);
  border-right: 1.5px solid var(--surface);
  transform: translateX(-50%) rotate(-45deg);
}

.mock-fine {
  max-width: none;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--fg-3);
  text-align: center;
}

/* Waitlist */
#waitlist-form {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 480px;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-2);
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
}

.form-input::placeholder { color: var(--fg-3); }

.btn-waitlist { min-width: 10.5rem; }

.btn.is-loading { cursor: wait; }

.form-helper {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--fg-3);
}

.form-status {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.form-status.is-error {
  color: var(--fg);
  border-left: 2px solid var(--fg-3);
  padding-left: 0.75rem;
}

.form-status.is-success {
  color: var(--fg);
  border-left: 2px solid var(--fg);
  padding-left: 0.75rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
}

.footer .w {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-text,
.footer-links a,
.footer-meta {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--fg-3);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a { text-decoration: none; }

.footer-links a:hover { color: var(--fg); }

/* Mobile */
@media (max-width: 767px) {
  .w { padding-inline: 1.25rem; }

  .header nav { display: none; }

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

  /* The sidebar cannot hold readable session names at this width, so the
     mock drops to the surface that actually carries the idea. */
  .mock-body {
    grid-template-columns: 1fr;
    min-height: 320px;
  }

  .mock-side { display: none; }

  .mock-main { padding: 2rem 1rem; }

  .mock-tools .pill:nth-of-type(3) { display: none; }

  .form-row { flex-direction: column; }

  .btn-waitlist { width: 100%; }

  .footer .w {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1.25rem;
  }
}

@media (max-width: 419px) {
  .cmd {
    width: 100%;
    justify-content: space-between;
  }

  .cmd code { font-size: 0.8125rem; }
}

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(10px);
  }

  [data-reveal] {
    transition:
      opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-i="1"] { transition-delay: 70ms; }
  [data-i="2"] { transition-delay: 140ms; }
  [data-i="3"] { transition-delay: 210ms; }

  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .btn, .cmd-copy, .link, .header nav a, .footer-links a {
    transition:
      color 150ms cubic-bezier(0.16, 1, 0.3, 1),
      background-color 150ms cubic-bezier(0.16, 1, 0.3, 1),
      border-color 150ms cubic-bezier(0.16, 1, 0.3, 1),
      text-decoration-color 150ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .btn:active, .cmd-copy:active {
    transform: translateY(1px);
  }
}
