:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-soft: #eeeeeb;
  --text: #111111;
  --muted: #6d6d68;
  --faint: #9b9b94;
  --line: rgba(17, 17, 17, 0.14);
  --line-strong: rgba(17, 17, 17, 0.28);
  --inverse: #101010;
  --inverse-text: #ffffff;
  --blue: #2f7fe9;
  --green: #178a59;
  --red: #bb4b43;
  --shadow: 0 18px 60px rgba(10, 10, 10, 0.08);
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111210;
  --surface: #181a17;
  --surface-soft: #22241f;
  --text: #f3f3ef;
  --muted: #aaa9a2;
  --faint: #74746e;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --inverse: #f3f3ef;
  --inverse-text: #111210;
  --blue: #75aef4;
  --green: #65bf91;
  --red: #e4867e;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  letter-spacing: 0;
  transition: background-color 180ms ease, color 180ms ease;
}

.intro-pending body {
  overflow: hidden;
}

.intro-pending .site-header,
.intro-pending .hero-copy > *,
.intro-pending #hero-sphere,
.intro-pending .scroll-cue,
.intro-pending .support-button {
  opacity: 0;
}

.intro-start .site-header,
.intro-start .hero-copy > *,
.intro-start #hero-sphere,
.intro-start .scroll-cue,
.intro-start .support-button {
  opacity: 1;
  transition: opacity 650ms ease, transform 650ms ease;
}

.intro-pending .hero-copy > * { transform: translateY(10px); }
.intro-start .hero-copy > * { transform: translateY(0); }
.intro-start #hero-sphere { transition-delay: 100ms; }
.intro-start .hero h1 { transition-delay: 180ms; }
.intro-start .hero-copy > small { transition-delay: 260ms; }
.intro-start .hero-subtitle { transition-delay: 340ms; }
.intro-start .primary-button { transition-delay: 430ms; }
.intro-start .works-on { transition-delay: 510ms; }
.intro-start .site-header { transition-delay: 620ms; }
.intro-start .hero-kicker { transition-delay: 760ms; }
.intro-start .scroll-cue,
.intro-start .support-button { transition-delay: 900ms; }

.reveal-target {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal-target.in-view {
  opacity: 1;
  transform: translateY(0);
}

button,
a,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  pointer-events: none;
}

