:root {
  color-scheme: light;
  --bg: #f4f5f6;
  --bg-deep: #e9ebed;
  --surface: rgba(255, 255, 255, 0.66);
  --surface-strong: rgba(248, 249, 250, 0.97);
  --line: rgba(18, 18, 18, 0.14);
  --line-strong: rgba(18, 18, 18, 0.26);
  --text: #171717;
  --text-soft: #343432;
  --muted: #666662;
  --accent: #222220;
  --accent-strong: #171717;
  --accent-ink: #fafafa;
  --panel-radius: 30px;
  --control-radius: 999px;
  --shadow: 0 30px 90px rgba(58, 61, 64, 0.14);
  --max-width: 1280px;
  font-family: "SF Pro Display", "SF Pro Text", "Segoe UI Variable", "Segoe UI", "PingFang SC",
    "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 3%, rgba(255, 255, 255, 0.96), transparent 34rem),
    linear-gradient(180deg, #fafafa 0%, var(--bg) 48%, var(--bg-deep) 100%);
  font-size: 16px;
  line-height: 1.6;
}

body::after {
  position: fixed;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection {
  color: #fafafa;
  background: rgba(18, 18, 18, 0.9);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: var(--control-radius);
  color: var(--accent-ink);
  background: var(--accent-strong);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-ambient {
  position: fixed;
  z-index: -1;
  top: 24%;
  left: 50%;
  width: 52rem;
  height: 52rem;
  border-radius: 50%;
  background: rgba(30, 34, 38, 0.035);
  filter: blur(110px);
  pointer-events: none;
  transform: translateX(-50%);
}

.section-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

/* Web approximation of dynamic glass, not Apple platform Liquid Glass. */
.glass-surface {
  --glass-x: 50%;
  --glass-y: 0%;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle 300px at var(--glass-x) var(--glass-y), rgba(255, 255, 255, 0.94), transparent 72%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.24) 42%),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(20, 20, 20, 0.045),
    var(--shadow);
  backdrop-filter: blur(28px) saturate(112%) contrast(1.04);
  -webkit-backdrop-filter: blur(28px) saturate(112%) contrast(1.04);
  transition:
    border-color 220ms ease,
    box-shadow 260ms ease;
}

.glass-surface:hover {
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(20, 20, 20, 0.06),
    0 34px 100px rgba(58, 61, 64, 0.18);
}

.glass-surface::after {
  position: absolute;
  z-index: -1;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 14px;
  right: 0;
  left: 0;
  padding-inline: 24px;
}

.nav-shell {
  display: grid;
  width: min(100%, 1180px);
  height: 64px;
  margin-inline: auto;
  padding: 0 20px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-radius: var(--control-radius);
  background-color: rgba(250, 251, 252, 0.72);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  color: var(--text);
}

.cod-wordmark {
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.kai-brand {
  display: flex;
  min-width: 112px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
}

.kai-brand img {
  width: auto;
  height: 23px;
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #5f5f5b;
  font-size: 14px;
}

.nav-links a,
.button,
.clear-chat,
.platform-picker button,
.chat-form button {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links a:hover {
  color: var(--text);
}

.button:active,
.clear-chat:active,
.platform-picker button:active,
.chat-form button:active {
  transform: scale(0.98);
}

.hero {
  display: grid;
  min-height: 100dvh;
  padding-top: 94px;
  padding-bottom: 26px;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 30px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.workspace h2,
.extensions h2,
.conversation h2,
.capabilities h2,
.download h2,
.platform-heading h2 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(64px, 7vw, 102px);
  line-height: 0.92;
}

.hero h1 .hero-line {
  display: block;
  white-space: nowrap;
}

.hero h1 .hero-accent {
  color: #555551;
}

.hero-lede {
  max-width: 38rem;
  margin: 24px auto 0;
  color: var(--text-soft);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  margin-top: 28px;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 23px;
  align-items: center;
  justify-content: center;
  border-radius: var(--control-radius);
  font-size: 14px;
  font-weight: 740;
  white-space: nowrap;
}

.button-primary {
  color: var(--accent-ink);
  background: var(--accent-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 32px rgba(58, 61, 64, 0.18);
}

.button-primary:hover {
  background: #2b2b29;
  transform: translateY(-1px);
}

.button-quiet {
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.button-quiet:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

.button[hidden] {
  display: none;
}

.hero-visual {
  position: relative;
  width: min(100%, 920px);
  margin: 0 auto;
}

.hero-visual::before {
  position: absolute;
  inset: 15% 10% -10%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(38, 40, 42, 0.08);
  filter: blur(78px);
  content: "";
}

.hero-image-shell {
  overflow: hidden;
  border-radius: 34px;
  background: #eef5f4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 42px 110px rgba(49, 52, 55, 0.25);
}

.hero-image-shell img {
  width: 100%;
  height: auto;
  aspect-ratio: 1061 / 870;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
}

.platform-band {
  padding: 132px 0 154px;
}

.platform-heading {
  max-width: 790px;
  margin-inline: auto;
  text-align: center;
}

.platform-heading h2 {
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.08;
}

.platform-heading p,
.conversation-intro p,
.capabilities-title p,
.download-copy > p:last-child {
  color: var(--muted);
  line-height: 1.75;
}

.platform-heading p {
  margin: 20px auto 0;
  font-size: 17px;
}

.platform-rail {
  display: grid;
  max-width: 790px;
  min-height: 96px;
  margin: 48px auto 0;
  padding: 10px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  border-radius: var(--panel-radius);
}

.platform-rail span {
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 650;
  letter-spacing: -0.025em;
}

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

.workspace {
  padding: 80px 0 170px;
}

.workspace-intro {
  display: grid;
  padding-top: 34px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: clamp(48px, 9vw, 140px);
  border-top: 1px solid var(--line);
}

.workspace-intro .eyebrow {
  margin-bottom: 18px;
}

.workspace h2 {
  max-width: 11ch;
  font-size: clamp(46px, 5.4vw, 76px);
  line-height: 1.02;
}

.workspace-summary {
  padding-bottom: 8px;
}

.workspace-summary p {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.78;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
}

.text-link span {
  color: var(--muted);
  font-size: 16px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.workspace-preview {
  margin: 68px 0 74px;
  overflow: hidden;
  border-radius: 34px;
  background-color: rgba(255, 255, 255, 0.78);
}

.preview-bar {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 58px;
  padding: 0 22px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(18, 18, 18, 0.28);
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.08);
}

.preview-address {
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.preview-status {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.preview-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(18, 18, 18, 0.08);
}

.preview-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 1061 / 870;
  background: #eef5f4;
}

.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-preview:hover .preview-frame img {
  transform: scale(1.006);
}

.workspace-preview figcaption {
  position: relative;
  z-index: 1;
  padding: 13px 20px 15px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.workspace-details {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(56px, 9vw, 128px);
}

.mode-story,
.detail-row {
  display: grid;
  padding: 28px 0 34px;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.mode-story {
  align-content: start;
}

.detail-row:last-child {
  border-bottom: 1px solid var(--line);
}

.detail-index {
  padding-top: 5px;
  color: #777773;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.workspace-details h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 610;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.detail-row h3 {
  font-size: clamp(20px, 1.8vw, 26px);
}

.workspace-details p {
  max-width: 36rem;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
}

.extensions {
  padding: 76px 0 178px;
}

.extensions-intro {
  max-width: 820px;
}

.extensions-intro h2 {
  max-width: 12ch;
}

.extensions-intro p {
  max-width: 42rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.product-gallery {
  display: grid;
  margin-top: 64px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 34px;
}

.product-shot {
  margin: 0;
  padding: 12px 12px 14px;
  overflow: hidden;
  border-radius: 34px;
  background-color: rgba(255, 255, 255, 0.78);
}

.product-shot-compute {
  grid-column: 1 / -1;
}

.product-shot-models {
  margin-top: 26px;
  grid-column: 4 / -1;
}

.product-shot-header {
  display: flex;
  min-height: 54px;
  padding: 0 10px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.product-shot-header strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 680;
}

.product-shot-header span {
  color: var(--muted);
  font-size: 12px;
}

.product-shot-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 24px;
  background: #eef5f4;
}

.product-shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-shot:hover .product-shot-frame img {
  transform: scale(1.004);
}

.product-shot figcaption {
  padding: 13px 8px 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.conversation {
  padding: 82px 0 164px;
}

.conversation-intro {
  max-width: 800px;
  margin-bottom: 64px;
}

.conversation h2,
.extensions h2,
.capabilities h2,
.download h2 {
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.04;
}

.conversation-intro p,
.capabilities-title p {
  max-width: 42rem;
  margin: 24px 0 0;
  font-size: 17px;
}

.conversation-stage {
  display: grid;
  min-height: 710px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 4vw, 62px);
}

.conversation-art {
  position: relative;
  height: 710px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--panel-radius);
  background: #101010;
  box-shadow: 0 34px 100px rgba(49, 52, 55, 0.2);
}

.conversation-art::after {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  content: "";
}

.conversation-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
  filter: grayscale(1) contrast(1.08) brightness(0.82);
}

.chat-demo {
  display: grid;
  width: min(100%, 550px);
  min-height: 570px;
  padding: 18px;
  grid-template-rows: auto 1fr auto;
  border-radius: var(--panel-radius);
  justify-self: end;
  background-color: rgba(255, 255, 255, 0.76);
}

.chat-header {
  display: flex;
  padding: 5px 5px 18px;
  align-items: center;
  justify-content: space-between;
}

.chat-header div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.chat-header strong {
  font-size: 16px;
}

.chat-header span {
  color: var(--muted);
  font-size: 12px;
}

.clear-chat {
  padding: 7px 12px;
  border-radius: var(--control-radius);
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.clear-chat:hover {
  color: var(--text);
  background: rgba(18, 18, 18, 0.06);
}

.chat-thread {
  display: flex;
  max-height: 412px;
  padding: 26px 5px 24px;
  overflow-y: auto;
  flex-direction: column;
  gap: 13px;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 18, 18, 0.24) transparent;
}

.message {
  width: fit-content;
  max-width: 86%;
  padding: 13px 16px;
  border-radius: 19px;
  font-size: 14px;
  line-height: 1.65;
}

.message-user {
  margin-left: auto;
  border-bottom-right-radius: 7px;
  color: #fafafa;
  background: #1b1b1a;
}

.message-cod {
  border: 1px solid rgba(18, 18, 18, 0.1);
  border-bottom-left-radius: 7px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.74);
}

.typing {
  display: inline-flex;
  min-width: 64px;
  align-items: center;
  gap: 5px;
}

.typing span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-pulse 1.1s ease-in-out infinite;
}

.typing span:nth-child(2) {
  animation-delay: 120ms;
}

.typing span:nth-child(3) {
  animation-delay: 240ms;
}

.chat-empty {
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 48px 24px;
  color: var(--text-soft);
  text-align: center;
}

.chat-empty[hidden] {
  display: none;
}

.chat-empty span {
  color: var(--muted);
  font-size: 13px;
}

.chat-form {
  display: grid;
  padding: 6px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.chat-form:focus-within {
  border-color: rgba(18, 18, 18, 0.48);
  box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.08);
}

.chat-form input {
  width: 100%;
  min-width: 0;
  padding: 10px 10px 10px 13px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
}

.chat-form input::placeholder {
  color: #73736e;
}

.chat-form button {
  min-width: 62px;
  min-height: 38px;
  border-radius: var(--control-radius);
  color: var(--accent-ink);
  background: var(--accent-strong);
  font-size: 13px;
  font-weight: 740;
  cursor: pointer;
}

.chat-form button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.capabilities {
  display: grid;
  padding: 120px 0 168px;
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
  gap: clamp(60px, 10vw, 150px);
}

.capabilities-title {
  align-self: start;
  position: sticky;
  top: 132px;
}

.capabilities-title h2 {
  max-width: 8ch;
}

.capability-list {
  display: grid;
}

.capability-item {
  max-width: 520px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
}

.capability-item:last-child {
  border-bottom: 1px solid var(--line);
}

.capability-offset {
  width: calc(100% - 64px);
  margin-left: 64px;
}

.capability-item h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 610;
  letter-spacing: -0.04em;
}

.capability-item p {
  max-width: 29rem;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.download {
  padding: 90px 0 150px;
}

.download-panel {
  display: grid;
  min-height: 590px;
  padding: clamp(28px, 5vw, 68px);
  grid-template-rows: 1fr auto auto;
  border-radius: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle 340px at var(--glass-x) var(--glass-y), rgba(255, 255, 255, 0.94), transparent 72%),
    radial-gradient(circle at 78% 16%, rgba(30, 34, 38, 0.05), transparent 23rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(225, 228, 231, 0.9));
}

.download-panel::before {
  position: absolute;
  right: -9rem;
  bottom: -16rem;
  width: 35rem;
  height: 35rem;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 64px rgba(18, 18, 18, 0.025),
    0 0 0 130px rgba(18, 18, 18, 0.015);
  content: "";
}

.download-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.download-copy h2 {
  max-width: 9ch;
}

.download-copy > p:last-child {
  max-width: 35rem;
  margin: 24px 0 0;
  font-size: 17px;
}

.platform-picker {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 580px);
  padding: 5px;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.64);
}

