:root {
  --black: #050505;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --paper: #f4f0e8;
  --ink: #111111;
  --line: rgba(17, 17, 17, 0.12);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(18px, 4vw, 54px);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.96), rgba(0,0,0,0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  color: var(--white);
}

.no-word {
  font-family: "Cinzel", "Trajan Pro", "Times New Roman", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(4px, 1vw, 12px);
  flex-wrap: wrap;
  width: 100%;
}

.nav a {
  position: relative;
  isolation: isolate;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.015em;
  padding: 12px 14px;
  border-radius: 999px;
  transition: color 180ms ease, transform 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 180ms ease, transform 220ms ease;
}

.nav a::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: translateY(4px) scaleX(0);
  transform-origin: left;
  transition: opacity 180ms ease, transform 220ms ease;
}

.nav a:hover {
  color: white;
  transform: translateY(-1px);
}

.nav a:hover::after {
  opacity: 1;
  transform: scale(1);
}

.nav a:hover::before {
  opacity: 0.72;
  transform: translateY(0) scaleX(1);
}

.nav .nav-login {
  margin-left: auto;
  color: rgba(255,255,255,0.92);
}

.nav .nav-signup {
  color: #050505;
  background: white;
  padding-inline: 18px;
  box-shadow: 0 12px 30px rgba(255,255,255,0.14);
}

.nav .nav-signup::before,
.nav .nav-signup::after {
  display: none;
}

.nav .nav-signup:hover {
  color: #050505;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.home {
  min-height: 100vh;
  background: #050505;
}

.hero {
  position: relative;
  min-height: 100vh;
  background: #050505;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-fallback {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.64), rgba(0,0,0,0.08)),
    radial-gradient(circle at 18% 20%, rgba(15,107,95,0.62), transparent 28rem),
    radial-gradient(circle at 74% 16%, rgba(190,93,59,0.5), transparent 24rem),
    linear-gradient(135deg, #111 0%, #24201b 52%, #0f6b5f 100%);
}

.content-page,
.privacy-page,
.enterprise-page,
.terms-page {
  min-height: 100vh;
  padding-top: 76px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(244,240,232,0.98)),
    var(--paper);
}

.login-page {
  min-height: 100vh;
  padding-top: 76px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.70), rgba(0,0,0,0.28)),
    url("/assets/login-bg.jpg") center / cover no-repeat,
    radial-gradient(circle at 18% 22%, rgba(15,107,95,0.58), transparent 28rem),
    radial-gradient(circle at 78% 18%, rgba(190,93,59,0.42), transparent 24rem),
    linear-gradient(135deg, #111 0%, #24201b 52%, #0f6b5f 100%);
}

.product-page {
  min-height: 100vh;
}

.login-shell,
.content-shell,
.privacy-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 54px;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.login-copy h1,
.content-card h1 {
  margin: 0;
  font-size: clamp(52px, 9vw, 116px);
  line-height: 0.86;
  letter-spacing: 0;
}

.login-copy p,
.content-card p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #68635d;
  font-size: 18px;
  line-height: 1.7;
}

.login-copy h1 {
  color: white;
  text-shadow: 0 18px 60px rgba(0,0,0,0.40);
}

.login-copy p {
  color: rgba(255,255,255,0.78);
  text-shadow: 0 10px 36px rgba(0,0,0,0.32);
}

.login-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 26px 90px rgba(17, 17, 17, 0.12);
}

.login-card {
  padding: 24px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(18px);
}

.login-card h2 {
  margin: 0 0 6px;
  font-size: 30px;
}

.login-card .hint {
  margin: 0 0 20px;
  color: #68635d;
  line-height: 1.55;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  font-weight: 760;
}

.field input {
  min-height: 48px;
  border: 1px solid rgba(17,17,17,0.16);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  background: white;
}

.submit {
  width: 100%;
  min-height: 48px;
  border: 1px solid #050505;
  border-radius: 12px;
  background: #050505;
  color: white;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.submit:hover {
  background: #242424;
}

.error {
  margin: 0 0 14px;
  color: #b42318;
  font-weight: 700;
}

.small {
  margin: 14px 0 0;
  color: #68635d;
  font-size: 13px;
  line-height: 1.55;
}

.content-card {
  padding: clamp(26px, 6vw, 64px);
}

.privacy-shell {
  width: min(1120px, calc(100% - 40px));
}

.page-image-hero {
  width: 100%;
  height: clamp(170px, 24vw, 285px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #111;
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.12);
  margin-bottom: 18px;
}

.page-image-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-image-fallback {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.48), rgba(0,0,0,0.08)),
    radial-gradient(circle at 18% 20%, rgba(15,107,95,0.64), transparent 26rem),
    radial-gradient(circle at 82% 12%, rgba(186,103,66,0.48), transparent 22rem),
    linear-gradient(135deg, #15130f, #2c2923 54%, #0f6b5f);
}