.nav-shell {
  width: min(1180px, calc(100% - 48px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  pointer-events: auto;
  transition: width 420ms ease, height 420ms ease, margin-top 420ms ease, padding 420ms ease, background 420ms ease, border-radius 420ms ease, box-shadow 420ms ease;
}

.site-header.scrolled .nav-shell {
  width: min(840px, calc(100% - 24px));
  height: 52px;
  margin-top: 10px;
  padding: 0 10px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.desktop-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.desktop-nav a {
  height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: none;
}

.icon-button,
.menu-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover,
.menu-button:hover {
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.icon-button svg,
.menu-button svg {
  width: 19px;
  height: 19px;
}

.moon-icon {
  display: none;
}

html[data-theme="dark"] .sun-icon {
  display: none;
}

html[data-theme="dark"] .moon-icon {
  display: block;
}

.action-menu {
  position: relative;
}

.action-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  min-width: 184px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.language-panel button {
  width: 100%;
  min-height: 36px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.language-panel button:hover,
.language-panel button[aria-checked="true"] {
  background: var(--surface-soft);
  color: var(--text);
}

.language-panel button svg {
  width: 15px;
  height: 15px;
  margin-left: auto;
}

.notification-panel {
  width: min(360px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
}

.notification-panel header {
  padding: 17px 18px 13px;
  display: grid;
  border-bottom: 1px solid var(--line);
}

.notification-panel header strong {
  font-size: 15px;
}

.notification-panel header small {
  color: var(--muted);
  font-size: 12px;
}

#notification-content {
  max-height: 340px;
  overflow: auto;
}

.notification-tabs {
  margin: 0 12px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 6px;
  background: var(--surface-soft);
}

.notification-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.notification-tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.notification-content {
  max-height: min(52vh, 360px);
  padding: 8px 16px;
  overflow: auto;
}

.notification-panel > footer {
  padding: 10px 14px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.notification-panel > footer button,
.primary-notice-dialog > footer button {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: var(--inverse);
  color: var(--inverse-text);
  font-size: 12px;
  cursor: pointer;
}

.notification-empty {
  min-height: 180px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}

.notification-empty svg {
  width: 30px;
  height: 30px;
}

.notice-copy {
  padding: 14px 4px;
  color: var(--text);
  font-size: 13px;
  white-space: pre-wrap;
}

.announcement-item {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}

.announcement-item:last-child {
  border-bottom: 0;
}

.announcement-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.announcement-dot.success { background: var(--green); }
.announcement-dot.error { background: var(--red); }
.announcement-dot.warning { background: #d59636; }

.announcement-body p {
  margin: 0;
  font-size: 13px;
}

.announcement-body p + p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.announcement-body small {
  display: block;
  margin-top: 7px;
  color: var(--faint);
  font-size: 10px;
}

.notice-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-item time {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: 11px;
}

#notification-toggle {
  position: relative;
}

#notification-badge {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border: 2px solid var(--bg);
  border-radius: 10px;
  background: #d9413b;
  color: white;
  font-size: 9px;
  line-height: 11px;
}

.auth-slot {
  min-width: 42px;
  min-height: 36px;
  display: grid;
  place-items: center;
}

.auth-loading {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-soft);
  animation: pulse 1s infinite alternate;
}

.login-link {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  background: var(--inverse);
  color: var(--inverse-text);
  font-size: 13px;
  font-weight: 600;
}

.profile-link {
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.profile-link span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--inverse);
  color: var(--inverse-text);
  font-weight: 700;
}

.account-panel {
  width: 224px;
  padding: 8px;
}

.account-panel header {
  padding: 9px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

#account-avatar-large {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--inverse);
  color: var(--inverse-text);
  font-weight: 700;
}

.account-panel header div {
  min-width: 0;
  display: grid;
}

.account-panel header strong,
.account-panel header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-panel header small {
  color: var(--muted);
  font-size: 11px;
}

.account-panel > a {
  min-height: 36px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
}

.account-panel > a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.menu-button {
  display: none;
}

.mobile-nav {
  display: none;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

#hero-sphere {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(760px, 82vw);
  height: min(760px, 82vw);
  transform: translate(-50%, -47%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 40px));
  padding-top: 44px;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.hero-kicker i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.hero-kicker span:nth-of-type(2),
.hero-kicker span:nth-of-type(3) {
  text-decoration: line-through;
  text-decoration-color: var(--red);
}

.hero h1 {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 112px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 em {
  font-family: Georgia, var(--serif);
  font-style: normal;
  font-weight: 500;
}

.hero-copy > small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
}

.hero-subtitle {
  margin: 32px 0 22px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
}

.primary-button {
  min-height: 48px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border-radius: 26px;
  background: var(--inverse);
  color: var(--inverse-text);
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, opacity 160ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

.works-on {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.works-on strong {
  color: var(--faint);
  font-size: 9px;
}

.works-on i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 22px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 9px;
  width: 2px;
  height: 7px;
  background: var(--text);
  animation: scrollCue 1.5s infinite;
}

.section {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 130px 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading > p,
.playbook-copy > p {
  margin: 0 0 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.section-heading h2,
.playbook-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.23;
  letter-spacing: 0;
}

.section-heading > div,
.playbook-copy > div {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 16px;
}

.integrity-line {
  width: min(720px, 100%);
  min-height: 46px;
  margin: 46px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border-block: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
}

.integrity-line span {
  color: var(--faint);
}

.integrity-line b {
  color: var(--green);
  font-weight: 600;
}

.promise-copy {
  max-width: 760px;
  margin: 48px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 16px;
}

.promise-copy p {
  margin: 0 0 22px;
}

.principles {
  position: relative;
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles article {
  position: relative;
  min-height: 82px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: default;
}

.principles article > svg {
  width: 21px;
  height: 21px;
  flex: none;
}

.why-grid article > span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.principles h3,
.why-grid h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
}

.why-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.principle-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 10;
  width: min(280px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transform: translate(-50%, 8px);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.principle-tip strong {
  font-family: var(--serif);
  font-size: 14px;
}

.principle-tip p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.principles article:hover .principle-tip,
.principles article:focus .principle-tip,
.principles article:focus-within .principle-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.metrics-band {
  width: min(1060px, calc(100% - 64px));
  min-height: 190px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.metrics-band div {
  padding: 42px 6px;
  display: grid;
  place-content: center;
  text-align: center;
}

.metrics-band strong {
  min-width: 6ch;
  font-family: Georgia, var(--serif);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metrics-band span {
  margin-top: 6px;
  opacity: 0.65;
  font-size: 12px;
}

.image-section {
  padding-bottom: 160px;
}

.image-layout {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 72px;
  align-items: center;
}

.image-spec h3 {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 27px;
}

.image-spec h3 span {
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--blue);
  color: white;
  font-size: 10px;
  vertical-align: middle;
}

.image-spec p {
  margin-bottom: 30px;
  color: var(--muted);
}

.image-spec code {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}

.image-spec code:nth-of-type(2) {
  border-bottom: 1px solid var(--line);
}

.image-spec code b {
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--inverse);
  color: var(--inverse-text);
  font-size: 9px;
}

.image-spec a,
.text-link,
.docs-cta a {
  display: inline-flex;
  margin-top: 28px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.image-demo {
  position: relative;
  padding: 18px;
  border-radius: 8px;
  background: #2b2c30;
  color: white;
  box-shadow: var(--shadow);
}

.image-scan {
  position: absolute;
  inset: 76px 18px 46px;
  border-radius: 6px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.image-demo.in-view .image-scan {
  opacity: 1;
  animation: imageScan 2.4s ease 350ms 1 both;
}

.image-demo .prompt {
  min-height: 48px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  background: #3a3b41;
  color: #d6d7da;
  font-size: 12px;
}

.image-demo .prompt b {
  color: #a9bce8;
  font-family: var(--mono);
  font-size: 9px;
}

.image-demo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-top: 14px;
  border-radius: 6px;
  display: block;
  object-fit: cover;
}

.image-demo footer {
  padding: 13px 4px 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
}

.image-demo footer b {
  color: #7ad8a8;
}

.playbook {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 70px;
  align-items: center;
  min-height: 760px;
}

.playbook-copy h2 {
  font-size: 44px;
}

.playbook-console {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1fr 190px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.channel-stage {
  position: relative;
  min-height: 430px;
  padding: 22px;
  display: grid;
  place-items: center;
  background: #30312f;
  color: white;
}

.channel-stage small {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--mono);
  color: #bebeb8;
}

.channel-stage p {
  position: absolute;
  bottom: 16px;
  left: 18px;
  color: #bebeb8;
  font-size: 11px;
}

#channel-next {
  position: absolute;
  right: 16px;
  bottom: 15px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
}

.token-box {
  position: relative;
  width: 190px;
  height: 135px;
  border: 3px solid white;
}

.token-box::before {
  content: "";
  position: absolute;
  top: -32px;
  left: -18px;
  width: 220px;
  height: 28px;
  border: 3px solid white;
}

.token-box span {
  position: absolute;
  right: 18px;
  bottom: 8px;
  width: 0;
  height: 0;
  border-top: 28px solid transparent;
  border-left: 18px solid white;
  transform: rotate(-20deg);
}

.playbook-console ol {
  margin: 0;
  padding: 42px 20px;
  list-style: none;
}

.playbook-console li {
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.playbook-console li button {
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.playbook-console li.active {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--text);
}

.why {
  border-top: 1px solid var(--line);
}

.why-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.why-grid article {
  min-height: 280px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.why-grid article:nth-child(3n) {
  border-right: 0;
}

.why-grid article:nth-child(n + 4) {
  border-bottom: 0;
}

.why-grid h3 {
  margin-top: 36px;
}

.why-grid small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.why-grid p {
  margin-top: 22px;
}

.onboard {
  border-top: 1px solid var(--line);
}

.onboard-layout {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
}

.onboard-layout ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboard-layout li {
  min-height: 108px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.onboard-layout li > b {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--inverse);
  color: var(--inverse-text);
  font-family: var(--mono);
  font-size: 11px;
}

.onboard-layout li strong {
  font-family: var(--serif);
  font-size: 18px;
}

.onboard-layout li p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.terminal {
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  background: #242522;
  color: #ebebe7;
  box-shadow: var(--shadow);
}

.terminal header {
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--mono);
  font-size: 10px;
  color: #a8a8a3;
}

.terminal header i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e67f75;
}

.terminal header i:nth-child(2) {
  background: #e5c36b;
}

.terminal header i:nth-child(3) {
  background: #79c786;
}

.terminal header span {
  margin-left: 8px;
}

.terminal pre {
  margin: 0;
  padding: 34px;
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2;
}

.terminal pre code span {
  display: block;
  opacity: 0;
  transform: translateY(5px);
}

.terminal.in-view pre code span {
  animation: terminalLine 360ms ease forwards;
}

.terminal.in-view pre code span:nth-child(1) { animation-delay: 180ms; }
.terminal.in-view pre code span:nth-child(2) { animation-delay: 650ms; }
.terminal.in-view pre code span:nth-child(3) { animation-delay: 1050ms; }
.terminal.in-view pre code span:nth-child(4) { animation-delay: 1450ms; }
.terminal.in-view pre code span:nth-child(5) { animation-delay: 1950ms; }
.terminal.in-view pre code span:nth-child(6) { animation-delay: 2400ms; }

.docs-cta {
  margin-top: 36px;
  text-align: center;
  color: var(--muted);
}

.docs-cta a {
  margin-top: 0;
  color: var(--text);
}

.pricing-preview {
  border-top: 1px solid var(--line);
}

.closing-cta {
  min-height: 420px;
  padding: 80px 24px;
  display: grid;
  place-content: center;
  justify-items: center;
  border-top: 1px solid var(--line);
  background: var(--inverse);
  color: var(--inverse-text);
  text-align: center;
}

.closing-cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 58px;
  letter-spacing: 0;
}

.closing-cta p {
  margin: 14px 0 30px;
  opacity: 0.52;
  font-family: var(--mono);
  font-size: 10px;
}

.closing-cta .primary-button {
  border: 1px solid color-mix(in srgb, var(--inverse-text) 26%, transparent);
  background: var(--inverse-text);
  color: var(--inverse);
}

.model-preview {
  margin-top: 62px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.model-preview > p {
  grid-column: 1 / -1;
  padding: 30px;
  color: var(--muted);
}

.model-card {
  min-height: 170px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.model-card:nth-child(3n) {
  border-right: 0;
}

.model-card:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.model-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.model-card .model-icon {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--text);
}

.model-card .model-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
}

.model-card h3 {
  margin: 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-card footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  width: min(1180px, calc(100% - 64px));
  min-height: 210px;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-content: center;
  border-top: 1px solid var(--line);
}

.site-footer > div {
  display: grid;
}

.site-footer strong {
  font-family: var(--serif);
  font-size: 30px;
}

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

.site-footer small {
  color: var(--faint);
}

.support-button {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  animation: supportPulse 2.8s ease-in-out infinite;
}

.support-button svg {
  width: 21px;
  height: 21px;
}

.support-popover {
  position: fixed;
  right: 32px;
  bottom: 82px;
  z-index: 75;
  width: 286px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.16);
  transform-origin: right bottom;
  animation: supportOpen 180ms ease both;
}

.support-popover > button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 21px;
  cursor: pointer;
}

.support-popover > button:hover { background: var(--surface-soft); color: var(--text); }

.support-popover > small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.support-popover > p {
  margin: 14px 0 20px;
  padding-right: 10px;
  font-size: 13px;
}

.support-popover > div {
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.support-popover a {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-size: 12px;
}

.support-popover a:hover { background: var(--surface-soft); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  min-width: 180px;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border-radius: 6px;
  transform: translateX(-50%);
  background: var(--inverse);
  color: var(--inverse-text);
  text-align: center;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.primary-notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(5px);
}

.primary-notice-dialog {
  width: min(560px, 100%);
  max-height: min(76svh, 640px);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--surface);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.primary-notice-dialog > header {
  padding: 20px 22px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.primary-notice-dialog header small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.primary-notice-dialog h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 24px;
}

#primary-notice-x {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#primary-notice-x:hover { background: var(--surface-soft); color: var(--text); }

#primary-notice-body {
  padding: 22px;
  overflow: auto;
  white-space: pre-wrap;
}

.primary-notice-dialog > footer {
  padding: 13px 18px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

@keyframes pulse {
  to { opacity: 0.45; }
}

@keyframes scrollCue {
  0% { opacity: 0; transform: translateY(-2px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes terminalLine {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes imageScan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes supportOpen {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes supportPulse {
  0%, 100% { box-shadow: var(--shadow), 0 0 0 0 color-mix(in srgb, var(--text) 10%, transparent); }
  50% { box-shadow: var(--shadow), 0 0 0 8px transparent; }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .nav-shell {
    width: calc(100% - 32px);
  }

  .nav-actions {
    margin-left: auto;
  }

  .menu-button {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    inset: 72px 16px auto;
    max-height: calc(100svh - 88px);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: none;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: auto;
    pointer-events: auto;
  }

  .mobile-nav.open {
    display: grid;
  }

  .mobile-nav a {
    min-height: 46px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .hero h1 {
    font-size: 72px;
  }

  .closing-cta h2 {
    font-size: 44px;
  }

  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles article:nth-child(2) {
    border-right: 0;
  }

  .principles article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .image-layout,
  .playbook,
  .onboard-layout {
    grid-template-columns: 1fr;
  }

  .why-grid,
  .model-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid article:nth-child(3n),
  .model-card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .why-grid article:nth-child(2n),
  .model-card:nth-child(2n) {
    border-right: 0;
  }

  .why-grid article:nth-child(n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .why-grid article:nth-last-child(-n + 2),
  .model-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .nav-shell {
    width: calc(100% - 20px);
    height: 62px;
    gap: 8px;
  }

  .site-header.scrolled .nav-shell {
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 25px;
    height: 25px;
  }

  #notification-toggle,
  #theme-toggle {
    display: none;
  }

  .mobile-nav {
    inset-top: 66px;
  }

  .hero {
    min-height: 760px;
  }

  #hero-sphere {
    width: 620px;
    height: 620px;
  }

  .hero-copy {
    padding-top: 32px;
  }

  .hero-kicker {
    max-width: 330px;
    margin-inline: auto;
    flex-wrap: wrap;
    font-size: 10px;
  }

  .hero h1 {
    gap: 5px;
    font-size: 46px;
  }

  .hero-copy > small {
    font-size: 12px;
  }

  .hero-subtitle {
    margin-top: 26px;
    font-size: 18px;
  }

  .works-on {
    max-width: 340px;
    margin-inline: auto;
    margin-top: 24px;
  }

  .section {
    width: calc(100% - 32px);
    padding: 88px 0;
  }

  .section-heading h2,
  .playbook-copy h2 {
    font-size: 36px;
  }

  .section-heading > div,
  .playbook-copy > div,
  .promise-copy {
    font-size: 14px;
  }

  .integrity-line {
    grid-template-columns: auto 1fr;
  }

  .integrity-line b {
    grid-column: 1 / -1;
    padding-bottom: 10px;
  }

  .principles,
  .why-grid,
  .model-preview {
    grid-template-columns: 1fr;
  }

  .principles article,
  .why-grid article,
  .model-card {
    min-height: 76px;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .principles article:last-child,
  .why-grid article:last-child,
  .model-card:last-child {
    border-bottom: 0 !important;
  }

  .metrics-band {
    width: calc(100% - 32px);
    padding: 0;
    grid-template-columns: 1fr;
  }

  .metrics-band div {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics-band div:last-child {
    border-bottom: 0;
  }

  .metrics-band strong {
    font-size: 50px;
  }

  .image-layout {
    gap: 36px;
  }

  .image-demo {
    padding: 10px;
  }

  .playbook {
    gap: 36px;
  }

  .playbook-console {
    grid-template-columns: 1fr;
  }

  .playbook-console ol {
    display: none;
  }

  .channel-stage {
    min-height: 360px;
  }

  .onboard-layout {
    gap: 36px;
  }

  .terminal {
    min-height: 300px;
  }

  .terminal pre {
    padding: 24px 18px;
    font-size: 11px;
  }

  .site-footer {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }

  .closing-cta {
    min-height: 340px;
  }

  .closing-cta h2 {
    font-size: 36px;
  }

  .site-footer small {
    grid-column: auto;
  }

  .support-button {
    right: 14px;
    bottom: 14px;
  }

  .support-popover {
    right: 14px;
    bottom: 70px;
    width: min(286px, calc(100vw - 28px));
  }
}

@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;
  }
}