.platform-picker button {
  min-height: 44px;
  border-radius: var(--control-radius);
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
}

.platform-picker button:hover {
  color: var(--text);
}

.platform-picker button[aria-pressed="true"] {
  color: #fafafa;
  background: #1b1b1a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.download-selection {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.download-selection > div {
  display: grid;
  gap: 2px;
}

.download-selection span {
  color: var(--muted);
  font-size: 12px;
}

.download-selection strong {
  font-size: 22px;
  font-weight: 640;
}

.download-button {
  min-width: 146px;
  cursor: pointer;
}

.download-note {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.site-footer {
  display: grid;
  padding: 38px 0 46px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer > p {
  margin: 0;
}

.site-footer > span {
  justify-self: end;
}

.site-footer a:hover {
  color: var(--text-soft);
}

.toast {
  position: fixed;
  z-index: 15;
  right: 22px;
  bottom: 22px;
  max-width: min(410px, calc(100% - 44px));
  padding: 15px 19px;
  border-radius: 18px;
  color: var(--text-soft);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 220ms ease,
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms);
}

@keyframes typing-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-width: 1080px) {
  .hero h1 {
    font-size: clamp(62px, 8vw, 86px);
  }

  .hero-visual {
    width: min(90%, 820px);
  }

  .conversation-stage {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .workspace-details {
    gap: 58px;
  }

  .capabilities {
    gap: 70px;
  }
}

@media (max-width: 860px) {
  .section-shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .hero {
    min-height: 100dvh;
    padding-top: 104px;
    padding-bottom: 38px;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(50px, 10vw, 70px);
  }

  .hero-lede {
    max-width: 34rem;
  }

  .hero-visual {
    width: min(100%, 700px);
  }

  .hero-image-shell {
    border-radius: var(--panel-radius);
  }

  .hero-image-shell img {
    height: auto;
  }

  .platform-band {
    padding: 100px 0 118px;
  }

  .workspace {
    padding: 72px 0 128px;
  }

  .workspace-intro {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .workspace-summary {
    max-width: 42rem;
  }

  .workspace-preview {
    margin: 50px 0 58px;
  }

  .workspace-details {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .mode-story,
  .detail-stack {
    max-width: 760px;
  }

  .extensions {
    padding: 62px 0 132px;
  }

  .product-shot-models {
    grid-column: 2 / -1;
  }

  .conversation {
    padding: 70px 0 120px;
  }

  .conversation-stage {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .conversation-art {
    width: 100%;
    height: min(660px, 92vw);
  }

  .conversation-art img {
    object-position: center 52%;
  }

  .chat-demo {
    width: min(94%, 590px);
    margin-top: -96px;
    justify-self: end;
  }

  .capabilities {
    padding: 96px 0 130px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .capabilities-title {
    position: static;
  }

  .capabilities-title h2 {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 10px;
    padding-inline: 12px;
  }

  .nav-shell {
    height: 58px;
    padding: 0 16px;
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .kai-brand {
    min-width: 0;
  }

  .kai-brand img {
    height: 19px;
  }

  .hero {
    min-height: 100dvh;
    padding-top: 86px;
    padding-bottom: 26px;
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(44px, 12vw, 57px);
  }

  .hero-lede {
    margin-top: 19px;
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-actions {
    margin-top: 23px;
  }

  .button {
    min-height: 45px;
    padding-inline: 18px;
  }

  .hero-image-shell {
    border-radius: 24px;
  }

  .hero-image-shell img {
    height: auto;
  }

  .platform-band {
    padding: 92px 0 100px;
  }

  .workspace {
    padding: 58px 0 102px;
  }

  .workspace-intro {
    padding-top: 26px;
  }

  .workspace h2 {
    font-size: 42px;
  }

  .workspace-summary p {
    font-size: 15px;
  }

  .workspace-preview {
    margin: 40px 0 44px;
    border-radius: 24px;
  }

  .preview-bar {
    min-height: 48px;
    padding-inline: 15px;
  }

  .preview-status {
    display: none;
  }

  .preview-bar {
    grid-template-columns: 1fr auto 1fr;
  }

  .workspace-preview figcaption {
    padding: 11px 14px 12px;
    text-align: left;
  }

  .mode-story,
  .detail-row {
    padding: 24px 0 28px;
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .workspace-details h3,
  .detail-row h3 {
    font-size: 22px;
  }

  .extensions {
    padding: 52px 0 100px;
  }

  .extensions h2 {
    font-size: 42px;
  }

  .extensions-intro p {
    font-size: 15px;
  }

  .product-gallery {
    margin-top: 40px;
    gap: 26px;
  }

  .product-shot-compute,
  .product-shot-models {
    margin-top: 0;
    grid-column: 1 / -1;
  }

  .product-shot {
    padding: 9px 9px 12px;
    border-radius: 24px;
  }

  .product-shot-header {
    min-height: 60px;
    padding: 8px 7px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
  }

  .product-shot-frame {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  .platform-heading {
    text-align: left;
  }

  .platform-heading h2 {
    font-size: 38px;
  }

  .platform-rail {
    min-height: 78px;
    margin-top: 34px;
    padding: 6px;
  }

  .platform-rail span {
    font-size: 14px;
  }

  .conversation {
    padding: 62px 0 100px;
  }

  .conversation h2,
  .capabilities h2,
  .download h2 {
    font-size: 42px;
  }

  .conversation-intro {
    margin-bottom: 38px;
  }

  .conversation-intro p,
  .capabilities-title p {
    font-size: 15px;
  }

  .conversation-art {
    height: 104vw;
  }

  .chat-demo {
    width: calc(100% - 12px);
    min-height: 520px;
    margin-top: -66px;
    padding: 13px;
  }

  .chat-thread {
    max-height: 360px;
  }

  .message {
    max-width: 91%;
  }

  .capabilities {
    padding: 72px 0 100px;
    gap: 32px;
  }

  .capability-offset {
    width: 100%;
    margin-left: 0;
  }

  .capability-item {
    padding: 27px 0 32px;
  }

  .download {
    padding: 60px 0 100px;
  }

  .download-panel {
    min-height: 620px;
    padding: 29px 20px 23px;
    border-radius: var(--panel-radius);
  }

  .platform-picker {
    width: 100%;
  }

  .platform-picker button {
    font-size: 12px;
  }

  .download-selection {
    align-items: stretch;
    flex-direction: column;
  }

  .download-button {
    width: 100%;
  }

  .download-note {
    text-align: left;
  }

  .site-footer {
    padding: 34px 0 42px;
    grid-template-columns: 1fr auto;
  }

  .site-footer > p {
    display: none;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-image-shell {
    animation: hero-breathe 7s ease-in-out infinite;
  }

  @keyframes hero-breathe {
    0%,
    100% {
      transform: translateY(0) scale(1);
    }
    50% {
      transform: translateY(-7px) scale(1.004);
    }
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

@media (prefers-reduced-transparency: reduce) {
  .glass-surface {
    background: var(--surface-strong);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-surface {
    background: var(--surface-strong);
  }
}

:focus-visible {
  outline: 3px solid rgba(18, 18, 18, 0.78);
  outline-offset: 3px;
}
