/* ============================================================
   OPONSAI — $PGPT
   Lab-white restraint. The bar stays at 87%.
   ============================================================ */

:root {
  --bg: #FAFAF8;
  --panel: #EFEFEC;
  --ink: #202124;
  --teal: #0FA47F;        /* buttons, borders, fills, progress bar only */
  --teal-text: #0B7A5F;   /* teal as TEXT on light backgrounds (4.7:1) */
  --violet: #7C6FF0;      /* decorative only */
  --violet-text: #5F51D8; /* violet as TEXT on light backgrounds */
  --mist: #9AA0A6;        /* decorative + dark-background text only */
  --grey-text: #5A616B;   /* secondary TEXT on light backgrounds */
  --hairline: rgba(32, 33, 36, 0.10);
  --white: #FFFFFF;
  --radius: 20px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --tape-h: 36px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--tape-h) + var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  padding-top: var(--tape-h);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; }

a { color: var(--teal-text); text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  transition: top 150ms ease;
}

.skip-link:focus { top: calc(var(--tape-h) + 8px); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow { max-width: 760px; }

.section { padding: 112px 0; }

.section-alt { background: var(--panel); }

.section-head { max-width: 640px; margin-bottom: 56px; }

.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }

.section-sub { color: var(--grey-text); margin-top: 12px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--teal-text);
  margin-bottom: 16px;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: #0C8A6B; transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.btn-ghost { background: transparent; color: var(--teal-text); border-color: transparent; }
.btn-ghost:hover { background: rgba(15, 164, 127, 0.08); }

.btn-small { padding: 9px 18px; font-size: 13px; }

/* ---------- 1. Ticker tape ---------- */

.tape {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--tape-h);
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  z-index: 60;
  display: flex;
  align-items: center;
}

.tape-track {
  display: inline-flex;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  animation: tape-scroll 40s linear infinite;
  will-change: transform;
}

.tape-track .tape-sep { color: var(--mist); padding: 0 18px; }

@keyframes tape-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 2. Navbar ---------- */

.navbar {
  position: sticky;
  top: var(--tape-h);
  z-index: 50;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-block;
}

.logo-img-small { width: 22px; height: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active { color: var(--teal-text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 150ms ease, opacity 150ms ease;
}

/* ---------- 3. Hero ---------- */

.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 800px;
  background: radial-gradient(circle at center, rgba(15, 164, 127, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

.hero-dots { position: absolute; inset: 0; pointer-events: none; }

.hdot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.35;
  animation: drift 14s ease-in-out infinite;
}

.hdot:nth-child(1) { top: 18%; left: 8%;  animation-delay: 0s; }
.hdot:nth-child(2) { top: 65%; left: 15%; animation-delay: -3s; }
.hdot:nth-child(3) { top: 30%; left: 46%; animation-delay: -6s; }
.hdot:nth-child(4) { top: 75%; left: 60%; animation-delay: -9s; }
.hdot:nth-child(5) { top: 22%; left: 85%; animation-delay: -5s; }
.hdot:nth-child(6) { top: 58%; left: 92%; animation-delay: -11s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(14px, -18px); }
  50%      { transform: translate(-10px, -30px); }
  75%      { transform: translate(-18px, -8px); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subhead {
  margin-top: 24px;
  max-width: 520px;
  color: var(--ink);
}

.subhead strong { font-family: var(--font-mono); font-weight: 500; color: var(--teal-text); }

.ca-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--white);
}

.ca-text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46vw;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-side { display: flex; flex-direction: column; gap: 28px; }

/* AGI bar */

.agi-block {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.agi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--grey-text);
  margin-bottom: 14px;
}

.agi-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--panel);
  overflow: visible;
}

.agi-fill {
  position: relative;
  width: 87%;
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
  overflow: hidden;
}

.agi-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 3.2s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

.agi-value {
  position: absolute;
  right: 0;
  top: -26px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal-text);
}

.agi-caption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--grey-text);
}

/* Hero video */

.hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(15, 164, 127, 0.10);
}

/* ---------- 3b. Model Card (anti-scam) ---------- */

.section-modelcard { padding: 8px 0 88px; }

.model-card {
  background: var(--panel);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
}

.model-card h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  margin-bottom: 24px;
}

.mc-ca-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.mc-ca {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 16px 22px;
  font-family: var(--font-mono);
  font-size: clamp(15px, 2.4vw, 24px);
  word-break: break-all;
  line-height: 1.5;
}

.mc-copy { min-height: 52px; }

.mc-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.mc-btn {
  flex: 1 1 220px;
  min-height: 52px;
  font-size: 16px;
}

.mc-warning {
  color: var(--grey-text);
  font-size: 15px;
  max-width: 840px;
}

/* ---------- Mobile sticky CA bar ---------- */

.sticky-ca {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.sticky-ca.suppressed { display: none !important; }

.sticky-ticker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  flex: none;
}

.sticky-addr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  opacity: 0.85;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  flex: none;
}

.sticky-close {
  background: none;
  border: none;
  color: #fff;
  opacity: 0.7;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  flex: none;
}

/* ---------- 4. Trust bar ---------- */

.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}

.trust-bar p {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--grey-text);
  font-weight: 500;
}

/* ---------- 5. Chat — Talk to PONS-5 ---------- */

.chat-panel {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.chat-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey-text);
}

.chat-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--teal-text);
}

.chat-status .tdots span {
  animation: think-blink 1.2s infinite;
}