.enterprise-image-fallback {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.52), rgba(0,0,0,0.10)),
    radial-gradient(circle at 22% 26%, rgba(15,107,95,0.58), transparent 26rem),
    radial-gradient(circle at 78% 18%, rgba(106,95,201,0.40), transparent 22rem),
    linear-gradient(135deg, #111, #26231f 50%, #173f3a);
}

.terms-image-fallback {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.54), rgba(0,0,0,0.08)),
    radial-gradient(circle at 20% 22%, rgba(15,107,95,0.54), transparent 24rem),
    radial-gradient(circle at 80% 12%, rgba(190,93,59,0.42), transparent 22rem),
    linear-gradient(135deg, #12100d, #2f2b25 52%, #46382b);
}

.subscriptions-image-fallback {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.52), rgba(0,0,0,0.08)),
    radial-gradient(circle at 24% 22%, rgba(15,107,95,0.58), transparent 25rem),
    radial-gradient(circle at 78% 14%, rgba(186,103,66,0.42), transparent 23rem),
    linear-gradient(135deg, #111, #2a2822 48%, #0e5d54);
}

.download-image-fallback {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.56), rgba(0,0,0,0.10)),
    radial-gradient(circle at 18% 28%, rgba(15,107,95,0.52), transparent 24rem),
    radial-gradient(circle at 76% 20%, rgba(106,95,201,0.34), transparent 24rem),
    linear-gradient(135deg, #100f0d, #27231f 52%, #123b38);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 22px 72px rgba(17,17,17,0.09);
  padding: clamp(22px, 4vw, 36px);
}

.plan-card.featured {
  background:
    linear-gradient(135deg, rgba(15,107,95,0.10), rgba(255,255,255,0.82)),
    rgba(255,255,255,0.82);
  border-color: rgba(15,107,95,0.28);
}

.plan-card h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 0.95;
  letter-spacing: 0;
}

.plan-card p,
.plan-card li {
  color: #5f5a53;
  line-height: 1.72;
}

.plan-card ul {
  margin: 18px 0 24px;
  padding-left: 20px;
}

.product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(17,17,17,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.84);
  color: #111;
  font-weight: 850;
  text-decoration: none;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.product-button:hover {
  transform: translateY(-1px);
  background: white;
  border-color: rgba(17,17,17,0.24);
}

.product-button.dark {
  background: #111;
  border-color: #111;
  color: white;
}

.product-button.dark:hover {
  background: #252525;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.inline-actions {
  margin-top: 18px;
}

.enterprise-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.enterprise-form label {
  display: grid;
  gap: 8px;
  color: #37332e;
  font-weight: 780;
}

.enterprise-form .wide {
  grid-column: 1 / -1;
}

.enterprise-form input,
.enterprise-form select,
.enterprise-form textarea {
  width: 100%;
  border: 1px solid rgba(17,17,17,0.14);
  border-radius: 13px;
  background: rgba(255,255,255,0.86);
  color: #111;
  font: inherit;
  padding: 12px 13px;
  outline: none;
}

.enterprise-form textarea {
  resize: vertical;
}

.enterprise-form input:focus,
.enterprise-form select:focus,
.enterprise-form textarea:focus {
  border-color: rgba(15,107,95,0.45);
  box-shadow: 0 0 0 4px rgba(15,107,95,0.08);
}

.privacy-hero {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.66)),
    var(--paper);
  box-shadow: 0 26px 90px rgba(17, 17, 17, 0.10);
  padding: clamp(28px, 7vw, 76px);
  margin-bottom: 18px;
}

.privacy-kicker {
  color: #0f6b5f;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.privacy-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(48px, 9vw, 116px);
  line-height: 0.86;
  letter-spacing: 0;
}

.privacy-hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #68635d;
  font-size: 18px;
  line-height: 1.72;
}

.privacy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.privacy-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  color: #3f3a34;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 750;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.privacy-toc,
.privacy-content {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 20px 70px rgba(17, 17, 17, 0.08);
}

.privacy-toc {
  position: sticky;
  top: 98px;
  padding: 18px;
}

.privacy-toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.privacy-toc a {
  display: block;
  color: #5d5750;
  text-decoration: none;
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 14px;
  line-height: 1.35;
}

