:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --surface: #ffffff;
  --surface-soft: #eef4f1;
  --ink: #111514;
  --ink-soft: #27302d;
  --muted: #66716d;
  --line: #dce5df;
  --mint: #4c9c7b;
  --cyan: #288fa3;
  --amber: #d8943d;
  --rose: #c65f65;
  --graphite: #202624;
  --chat-bg: #f3f4ee;
  --shadow: 0 22px 70px rgba(28, 36, 33, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

p,
h1,
h2,
h3 {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-loader {
  align-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(76, 156, 123, 0.18), transparent 34%),
    radial-gradient(circle at 74% 64%, rgba(40, 143, 163, 0.18), transparent 30%),
    rgba(248, 247, 241, 0.96);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 1;
  position: fixed;
  transition: opacity 320ms ease, visibility 320ms ease;
  visibility: visible;
  z-index: 100;
}

.site-loader.loader-done {
  opacity: 0;
  visibility: hidden;
}

.loader-panel {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(220, 229, 223, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr;
  min-width: min(420px, calc(100vw - 40px));
  padding: 22px;
}

.loader-panel strong {
  display: block;
  font-size: 1rem;
}

.loader-panel span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  margin-top: 4px;
}

.loader-bar {
  background: #e8eee9;
  border-radius: 8px;
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
}

.loader-bar i {
  animation: loader-progress 1.18s ease-in-out infinite;
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--amber));
  display: block;
  height: 100%;
  width: 46%;
}

@keyframes loader-progress {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(230%);
  }
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(248, 247, 241, 0.82);
  border-bottom: 1px solid rgba(220, 229, 223, 0.76);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  min-height: 72px;
  padding: 0 32px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
.footer-brand {
  align-items: center;
  display: inline-flex;
  font-weight: 720;
  gap: 10px;
}

.brand span,
.footer-brand {
  font-size: 1rem;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 26px;
  justify-content: center;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 160ms ease;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.header-cta,
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.header-cta {
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
}

.button svg {
  height: 20px;
  width: 20px;
}

.button:hover,
.header-cta:hover,
.sidebar-new:hover,
.composer button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: #2d3632;
}

.button-ghost,
.button-plan {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(17, 21, 20, 0.18);
  color: var(--ink);
}

.button-ghost:hover,
.button-plan:hover {
  border-color: rgba(17, 21, 20, 0.42);
}

.inline-action {
  margin-top: 26px;
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 44px;
}

.nav-toggle span {
  background: var(--ink);
  border-radius: 2px;
  display: block;
  height: 2px;
  position: absolute;
  transition: transform 180ms ease;
  width: 22px;
}

.nav-toggle span:first-child {
  transform: translateY(-5px);
}

.nav-toggle span:last-child {
  transform: translateY(5px);
}

.nav-open .nav-toggle span:first-child {
  transform: rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: rotate(-45deg);
}

.hero {
  background-image:
    linear-gradient(90deg, rgba(17, 21, 20, 0.78) 0%, rgba(17, 21, 20, 0.56) 42%, rgba(17, 21, 20, 0.22) 72%, rgba(17, 21, 20, 0.08) 100%),
    url("assets/hero-product.png");
  background-position: center;
  background-size: cover;
  color: #fff;
  min-height: 86svh;
  padding: 104px 32px 68px;
  position: relative;
}

.hero-content {
  margin: 0 auto;
  max-width: var(--max);
  padding-top: 72px;
}

.eyebrow {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b7f2d7;
}

.hero h1 {
  font-size: 5.15rem;
  font-weight: 760;
  line-height: 0.98;
  max-width: 720px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  line-height: 1.75;
  margin-top: 24px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin: 54px 0 0;
  max-width: 650px;
  padding-top: 22px;
}

.hero-metrics div {
  min-width: 120px;
}

.hero-metrics dt {
  font-size: 1.8rem;
  font-weight: 760;
}

.hero-metrics dd {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  margin: 4px 0 0;
}

.trust-strip {
  align-items: center;
  background: var(--graphite);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  justify-content: center;
  min-height: 82px;
  padding: 22px 32px;
}

.trust-strip p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.trust-strip span {
  color: #f7efe0;
  font-size: 0.95rem;
  font-weight: 700;
}

.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: 104px 32px;
}

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

.section-heading h2,
.band-copy h2,
.contact-copy h2 {
  color: var(--ink);
  font-size: 2.75rem;
  font-weight: 740;
  line-height: 1.1;
}

.section-heading p:not(.eyebrow),
.band-copy p:not(.eyebrow),
.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-top: 18px;
}

