:root {
  color-scheme: dark;
  --ink: #f5f2e9;
  --muted: #9d9b94;
  --dim: #66655f;
  --panel: rgba(14, 17, 15, 0.9);
  --panel-solid: #121413;
  --line: rgba(245, 242, 233, 0.13);
  --line-strong: rgba(245, 242, 233, 0.25);
  --acid: #d7ff43;
  --acid-ink: #15170e;
  --coral: #ff745b;
  --green: #86e6b0;
  --error: #ff8d78;
  --radius: 22px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #090b0a; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 17% 2%, rgba(215,255,67,.08), transparent 29rem),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    #090b0a;
  background-size: auto, 44px 44px, 44px 44px, auto;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }

.ambient {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.13;
}

.ambient-one { background: var(--acid); top: -300px; left: 15%; }
.ambient-two { background: var(--coral); right: -320px; top: 35%; opacity: 0.1; }

.access-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 30px;
  border: 1px solid rgba(255,141,120,.35);
  border-radius: var(--radius);
  background: #151615;
  color: var(--ink);
  box-shadow: 0 32px 110px rgba(0,0,0,.72);
}
.access-dialog::backdrop {
  background: rgba(3,4,3,.78);
  backdrop-filter: blur(7px);
}
.access-dialog[open] { animation: access-dialog-in .18s ease-out; }
.access-dialog-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255,141,120,.45);
  border-radius: 50%;
  background: rgba(255,116,91,.1);
  color: var(--error);
  font-size: 20px;
  font-weight: 780;
}
.access-dialog .section-kicker { margin-bottom: 9px; color: var(--error); }
.access-dialog h2 { font-size: 30px; }
.access-dialog p:not(.section-kicker) {
  margin: 13px 0 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.access-token-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}