.privacy-toc a:hover {
  color: #111;
  background: rgba(17,17,17,0.06);
}

.privacy-content {
  padding: clamp(22px, 5vw, 48px);
}

.privacy-section + .privacy-section {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 34px;
}

.privacy-section h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  letter-spacing: 0;
}

.privacy-section h3 {
  margin: 24px 0 8px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0;
}

.privacy-section p,
.privacy-section li {
  color: #5f5a53;
  font-size: 16px;
  line-height: 1.78;
}

.privacy-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.privacy-callout {
  border-left: 3px solid #0f6b5f;
  background: rgba(15,107,95,0.08);
  border-radius: 0 16px 16px 0;
  padding: 14px 16px;
  margin-top: 18px;
  color: #37332e;
  line-height: 1.65;
}

.privacy-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.privacy-note {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.68);
  padding: 14px;
}

.privacy-note strong {
  display: block;
  margin-bottom: 6px;
}

.privacy-note span {
  color: #5f5a53;
  font-size: 14px;
  line-height: 1.55;
}

.legal {
  position: relative;
  margin-top: 32px;
  color: #68635d;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  width: min(760px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 28px;
}

.legal p {
  margin: 0;
}

.legal p + p {
  margin-top: 8px;
}

.legal a {
  color: #111;
  font-weight: 750;
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.legal-rights {
  color: #4b4640;
  font-weight: 720;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.language-trigger {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid rgba(17,17,17,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: #111;
  font: inherit;
  font-weight: 820;
  padding: 0 12px;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(17,17,17,0.08);
}

.language-trigger:hover {
  background: white;
}

.language-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,0.54);
  backdrop-filter: blur(12px);
}

.language-modal[hidden] {
  display: none;
}

.language-panel {
  position: relative;
  width: min(720px, 100%);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(244,240,232,0.92)),
    var(--paper);
  box-shadow: 0 34px 110px rgba(0,0,0,0.36);
  padding: clamp(24px, 5vw, 46px);
}

.language-panel h2 {
  margin: 0 0 22px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.9;
  letter-spacing: 0;
}

.language-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(17,17,17,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: #111;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.language-grid button {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(17,17,17,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.74);
  color: #1e1b18;
  font: inherit;
  font-weight: 800;
  text-align: left;
  padding: 0 14px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.language-grid button:hover {
  transform: translateY(-1px);
  background: white;
  border-color: rgba(15,107,95,0.30);
}

.language-grid span {
  font-size: 22px;
}

.modal-open {
  overflow: hidden;
}

.chat-ui > .legal {
  position: fixed;
  left: 306px;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: min(860px, calc(100% - 306px - 44px));
  padding-bottom: 5px;
  font-size: 11px;
  background: transparent;
}

.chat-ui {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% -12%, rgba(15, 107, 95, 0.22), transparent 34rem),
    linear-gradient(180deg, #faf8f3 0%, #f0ece4 100%);
}

.chat-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 306px;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  background:
    linear-gradient(180deg, #151412 0%, #0b0b0a 100%),
    #10100f;
  border-right: 1px solid rgba(255,255,255,0.10);
  color: white;
  z-index: 10;
}

.chat-brand {
  padding: 8px 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 14px;
}

.chat-brand-title {
  font-size: 30px;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
}

.chat-brand-sub {
  margin-top: 8px;
  color: rgba(255,255,255,0.56);
  font-size: 13px;
}

.new-chat,
.chat-list-item,
.sidebar-footer a {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 13px;
  background: rgba(255,255,255,0.065);
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 740;
  text-align: left;
  padding: 0 13px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.new-chat {
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, rgba(15,107,95,0.96), rgba(9,74,65,0.96));
  border-color: rgba(163,236,218,0.30);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}

.new-chat:hover,
.chat-list-item:hover,
.sidebar-footer a:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
}

.new-chat:hover {
  background: linear-gradient(135deg, rgba(18,127,110,0.98), rgba(10,85,74,0.98));
}

.sidebar-label {
  color: rgba(255,255,255,0.42);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 14px 8px 10px;
}

.chat-list {
  min-height: 0;
  overflow: auto;
  flex: 1;
  padding-right: 2px;
}

.chat-list-item {
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-list-item.active {
  color: white;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.26);
}

.chat-context-menu {
  position: fixed;
  z-index: 40;
  width: 156px;
  padding: 7px;
  border: 1px solid rgba(17,17,17,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 22px 70px rgba(17,17,17,0.22);
  backdrop-filter: blur(16px);
}

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

.chat-context-menu button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #25221f;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.chat-context-menu button:hover {
  background: rgba(17,17,17,0.07);
}

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 12px;
}

