:root {
  --bg: #08090d;
  --panel: rgba(18, 20, 29, 0.82);
  --panel-solid: #12141d;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f2ed;
  --muted: #9b9ba7;
  --purple: #a78bfa;
  --purple-strong: #8b5cf6;
  --mint: #5eead4;
  --amber: #fbbf24;
  --danger: #fb7185;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.017) 1px, transparent 1px),
    var(--bg);
  background-size: 52px 52px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.aurora {
  position: fixed;
  z-index: -1;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.13;
  pointer-events: none;
}
.aurora-one { top: -240px; left: -120px; background: var(--purple); }
.aurora-two { right: -200px; top: 34%; background: var(--mint); opacity: 0.08; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--border);
  background: rgba(8, 9, 13, 0.76);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 760; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(167, 139, 250, .45); border-radius: 10px; color: var(--purple); background: rgba(167, 139, 250, .08); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.live-indicator { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.auth-button, .user-chip { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 12px; padding: 9px 13px; background: rgba(255,255,255,.04); text-decoration: none; font-size: 13px; font-weight: 700; }
.auth-button:hover { border-color: rgba(167,139,250,.55); background: rgba(167,139,250,.1); }
.user-chip img { width: 23px; height: 23px; border-radius: 50%; }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 56px; align-items: end; padding: 82px 0 54px; }
.overline, .eyebrow { color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 800px; margin: 12px 0 16px; font-size: clamp(48px, 7vw, 84px); line-height: .98; letter-spacing: -.055em; }
.hero-description { max-width: 720px; margin: 0; color: #b9b8c2; font-size: clamp(17px, 2vw, 21px); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag { padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: #cbc9d2; background: rgba(255,255,255,.025); font-size: 12px; }
.model-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, rgba(167,139,250,.11), rgba(255,255,255,.025)); box-shadow: var(--shadow); }
.model-card-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.provider-dot { color: var(--mint); }
.model-card > strong { display: block; margin: 24px 0; overflow-wrap: anywhere; font-size: 18px; line-height: 1.35; }
.model-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.model-meta span { display: flex; flex-direction: column; }
.model-meta b { color: var(--text); font-size: 18px; }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); }
.tab { position: relative; padding: 0 0 14px; border: 0; color: var(--muted); background: none; cursor: pointer; font-weight: 720; }
.tab::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px; background: var(--purple); opacity: 0; transform: scaleX(.4); transition: .2s ease; }
.tab.active { color: var(--text); }
.tab.active::after { opacity: 1; transform: scaleX(1); }
.panel { display: none; padding: 34px 0 80px; }
.panel.active { display: block; animation: enter .26s ease; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.chat-shell, .side-card, .eval-card, .capability, .config-drawer { border: 1px solid var(--border); background: var(--panel); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.chat-shell { overflow: hidden; border-radius: var(--radius); }
.chat-topline { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
h2 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.025em; }
.ghost-button { border: 1px solid var(--border); border-radius: 9px; padding: 7px 11px; color: var(--muted); background: transparent; cursor: pointer; }
.ghost-button:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.login-notice { display: none; align-items: center; gap: 13px; margin: 18px 20px 0; padding: 13px 15px; border: 1px solid rgba(251,191,36,.24); border-radius: 14px; background: rgba(251,191,36,.055); }
.login-notice.visible { display: flex; }
.notice-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: rgba(251,191,36,.12); color: var(--amber); }
.login-notice strong { font-size: 13px; }
.login-notice p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.login-notice a { margin-left: auto; white-space: nowrap; color: var(--amber); font-size: 12px; font-weight: 800; }
.messages { min-height: 380px; max-height: 560px; overflow-y: auto; padding: 26px 22px; scrollbar-color: #333 transparent; }
.empty-state { display: grid; place-items: center; align-content: center; min-height: 330px; text-align: center; }
.empty-glyph { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 15px; border: 1px solid rgba(167,139,250,.3); border-radius: 16px; color: var(--purple); background: rgba(167,139,250,.08); font-size: 20px; }
.empty-state h3 { margin: 0; font-size: 18px; }
.empty-state p { margin: 7px 0; color: var(--muted); font-size: 13px; }
.message { display: flex; gap: 11px; margin: 0 0 20px; }
.message.user { justify-content: flex-end; }
.message-bubble { max-width: min(78%, 680px); padding: 12px 15px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.user .message-bubble { border-bottom-right-radius: 4px; background: var(--purple-strong); color: white; }
.message.assistant .message-bubble { border: 1px solid var(--border); border-bottom-left-radius: 4px; background: rgba(255,255,255,.045); }
.message.assistant::before { content: "S"; display: grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: 9px; color: var(--purple); background: rgba(167,139,250,.12); font-size: 11px; font-weight: 800; }
.cursor::after { content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 4px; vertical-align: -2px; background: var(--purple); animation: blink .8s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.suggestions { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 14px; }
.suggestions button { flex: 0 0 auto; border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.suggestions button:hover { color: var(--text); border-color: rgba(167,139,250,.4); }
.composer { margin: 0 20px 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(0,0,0,.22); transition: .2s ease; }
.composer:focus-within { border-color: rgba(167,139,250,.6); box-shadow: 0 0 0 3px rgba(167,139,250,.08); }
.composer textarea { display: block; width: 100%; min-height: 72px; resize: vertical; padding: 14px 15px 6px; border: 0; outline: 0; color: var(--text); background: transparent; }
.composer textarea::placeholder { color: #777784; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; padding: 8px; color: #71717e; font-size: 11px; }
.send-button { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 8px 10px 8px 13px; color: #111; background: var(--text); cursor: pointer; font-weight: 800; }
.send-button b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: white; background: var(--purple-strong); }
.send-button:disabled { cursor: wait; opacity: .55; }

.sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-card { border-radius: var(--radius); padding: 22px; }
.score-card { background: linear-gradient(155deg, rgba(94,234,212,.1), rgba(18,20,29,.9) 58%); }
.big-score { margin: 16px 0 4px; color: var(--mint); font-size: 58px; font-weight: 820; letter-spacing: -.055em; }
.side-card p { color: var(--muted); font-size: 13px; }
.mock-label { display: inline-block; margin-top: 12px; padding: 5px 8px; border-radius: 999px; color: var(--amber); background: rgba(251,191,36,.08); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.mini-skill { padding: 14px 0; border-bottom: 1px solid var(--border); }
.mini-skill:last-child { border: 0; padding-bottom: 0; }
.mini-skill strong { display: block; font-size: 13px; }
.mini-skill span { color: var(--muted); font-size: 12px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 12px 0 28px; }
.section-heading p { max-width: 440px; margin: 0; color: var(--muted); }
.eval-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.eval-card { border-radius: var(--radius); padding: 24px; }
.eval-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.eval-head h3 { margin: 3px 0 4px; }
.eval-head p { margin: 0; color: var(--muted); font-size: 12px; }
.eval-badge { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; color: var(--amber); background: rgba(251,191,36,.08); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.bars { display: grid; gap: 16px; margin-top: 28px; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.bar-label strong { color: var(--text); }
.bar-track { height: 9px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.bar-fill { height: 100%; border-radius: inherit; background: #50515c; }
.bar-fill.specialist { background: linear-gradient(90deg, var(--purple-strong), var(--mint)); }
.eval-foot { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.eval-foot b { color: var(--mint); }

.blueprint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.blueprint-grid h3 { margin: 0 0 12px; }
.capability-list { display: grid; gap: 10px; }
.capability { border-radius: 16px; padding: 16px; box-shadow: none; }
.capability strong { display: block; margin-bottom: 4px; }
.capability p { margin: 0; color: var(--muted); font-size: 13px; }
.config-drawer { margin-top: 28px; border-radius: 16px; padding: 0 18px; box-shadow: none; }
.config-drawer summary { padding: 16px 0; cursor: pointer; font-weight: 700; }
.config-drawer pre { overflow-x: auto; padding: 18px; border-radius: 12px; color: #c4b5fd; background: #08090d; font-size: 12px; }

footer { display: flex; justify-content: space-between; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 38px; border-top: 1px solid var(--border); color: #70707c; font-size: 12px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 620px) {
  .site-header { padding: 0 18px; }
  .live-indicator { display: none; }
  main, footer { width: min(100% - 28px, 1180px); }
  h1 { font-size: 48px; }
  .hero { padding: 44px 0 36px; }
  .tabs { gap: 20px; overflow-x: auto; }
  .chat-topline { padding: 18px; }
  .messages { padding: 22px 14px; }
  .login-notice { align-items: flex-start; flex-wrap: wrap; }
  .login-notice a { margin-left: 47px; }
  .sidebar, .blueprint-grid { grid-template-columns: 1fr; }
  .message-bubble { max-width: 88%; }
  footer { flex-direction: column; gap: 6px; }
}
