:root {
  color-scheme: dark;
  --bg: #080b0c;
  --bg-soft: #0d1112;
  --panel: #111617;
  --panel-2: #151b1c;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f2f5f2;
  --muted: #99a39f;
  --green: #69f0ae;
  --cyan: #71d7e8;
  --amber: #e9bd69;
  --danger: #f08383;
  --header-height: 72px;
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  font-family: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
}

button {
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}

.site-header.scrolled {
  background: rgba(8, 11, 12, 0.82);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 700;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}

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

.nav-links a,
.nav-button {
  position: relative;
  padding: 8px 0;
  background: transparent;
  cursor: pointer;
}

.nav-links a::after,
.nav-button::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-links a:hover::after,
.nav-button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-button,
.tip-button,
.menu-button {
  height: 34px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 12, 0.36);
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}

.icon-button:hover,
.tip-button:hover,
.menu-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.icon-button {
  width: 40px;
  font-size: 11px;
  font-weight: 700;
}

.tip-button {
  padding: 0 13px;
  color: var(--amber);
  font-size: 12px;
}

.menu-button {
  display: none;
  width: 38px;
  padding: 9px;
}

.menu-button span {
  display: block;
  height: 1px;
  margin: 4px 0;
  background: currentColor;
}

.developer-menu {
  position: relative;
}

.developer-popover {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 260px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(13, 17, 18, 0.96);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px);
}

.developer-menu:hover .developer-popover,
.developer-menu:focus-within .developer-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.developer-popover strong {
  display: block;
  margin: 8px 0;
  font-size: 23px;
}

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

.overline,
.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media,
.hero-video,
.hero-grid,
.hero-vignette,
#signalCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  background: #080b0c;
}

#signalCanvas {
  z-index: 1;
  opacity: 0.52;
}

.hero-grid {
  z-index: 2;
  background-image:
    linear-gradient(rgba(113, 215, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 215, 232, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent 8%, black 55%, transparent 100%);
}

.hero-vignette {
  z-index: 3;
  background:
    linear-gradient(to bottom, rgba(4, 7, 8, 0.38), rgba(4, 7, 8, 0.08) 45%, var(--bg) 100%),
    radial-gradient(circle at 50% 42%, rgba(8, 11, 12, 0.12), rgba(8, 11, 12, 0.72) 74%);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(var(--max-width), calc(100% - 64px));
  margin: 0 auto;
  padding-top: 4vh;
}

.hero-kicker {
  display: block;
  margin-bottom: 18px;
  color: #c9d1ce;
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1100px;
  margin: 0;
  color: #f5f8f5;
  font-size: clamp(58px, 9vw, 148px);
  font-weight: 690;
  line-height: 0.88;
  text-shadow: 0 18px 80px rgba(0, 0, 0, 0.52);
}

.hero-lead {
  max-width: 630px;
  margin: 30px 0 0;
  color: #c2cbc7;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 34px;
}

.primary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 22px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.primary-button:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #d8dddb;
  font-size: 13px;
}

.text-link span:last-child {
  color: var(--green);
  transition: transform 180ms ease;
}

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

.hero-status {
  position: absolute;
  z-index: 4;
  bottom: 30px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a7b0ac;
  font-size: 13px;
}

.live-dot,
.online-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(105, 240, 174, 0.76);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  50% { opacity: 0.48; box-shadow: 0 0 4px rgba(105, 240, 174, 0.3); }
}

.status-separator {
  width: 1px;
  height: 12px;
  margin: 0 4px;
  background: var(--line-strong);
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  right: 32px;
  bottom: 28px;
  width: 30px;
  height: 44px;
  border: 1px solid var(--line-strong);
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 14px;
  width: 1px;
  height: 10px;
  background: var(--green);
  animation: scrollCue 1.8s infinite;
}

@keyframes scrollCue {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(17px); opacity: 0; }
}

.section {
  position: relative;
  width: min(var(--max-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 136px 0;
}

.section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 16px;
}

.section h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 550;
  line-height: 1.08;
  writing-mode: horizontal-tb;
  word-break: normal;
  overflow-wrap: normal;
}