.chat-main {
  min-height: 100vh;
  margin-left: 306px;
  display: grid;
  grid-template-rows: 1fr auto;
}

.chat-stage {
  min-height: 0;
  overflow: hidden;
  padding: 34px clamp(22px, 5vw, 72px) 120px;
}

.messages {
  width: min(920px, 100%);
  height: calc(100vh - 180px);
  margin: 0 auto;
  overflow: auto;
  padding-right: 8px;
}

.empty-chat {
  min-height: calc(100vh - 210px);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

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

.empty-chat h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.86;
  letter-spacing: 0;
}

.empty-chat p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #68635d;
  font-size: 18px;
  line-height: 1.7;
}

.suggestions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 30px;
}

.suggestions button {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  color: #2d2a26;
  font: inherit;
  font-weight: 760;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(17,17,17,0.07);
  transition: transform 160ms ease, background 160ms ease;
}

.suggestions button:hover {
  transform: translateY(-2px);
  background: white;
}

.message {
  display: flex;
  flex-direction: column;
  margin: 15px 0;
  animation: messageIn 180ms ease both;
}

.message.user {
  align-items: flex-end;
}

.message.assistant {
  align-items: flex-start;
}

.message-bubble {
  max-width: min(760px, 86%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 15px 17px;
  white-space: pre-wrap;
  line-height: 1.65;
  box-shadow: 0 18px 48px rgba(17,17,17,0.07);
}

.message.user .message-bubble {
  color: white;
  background: #111;
  border-color: #111;
  border-bottom-right-radius: 8px;
}

.message.assistant .message-bubble {
  color: #26231f;
  background: rgba(255,255,255,0.82);
  border-bottom-left-radius: 8px;
}

.message-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-left: 6px;
}

.message-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.64);
  color: #59544d;
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  padding: 7px 10px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.message-actions button:hover {
  transform: translateY(-1px);
  background: #111;
  color: white;
}

.composer {
  position: fixed;
  left: 306px;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  width: min(860px, calc(100% - 306px - 44px));
  margin: 0 auto;
  padding: 20px 0 26px;
  background: linear-gradient(180deg, rgba(247,244,239,0), rgba(247,244,239,0.96) 35%);
}

.composer textarea {
  flex: 1;
  max-height: 180px;
  resize: none;
  border: 1px solid rgba(17,17,17,0.14);
  border-radius: 22px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 24px 70px rgba(17,17,17,0.14);
  color: #111;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  padding: 17px 18px;
  outline: none;
}

.composer textarea:focus {
  border-color: rgba(15,107,95,0.42);
}

.composer button {
  align-self: flex-end;
  min-width: 82px;
  min-height: 56px;
  border: 1px solid #111;
  border-radius: 18px;
  background: #111;
  color: white;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.composer button:hover {
  transform: translateY(-1px);
  background: #252525;
}

.composer button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.composer .stop-button {
  min-width: 76px;
  border-color: rgba(156, 42, 42, 0.22);
  background: rgba(156, 42, 42, 0.10);
  color: #7f1d1d;
}

.composer .stop-button:hover {
  background: rgba(156, 42, 42, 0.16);
  color: #5f1717;
}

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

@media (max-width: 860px) {
  .site-header {
    position: relative;
    min-height: auto;
    align-items: flex-start;
    padding: 18px 20px;
  }

  .login-page,
  .content-page,
  .privacy-page,
  .enterprise-page,
  .terms-page,
  .product-page {
    padding-top: 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav .nav-login {
    margin-left: 0;
  }

  .login-shell {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .privacy-shell {
    padding-top: 42px;
  }

  .page-image-hero {
    height: 178px;
    border-radius: 20px;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .privacy-toc {
    position: static;
  }

  .privacy-note-grid {
    grid-template-columns: 1fr;
  }

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

  .chat-sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: auto;
  }

  .chat-main {
    margin-left: 0;
  }

  .chat-stage {
    padding: 28px 18px 130px;
  }

  .messages {
    height: auto;
    min-height: 50vh;
  }

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

  .composer {
    left: 0;
    width: calc(100% - 28px);
    padding-bottom: 18px;
  }

  .language-trigger {
    position: static;
    margin: 0 auto 12px;
  }

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

  .chat-ui > .legal {
    position: static;
    width: calc(100% - 40px);
    padding-bottom: 96px;
  }
}
