:root {
  --ink: #f7f8fa;
  --muted: #9aa5b2;
  --panel: #111820;
  --panel-2: #17212b;
  --line: rgba(255,255,255,.09);
  --accent: #d7ff38;
  --accent-dark: #161c00;
  --danger: #ff817a;
  --shadow: 0 30px 90px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #080c11; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(215,255,56,.08), transparent 26rem),
    linear-gradient(135deg, #080c11 0%, #0c1218 58%, #101820 100%);
  font-family: "DM Sans", system-ui, sans-serif;
}
button, textarea, input { font: inherit; }
button { cursor: pointer; }

.smartquote-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, .95fr) minmax(480px, 1.05fr); }
.brand-panel { padding: clamp(32px, 5vw, 76px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.brand-panel::after { content: ""; position: absolute; width: 360px; height: 360px; left: -180px; bottom: -190px; border: 1px solid rgba(215,255,56,.14); border-radius: 50%; box-shadow: 0 0 0 70px rgba(215,255,56,.025), 0 0 0 140px rgba(215,255,56,.018); pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 13px; width: fit-content; color: inherit; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--accent); border-radius: 12px 4px 12px 4px; color: var(--accent); font: 800 16px/1 Manrope, sans-serif; letter-spacing: -1px; transform: skew(-4deg); }
.brand strong, .brand small { display: block; font-family: Manrope, sans-serif; letter-spacing: .12em; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .31em; }
.brand-copy { max-width: 610px; margin: auto 0; padding: 70px 0; }
.eyebrow { margin: 0 0 22px; color: var(--accent); font: 700 12px/1 Manrope, sans-serif; letter-spacing: .2em; }
.eyebrow span { display: inline-block; width: 28px; height: 2px; margin: 0 10px 3px 0; background: var(--accent); }
.brand-copy h1 { max-width: 590px; margin: 0; font: 800 clamp(42px, 5.2vw, 74px)/1.02 Manrope, sans-serif; letter-spacing: -.055em; }
.brand-copy h1 em { display: block; color: var(--accent); font-style: normal; }
.brand-copy > p:last-child { max-width: 550px; margin: 28px 0 0; color: #b1bac5; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; }
.trust-row { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 27px; border-top: 1px solid var(--line); }
.trust-row > div { display: flex; align-items: center; gap: 10px; }
.trust-row > div > span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(215,255,56,.45); border-radius: 50%; color: var(--accent); font-size: 12px; }
.trust-row p { margin: 0; }
.trust-row strong, .trust-row small { display: block; }
.trust-row strong { font-size: 12px; }
.trust-row small { margin-top: 3px; color: #75818e; font-size: 10px; }
.brand-foot { margin: 24px 0 0; color: #596572; font-size: 11px; }
.brand-foot span { color: #7e8995; }

.chat-card { align-self: center; width: min(630px, calc(100% - 64px)); height: min(790px, calc(100vh - 64px)); min-height: 620px; margin: 32px auto; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: rgba(17,24,32,.94); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.chat-header { min-height: 82px; padding: 18px 22px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.assistant-avatar, .message-avatar { display: grid; place-items: center; flex: 0 0 auto; color: #0d1400; background: var(--accent); font: 800 15px Manrope, sans-serif; }
.assistant-avatar { width: 44px; height: 44px; border-radius: 12px; }
.chat-header h2 { margin: 0 0 5px; font: 700 15px Manrope, sans-serif; }
.chat-header p { margin: 0; color: var(--muted); font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #55e67a; box-shadow: 0 0 0 3px rgba(85,230,122,.1); }
.restart-button { width: 36px; height: 36px; margin-left: auto; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 23px; transition: .2s; }
.restart-button:hover { color: var(--ink); background: rgba(255,255,255,.06); transform: rotate(-30deg); }
.progress-wrap { padding: 15px 24px 13px; background: rgba(255,255,255,.018); border-bottom: 1px solid var(--line); }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 9px; color: #788492; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.progress-copy span:last-child { color: #9ba5af; letter-spacing: 0; font-weight: 500; text-transform: none; }
.progress-track { height: 3px; overflow: hidden; border-radius: 3px; background: #27313b; }
.progress-track span { display: block; width: 8%; height: 100%; border-radius: inherit; background: var(--accent); transition: width .45s ease; }
.messages { flex: 1; overflow-y: auto; padding: 25px 23px 12px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #33404d transparent; }
.message-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 17px; animation: enter .25s ease both; }
.message-row.user { justify-content: flex-end; }
.message-row.user .message-avatar { display: none; }
.message-avatar { width: 27px; height: 27px; border-radius: 8px; font-size: 10px; }
.message-bubble { max-width: 82%; padding: 12px 15px; border-radius: 5px 16px 16px 16px; color: #d9dee4; background: #1b2631; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.user .message-bubble { color: #151a03; background: var(--accent); border-radius: 16px 5px 16px 16px; font-weight: 500; }
.error .message-bubble { color: #ffd0cd; border: 1px solid rgba(255,129,122,.25); background: rgba(255,129,122,.09); }
.typing { display: flex; gap: 4px; padding: 16px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #82909e; animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .13s; }.typing i:nth-child(3) { animation-delay: .26s; }
.composer { margin: 0 20px; padding: 8px 8px 8px 16px; display: flex; align-items: flex-end; gap: 8px; border: 1px solid #303c47; border-radius: 16px; background: #0d141b; transition: .2s; }
.composer:focus-within { border-color: rgba(215,255,56,.55); box-shadow: 0 0 0 3px rgba(215,255,56,.06); }
.composer textarea { flex: 1; max-height: 110px; min-height: 40px; padding: 10px 0 7px; resize: none; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; line-height: 1.45; }
.composer textarea::placeholder { color: #66727e; }
.send-button { flex: 0 0 auto; width: 42px; height: 42px; border: 0; border-radius: 12px; color: #121700; background: var(--accent); font-size: 20px; font-weight: 800; transition: .18s; }
.send-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.send-button:disabled { cursor: not-allowed; opacity: .4; transform: none; }
.privacy-note { margin: 10px 0 14px; text-align: center; color: #606c78; font-size: 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }

@media (max-width: 900px) {
  .smartquote-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: auto; padding: 26px 24px 40px; }
  .brand-copy { padding: 60px 0 42px; }
  .brand-copy h1 { font-size: clamp(38px, 10vw, 62px); }
  .brand-copy > p:last-child { font-size: 16px; }
  .brand-foot { display: none; }
  .chat-card { width: calc(100% - 32px); height: 720px; min-height: 580px; margin: 0 auto 28px; }
}
@media (max-width: 520px) {
  .brand-panel { padding: 22px 18px 32px; }
  .brand-copy { padding: 45px 0 34px; }
  .brand-copy h1 { font-size: 39px; }
  .brand-copy > p:last-child { margin-top: 20px; line-height: 1.6; }
  .trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .chat-card { width: 100%; height: min(760px, 100dvh); margin: 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 22px 22px 0 0; }
  .messages { padding-right: 16px; padding-left: 16px; }
  .message-bubble { max-width: 88%; }
  .composer { margin-right: 14px; margin-left: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