.section-intro {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.conversation-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  margin-top: 72px;
  border: 1px solid var(--line);
  background: #0b0f10;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.3);
}

.chat-window {
  min-height: 620px;
  border-right: 1px solid var(--line);
}

.chat-topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.chat-topbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-topbar strong,
.chat-topbar small {
  display: block;
}

.chat-topbar small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.online-dot {
  width: 5px;
  height: 5px;
  margin-right: 6px;
}

.chat-channel {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.chat-body {
  min-height: 478px;
  padding: 28px;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 36px 36px;
}

.message {
  max-width: 82%;
  padding: 17px 19px;
  border: 1px solid var(--line);
  font-size: 15px;
}

.user-message {
  margin-left: auto;
  background: #e8eeeb;
  color: #101414;
}

.bot-message {
  margin-top: 20px;
  background: rgba(17, 22, 23, 0.94);
}

.message-label {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-family: "Cascadia Code", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.signal-row strong {
  font-size: 19px;
}

.signal-row span {
  color: var(--green);
  font-family: "Cascadia Code", monospace;
}

.price-plan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.price-plan span,
.price-plan strong {
  display: block;
}

.price-plan span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.price-plan strong {
  margin-top: 5px;
  font-family: "Cascadia Code", monospace;
  font-size: 13px;
}

.bot-message p {
  margin: 0;
  color: #bdc5c2;
  font-size: 14px;
}

.model-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.model-pills span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: "Cascadia Code", monospace;
  font-size: 11px;
}

.chat-composer {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 20px;
  padding: 0 8px 0 16px;
  border: 1px solid var(--line);
  color: #6f7a76;
  font-size: 14px;
}

.chat-composer button {
  width: 38px;
  height: 38px;
  background: var(--green);
  color: #0b100e;
  cursor: pointer;
}

.context-panel {
  position: relative;
  padding: 25px;
  overflow: hidden;
}

.context-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.context-time {
  color: var(--green);
  font-family: "Cascadia Code", monospace;
}

.context-track {
  margin-top: 24px;
}

.context-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  min-height: 73px;
  color: #6f7975;
}

.context-item::before {
  position: absolute;
  top: 26px;
  bottom: 0;
  left: 12px;
  width: 1px;
  content: "";
  background: var(--line);
}

.context-item:last-child::before {
  display: none;
}

.context-item > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-family: "Cascadia Code", monospace;
  font-size: 8px;
}

.context-item.active > span {
  border-color: rgba(105, 240, 174, 0.5);
  color: var(--green);
}

.context-item strong,
.context-item small {
  display: block;
}

.context-item strong {
  color: #cfd5d2;
  font-size: 14px;
}

.context-item small {
  margin-top: 2px;
  font-family: "Cascadia Code", monospace;
  font-size: 11px;
}

.mini-chart {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 170px;
  opacity: 0.6;
}

.mini-chart svg {
  width: 100%;
  height: 100%;
}

.area-path {
  fill: rgba(105, 240, 174, 0.08);
}

.line-path {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.split-heading > div {
  display: block;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 76px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-item {
  position: relative;
  min-height: 320px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 240ms ease;
}

.capability-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.capability-number {
  color: var(--muted);
  font-family: "Cascadia Code", monospace;
  font-size: 11px;
}

.capability-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 58px 0 32px;
  border: 1px solid var(--line-strong);
  color: var(--green);
  font-size: 22px;
}

.capability-item h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 550;
}

.capability-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.models-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  gap: 110px;
}

.models-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.models-copy h2 {
  margin-top: 16px;
}

.models-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin-top: 28px;
  color: var(--muted);
}

.model-note {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.model-note > span {
  color: var(--amber);
  font-family: "Cascadia Code", monospace;
  font-size: 12px;
}

.model-note p {
  margin: 0;
  color: #b3bcb8;
  font-size: 14px;
}

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

.model-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 142px;
  border-bottom: 1px solid var(--line);
}

.model-code {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-family: "Cascadia Code", monospace;
  font-size: 11px;
}