.capability-grid,
.solution-grid,
.pricing-grid,
.security-grid {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

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

.capability-card,
.solution-card,
.plan,
.security-grid article,
.workflow-list article,
.contact-form,
.mini-console {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(28, 36, 33, 0.06);
}

.capability-card {
  min-height: 244px;
  padding: 24px;
}

.card-mark {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 48px;
}

.capability-card h3,
.solution-card h3,
.plan h3,
.security-grid h3,
.workflow-list h3 {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.35;
}

.capability-card p,
.solution-card p,
.security-grid p,
.workflow-list p,
.plan li {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.capability-card p,
.solution-card p,
.security-grid p,
.workflow-list p {
  margin-top: 12px;
}

.product-band {
  align-items: stretch;
  background: var(--surface-soft);
  border-block: 1px solid var(--line);
  display: grid;
  gap: 38px;
  grid-template-columns: 0.95fr 1.05fr;
  max-width: none;
  padding-inline: max(32px, calc((100% - var(--max)) / 2 + 32px));
}

.band-copy {
  align-self: center;
  max-width: 560px;
}

.workflow-list {
  display: grid;
  gap: 14px;
}

.workflow-list article {
  padding: 24px;
}

.workflow-list span {
  color: var(--amber);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.mini-console {
  align-self: center;
  background: #fbfbf8;
  display: grid;
  gap: 14px;
  min-height: 420px;
  padding: 22px;
}

.mini-console-top {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
}

.mini-console-top span {
  background: var(--mint);
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.mini-console-top strong {
  font-size: 0.95rem;
}

.mini-console-top em {
  color: var(--mint);
  font-size: 0.8rem;
  font-style: normal;
  margin-left: auto;
}

.mini-message {
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  padding: 16px;
}

.mini-message.user {
  background: var(--ink);
  color: #fff;
  justify-self: end;
  max-width: 78%;
}

.mini-message.ai {
  background: #edf5f0;
  max-width: 88%;
}

.mini-sources {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-sources span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 8px 10px;
}

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

.solution-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 28px;
}

.solution-card a {
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 760;
  margin-top: auto;
  padding-top: 24px;
}

.security-section {
  background: #f1ede5;
  border-block: 1px solid #e3d7c4;
  max-width: none;
  padding-inline: max(32px, calc((100% - var(--max)) / 2 + 32px));
}

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

.security-grid article {
  background: rgba(255, 255, 255, 0.7);
  min-height: 204px;
  padding: 24px;
}

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

.plan {
  display: flex;
  flex-direction: column;
  min-height: 442px;
  padding: 30px;
}

.featured-plan {
  border-color: rgba(76, 156, 123, 0.8);
  box-shadow: var(--shadow);
}

.plan-name {
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.price {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 780;
  margin-top: 18px;
}

.price span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.plan ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 28px 0;
  padding: 0;
}

.plan li {
  min-height: 28px;
  padding-left: 22px;
  position: relative;
}

.plan li::before {
  background: var(--mint);
  border-radius: 50%;
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  top: 10px;
  width: 7px;
}

.plan .button {
  margin-top: auto;
  width: 100%;
}

.contact-section {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: 0.9fr 1.1fr;
}

.commercial-info {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 34px;
  padding-top: 24px;
}

.commercial-info p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}

.commercial-info strong {
  color: var(--ink);
  display: inline-block;
  min-width: 82px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.contact-form label {
  color: var(--ink-soft);
  display: grid;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  outline: none;
  padding: 11px 12px;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.contact-form textarea {
  min-height: 124px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.composer textarea:focus,
.model-picker select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(40, 143, 163, 0.13);
}

.form-status {
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 22px;
}

.site-footer {
  align-items: start;
  background: var(--ink);
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  padding: 46px max(32px, calc((100% - var(--max)) / 2 + 32px));
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 22px;
  justify-content: flex-end;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 22px;
}

.chat-page {
  background: var(--chat-bg);
  min-height: 100svh;
  overflow: hidden;
}

.chat-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  height: 100svh;
}

.chat-sidebar {
  background: #141918;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px;
}

.chat-brand {
  color: #fff;
  margin-bottom: 22px;
}

.sidebar-new,
.composer button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 760;
  gap: 10px;
  justify-content: center;
  transition: background 160ms ease, transform 160ms ease;
}

.sidebar-new {
  background: #f8f7f1;
  color: var(--ink);
  min-height: 44px;
  width: 100%;
}

.sidebar-new svg,
.composer button svg {
  height: 20px;
  width: 20px;
}

.conversation-list {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.conversation-list a {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 5px;
  padding: 12px;
}

.conversation-list a.active,
.conversation-list a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.conversation-list span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: auto;
  padding: 16px;
}

.sidebar-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-top: 8px;
}

.sidebar-footer {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.sidebar-footer a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

.chat-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  min-width: 0;
  padding: 24px 28px;
}

.chat-topbar {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.chat-topbar .eyebrow {
  margin-bottom: 7px;
}

.chat-topbar h1 {
  font-size: 1.6rem;
  line-height: 1.2;
}

.model-picker {
  align-items: center;
  display: flex;
  gap: 10px;
}

.model-picker label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.model-picker select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 17px) 52% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 12px) 52% / 6px 6px no-repeat,
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  outline: none;
  padding: 0 34px 0 12px;
}

.model-status {
  align-items: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 20px;
  padding: 14px 16px;
}

.model-status strong {
  display: block;
  font-size: 0.98rem;
}

.model-status span:not(.live-pill) {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  margin-top: 3px;
}

