:root {
  --ink: #142238;
  --muted: #687589;
  --paper: #f4f6f2;
  --panel: #ffffff;
  --line: #dce2df;
  --lime: #d6ed61;
  --coral: #f47e68;
  --blue: #3158a8;
  --shadow: 0 18px 50px rgba(20, 34, 56, .08);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Space Grotesk", sans-serif; }
body:before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .3; background-image: radial-gradient(#c7d0ca 0.7px, transparent 0.7px); background-size: 18px 18px; }
button, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { position: relative; max-width: 1420px; min-height: 100vh; margin: auto; padding: 0 5vw; }
.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); background: var(--lime); font-family: "DM Mono", monospace; font-size: 15px; }
.status-pill { display: flex; align-items: center; gap: 9px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4aa37b; box-shadow: 0 0 0 4px rgba(74,163,123,.12); }
.workspace { display: grid; grid-template-columns: minmax(280px, .84fr) minmax(450px, 1.16fr); gap: clamp(45px, 8vw, 135px); padding: 90px 0 64px; align-items: start; }
.intro { padding-top: 22px; }
.eyebrow, .section-kicker { margin: 0; color: var(--blue); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .09em; font-weight: 500; }
.eyebrow span { color: #aab4b0; padding: 0 8px; }
h1 { margin: 23px 0 23px; font-size: clamp(48px, 6vw, 78px); line-height: .98; letter-spacing: -.075em; font-weight: 600; }
h1 em { color: var(--coral); font-style: normal; }
.intro-copy { max-width: 365px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.prompt-grid { display: grid; gap: 10px; margin-top: 62px; max-width: 390px; }
.prompt-card { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; padding: 15px 16px; text-align: left; color: var(--ink); background: rgba(255,255,255,.54); border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.prompt-card:hover { transform: translateX(5px); border-color: var(--ink); background: var(--panel); }
.prompt-number { color: var(--coral); font-family: "DM Mono", monospace; font-size: 11px; }
.prompt-card span:nth-child(2) { font-size: 13px; font-weight: 600; }
.prompt-arrow { color: var(--muted); font-size: 18px; }
.chat-panel { min-width: 0; min-height: 610px; display: flex; flex-direction: column; background: var(--panel); box-shadow: var(--shadow); border: 1px solid #e5eae7; }
.chat-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 27px 30px 22px; border-bottom: 1px solid var(--line); }
.chat-header h2 { margin: 8px 0 0; font-size: 19px; letter-spacing: -.04em; }
.icon-button { width: 34px; height: 34px; color: var(--muted); background: transparent; border: 1px solid var(--line); font-size: 21px; line-height: 1; }
.icon-button:hover { color: var(--ink); border-color: var(--ink); }
.messages { flex: 1; overflow-y: auto; min-height: 350px; max-height: 500px; padding: 25px 30px; }
.welcome-message { display: flex; align-items: center; gap: 13px; color: #a0aaa8; font-family: "DM Mono", monospace; font-size: 11px; }
.welcome-icon { display: grid; place-items: center; width: 24px; height: 24px; color: var(--ink); background: var(--lime); font-size: 18px; }
.message { display: flex; gap: 12px; margin-bottom: 23px; animation: rise .28s ease both; }
.message.user { justify-content: flex-end; }
.message-bubble { max-width: 82%; padding: 14px 17px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.message.assistant .message-bubble { background: #f0f3f0; }
.message.user .message-bubble { color: #fff; background: var(--ink); }
.message-meta { align-self: flex-end; color: #9aa5a2; font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 17px; background: #f0f3f0; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }.typing i:nth-child(3) { animation-delay: .3s; }
.composer { margin: 0 20px 20px; padding: 12px 13px 10px 17px; border: 1px solid var(--line); background: #fbfcfa; }
textarea { display: block; width: 100%; resize: none; min-height: 28px; max-height: 120px; padding: 3px 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 14px; line-height: 1.5; }
textarea::placeholder { color: #9aa5a2; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; color: #a0aaa8; font-family: "DM Mono", monospace; font-size: 9px; }
#send-button { display: flex; align-items: center; gap: 13px; padding: 10px 14px 10px 16px; color: var(--ink); background: var(--lime); border: 0; font-size: 12px; font-weight: 700; }
#send-button:hover { background: #c4e34a; }#send-button:disabled { opacity: .5; cursor: wait; }.send-icon { font-size: 17px; }
.footer { display: flex; align-items: center; gap: 12px; padding-bottom: 28px; color: #99a39f; font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }.footer-line { width: 35px; height: 1px; background: var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } } @keyframes blink { 0%,80%,100% { opacity: .3; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
@media (max-width: 800px) { .app-shell { padding: 0 20px; }.topbar { height: 72px; }.workspace { display: block; padding: 55px 0 40px; }.intro { padding: 0; }.intro-copy { max-width: 440px; }h1 { font-size: clamp(48px, 14vw, 70px); }.prompt-grid { margin: 35px 0 48px; }.chat-panel { min-height: 570px; }.footer { padding-bottom: 20px; } }
@media (max-width: 480px) { .status-pill span:last-child { display: none; }.chat-header { padding: 22px 18px 18px; }.messages { padding: 20px 18px; }.composer { margin: 0 12px 12px; }.message-bubble { max-width: 90%; } }
