:root {
  color-scheme: dark;
  --bg: #101820;
  --panel: #17232c;
  --panel-2: #1b2933;
  --line: rgba(232, 239, 243, .11);
  --muted: #8e9ca6;
  --text: #eff3f4;
  --amber: #f2b84b;
  --amber-soft: rgba(242, 184, 75, .11);
  --green: #58d7af;
  --danger: #ff7772;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 88% 4%, rgba(242,184,75,.08), transparent 34rem),
    linear-gradient(180deg, #101820 0%, #111b23 100%);
}
button { font: inherit; }
.shell { width: min(100% - 40px, 1120px); margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom)); }
.topbar { height: 52px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { width: 27px; height: 27px; border: 1px solid rgba(242,184,75,.55); border-radius: 8px; display: flex; justify-content: center; align-items: center; gap: 2px; transform: rotate(-4deg); }
.brand-mark i { display: block; width: 4px; height: 12px; border-radius: 3px; background: var(--amber); transform: skewY(-18deg); }
.brand-mark i:nth-child(2) { height: 16px; opacity: .72; }
.brand-mark i:nth-child(3) { height: 9px; opacity: .48; }
.brand-name { font: 700 12px 'Space Grotesk', sans-serif; letter-spacing: .14em; }
.brand-name span { color: var(--amber); }
.top-meta { display: flex; align-items: center; gap: 8px; font: 600 10px 'Space Grotesk', sans-serif; letter-spacing: .13em; color: #acb8be; }
.live-dot { width: 7px; height: 7px; background: var(--amber); border-radius: 50%; box-shadow: 0 0 12px rgba(242,184,75,.6); }
.intro { padding: 44px 0 28px; max-width: 690px; }
.eyebrow, .section-index, .notice-kicker { font: 600 10px 'Space Grotesk', sans-serif; letter-spacing: .16em; color: var(--amber); }
.eyebrow { margin: 0 0 13px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; font: 600 clamp(34px, 8vw, 56px)/1.04 'Space Grotesk', sans-serif; letter-spacing: -.055em; }
h1 span { color: #8f9da5; }
.intro-copy { max-width: 550px; margin: 0; color: #a6b2b8; font-size: 13px; line-height: 1.75; }
.capture-card { background: linear-gradient(145deg, rgba(25,38,47,.96), rgba(20,31,39,.98)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 16px 50px rgba(0,0,0,.16); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.section-index { margin: 0 0 8px; color: var(--amber); }
.section-index span { color: #7f8e97; }
h2 { font: 600 20px/1.2 'Space Grotesk', sans-serif; margin: 0; letter-spacing: -.025em; }
.status-pill { display: flex; gap: 8px; align-items: center; color: #b0bac0; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; font-size: 10px; white-space: nowrap; }
.status-light { width: 7px; height: 7px; border-radius: 50%; background: #8a959a; }
.status-pill[data-state="ready"] .status-light { background: var(--green); box-shadow: 0 0 10px rgba(88,215,175,.6); }
.status-pill[data-state="error"] .status-light { background: var(--danger); }
.status-pill[data-state="sharing"] .status-light { background: var(--amber); box-shadow: 0 0 10px rgba(242,184,75,.55); animation: blink 1.4s ease-in-out infinite; }
.capture-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: stretch; }
.capture-controls { display: flex; flex-direction: column; }
.control-lead { color: #a9b5bb; font-size: 12px; line-height: 1.75; margin: 0 0 18px; max-width: 420px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 15px; }
.button { min-height: 46px; border-radius: 10px; padding: 0 15px; font-weight: 600; font-size: 12px; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.button-primary { display: inline-flex; align-items: center; gap: 10px; color: #1a2025; border: 1px solid var(--amber); background: var(--amber); }
.button-primary:hover:not(:disabled) { background: #ffd078; border-color: #ffd078; }
.button-icon { font: 700 16px 'Space Grotesk', sans-serif; }
.button-secondary { color: #a4b0b7; background: transparent; border: 1px solid rgba(255,255,255,.14); }
.button-secondary:hover:not(:disabled) { border-color: rgba(255,255,255,.34); color: var(--text); }
.button:disabled { opacity: .4; cursor: not-allowed; }
.status-box { display: flex; gap: 12px; padding: 14px; min-height: 78px; border: 1px solid rgba(242,184,75,.16); background: var(--amber-soft); border-radius: 11px; margin-top: 2px; }
.status-box-icon { flex: 0 0 25px; height: 25px; display: grid; place-items: center; color: var(--amber); border: 1px solid rgba(242,184,75,.4); border-radius: 7px; font: 600 10px 'Space Grotesk', sans-serif; }
.status-title { margin: 1px 0 4px; font-size: 12px; font-weight: 700; color: #f4d397; }
.status-message { margin: 0; color: #bac2c5; font-size: 10px; line-height: 1.65; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding-top: 18px; }
.metric { min-width: 0; border-top: 1px solid var(--line); padding-top: 9px; }
.metric span { display: block; color: #74838c; font: 600 8px 'Space Grotesk', sans-serif; letter-spacing: .1em; margin-bottom: 5px; }
.metric strong { display: block; color: #dce3e5; font: 500 11px 'Space Grotesk', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-frame { min-width: 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.13); overflow: hidden; background: #0b1116; }
.frame-topline, .frame-bottomline { height: 33px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; color: #81909a; font: 600 8px 'Space Grotesk', sans-serif; letter-spacing: .12em; }
.frame-topline { border-bottom: 1px solid rgba(255,255,255,.08); }
.frame-bottomline { border-top: 1px solid rgba(255,255,255,.08); }
.frame-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #697780; margin-right: 6px; vertical-align: 1px; }
.screen-frame[data-active="true"] .frame-dot { background: var(--green); box-shadow: 0 0 9px rgba(88,215,175,.65); }
.video-stage { position: relative; min-height: 225px; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at center, #1b2933 0, #0b1116 72%); }
#screen-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; background: #05090c; }
#screen-video[data-visible="true"] { display: block; }
.empty-state { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; color: #9cabb3; }
.empty-state[hidden] { display: none; }
.empty-state p { margin: 0; font-size: 11px; line-height: 1.55; }
.empty-state strong { color: #d7dfe2; font-weight: 600; }
.empty-state small { color: #6f808a; font-size: 9px; }
.screen-icon { position: relative; width: 44px; height: 31px; border: 1px solid rgba(242,184,75,.54); border-radius: 6px; margin-bottom: 2px; }
.screen-icon::before { content: ''; position: absolute; left: 18px; top: 30px; width: 8px; height: 5px; background: rgba(242,184,75,.54); }
.screen-icon::after { content: ''; position: absolute; left: 11px; top: 35px; width: 22px; height: 1px; background: rgba(242,184,75,.54); }
.screen-icon span { position: absolute; left: 11px; top: 9px; width: 7px; height: 12px; border-left: 1px solid var(--amber); border-top: 1px solid var(--amber); }
.screen-icon i { position: absolute; right: 9px; top: 9px; width: 12px; height: 12px; border: 1px solid rgba(242,184,75,.45); border-radius: 3px; }
.frame-overlay { pointer-events: none; position: absolute; inset: 13px; }
.frame-corner { position: absolute; width: 9px; height: 9px; border-color: rgba(242,184,75,.4); border-style: solid; }
.corner-tl { left: 0; top: 0; border-width: 1px 0 0 1px; }
.corner-tr { right: 0; top: 0; border-width: 1px 1px 0 0; }
.corner-bl { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.corner-br { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.local-indicator { color: var(--green); }
.local-indicator i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
.notice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 13px 0 30px; }
.notice { border: 1px solid var(--line); border-radius: 13px; padding: 16px 17px; background: rgba(255,255,255,.025); }
.notice-kicker { display: block; font-size: 8px; color: #91a0a8; margin-bottom: 9px; }
.notice h3 { font: 600 15px 'Space Grotesk', sans-serif; margin-bottom: 6px; letter-spacing: -.02em; }
.notice p { color: #91a0a8; font-size: 10px; line-height: 1.7; margin: 0; }
.notice-phase { border-color: rgba(242,184,75,.2); }
.notice-phase .notice-kicker { color: var(--amber); }
.next-step { border-top: 1px solid var(--line); padding-top: 19px; }
.next-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.next-heading .section-index { margin: 0; }
.next-note { font: 600 8px 'Space Grotesk', sans-serif; letter-spacing: .13em; color: #7b8991; }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.road-item { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 13px; color: #8e9ba2; font-size: 9px; line-height: 1.5; border-right: 1px solid var(--line); }
.road-item:last-child { border: 0; }
.road-number { align-self: flex-start; color: #66747c; font: 600 9px 'Space Grotesk', sans-serif; }
.road-item b { margin-left: auto; color: #58666e; font: 400 13px 'Space Grotesk', sans-serif; }
.footer { margin-top: 29px; padding-top: 13px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #63717a; font: 600 8px 'Space Grotesk', sans-serif; letter-spacing: .11em; }
.footer-separator { color: var(--amber); padding: 0 4px; }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 12px); opacity: 0; z-index: 10; max-width: calc(100vw - 32px); padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: #1c2a34; font-size: 11px; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.toast[data-visible="true"] { opacity: 1; transform: translate(-50%, 0); }
@keyframes blink { 50% { opacity: .45; } }

@media (min-width: 900px) {
  .intro { padding-top: 55px; padding-bottom: 34px; }
  .capture-card { padding: 26px; }
  .capture-grid { gap: 28px; }
  .video-stage { min-height: 275px; }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 560px); }
  .topbar { height: 46px; }
  .intro { padding: 35px 0 22px; }
  .intro-copy { font-size: 12px; }
  .capture-card { padding: 16px 14px 14px; border-radius: 15px; }
  .card-head { margin-bottom: 15px; }
  .capture-grid { grid-template-columns: 1fr; gap: 16px; }
  .control-lead { margin-bottom: 13px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .button { padding: 0 10px; min-height: 44px; font-size: 11px; }
  .button-primary { justify-content: center; }
  .status-box { min-height: 72px; padding: 12px; }
  .metrics { padding-top: 13px; }
  .video-stage { min-height: 190px; }
  .notice-grid { gap: 8px; margin: 10px 0 25px; }
  .notice { padding: 13px 12px; }
  .notice h3 { font-size: 13px; }
  .notice p { font-size: 9px; }
  .road-item { gap: 6px; padding: 9px 7px; font-size: 8px; min-height: 55px; }
  .road-item b { font-size: 10px; }
  .footer { font-size: 7px; letter-spacing: .07em; }
}
@media (max-width: 370px) {
  .top-meta { font-size: 8px; }
  .status-pill { font-size: 9px; padding: 7px 8px; }
  .button { font-size: 10px; }
  .metric span { font-size: 7px; }
  .road-item { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