.live-pill {
  background: #e7f4ec;
  border: 1px solid rgba(76, 156, 123, 0.28);
  border-radius: 8px;
  color: #31765d;
  font-size: 0.82rem;
  font-weight: 780;
  padding: 7px 10px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 22px auto 0;
  max-width: 920px;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 8px 26px;
  width: 100%;
}

.message {
  display: grid;
  gap: 12px;
  grid-template-columns: 36px minmax(0, 1fr);
}

.message-user {
  grid-template-columns: minmax(0, 1fr) 36px;
}

.message-user .message-avatar {
  grid-column: 2;
}

.message-user .message-bubble {
  background: var(--ink);
  color: #fff;
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  max-width: 78%;
}

.message-avatar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.message-ai .message-avatar {
  background: var(--ink);
  color: #fff;
}

.message-bubble {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(28, 36, 33, 0.06);
  line-height: 1.78;
  padding: 16px;
}

.message-bubble p {
  white-space: pre-wrap;
}

.message-meta {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.message-meta strong {
  font-size: 0.88rem;
}

.message-meta span {
  background: #edf5f0;
  border-radius: 8px;
  color: #31765d;
  font-size: 0.74rem;
  font-weight: 780;
  padding: 4px 7px;
}

.typing-dots {
  align-items: center;
  display: flex;
  gap: 6px;
  height: 28px;
}

.typing-dots i {
  animation: typing-pulse 900ms ease-in-out infinite;
  background: var(--mint);
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

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

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

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

.prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 14px;
  max-width: 920px;
  width: 100%;
}

.prompt-row button {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.9rem;
  min-height: 36px;
  padding: 0 12px;
}

.prompt-row button:hover {
  border-color: rgba(76, 156, 123, 0.58);
}

.composer {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(28, 36, 33, 0.11);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 920px;
  padding: 12px;
  width: 100%;
}

.composer textarea {
  background: transparent;
  border: 0;
  color: var(--ink);
  line-height: 1.6;
  max-height: 160px;
  min-height: 44px;
  outline: none;
  padding: 9px 4px;
  resize: none;
  width: 100%;
}

.composer button {
  background: var(--ink);
  color: #fff;
  height: 44px;
  width: 48px;
}

.legal-page {
  background: var(--paper);
}

.legal-main {
  margin: 0 auto;
  max-width: 860px;
  padding: 92px 32px 104px;
}

.legal-main h1 {
  font-size: 3rem;
  line-height: 1.1;
}

.legal-main .updated {
  color: var(--muted);
  margin-top: 14px;
}

.legal-section {
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding-top: 30px;
}

.legal-section h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.legal-section ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
}

@media (max-width: 1080px) {
  .chat-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .chat-sidebar {
    padding: 18px;
  }
}

@media (max-width: 1020px) {
  .capability-grid,
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .solution-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .chat-page {
    overflow: auto;
  }

  .chat-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100svh;
  }

  .chat-sidebar {
    min-height: auto;
  }

  .conversation-list,
  .sidebar-card {
    display: none;
  }

  .sidebar-footer {
    margin-top: 12px;
  }

  .chat-main {
    min-height: calc(100svh - 152px);
    padding: 20px;
  }

  .chat-topbar {
    align-items: start;
    flex-direction: column;
  }

  .model-picker {
    width: 100%;
  }

  .model-picker select {
    flex: 1;
  }

  .chat-messages {
    min-height: 52svh;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 12px;
    grid-template-columns: 1fr auto;
    min-height: 64px;
    padding: 0 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: rgba(248, 247, 241, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    left: 0;
    padding: 18px;
    position: absolute;
    right: 0;
    top: 64px;
  }

  .nav-open .site-nav {
    display: grid;
    gap: 18px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    background-position: 60% center;
    min-height: 82svh;
    padding: 78px 20px 44px;
  }

  .hero-content {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: 3.15rem;
    line-height: 1.05;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.72;
  }

  .hero-metrics {
    gap: 20px;
    margin-top: 34px;
  }

  .hero-metrics div {
    min-width: 92px;
  }

  .trust-strip {
    justify-content: flex-start;
    padding: 22px 20px;
  }

  .section,
  .product-band,
  .security-section {
    padding: 72px 20px;
  }

  .section-heading h2,
  .band-copy h2,
  .contact-copy h2 {
    font-size: 2.1rem;
  }

  .capability-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .mini-console {
    min-height: 360px;
  }

  .message,
  .message-user {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .message-user .message-avatar {
    grid-column: 1;
  }

  .message-user .message-bubble {
    grid-column: 2;
    justify-self: stretch;
    max-width: none;
  }

  .message-avatar {
    height: 32px;
    width: 32px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 38px 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .legal-main {
    padding: 72px 20px 86px;
  }

  .legal-main h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 460px) {
  .loader-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .loader-panel img {
    margin: 0 auto;
  }

  .chat-sidebar {
    padding: 16px;
  }

  .chat-main {
    padding: 16px;
  }

  .model-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .prompt-row {
    justify-content: flex-start;
  }

  .prompt-row button {
    width: 100%;
  }

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

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

  .site-loader {
    display: none;
  }
}