.access-token-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #0d0e0d;
  color: var(--ink);
  font: inherit;
}
.access-token-form input:focus {
  border-color: var(--acid);
  outline: 2px solid rgba(194, 255, 74, .18);
  outline-offset: 1px;
}
.access-dialog .access-token-error {
  margin: 8px 0 0;
  color: var(--error);
  font-size: 13px;
}
.access-dialog-actions {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.access-dialog-button { width: 100%; min-height: 48px; justify-content: center; }
.access-dialog-dismiss {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}
.access-dialog-dismiss:hover { color: var(--ink); }
@keyframes access-dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.shell { width: min(1420px, calc(100% - 64px)); margin: 0 auto; position: relative; }

.topbar-actions { display: flex; align-items: center; gap: 18px; }
.howit-button {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(215,255,67,.4);
  border-radius: 999px;
  background: rgba(215,255,67,.08);
  color: var(--acid);
  font-size: 12px;
  font-weight: 750;
}
.howit-button:hover:not(:disabled) { background: rgba(215,255,67,.15); }

.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand-name { line-height: 1; }
.brand-descriptor {
  margin-left: 4px;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-mark { width: 27px; height: 24px; position: relative; display: inline-block; }
.brand-mark i { position: absolute; display: block; background: var(--acid); border-radius: 50%; }
.brand-mark i:nth-child(1) { width: 11px; height: 11px; left: 0; top: 0; }
.brand-mark i:nth-child(2) { width: 11px; height: 11px; right: 0; top: 0; }
.brand-mark i:nth-child(3) { width: 18px; height: 14px; left: 5px; bottom: 0; border-radius: 9px 9px 12px 12px; }

.health {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.health-dot { width: 8px; height: 8px; border-radius: 50%; background: #e0b463; box-shadow: 0 0 0 4px rgba(224,180,99,.1); }
.health.ok .health-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(134,230,176,.1); }
.health.error .health-dot { background: var(--error); box-shadow: 0 0 0 4px rgba(255,141,120,.1); }

.hero {
  --hero-card-height: 228px;
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr);
  align-items: center;
  gap: 80px;
  padding: 72px 0 56px;
  transition: min-height .28s ease, gap .28s ease, padding .28s ease;
}
.hero-main { overflow: hidden; }
.hero.compact { min-height: 264px; gap: 48px; padding: 18px 0; }
.hero.compact .hero-main {
  height: var(--hero-card-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero.compact h1 { font-size: clamp(46px, 5vw, 70px); }
.hero.compact .hero-copy { margin-top: 16px; font-size: 15px; line-height: 1.45; }

.eyebrow, .section-kicker {
  margin: 0 0 14px;
  color: var(--acid);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow { display: block; }

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(58px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-weight: 690;
  transition: font-size .28s ease;
}

h1 em { color: var(--acid); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.hero-copy {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  transition: margin .28s ease, font-size .28s ease;
}

.hero-privacy {
  display: block;
  color: var(--text);
  font-weight: 650;
}

.hero-proof {
  position: relative;
  height: var(--hero-card-height);
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(7,9,8,.82);
  box-shadow: 0 28px 90px rgba(0,0,0,.3);
}
.hero-proof::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--acid);
  box-shadow: 0 0 25px rgba(215,255,67,.45);
}
.proof-kicker {
  margin: 0 0 8px;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero-proof > strong { display: block; margin-bottom: 26px; font-size: 22px; letter-spacing: -.025em; }
.comparison-row {
  display: grid;
  grid-template-columns: 106px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.comparison-row > span {
  margin: 0;
  color: var(--dim);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.comparison-row p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 650; }
.comparison-row i { margin: 0 3px; color: var(--dim); font-style: normal; }
.comparison-old p { text-decoration: line-through; text-decoration-color: rgba(255,141,120,.65); }
.comparison-live { margin: 0 -12px -4px; padding: 15px 12px 4px; border-top-color: rgba(215,255,67,.24); }
.comparison-live > span, .comparison-live p { color: var(--acid); }

.capability-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14,17,15,.64);
}
.capability-point { min-height: 92px; display: grid; align-content: center; gap: 4px; padding: 18px 24px; border-left: 1px solid var(--line); }
.capability-point:first-child { border-left: 0; }
.capability-value { color: var(--acid); font-size: 22px; font-weight: 720; letter-spacing: -.04em; }
.capability-point strong { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .035em; text-transform: uppercase; }
.sell-tour-button {
  min-width: 226px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  padding: 18px 22px;
  border: 0;
  border-left: 1px solid rgba(215,255,67,.3);
  background: rgba(215,255,67,.07);
  color: var(--acid);
  text-align: left;
  transition: background .18s ease;
}
.sell-tour-button:hover:not(:disabled) { background: rgba(215,255,67,.13); }
.sell-tour-button > span:first-child { color: var(--muted); font-size: 9px; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.sell-tour-button strong { font-size: 13px; white-space: nowrap; }
.sell-tour-arrow { display: inline-block; margin-left: 5px; font-size: 14px; }

.source-card, .chat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.source-card { padding: 24px 28px 26px; margin-bottom: 22px; }
.source-heading, .chat-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.source-heading { margin-bottom: 19px; }
h2 { margin: 0; font-size: 25px; line-height: 1.1; letter-spacing: -0.04em; }
.source-note { margin: 0; color: var(--dim); font-size: 13px; }

.source-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 13px; }
.source-tab {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.source-tab[aria-selected="true"] { border-color: rgba(217,255,87,.4); background: rgba(217,255,87,.1); color: var(--acid); }
.source-tab:hover:not(:disabled) { border-color: var(--line-strong); color: var(--ink); }
.source-tab-blocked span {
  margin-left: 5px;
  color: var(--error);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.source-tab-blocked[aria-selected="true"] {
  border-color: rgba(255,141,120,.38);
  background: rgba(255,141,120,.08);
  color: var(--error);
}

.source-form { display: grid; grid-template-columns: minmax(260px, 1fr) 116px auto auto; gap: 10px; }
.source-input-area, .source-fields { min-width: 0; }
.source-fields { height: 100%; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,0.035);
  color: var(--ink);
  caret-color: var(--acid);
  cursor: text;
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
input:focus, textarea:focus, select:focus { border-color: rgba(217,255,87,.58); box-shadow: 0 0 0 3px rgba(217,255,87,.08); background: rgba(255,255,255,.055); }
input::placeholder, textarea::placeholder { color: #696a65; }
input:disabled, textarea:disabled { cursor: not-allowed; opacity: .55; }
#youtubeUrl { min-height: 52px; padding: 0 17px; }
.live-source-fields select {
  min-height: 52px;
  padding: 0 42px 0 17px;
  color: var(--ink);
  cursor: pointer;
}
.live-source-fields select:disabled, .camera-picker select:disabled { cursor: not-allowed; opacity: .55; }
.camera-source-fields { display: grid; align-items: center; }
.camera-intro { display: grid; gap: 1px; }
.camera-picker { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.camera-picker select {
  min-height: 52px;
  padding: 0 42px 0 17px;
  color: var(--ink);
  cursor: pointer;
}
.camera-picker small { color: var(--dim); font-size: 10px; }
.field-hint { display: block; margin: 8px 2px 0; color: var(--dim); font-size: 10px; }
.field-hint code { color: var(--muted); }
.live-source-availability {
  display: block;
  margin: 8px 2px 0;
  color: var(--dim);
  font-size: 10px;
}
.live-source-availability.available { color: var(--green); }
.live-source-availability.unavailable { color: var(--error); }
.subtitle-mode-toggle {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  column-gap: 9px;
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.subtitle-mode-toggle input {
  appearance: none;
  grid-row: 1 / span 2;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}
.subtitle-mode-toggle input::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .15s ease;
}
.subtitle-mode-toggle input:checked { background: rgba(217,255,87,.15); border-color: rgba(217,255,87,.4); }
.subtitle-mode-toggle input:checked::after { transform: translateX(13px); background: var(--acid); }
.subtitle-mode-toggle small { grid-column: 2; color: var(--dim); font-size: 10px; }

.file-picker, .source-explainer {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px 0 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 13px;
}
.file-picker { cursor: pointer; }
.file-picker:hover { border-color: var(--line-strong); color: var(--ink); }
.file-picker strong { color: var(--acid); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.source-explainer { display: grid; align-content: center; justify-content: start; gap: 1px; }
.source-explainer span { color: var(--ink); font-weight: 650; }
.source-explainer small { color: var(--dim); font-size: 11px; }
.fps-control {
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr 46px;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
}
.fps-control input { height: 34px; text-align: center; padding: 0 4px; border-radius: 8px; }

.primary-button, .quiet-button, .ask-button {
  border: 0;
  border-radius: 13px;
  min-height: 52px;
  padding: 0 19px;
  font-weight: 750;
}
.primary-button { display: flex; align-items: center; gap: 22px; justify-content: space-between; background: var(--acid); color: var(--acid-ink); }
.primary-button:hover:not(:disabled), .ask-button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.quiet-button { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.notice { min-height: 19px; margin: 13px 2px -4px; color: var(--muted); font-size: 13px; }
.notice.error { color: var(--error); }

.workspace { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(380px, .72fr); gap: 22px; }

.demo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 11px 16px;
  border: 1px solid rgba(217,255,87,.35);
  border-radius: 14px;
  background: rgba(217,255,87,.07);
  color: var(--muted);
  font-size: 13px;
}
.demo-banner-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(217,255,87,.14);
  animation: demo-pulse 1.6s ease-in-out infinite;
}
@keyframes demo-pulse { 50% { box-shadow: 0 0 0 7px rgba(217,255,87,.05); } }
.demo-banner-copy { margin: 0; line-height: 1.45; }
.demo-banner-copy strong { color: var(--ink); }
.demo-banner button {
  margin-left: auto;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.demo-banner button:hover:not(:disabled) { border-color: var(--acid); color: var(--acid); }

.suggestions {
  margin: 0 0 12px;
  padding: 12px 13px 11px;
  border: 1px solid rgba(217,255,87,.28);
  border-radius: 15px;
  background: rgba(217,255,87,.05);
}
.suggestions-head {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  margin-bottom: 9px;
  color: var(--acid);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.suggestions-head::-webkit-details-marker { display: none; }
.suggestions-spark { font-size: 12px; }
.suggestions-head small {
  margin-left: auto;
  color: var(--dim);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: none;
}
.suggestions-toggle {
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transition: transform .16s ease;
}
.suggestions[open] .suggestions-toggle { transform: rotate(180deg); }
.suggestions:not([open]) .suggestions-head { margin-bottom: 0; }
.suggestion-chips { display: grid; gap: 7px; }
.suggestion-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 8px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  color: var(--ink);
  font-size: 13px;
  transition: border-color .15s ease, background .15s ease;
}
.suggestion-chip:hover { border-color: rgba(217,255,87,.45); background: rgba(217,255,87,.08); }
.suggestion-text { line-height: 1.4; overflow-wrap: anywhere; }
.suggestion-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.suggestion-actions button {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
}
.suggestion-ask { border: 0; background: var(--acid); color: var(--acid-ink); }
.suggestion-ask:hover:not(:disabled) { filter: brightness(1.08); }
.video-column { min-width: 0; }
.video-frame-slot {
  position: relative;
  aspect-ratio: 16 / 9;
}
.video-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #050605;
  border: 1px solid rgba(215,255,67,.16);
  box-shadow: var(--shadow);
}
.video-frame.mobile-pip {
  position: fixed;
  inset: auto 10px auto auto;
  top: max(10px, env(safe-area-inset-top));
  z-index: 70;
  width: min(56vw, 220px);
  aspect-ratio: 16 / 9;
  border-color: rgba(245,242,233,.34);
  border-radius: 13px;
  box-shadow: 0 14px 48px rgba(0,0,0,.72), 0 0 0 1px rgba(0,0,0,.35);
  animation: mobile-pip-in .18s ease-out both;
}
.mobile-pip-capable .workspace { animation: none; }
@keyframes mobile-pip-in {
  from { opacity: 0; transform: translateY(-7px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.video-frame iframe, .video-frame video { display: block; width: 100%; height: 100%; border: 0; }
.video-frame video { object-fit: contain; background: #050605; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--dim); font-size: 13px; }
.play-glyph { width: 70px; height: 70px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.play-glyph::after { content: ""; position: absolute; left: 29px; top: 23px; border-left: 17px solid var(--acid); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.live-badge { position: absolute; z-index: 2; left: 16px; top: 16px; background: rgba(9,11,10,.82); border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; font-size: 11px; color: var(--muted); backdrop-filter: blur(10px); }
.live-badge > span:first-child { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--coral); }

.telemetry { display: grid; grid-template-columns: 1.2fr 1fr 1.15fr 1.55fr .8fr; margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(10,12,11,.78); }
.metric { min-height: 78px; display: flex; flex-direction: column; justify-content: flex-start; padding: 14px 18px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; }
.metric span { color: var(--dim); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.metric strong { margin-top: 6px; font-size: 18px; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric small { margin-top: 2px; color: var(--dim); font-size: 9px; white-space: nowrap; }
#pendingBreakdown {
  display: none;
  line-height: 1.35;
  white-space: normal;
  pointer-events: none;
}
.metric-pending:hover #pendingBreakdown { display: block; }
#pendingBreakdown[hidden] { display: none; }
.connection-warning {
  margin: 10px 2px 0;
  padding: 10px 13px;
  border: 1px solid rgba(255,141,120,.38);
  border-radius: 12px;
  background: rgba(255,141,120,.08);
  color: var(--error);
  font-size: 12px;
  line-height: 1.45;
}
.connection-warning[hidden] { display: none; }
.connection-warning strong { color: var(--ink); }
.metric-context { gap: 7px; }
.context-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.metric .context-heading strong { margin: 0; color: var(--acid); font-size: 17px; }
.context-track { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(245,242,233,.09); }
.context-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(217,255,87,.62), var(--acid)); transition: width .35s ease; }
.context-track.has-context i { min-width: 2px; }
.metric-context small { margin-top: 0; overflow: hidden; text-overflow: ellipsis; }

.chat-card { min-height: 560px; max-height: 760px; display: flex; flex-direction: column; padding: 24px; }
.chat-heading { padding: 3px 2px 20px; border-bottom: 1px solid var(--line); }
.session-pill { max-width: 135px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-pill.active { color: var(--green); border-color: rgba(134,230,176,.25); }

.messages { flex: 1; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 18px 2px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.messages:focus-visible { outline: 1px solid var(--line-strong); outline-offset: -1px; }
.message { width: fit-content; max-width: 92%; margin-bottom: 15px; padding: 13px 15px; border-radius: 4px 15px 15px 15px; background: rgba(255,255,255,.055); }
.message.user { margin-left: auto; border-radius: 15px 4px 15px 15px; background: var(--acid); color: var(--acid-ink); }
.message.error { background: rgba(255,116,91,.1); color: var(--error); }
.message-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.message-role { color: var(--acid); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.message.user .message-role { color: rgba(21,23,14,.58); }
.message-time { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.message.user .message-time { color: rgba(21,23,14,.58); }
.message p, .message-text { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-stop-note { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.intro-message { color: var(--muted); }
.tool-activities { display: grid; gap: 5px; margin-bottom: 9px; }
.tool-activity { color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.4; }
.tool-activity::before { content: "\2197"; margin-right: 6px; color: var(--acid); }
.tool-activity.failed { color: var(--error); }
.tool-activity.failed::before { content: "!"; color: var(--error); }

.thinking-trace {
  margin: 0 0 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(9,11,10,.62);
  color: var(--muted);
  white-space: normal;
}
.thinking-trace summary { padding: 8px 10px; cursor: pointer; font-size: 11px; font-weight: 750; user-select: none; }
.thinking-trace-content { max-height: 260px; overflow: auto; padding: 0 10px 10px; color: var(--muted); font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-answer:empty::before { content: "Answering…"; color: var(--muted); }

.markdown-answer { white-space: normal; }
.markdown-answer > :first-child { margin-top: 0; }
.markdown-answer > :last-child { margin-bottom: 0; }
.markdown-answer h1,
.markdown-answer h2,
.markdown-answer h3,
.markdown-answer h4,
.markdown-answer h5,
.markdown-answer h6 { margin: 1em 0 .45em; color: inherit; font-family: inherit; font-weight: 720; line-height: 1.25; letter-spacing: normal; }
.markdown-answer h1 { font-size: 1.35em; }
.markdown-answer h2 { font-size: 1.22em; }
.markdown-answer h3 { font-size: 1.12em; }
.markdown-answer p,
.markdown-answer ul,
.markdown-answer ol,
.markdown-answer pre,
.markdown-answer blockquote,
.markdown-answer table { margin: 0 0 .8em; }
.markdown-answer ul,
.markdown-answer ol { padding-left: 1.5em; }
.markdown-answer li + li { margin-top: .25em; }
.markdown-answer code { padding: .12em .34em; border-radius: 4px; background: #090b0a; color: var(--acid); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .9em; }
.markdown-answer pre { max-width: 100%; overflow-x: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #090b0a; }
.markdown-answer pre code { padding: 0; background: transparent; color: inherit; }
.markdown-answer blockquote { padding-left: 10px; border-left: 3px solid var(--acid); color: var(--muted); }
.markdown-answer a { color: var(--acid); text-underline-offset: 2px; }
.markdown-answer table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.markdown-answer th,
.markdown-answer td { padding: 6px 8px; border: 1px solid var(--line); text-align: left; }
.markdown-answer hr { margin: 1em 0; border: 0; border-top: 1px solid var(--line); }

.composer-status {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}
.composer-status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 0 5px rgba(255,255,255,.035);
}
.composer-status.waiting .composer-status-dot { background: var(--acid); box-shadow: 0 0 0 5px rgba(217,255,87,.08); }
.composer-status.error .composer-status-dot { background: var(--error); box-shadow: 0 0 0 5px rgba(255,116,91,.08); }
.composer-status strong { display: block; margin-bottom: 4px; font-size: 13px; }
.composer-status p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.composer { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: rgba(255,255,255,.025); }
.composer textarea { min-height: 76px; resize: none; padding: 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.composer-footer { display: flex; align-items: center; gap: 12px; padding: 9px; border-top: 1px solid var(--line); }
.token-control { display: grid; grid-template-columns: auto 58px; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.token-control input { height: 30px; padding: 0 5px; border-radius: 8px; text-align: center; }
.thinking-toggle { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.thinking-toggle input { appearance: none; width: 28px; height: 16px; border-radius: 999px; position: relative; }
.thinking-toggle input::after { content: ""; position: absolute; width: 10px; height: 10px; top: 2px; left: 2px; background: var(--muted); border-radius: 50%; transition: transform .15s ease; }
.thinking-toggle input:checked { background: rgba(217,255,87,.15); border-color: rgba(217,255,87,.4); }
.thinking-toggle input:checked::after { transform: translateX(12px); background: var(--acid); }
.shortcut { margin-left: auto; color: var(--dim); font-size: 10px; }
.ask-button { min-height: 36px; padding: 0 17px; border-radius: 9px; background: var(--acid); color: var(--acid-ink); }
.stop-generation-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #050605;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 4px 14px rgba(0,0,0,.3);
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.stop-generation-icon { width: 10px; height: 10px; border-radius: 1px; background: currentColor; }
.stop-generation-button:hover:not(:disabled) { background: #f0f0ec; transform: scale(1.05); box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 5px 18px rgba(0,0,0,.38); }
.stop-generation-button:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.stop-generation-button:disabled { opacity: .5; }

footer { height: 110px; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.footer-rule { width: 42px; height: 1px; background: var(--line-strong); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 980px) {
  .shell { width: min(100% - 36px, 760px); }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 42px; padding: 62px 0 44px; }
  .hero.compact { gap: 26px; padding: 24px 0; }
  .hero-copy { max-width: 590px; }
  .hero-proof { max-width: 640px; }
  .capability-strip { grid-template-columns: 1fr 1fr; }
  .sell-tour-button { min-width: 0; border-top: 1px solid rgba(215,255,67,.3); border-left: 1px solid rgba(215,255,67,.3); }
  .source-form { grid-template-columns: 1fr 116px; }
  .primary-button, .quiet-button { justify-content: center; }
  .workspace { grid-template-columns: 1fr; }
  .chat-card { min-height: 550px; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 520px); }
  .topbar { height: 72px; }
  .health { font-size: 11px; }
  .brand-descriptor { display: none; }
  .hero { gap: 32px; padding: 48px 0 36px; }
  .hero.compact { gap: 4px; padding: 8px 0 12px; }
  .hero.compact h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero.compact .hero-copy { margin-top: 12px; font-size: 13px; }
  .eyebrow { align-items: flex-start; flex-direction: column; gap: 8px; }
  h1 { font-size: clamp(48px, 15.5vw, 72px); }
  .hero-copy { margin-top: 23px; font-size: 15px; }
  .hero-proof { padding: 22px; }
  .hero-proof > strong { font-size: 19px; }
  .comparison-row { grid-template-columns: 86px 1fr; gap: 8px; }
  .comparison-row p { font-size: 10px; }
  .capability-strip { grid-template-columns: 1fr; }
  .capability-point { min-height: 76px; grid-template-columns: minmax(110px, .65fr) 1fr; align-items: center; gap: 14px; border-top: 1px solid var(--line); border-left: 0; }
  .capability-point:first-child { border-top: 0; }
  .capability-value { font-size: 19px; }
  .sell-tour-button { min-height: 76px; border-left: 0; }
  .source-card, .chat-card { border-radius: 17px; }
  .source-card { padding: 19px; }
  .source-heading { display: block; }
  .source-note { margin-top: 9px; }
  .source-form { grid-template-columns: 1fr; }
  .fps-control { grid-template-columns: 1fr 48px; }
  .video-frame { border-radius: 17px; }
  .telemetry { grid-template-columns: 1fr 1fr; }
  .metric { border-top: 1px solid var(--line); }
  .metric:nth-child(odd) { border-left: 0; }
  .metric:nth-child(-n+2) { border-top: 0; }
  .chat-card { min-height: 520px; padding: 18px; }
  .demo-banner { flex-wrap: wrap; }
  .demo-banner button { margin-left: 20px; }
  .suggestion-chip { flex-wrap: wrap; }
  .suggestion-actions { margin-left: auto; }
  .composer-footer { flex-wrap: wrap; }
  .shortcut { display: none; }
  footer { flex-wrap: wrap; line-height: 1.8; }
  .howit-button { min-height: 32px; padding: 0 11px; font-size: 11px; }
}

@media (prefers-reduced-motion: no-preference) {
  .source-card, .workspace { animation: rise .55s ease both; }
  .workspace { animation-delay: .08s; }
  @keyframes rise { from { transform: translateY(9px); opacity: 0; } to { transform: none; opacity: 1; } }
}

.source-card, .chat-card, .metric-context, #startButton { scroll-margin: 90px 0; }

.tour-layer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.tour-page-locked { pointer-events: none; user-select: none; }
.tour-page-locked.tour-chat-interactive .chat-card {
  pointer-events: auto;
  user-select: auto;
}
.tour-page-locked.tour-suggestions-interactive #suggestions {
  pointer-events: auto;
  user-select: auto;
}
.tour-dim {
  position: fixed;
  inset: 0;
  background: rgba(3,4,3,.72);
  backdrop-filter: blur(3px);
  pointer-events: auto;
}
.tour-spotlight {
  position: fixed;
  border: 1.5px solid rgba(217,255,87,.85);
  border-radius: 18px;
  box-shadow: 0 0 0 200vmax rgba(3,4,3,.6), 0 0 34px rgba(217,255,87,.22);
  pointer-events: none;
  transition: left .28s ease, top .28s ease, width .28s ease, height .28s ease;
}
.tour-card {
  position: fixed;
  width: min(430px, calc(100vw - 28px));
  padding: 24px 26px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #141614;
  box-shadow: 0 32px 110px rgba(0,0,0,.72);
  pointer-events: auto;
}
.tour-step-chat .tour-card { width: min(360px, calc(100vw - 28px)); }
.tour-card:focus { outline: none; }
.tour-card-centered { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tour-card-sheet { left: 12px; right: 12px; bottom: 12px; top: auto; width: auto; }
.tour-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.tour-close:hover { border-color: var(--line-strong); color: var(--ink); }
.tour-kicker { margin-bottom: 10px; }
.tour-title { margin: 0 0 10px; font-size: 22px; line-height: 1.15; letter-spacing: -0.035em; }
.tour-body p { margin: 0 0 11px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.tour-body p:last-child { margin-bottom: 0; }
.tour-body strong { color: var(--ink); }
.tour-hint { color: var(--acid); font-size: 12px; }
.tour-body .tour-hint { color: var(--acid); }
.tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(245,242,233,.18); }
.tour-dots i.active { background: var(--acid); }
.tour-nav { display: flex; gap: 8px; }
.tour-nav .quiet-button, .tour-nav .primary-button {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 13px;
}
.tour-nav .primary-button { gap: 8px; }

@media (max-width: 640px), (max-height: 520px) {
  .tour-step-chat .tour-card-sheet {
    top: 12px;
    bottom: auto;
    max-height: calc(100vh - 24px);
    padding: 18px 20px 15px;
    overflow-y: auto;
  }
  .tour-step-chat .tour-title { padding-right: 28px; font-size: 19px; }
  .tour-step-chat .tour-body p { font-size: 12.5px; line-height: 1.45; }
  .tour-step-chat .tour-footer { margin-top: 12px; padding-top: 11px; }
}

@media (prefers-reduced-motion: no-preference) {
  .messages .message:not(.intro-message) { animation: message-bubble-in .24s ease-out both; }
  @keyframes message-bubble-in {
    from { opacity: 0; transform: translateY(7px) scale(.985); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-spotlight { transition: none; }
}