.chat-status .tdots span:nth-child(2) { animation-delay: 0.2s; }
.chat-status .tdots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes think-blink {
  0%, 60%, 100% { opacity: 0.2; }
  30% { opacity: 1; }
}

.chat-log {
  height: 420px;
  overflow-y: auto;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg);
  scroll-behavior: smooth;
}

.msg { display: flex; gap: 12px; max-width: 82%; }

.msg-bot { align-self: flex-start; }

.msg-user { align-self: flex-end; flex-direction: row-reverse; }

.avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: var(--white);
  overflow: hidden;
  margin-top: 2px;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.65;
}

.msg-bot .bubble {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top-left-radius: 4px;
}

.msg-user .bubble {
  background: var(--panel);
  border-top-right-radius: 4px;
}

.chat-inputrow {
  position: relative;
  padding: 16px 22px 6px;
  border-top: 1px solid var(--hairline);
  background: var(--white);
}

.fake-input {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey-text);
  cursor: not-allowed;
}

.fake-input::placeholder { color: var(--grey-text); }

.fake-input.shake { animation: shake 300ms ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.chat-tooltip {
  position: absolute;
  bottom: calc(100% - 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  max-width: 90vw;
  z-index: 5;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 22px 18px;
  background: var(--white);
}

.chip {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, opacity 150ms ease;
}

.chip:hover:not([aria-disabled="true"]) {
  border-color: var(--teal-text);
  background: rgba(15, 164, 127, 0.06);
}

.chip[aria-disabled="true"] { opacity: 0.45; cursor: default; }

.chip.asked { color: var(--grey-text); }

.chip.asked .chip-check { color: var(--teal-text); margin-right: 5px; }

.chat-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 22px 16px;
  background: var(--white);
}

#chat-reset {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ---------- 6. Research ---------- */

.paper-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.paper-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.paper-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(32, 33, 36, 0.07);
}

.paper-id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--violet-text);
}

.paper-card h3 { font-size: 20px; font-weight: 600; }

.paper-abstract { color: var(--grey-text); font-size: 14.5px; }

.paper-link {
  align-self: flex-start;
  margin-top: 8px;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey-text);
  cursor: not-allowed;
  padding: 0;
}

/* ---------- 7. Alignment terminal ---------- */

.terminal-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.terminal-window {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px rgba(32, 33, 36, 0.10);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--hairline);
}

.tdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mist);
  opacity: 0.5;
}

.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--grey-text);
}

.terminal-screen {
  margin: 0;
  padding: 24px;
  background: var(--ink);
  min-height: 440px;
  max-height: 440px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #E8EAED;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Dark background — light token colours are the accessible ones here */
.terminal-screen .tk-c { color: var(--mist); }
.terminal-screen .tk-k { color: #9D93FF; }
.terminal-screen .tk-s { color: var(--teal); }
.terminal-screen .tk-n { color: var(--teal); }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--teal);
  vertical-align: text-bottom;
  animation: cursor-blink 1s steps(1) infinite;
}

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.terminal-copy h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 18px; }

.terminal-copy p { color: var(--ink); }

/* ---------- 8. Safety / phases ---------- */

.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.phase-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  font-size: 14.5px;
}

.phase-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--teal-text);
  margin-bottom: 14px;
}

/* ---------- 9. Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
  background: var(--panel);
}

.team-card h3 { font-size: 17px; font-weight: 600; }

.team-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--teal-text);
  margin: 6px 0 16px;
}

.team-quote { font-size: 14px; color: var(--ink); }

/* ---------- 10. Acquire ---------- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--violet-text);
  margin-bottom: 12px;
}

.step-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }

.step-card p { font-size: 14.5px; }

.step-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

.step-actions .ca-text { max-width: 180px; }

/* ---------- 11. FAQ ---------- */

.faq-list details {
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0;
}

.faq-list details:first-child { border-top: 1px solid var(--hairline); }

.faq-list summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--teal-text);
  font-size: 18px;
  flex: none;
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list details p { margin-top: 14px; color: var(--ink); font-size: 15px; max-width: 620px; }

/* ---------- 12. Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 64px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a { color: var(--ink); font-weight: 500; font-size: 14px; }
.footer-links a:hover { color: var(--teal-text); }

.footer-ca {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-text);
  word-break: break-all;
}

.disclaimer {
  font-size: 12px;
  line-height: 1.8;
  color: var(--grey-text);
  max-width: 880px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  padding: 12px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 100;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid, .terminal-grid { grid-template-columns: 1fr; gap: 48px; }
  .paper-grid { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .step-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    padding: 12px 20px 20px;
  }

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

  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--hairline); }

  .nav-cta { margin-top: 16px; }

  .hero { padding: 72px 0 64px; }

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

  .chat-log { height: 360px; }

  .msg { max-width: 92%; }

  .ca-text { max-width: 56vw; }

  .sticky-ca:not([hidden]) { display: flex; }

  .toast { bottom: 92px; }
}

@media (max-width: 400px) {
  .btn { padding: 13px 20px; font-size: 14px; }
  .chat-header { justify-content: center; }
}

/* ---------- Reduced motion ---------- */

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

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

  .tape-track { animation: none; }

  .hero-dots { display: none; }

  .agi-shimmer { animation: none; display: none; }

  .fake-input.shake { animation: none; }

  .chat-log { scroll-behavior: auto; }

  .chat-status .tdots span { animation: none; }

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