:root {
  --navy-950: #020d1e;
  --navy-900: #061a35;
  --navy-850: #08274a;
  --blue: #2978c8;
  --blue-bright: #6db8ff;
  --cyan: #74e5e1;
  --gold: #f6e7a8;
  --amber: #f5b84b;
  --red: #ff6d72;
  --green: #57d5a1;
  --ink: #f4f8ff;
  --muted: #a6bbd3;
  --muted-dark: #6f88a5;
  --line: rgba(170, 207, 243, .18);
  --line-strong: rgba(170, 207, 243, .34);
  --panel: rgba(12, 39, 73, .72);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  font-family: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--navy-950);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 72% -10%, rgba(28, 104, 174, .32), transparent 68%),
    linear-gradient(160deg, #071c38 0%, var(--navy-950) 54%, #04152b 100%);
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .4;
  pointer-events: none;
  background-image: linear-gradient(rgba(155, 205, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(155, 205, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
a { color: inherit; }
button { color: inherit; font: inherit; }

.prototype-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 13, 30, .82);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .15em; text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 3px rgba(116, 229, 225, .12); }
.brand small { display: block; margin-top: 2px; color: var(--muted-dark); font-size: .55rem; font-weight: 500; letter-spacing: .2em; }
.header-actions, .language-switcher { display: flex; align-items: center; gap: 10px; }
.language-switcher { padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.language-switcher button {
  min-width: 38px;
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.language-switcher button[aria-pressed="true"] { color: var(--navy-950); background: var(--ink); }
.exit-link { color: var(--muted); font-size: .84rem; text-decoration: none; }
.exit-link:hover { color: white; }

main { width: min(1440px, calc(100% - 40px)); margin: 0 auto; }
.lab-intro { padding: clamp(54px, 8vw, 104px) 0 32px; }
.eyebrow, .section-kicker { color: var(--cyan); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.lab-intro h1 { max-width: 760px; margin: 14px 0 12px; font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
.lab-copy { max-width: 620px; margin: 0; color: var(--muted); font-size: 1.06rem; line-height: 1.65; }
.prototype-switcher { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 42px; }
.prototype-tab {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: left;
  background: rgba(12, 39, 73, .36);
  cursor: pointer;
  transition: border-color 180ms ease-out, background 180ms ease-out, transform 180ms ease-out;
}
.prototype-tab:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.prototype-tab.is-active { border-color: rgba(116, 229, 225, .7); background: linear-gradient(120deg, rgba(25, 91, 142, .74), rgba(12, 39, 73, .52)); color: white; }
.tab-number { color: var(--cyan); font: 700 .75rem/1 "Courier New", monospace; letter-spacing: .06em; }
.prototype-tab strong, .prototype-tab small { display: block; }
.prototype-tab strong { margin-bottom: 5px; font-size: .94rem; }
.prototype-tab small { color: var(--muted-dark); font-size: .74rem; }
.prototype-tab.is-active small { color: var(--muted); }

.hero-prototype { position: relative; display: none; min-height: 600px; padding: clamp(28px, 6vw, 76px) 0 100px; scroll-margin-top: 92px; }
.hero-prototype.is-visible { display: grid; animation: hero-in 500ms var(--ease-out) both; }
.hero-copy, .cinematic-copy, .command-copy { position: relative; z-index: 2; align-self: center; }
.hero-copy h2, .cinematic-copy h2, .command-copy h2 { max-width: 560px; margin: 18px 0; font-size: clamp(2.25rem, 5vw, 5.1rem); line-height: .99; letter-spacing: -.06em; }
.hero-copy p, .cinematic-copy p, .command-copy p { max-width: 500px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(87, 213, 161, .12); vertical-align: 1px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .87rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease-out, background 160ms ease-out, border-color 160ms ease-out;
}
.button:hover { transform: translateY(-2px); }
.button:active, .prototype-tab:active, .language-switcher button:active { transform: scale(.97); }
.button-primary { color: var(--navy-950); background: var(--cyan); }
.button-primary:hover { background: #a3f3ee; }
.button-light { color: var(--navy-950); background: var(--ink); }
.text-link { color: var(--muted); font-size: .88rem; text-underline-offset: 5px; }
.text-link:hover { color: white; }
.trust-line { margin-top: 48px; color: var(--muted-dark); font: .7rem/1.5 "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; }

.prototype-operational { grid-template-columns: minmax(280px, .72fr) minmax(500px, 1.28fr); gap: clamp(30px, 6vw, 96px); align-items: center; }
.map-shell { overflow: hidden; border: 1px solid rgba(116, 229, 225, .3); border-radius: 14px; background: #0b2a4b; box-shadow: 0 25px 80px rgba(0, 0, 0, .35), 0 0 0 8px rgba(116, 229, 225, .025); }
.map-toolbar, .map-legend { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; color: var(--muted); background: rgba(3, 16, 34, .9); font: .67rem "Courier New", monospace; letter-spacing: .04em; }
.map-product { color: white; font-weight: 700; }
.map-menu { margin-right: 7px; color: var(--cyan); }
.map-time { margin-left: auto; }
.map-battery { color: var(--green); }
.map-canvas { position: relative; min-height: 438px; overflow: hidden; background: #385a65; }
.map-canvas img { width: 100%; height: 100%; min-height: 438px; object-fit: cover; filter: saturate(.75) contrast(1.04) brightness(.72); }
.map-tint { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(3, 35, 59, .34), rgba(11, 95, 114, .12)); mix-blend-mode: multiply; }
.map-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.sector { fill: rgba(88, 214, 194, .13); stroke: rgba(116, 229, 225, .8); stroke-width: 2; stroke-dasharray: 7 7; }
.track-line, .drone-line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 6; filter: drop-shadow(0 0 3px rgba(246, 231, 168, .55)); }
.drone-line { stroke: var(--cyan); stroke-width: 1.5; opacity: .75; }
.map-label, .map-marker { position: absolute; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 4px; background: rgba(3, 16, 34, .82); box-shadow: 0 8px 22px rgba(0, 0, 0, .25); font: .62rem/1.25 "Courier New", monospace; }
.map-label small, .map-marker small { display: block; margin-top: 3px; color: var(--muted); font-size: .58rem; }
.label-sector { top: 16%; left: 34%; color: var(--cyan); border-color: rgba(116, 229, 225, .4); }
.marker-team { display: grid; grid-template-columns: 8px auto; column-gap: 5px; color: white; }
.marker-team small { grid-column: 2; }
.marker-pulse { width: 8px; height: 8px; margin-top: 2px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(87, 213, 161, .2); }
.marker-one { top: 65%; left: 20%; }.marker-two { top: 43%; left: 51%; }
.marker-clue { top: 31%; left: 67%; color: var(--amber); border-color: rgba(245, 184, 75, .5); }
.clue-icon, .drone-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 5px; border-radius: 50%; color: var(--navy-950); background: var(--amber); font-weight: 900; }
.marker-drone { top: 12%; right: 10%; color: var(--cyan); border-color: rgba(116, 229, 225, .5); }
.drone-icon { background: var(--cyan); }
.map-scale { position: absolute; right: 16px; bottom: 18px; padding-top: 4px; border-top: 2px solid white; color: white; font: .6rem "Courier New", monospace; }
.map-compass { position: absolute; right: 18px; top: 18px; color: var(--cyan); font: 700 .72rem "Courier New", monospace; }
.map-legend { justify-content: flex-start; gap: 20px; color: var(--muted-dark); }
.map-legend span { display: inline-flex; gap: 6px; align-items: center; }
.map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }.legend-team { background: var(--green); }.legend-clue { background: var(--amber); }.legend-track { width: 15px !important; height: 2px !important; border-radius: 0 !important; background: var(--gold); }

.prototype-cinematic { grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 7vw, 110px); align-items: center; min-height: 650px; }
.prototype-cinematic::before { position: absolute; inset: 0 -10vw; z-index: -1; content: ""; background: radial-gradient(ellipse at 25% 48%, rgba(15, 94, 135, .3), transparent 58%); }
.cinematic-media { position: relative; min-height: 520px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: #061a30; box-shadow: 0 30px 90px rgba(0, 0, 0, .4); }
.mission-video { width: 100%; height: 100%; min-height: 520px; object-fit: cover; opacity: 1; filter: none; }
.video-grid { display: none; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; pointer-events: none; color: white; text-align: center; transition: opacity 180ms ease-out; }
.video-placeholder.is-hidden { opacity: 0; }
.play-ring { display: grid; place-items: center; width: 72px; height: 72px; padding-left: 4px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: var(--cyan); background: rgba(3,16,34,.45); font-size: 1.2rem; }
.video-placeholder strong { font-size: .88rem; letter-spacing: .05em; }.video-placeholder small { color: var(--muted); font-size: .72rem; }
.video-topline, .video-caption { position: absolute; right: 18px; left: 18px; display: flex; justify-content: space-between; color: var(--muted); font: .65rem "Courier New", monospace; letter-spacing: .08em; }
.video-topline { top: 18px; }.video-caption { bottom: 18px; color: white; }.recording { color: var(--red); }.recording i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; }.muted-label { color: var(--gold); }
.sound-note { display: inline-flex; gap: 8px; align-items: center; color: var(--muted-dark); font-size: .75rem; }.sound-bars { color: var(--gold); letter-spacing: -3px; }

.prototype-command { grid-template-columns: minmax(270px, .65fr) minmax(600px, 1.35fr); gap: clamp(30px, 5vw, 78px); align-items: center; }
.command-board { padding: 12px; border: 1px solid rgba(116, 229, 225, .28); border-radius: 14px; background: rgba(5, 25, 49, .9); box-shadow: 0 25px 80px rgba(0, 0, 0, .35); }
.board-topbar { display: flex; gap: 16px; align-items: center; padding: 3px 5px 13px; color: var(--muted-dark); font: .65rem "Courier New", monospace; }.board-brand { color: var(--ink); font-weight: 700; }.board-live { margin-left: auto; color: var(--green); }
.board-grid { display: grid; grid-template-columns: 1.3fr .8fr; grid-template-rows: 1fr .8fr; gap: 10px; }
.board-panel { min-height: 150px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(10, 42, 75, .68); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font: .68rem "Courier New", monospace; }.panel-heading strong { color: white; font-size: .72rem; }.panel-tag { padding: 3px 5px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--cyan); font-size: .58rem; }.panel-tag-live { color: var(--red); border-color: rgba(255, 109, 114, .4); }
.mini-map { position: relative; height: 178px; overflow: hidden; border-radius: 4px; background: #45676b; }.mini-map img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) saturate(.7); }.mini-map-overlay { position: absolute; inset: 0; background: rgba(7, 83, 96, .2); }.mini-pin { position: absolute; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(87, 213, 161, .2); }.pin-a { bottom: 28%; left: 23%; }.pin-b { top: 32%; right: 31%; }.mini-pin.pin-clue { top: 27%; right: 15%; display: grid; place-items: center; width: 17px; height: 17px; border-color: var(--amber); color: var(--navy-950); background: var(--amber); font: 700 .65rem sans-serif; }.mini-route { position: absolute; top: 40%; left: 20%; width: 55%; height: 30%; border-top: 2px dashed var(--gold); border-radius: 50%; transform: rotate(-20deg); }
.feed-frame { position: relative; height: 178px; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(116, 229, 225, .25), transparent 15%), linear-gradient(145deg, #142d40, #071421); }.feed-frame::before, .feed-frame::after { position: absolute; content: ""; background: rgba(116,229,225,.22); }.feed-frame::before { top: 50%; left: 0; width: 100%; height: 1px; }.feed-frame::after { top: 0; left: 50%; width: 1px; height: 100%; }.feed-crosshair { position: absolute; inset: 25% 25%; border: 1px solid rgba(116,229,225,.45); border-radius: 50%; }.feed-label, .feed-coords { position: absolute; color: var(--cyan); font: .58rem "Courier New", monospace; }.feed-label { top: 10px; left: 10px; }.feed-coords { right: 10px; bottom: 10px; text-align: right; }
.member { display: flex; gap: 9px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(170,207,243,.1); }.member:last-child { border-bottom: 0; }.avatar { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: var(--navy-950); font-size: .7rem; font-weight: 800; }.avatar-a { background: var(--cyan); }.avatar-b { background: var(--gold); }.avatar-c { background: var(--green); }.member b, .member small { display: block; }.member b { color: white; font: .64rem "Courier New", monospace; }.member small { margin-top: 3px; color: var(--muted-dark); font-size: .64rem; }.member-live { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--green); }
.status-row { display: flex; justify-content: space-between; margin-top: 13px; color: var(--muted); font-size: .68rem; }.status-row b { color: var(--green); font: 700 .67rem "Courier New", monospace; }.status-row .status-amber { color: var(--amber); }.progress { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 10px; background: rgba(170,207,243,.15); }.progress span { display: block; height: 100%; border-radius: inherit; background: var(--cyan); }

.prototype-footer { display: flex; justify-content: space-between; width: min(1440px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 34px; border-top: 1px solid var(--line); color: var(--muted-dark); font: .7rem "Courier New", monospace; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
@keyframes hero-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) {
  .map-shell:hover, .cinematic-media:hover, .command-board:hover { border-color: rgba(116, 229, 225, .55); }
}
@media (max-width: 980px) {
  .prototype-operational, .prototype-cinematic, .prototype-command { grid-template-columns: 1fr; }
  .hero-copy, .cinematic-copy, .command-copy { max-width: 680px; }
  .map-shell, .cinematic-media, .command-board { width: 100%; }
  .prototype-cinematic { display: none; }.prototype-cinematic.is-visible { display: grid; }
  .cinematic-media { order: 2; min-height: 420px; }.mission-video { min-height: 420px; }
  .prototype-command { display: none; }.prototype-command.is-visible { display: grid; }
}
@media (max-width: 680px) {
  .prototype-header { align-items: flex-start; flex-wrap: wrap; padding: 12px 18px; }.header-actions { width: 100%; justify-content: space-between; }.exit-link { font-size: .75rem; }
  main { width: min(100% - 28px, 1440px); }.lab-intro { padding-top: 48px; }.prototype-switcher { grid-template-columns: 1fr; margin-top: 30px; }.prototype-tab { min-height: auto; padding: 14px; }
  .hero-prototype { padding: 28px 0 60px; }.hero-copy h2, .cinematic-copy h2, .command-copy h2 { font-size: clamp(2.25rem, 12vw, 3.6rem); }.map-canvas, .map-canvas img { min-height: 360px; }.map-time { display: none; }.map-legend { flex-wrap: wrap; gap: 9px 14px; }
  .board-grid { grid-template-columns: 1fr; grid-template-rows: auto; }.board-map, .board-feed, .board-team, .board-status { min-height: auto; }.mini-map, .feed-frame { height: 185px; }.board-topbar { flex-wrap: wrap; }.board-live { margin-left: 0; }
  .prototype-footer { display: block; width: min(100% - 28px, 1440px); line-height: 1.8; }.prototype-footer span { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prototype-tab, .button { transition: none; }.hero-prototype.is-visible { animation: none; }.button:hover, .prototype-tab:hover { transform: none; }
}