.model-row h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 550;
}

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

.model-value {
  color: #6f7975;
  font-family: "Cascadia Code", monospace;
  font-size: 11px;
}

.sources-section {
  width: 100%;
  max-width: none;
  padding-right: max(32px, calc((100% - var(--max-width)) / 2));
  padding-left: max(32px, calc((100% - var(--max-width)) / 2));
  background: #0b0f10;
}

.sources-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.section-heading > *,
.split-heading > *,
.sources-heading > * {
  min-width: 0;
}

.source-flow {
  display: grid;
  grid-template-columns: 1fr 120px 220px 120px 1fr;
  align-items: center;
  margin-top: 90px;
  padding: 70px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.source-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.source-column strong {
  font-family: "Cascadia Code", monospace;
  font-size: 15px;
  font-weight: 500;
}

.align-right {
  text-align: right;
}

.flow-label {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.flow-line {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.flow-line span {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 1px;
  background: var(--green);
  animation: flowPulse 2.4s linear infinite;
}

.flow-line.reverse span {
  animation-direction: reverse;
}

@keyframes flowPulse {
  to { left: 110%; }
}

.source-core {
  position: relative;
  width: 190px;
  height: 190px;
  display: grid;
  place-content: center;
  justify-self: center;
  text-align: center;
}

.core-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(105, 240, 174, 0.42);
  border-radius: 50%;
  animation: coreSpin 12s linear infinite;
}

.core-ring::before,
.core-ring::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.core-ring::before {
  inset: 13px;
  border: 1px dashed var(--line-strong);
}

.core-ring::after {
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

@keyframes coreSpin {
  to { transform: rotate(360deg); }
}

.source-core strong {
  font-size: 16px;
}

.source-core small {
  color: var(--muted);
  font-size: 11px;
}

.source-footnotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 36px;
}

.source-footnotes p {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.source-footnotes p > span:first-child {
  color: var(--green);
  font-family: "Cascadia Code", monospace;
}

.about-section {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 110px;
}

.about-statement h2 {
  margin-top: 15px;
}

.about-statement > p:last-child {
  max-width: 760px;
  margin-top: 32px;
  color: #afb8b4;
  font-size: 18px;
  line-height: 1.9;
}

.principles {
  align-self: end;
  border-top: 1px solid var(--line);
}

.principles > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.principles span {
  color: var(--muted);
  font-family: "Cascadia Code", monospace;
  font-size: 10px;
}

.principles strong {
  font-size: 15px;
  font-weight: 500;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 90px;
}

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

.contact-links a {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, background 180ms ease;
}

.contact-links a:hover {
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.025);
}

.contact-links a > span {
  font-size: 18px;
}

.contact-links small {
  color: var(--muted);
}

.contact-links b {
  color: var(--green);
  font-size: 20px;
  font-weight: 400;
}

footer {
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(32px, calc((100% - var(--max-width)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  font-size: 10px;
}

.back-top {
  justify-self: end;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.notice-drawer {
  position: fixed;
  z-index: 220;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100%;
  padding: 34px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #0b0f10;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(.2,.8,.2,1);
}

.notice-drawer.open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  z-index: 210;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.drawer-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.drawer-head h2 {
  margin: 8px 0 0;
  font-size: 34px;
  font-weight: 550;
}

.close-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.status-banner {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 5px 10px;
  margin: 42px 0 18px;
  padding: 17px;
  border: 1px solid rgba(105, 240, 174, 0.25);
  background: rgba(105, 240, 174, 0.04);
}

.status-banner small {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
}

.notice-drawer article {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.notice-drawer time {
  color: var(--green);
  font-family: "Cascadia Code", monospace;
  font-size: 9px;
}

.notice-drawer h3 {
  margin: 9px 0;
  font-size: 17px;
}

.notice-drawer article p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tip-dialog {
  position: fixed;
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 38px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  background: #0d1112;
  color: var(--text);
}

.tip-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.tip-dialog .close-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

.tip-dialog h2 {
  margin: 9px 0;
  font-size: 30px;
}

.tip-dialog p {
  color: var(--muted);
}

.tip-addresses {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.tip-address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.tip-address > div {
  min-width: 0;
}

.tip-address strong,
.tip-address small {
  display: block;
}

.tip-address strong {
  margin-bottom: 5px;
  color: var(--amber);
  font-size: 12px;
}

.tip-address small {
  color: #c8d0cd;
  font-family: "Cascadia Code", monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
  user-select: all;
}

.tip-address small::selection {
  background: var(--green);
  color: #06100b;
}

.copy-address {
  min-width: 54px;
  height: 34px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}

.copy-address:hover {
  border-color: var(--green);
  color: var(--green);
}

.copy-address:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.chat-avatar {
  overflow: hidden;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toast {
  position: fixed;
  z-index: 300;
  right: 24px;
  bottom: 24px;
  max-width: 320px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  background: #151b1c;
  color: #dce2df;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 11, 12, 0.96);
  }

  .nav-links.open {
    display: flex;
  }

  .header-actions {
    grid-column: 2;
  }

  .menu-button {
    display: block;
  }

  .developer-popover {
    top: 0;
    left: 110px;
    transform: translate(0, 8px);
  }

  .developer-menu:hover .developer-popover,
  .developer-menu:focus-within .developer-popover {
    transform: translate(0, 0);
  }

  .conversation-stage,
  .models-layout,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .split-heading,
  .sources-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-intro {
    max-width: 680px;
    margin-top: 0;
  }

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

  .chat-window {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .context-panel {
    min-height: 500px;
  }

  .models-copy {
    position: static;
  }

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

  .source-flow {
    grid-template-columns: 1fr 70px 180px 70px 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 0 14px;
  }

  .brand > span:last-child {
    display: none;
  }

  .tip-button {
    width: 34px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .tip-button::before {
    content: "¥";
    font-size: 13px;
  }

  .hero {
    min-height: 92svh;
    align-items: flex-end;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-bottom: 118px;
  }

  .hero h1 {
    font-size: clamp(40px, 11.5vw, 52px);
    line-height: 0.94;
    white-space: nowrap;
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 14px;
  }

  .hero-actions {
    gap: 18px;
    margin-top: 20px;
  }

  .hero-status {
    right: 16px;
    bottom: 24px;
    left: 16px;
    flex-wrap: wrap;
  }

  .scroll-cue {
    display: none;
  }

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

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-intro {
    grid-column: 1;
    margin-top: 4px;
  }

  .section h2 {
    font-size: 38px;
  }

  .conversation-stage {
    margin-top: 48px;
  }

  .chat-window {
    min-height: 0;
  }

  .chat-body {
    min-height: 510px;
    padding: 18px;
  }

  .message {
    max-width: 94%;
  }

  .price-plan {
    grid-template-columns: 1fr;
  }

  .chat-composer {
    margin-bottom: 18px;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .capability-item {
    min-height: 280px;
  }

  .models-layout {
    gap: 60px;
  }

  .model-row {
    grid-template-columns: 42px 1fr;
    padding: 18px 0;
  }

  .model-value {
    grid-column: 2;
  }

  .sources-section {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .sources-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sources-heading h2 {
    grid-column: 1;
  }

  .source-flow {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 54px 0;
  }

  .source-column,
  .align-right {
    text-align: center;
  }

  .flow-line {
    width: 1px;
    height: 42px;
    justify-self: center;
  }

  .flow-line span {
    top: -30%;
    left: 0;
    width: 1px;
    height: 30%;
    animation-name: flowPulseVertical;
  }

  @keyframes flowPulseVertical {
    to { top: 110%; }
  }

  .source-footnotes {
    grid-template-columns: 1fr;
  }

  .about-section,
  .contact-section {
    gap: 58px;
  }

  .about-statement > p:last-child {
    font-size: 15px;
  }

  .contact-links a {
    grid-template-columns: 1fr auto;
  }

  .contact-links small {
    display: none;
  }

  footer {
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding: 30px 16px;
  }

  footer p {
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0;
  }

  .notice-drawer {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
