@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #080d19;
  --panel: rgba(17, 27, 47, .72);
  --panel-solid: #101a2d;
  --line: rgba(161, 188, 231, .14);
  --text: #f4f7ff;
  --muted: #99a9c4;
  --blue: #77aaff;
  --blue-bright: #4d8cff;
  --cyan: #8ce4ff;
  --green: #62e5b0;
  --danger: #ff8585;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; line-height: 1.5; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.ambient { position: fixed; width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); opacity: .13; pointer-events: none; z-index: -1; }
.ambient-one { top: -250px; left: -120px; background: #347cff; }
.ambient-two { top: 500px; right: -320px; background: #5b43ff; opacity: .09; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1280px; padding: 0 32px; margin: auto; border-bottom: 1px solid rgba(255,255,255,.045); }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(125,174,255,.4); border-radius: 14px; color: #dceaff; background: linear-gradient(145deg, #203b68, #10182a); font: 700 23px 'Space Grotesk', sans-serif; box-shadow: inset 0 1px rgba(255,255,255,.15), 0 0 28px rgba(76,135,255,.12); }
.brand-mark span { font-size: 10px; color: var(--cyan); margin: -26px 0 0 20px; position: absolute; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; gap: 4px; }
.brand-copy strong { font: 700 15px 'Space Grotesk', sans-serif; letter-spacing: .06em; }
.brand-copy small { color: #7f91b0; font-size: 9px; letter-spacing: .15em; }
.topnav { display: flex; gap: 30px; color: var(--muted); font-size: 13px; }
.topnav a:hover { color: white; }
.status-pill { display: flex; align-items: center; gap: 8px; color: #a9bad4; font-size: 11px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(14,23,40,.5); white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(98,229,176,.7); }
main { max-width: 1180px; padding: 0 28px; margin: auto; }
.hero { padding: 88px 0 64px; text-align: center; }
.eyebrow, .section-kicker { display: flex; align-items: center; justify-content: center; gap: 10px; color: #93baff; font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.eyebrow-line { width: 23px; height: 1px; background: #6399ff; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 23px 0 20px; font: 600 clamp(44px, 6.2vw, 76px)/1.06 'Space Grotesk', sans-serif; letter-spacing: -.065em; }
h1 span, .feature-heading h2 span { background: linear-gradient(100deg, #e7f0ff 5%, #79aaff 48%, #a4d8ff 92%); color: transparent; background-clip: text; -webkit-background-clip: text; }
.hero-copy { max-width: 640px; margin: 0 auto; color: #a5b4cc; font-size: 15px; line-height: 1.85; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 45px; padding: 0 19px; border-radius: 13px; border: 1px solid transparent; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #071020; background: linear-gradient(135deg, #a8ccff, #6c9fff); box-shadow: 0 8px 28px rgba(81,139,255,.19), inset 0 1px rgba(255,255,255,.8); }
.button-primary:hover { background: linear-gradient(135deg, #c0dcff, #85b0ff); }
.button-quiet, .button-secondary { background: rgba(255,255,255,.035); border-color: var(--line); color: #d3dff3; }
.button-quiet:hover, .button-secondary:hover { background: rgba(255,255,255,.075); }
.button-small { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 10px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 27px; color: #8293ae; font-size: 10px; }
.tiny-check { font-style: normal; color: var(--green); margin-right: 5px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(270px, .88fr); gap: 17px; align-items: start; }
.glass { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(19,31,52,.87), rgba(11,18,32,.88)); box-shadow: 0 22px 70px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.035); backdrop-filter: blur(18px); }
.chat-panel { min-width: 0; min-height: 620px; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; }
.panel-header { height: 72px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; border-bottom: 1px solid var(--line); }
.panel-title { display: flex; align-items: center; gap: 12px; }
.panel-title > div:last-child { display: flex; flex-direction: column; gap: 3px; }
.panel-title strong { font: 600 13px 'Space Grotesk', sans-serif; }
.panel-title small { color: var(--muted); font-size: 10px; }
.ai-orb { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 13px; background: linear-gradient(145deg, #243e67, #17243c); color: #b8d4ff; box-shadow: inset 0 1px rgba(255,255,255,.12); }
.icon-button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: #a7b9d4; cursor: pointer; }
.model-banner { display: flex; align-items: center; gap: 12px; margin: 17px 18px 0; padding: 13px; border: 1px solid rgba(110,158,244,.18); border-radius: 14px; background: rgba(70,115,190,.075); }
.model-symbol { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px; background: rgba(100,151,242,.12); color: #9fc2ff; font-size: 19px; }
.model-info { flex: 1; min-width: 0; }
.model-info strong { font-size: 11px; }
.model-info p { margin: 3px 0 0; color: #8e9fbb; font-size: 10px; line-height: 1.55; }
.progress-wrap { padding: 12px 20px 0; }
.progress-track { height: 4px; border-radius: 8px; background: rgba(255,255,255,.09); overflow: hidden; }
.progress-bar { width: 0; height: 100%; background: linear-gradient(90deg, #6098ff, #9fd9ff); transition: width .2s ease; }
.progress-label { margin-top: 7px; color: #9aaed0; font-size: 10px; }
.hidden { display: none !important; }
.messages { flex: 1; min-height: 315px; max-height: 490px; overflow: auto; padding: 24px 21px; }
.welcome-message { max-width: 390px; margin: 36px auto; text-align: center; }
.welcome-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 17px; border: 1px solid rgba(120,170,255,.28); border-radius: 17px; color: #a8caff; background: radial-gradient(circle at 30% 20%, #2b4979, #121f35); font-size: 21px; }
.welcome-message h2 { margin-bottom: 8px; font: 600 20px 'Space Grotesk', sans-serif; letter-spacing: -.03em; }
.welcome-message p { margin-bottom: 20px; color: #93a3bd; font-size: 12px; line-height: 1.7; }
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.suggestions button { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: #b9c8df; background: rgba(255,255,255,.025); cursor: pointer; font-size: 10px; }
.suggestions button:hover { background: rgba(112,159,244,.1); border-color: rgba(112,159,244,.3); }
.message { display: flex; gap: 10px; margin-bottom: 19px; align-items: flex-start; }
.message-avatar { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 10px; background: #16233b; color: #a7c7ff; font-size: 11px; }
.message.user .message-avatar { background: #243755; color: #dceaff; }
.message-body { min-width: 0; flex: 1; padding-top: 3px; }
.message-name { margin-bottom: 5px; color: #8ea6ca; font-size: 10px; font-weight: 700; }
.message-text { color: #e0e8f6; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-text a { color: #8db9ff; text-decoration: underline; }
.composer { margin: 0 16px; padding: 13px 14px 9px; border: 1px solid rgba(151,180,224,.19); border-radius: 16px; background: rgba(4,9,18,.45); }
.composer textarea { display: block; width: 100%; min-height: 28px; max-height: 120px; resize: vertical; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; line-height: 1.6; }
.composer textarea::placeholder { color: #70819d; }
.composer-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; color: #6f809d; font-size: 9px; }
.send-button { display: grid; place-items: center; width: 31px; height: 31px; border: 0; border-radius: 10px; color: #071020; background: #8bb7ff; font-size: 18px; cursor: pointer; }
.send-button:disabled { cursor: not-allowed; opacity: .35; }
.disclaimer { padding: 11px 12px 14px; text-align: center; color: #65748c; font-size: 9px; }
.side-column { display: grid; gap: 15px; }
.side-card { padding: 19px; border-radius: 19px; min-width: 0; }
.side-card .section-kicker { justify-content: flex-start; font-size: 9px; }
.side-card h3 { margin: 10px 0 16px; font: 600 17px 'Space Grotesk', sans-serif; letter-spacing: -.03em; }
.capability-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.055); }
.cap-icon { display: grid; place-items: center; width: 31px; height: 31px; flex-shrink: 0; border-radius: 10px; color: #a9caff; background: rgba(108,155,240,.1); }
.capability-row > div { flex: 1; min-width: 0; }
.capability-row strong { display: block; margin-bottom: 3px; font-size: 10px; }
.capability-row p { margin: 0; color: #8293ad; font-size: 9px; line-height: 1.5; }
.mini-state { color: #7f91ae; font-size: 8px; letter-spacing: .08em; }
.knowledge-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.knowledge-head h3 { margin-bottom: 0; }
.text-button { border: 0; padding: 4px 0; background: none; color: #90b7ff; font-size: 10px; cursor: pointer; }
.side-description { margin: 7px 0 12px; color: #8293ad; font-size: 10px; }
.feed-list { display: grid; gap: 9px; }
.feed-item { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.06); }
.feed-item a { display: block; color: #d9e6fa; font-size: 10px; font-weight: 600; line-height: 1.5; }
.feed-item a:hover { color: #9dc1ff; }
.feed-meta { margin-top: 5px; color: #71839f; font-size: 9px; }
.feed-empty { color: #7485a0; font-size: 10px; line-height: 1.7; }
.knowledge-actions { margin-top: 13px; }
.knowledge-actions .button { width: 100%; }
.health-card { padding-bottom: 15px; }
.health-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: #9baac1; font-size: 10px; }
.health-line:last-child { border-bottom: 0; }
.health-line strong { color: #aebdd4; font-size: 10px; font-weight: 600; }
.health-line strong.good { color: var(--green); }
.feature-section { padding: 105px 0 56px; }
.feature-section > .section-kicker { justify-content: flex-start; }
.feature-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 17px; }
.feature-heading h2 { margin: 0; font: 600 clamp(30px,4vw,43px)/1.14 'Space Grotesk', sans-serif; letter-spacing: -.055em; }
.feature-heading p { max-width: 380px; margin: 0 0 4px; color: #93a4bf; font-size: 12px; line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 28px; }
.feature-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14,23,40,.56); }
.feature-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 17px; border: 1px solid rgba(118,166,245,.17); border-radius: 12px; background: rgba(105,151,228,.09); color: #9fc4ff; font-size: 18px; }
.feature-card h3 { margin-bottom: 9px; font: 600 14px 'Space Grotesk', sans-serif; }
.feature-card p { margin: 0; color: #8d9db7; font-size: 11px; line-height: 1.8; }
.notice { display: flex; align-items: flex-start; gap: 14px; margin: 32px 0 68px; padding: 20px; border-radius: 17px; }
.notice-icon { display: grid; place-items: center; width: 27px; height: 27px; flex-shrink: 0; border: 1px solid rgba(133,174,248,.25); border-radius: 50%; color: #a8c9ff; font-size: 12px; }
.notice strong { font-size: 11px; }
.notice p { margin: 5px 0 0; color: #8c9cb5; font-size: 10px; line-height: 1.8; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 23px 28px; border-top: 1px solid rgba(255,255,255,.055); color: #74849e; font-size: 10px; }
.footer-brand { color: #d5e3f9; font: 700 12px 'Space Grotesk', sans-serif; letter-spacing: .08em; }
.toast { position: fixed; bottom: 22px; left: 50%; z-index: 10; max-width: min(90vw,520px); transform: translate(-50%, 15px); opacity: 0; pointer-events: none; padding: 12px 17px; border: 1px solid rgba(147,180,236,.24); border-radius: 12px; background: #15233b; color: #e8f0ff; box-shadow: 0 15px 50px rgba(0,0,0,.35); font-size: 11px; transition: opacity .2s, transform .2s; }
.toast.visible { transform: translate(-50%,0); opacity: 1; }
@media (max-width: 900px) {
  .topbar { padding: 0 20px; }
  .topnav { gap: 16px; }
  main { padding: 0 20px; }
  .workspace { grid-template-columns: minmax(0,1.35fr) minmax(240px,.9fr); }
  .model-banner { flex-wrap: wrap; }
  .model-info { min-width: calc(100% - 50px); }
  .model-banner .button { margin-left: 46px; }
  .feature-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (max-width: 680px) {
  .topbar { height: 68px; gap: 10px; padding: 0 15px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 8px; }
  .topnav { display: none; }
  .status-pill { padding: 7px 9px; font-size: 9px; }
  main { padding: 0 14px; }
  .hero { padding: 68px 0 45px; }
  h1 { font-size: clamp(42px, 11vw, 62px); }
  .hero-copy { font-size: 13px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 280px; margin: 26px auto 0; }
  .hero-meta { gap: 10px 16px; font-size: 9px; }
  .workspace { grid-template-columns: 1fr; }
  .chat-panel { min-height: 590px; }
  .messages { max-height: 430px; }
  .side-column { grid-template-columns: 1fr; }
  .feature-section { padding-top: 72px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 20px; }
  .notice { margin-bottom: 42px; }
  .footer { flex-wrap: wrap; padding: 20px 15px; }
  .footer span:nth-child(2) { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
