/* Component treatments mirror api/cmd/console/web/src/index.css.
   The shared palette and type tokens live in platform-theme.css. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--canvas); color: var(--text); }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, summary, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -.035em; color: var(--accent); }
h2 { font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; line-height: 1.8; }
h3 { font-size: 12px; font-weight: 400; }
em { font-style: normal; }
strong { font-weight: 500; }
code, pre { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 32px; }
.header { max-width: 1376px; margin: auto; padding: 22px 48px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-size: 18px; font-weight: 400; letter-spacing: .15em; line-height: 1.25; }
.brand img { object-fit: contain; flex-shrink: 0; }
.header nav { display: flex; align-items: center; gap: 28px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 0; font-size: 12px; font-weight: 400; line-height: 18px; white-space: nowrap; transition: background var(--motion-hover), color var(--motion-hover), border-color var(--motion-hover); }
.button.orange { background: var(--accent); color: var(--accent-ink); }
.button.orange:hover { background: var(--accent-hover); }
.button.dark { color: var(--accent); background: transparent; }
.button.dark:hover { background: var(--accent-wash); }
.button span { font-size: 16px; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: 9.5px; letter-spacing: .16em; font-weight: 400; display: flex; align-items: center; gap: 8px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 64px; }
.hero h1 { margin-block: 22px; }
.lede { max-width: 445px; color: var(--muted); line-height: 1.9; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-size: 11px; }
.text-link:hover { color: var(--accent-hover); }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 9.5px; margin-top: 24px; }
.hero-note i { width: 2px; height: 2px; background: var(--muted); }
/* The preview follows the console's detail-overview and terminal-panel components. */
.console-preview { border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 9.5px; letter-spacing: .08em; }
.demo-badge { border: 1px solid var(--border); padding: 3px 6px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.preview-identity { display: flex; align-items: center; gap: 12px; padding: 24px 20px; }
.preview-identity strong { font-size: 12px; font-weight: 400; }
.preview-identity div > span { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; }
.running { margin-left: auto; color: var(--success); font-size: 9.5px; display: flex; align-items: center; gap: 7px; }
.preview-resources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 20px 22px; padding-block: 18px; border-block: 1px solid var(--border); }
.preview-resources > div { padding-inline: 18px; border-left: 1px solid var(--border); }
.preview-resources > div:first-child { padding-left: 0; border-left: 0; }
.preview-resources dt { color: var(--muted); font-size: 9.5px; letter-spacing: .14em; }
.preview-resources dd { margin: 8px 0 0; font-size: 22px; color: var(--accent); }
.preview-resources small { color: var(--muted); font-size: 10px; }
.preview-tabs { display: flex; gap: 22px; padding-inline: 20px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.preview-tabs span { padding-bottom: 10px; }
.preview-tabs .active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.preview-terminal { min-height: 120px; padding: 20px; background: var(--sidebar); font-size: 10px; line-height: 2.1; overflow-wrap: anywhere; }
.preview-terminal p > span:first-child { color: var(--accent); }
.preview-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); padding: 12px 20px; font-size: 8px; color: var(--muted); letter-spacing: .04em; }
.terminal-cursor { display: inline-block; width: 6px; height: 12px; background: var(--accent); vertical-align: middle; }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--border); }
.proof > div { display: flex; align-items: center; gap: 16px; padding: 24px 22px; border-right: 1px solid var(--border); }
.proof > div:first-child { padding-left: 0; }
.proof > div:last-child { border-right: 0; }
.proof-icon { color: var(--accent); font-size: 22px; }
.proof strong { display: block; font-weight: 400; font-size: 11px; }
.proof p > span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 7px; }
.section { padding-block: 56px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 br { display: none; }
.section-heading h2 br::after { content: ' '; }
.section-heading > p, .section-copy { font-size: 11px; color: var(--muted); line-height: 1.8; }
.capability-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; }
.capability-tabs { display: flex; flex-direction: column; align-self: start; }
.capability-tabs button { display: flex; align-items: center; gap: 16px; text-align: left; padding: 17px 18px; background: transparent; border: 1px solid transparent; color: var(--muted); border-radius: 0; }
.capability-tabs button:hover { background: var(--hover); color: var(--text); }
.capability-tabs button[aria-selected=true] { background: var(--accent-wash); color: var(--accent); box-shadow: inset 4px 0 var(--accent); }
.capability-tabs strong { display: block; font-size: 12px; font-weight: 400; }
.capability-tabs small { display: block; color: var(--muted); font-size: 9.5px; margin-top: 7px; }
.tab-icon { font-size: 20px; width: 24px; }
.tab-arrow { margin-left: auto; }
.capability-panel { min-width: 0; border: 1px solid var(--border); background: var(--sidebar); }
.terminal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 10px; color: var(--muted); }
.terminal-label { color: var(--accent); letter-spacing: .1em; }
.terminal-body { padding: 24px 20px; min-height: 250px; }
.terminal-comment { font-size: 10px; color: var(--muted); margin-bottom: 18px; }
.terminal-body pre { margin: 0 0 12px; font-size: 11px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.panel-caption { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; }
.panel-caption .demo-badge { margin-left: auto; }
.feature-section { background: var(--surface); border-block: 1px solid var(--border); padding-block: 48px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid article { padding: 24px; border-right: 1px solid var(--border); }
.feature-grid article:nth-child(3n) { border-right: 0; }
.feature-grid article:nth-child(3n+1) { padding-left: 0; }
.feature-grid article:nth-child(n+4) { border-top: 1px solid var(--border); }
.feature-icon { display: block; color: var(--accent); font-size: 23px; margin-bottom: 18px; }
.feature-grid p { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 12px 0 20px; }
.feature-tag { font-size: 9px; color: var(--accent); }
.workflow { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.workflow h2, .quickstart h2 { margin: 16px 0; }
.workflow .section-copy { margin: 20px 0; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.steps li:first-child { padding-top: 0; }
.steps li > span { color: var(--accent); font-size: 11px; }
.steps p { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 8px; }
.pricing-section { background: var(--surface); border-block: 1px solid var(--border); padding-block: 48px; }
.pricing-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pricing-bar > span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9.5px; letter-spacing: .08em; }
.segmented { display: flex; gap: 4px; padding: 4px; background: var(--canvas); border: 1px solid var(--border); }
.segmented button { border: 1px solid transparent; padding: 8px 12px; background: transparent; color: var(--muted); font-size: 11px; border-radius: 0; }
.segmented button[aria-pressed=true] { color: var(--accent); border-color: var(--accent); background: var(--accent-wash); }
.table-scroll { width: 100%; min-width: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 12px; }
thead th { height: 44px; color: var(--muted); font-size: 10px; font-weight: 400; text-transform: uppercase; letter-spacing: .05em; background: transparent; }
th, td { padding: 18px 14px; border-bottom: 1px solid var(--border); }
tbody th { font-weight: 400; }
td:last-child, th:last-child { text-align: right; }
td:last-child { color: var(--accent); font-variant-numeric: tabular-nums; }
tbody tr:hover { background: var(--accent-wash); outline: 1px solid var(--accent); outline-offset: -1px; }
.row-highlight { background: var(--accent-wash); }
.pricing-note { font-size: 10px; line-height: 1.7; color: var(--muted); margin-top: 16px; max-width: 880px; }
.calculator { display: flex; align-items: center; gap: 24px; border: 1px solid var(--border); padding: 24px; margin-top: 28px; }
.calculator .eyebrow { font-size: 9px; margin-bottom: 10px; }
.calculator p { color: var(--muted); font-size: 10px; margin-top: 8px; }
.calculator-controls { display: flex; gap: 12px; margin-left: auto; }
.calculator label { display: grid; gap: 8px; font-size: 10px; color: var(--muted); }
.calculator input, .calculator select { width: 94px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 0; background: var(--canvas); color: var(--text); font-size: 11px; }
.calculator select { width: 135px; }
.calculator input:focus, .calculator select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-wash); }
.estimate { padding-left: 24px; border-left: 1px solid var(--border); min-width: 150px; }
.estimate output { font-size: 26px; color: var(--accent); font-variant-numeric: tabular-nums; }
.estimate > span { display: block; font-size: 9px; color: var(--muted); margin-top: 7px; }
.own-node { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.own-node > span { color: var(--accent); font-size: 22px; }
.own-node p { color: var(--muted); font-size: 10px; line-height: 1.8; }
.own-node strong { color: var(--text); font-weight: 400; }
.quickstart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 64px; }
.quickstart .section-copy { margin-block: 18px; }
.setup-list { padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 2; margin: 0 0 20px; }
.setup-list code { font-size: 10px; color: var(--text); }
.code-card { background: var(--sidebar); border: 1px solid var(--border); min-width: 0; }
.code-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 12px 20px; font-size: 11px; color: var(--muted); }
.code-top button { min-height: 34px; padding: 5px 10px; background: transparent; color: var(--accent); border: 1px solid var(--border); border-radius: 0; font-size: 10px; }
.code-top button:hover { background: var(--accent-wash); border-color: var(--accent); }
.code-card pre { margin: 0; padding: 20px; overflow-x: auto; }
.code-card code { font-size: 11px; line-height: 1.9; }
.code-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); font-size: 9px; color: var(--muted); }
details { color: var(--muted); font-size: 11px; margin-top: 20px; line-height: 1.8; }
details p { margin-top: 12px; }
details code { font-size: 10px; color: var(--text); overflow-wrap: anywhere; }
.closing { display: flex; align-items: center; gap: 32px; padding-block: 28px; border-block: 1px solid var(--border); margin-bottom: 40px; }
.closing-symbol { flex-shrink: 0; }
.closing .button { margin-left: auto; }
footer { display: flex; align-items: center; gap: 24px; padding-block: 22px; border-top: 1px solid var(--border); font-size: 10px; color: var(--muted); }
footer > span { margin-right: auto; font-size: 9px; }
footer .brand { font-size: 16px; }
footer small { font-size: 9px; }
.skip { position: fixed; z-index: 100; top: -100px; left: 20px; background: var(--accent); color: var(--accent-ink); padding: 12px; }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscript { padding: 20px; text-align: center; color: var(--accent); }
@media (max-width: 1100px) {
  .hero, .workflow, .quickstart { gap: 32px; }
  .calculator { flex-wrap: wrap; }
  .calculator-controls { margin-left: 0; }
  .estimate { margin-left: auto; }
  .preview-identity { flex-wrap: wrap; }
  footer { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 20px; }
  .wrap { padding-inline: 18px; }
  .header { padding: 18px; gap: 16px; flex-wrap: wrap; }
  .header nav { gap: 18px; font-size: 10px; }
  .header .button { display: none; }
  .brand { gap: 7px; font-size: 18px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 36px; }
  .hero h1 { font-size: 26px; }
  .hero h1 br { display: none; }
  .eyebrow { font-size: 9px; letter-spacing: .1em; }
  .preview-identity { gap: 10px; padding: 18px 14px; }
  .preview-identity img { width: 48px; height: 40px; }
  .preview-identity strong { font-size: 11px; }
  .preview-identity div > span { font-size: 9px; }
  .running { font-size: 8px; }
  .preview-tabs { gap: 18px; }
  .preview-terminal { font-size: 9px; padding-inline: 14px; }
  .preview-footer { font-size: 7.5px; padding-inline: 14px; }
  .proof { grid-template-columns: minmax(0, 1fr); }
  .proof > div, .proof > div:first-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .proof > div:last-child { border-bottom: 0; }
  .section { padding-block: 36px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
  .capability-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .capability-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-tabs button { padding: 14px 10px; gap: 10px; min-height: 64px; }
  .capability-tabs strong { font-size: 10px; }
  .capability-tabs small, .tab-arrow { display: none; }
  .terminal-body { padding: 20px 14px; }
  .terminal-body pre { font-size: 10px; }
  .panel-caption { flex-wrap: wrap; }
  .feature-section, .pricing-section { padding-block: 36px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid article, .feature-grid article:nth-child(n) { padding: 22px 0; border-right: 0; border-top: 1px solid var(--border); }
  .feature-grid article:first-child { border-top: 0; }
  .feature-grid p { max-width: 560px; }
  .workflow, .quickstart { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pricing-bar { flex-wrap: wrap; }
  th, td { padding: 15px 12px; font-size: 11px; }
  .calculator { padding: 18px; gap: 20px; }
  .calculator-controls { width: 100%; gap: 8px; }
  .calculator label { min-width: 0; flex: 1; font-size: 9px; }
  .calculator input, .calculator select { width: 100%; padding-inline: 6px; }
  .estimate { margin-left: 0; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--border); width: 100%; }
  .own-node { align-items: flex-start; }
  .code-card pre { padding: 18px 14px; }
  .code-card code { font-size: 10px; }
  .closing { flex-wrap: wrap; gap: 20px; }
  .closing .button { margin: 0; width: 100%; }
  .closing-symbol { width: 60px; height: 50px; }
  footer { gap: 20px; }
  footer > span { max-width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The sea is a product illustration. All colors remain console theme tokens. */
.hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 44px; }
.hero-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 64px; align-items: center; }
.hero-copy .eyebrow { grid-column: 1 / -1; }
.hero-copy h1, .hero-copy .actions, .hero-copy .hero-note { margin: 0; }
.hero-copy .lede { max-width: none; }
.launch-scene { border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.launch-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.scene-controls { display: flex; align-items: center; gap: 16px; }
.scene-controls button { background: transparent; border: 0; border-radius: 0; padding: 7px 0; font-size: 9px; color: var(--muted); }
.scene-controls button:hover { color: var(--accent); }
.scene-controls button:disabled { cursor: default; opacity: .6; }
.launch-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
.launch-code-side { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--border); background: var(--sidebar); }
.launch-mode-tabs { display: flex; gap: 24px; padding-inline: 22px; border-bottom: 1px solid var(--border); }
.launch-mode-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; border-radius: 0; color: var(--muted); padding: 16px 0 13px; font-size: 11px; }
.launch-mode-tabs button[aria-selected=true] { color: var(--accent); border-bottom-color: var(--accent); }
#launch-console { min-height: 318px; flex: 1; padding: 22px; }
#launch-setup { color: var(--muted); font-size: 10px; margin: 0 0 22px; white-space: pre-wrap; line-height: 1.8; }
.launch-log-entry { margin-bottom: 20px; font-size: 10px; line-height: 1.8; }
.launch-command { overflow-wrap: anywhere; white-space: pre-wrap; }
.launch-prompt { color: var(--accent); }
.launch-result { margin-top: 5px; color: var(--success); font-size: 9px; }
.typing-cursor { display: inline-block; width: 5px; height: 12px; margin-left: 2px; vertical-align: middle; background: var(--accent); animation: cursor-blink 1s steps(1) infinite; }
.launch-scene [hidden] { display: none !important; }
.launch-status { display: flex; align-items: center; gap: 9px; padding: 15px 22px; border-top: 1px solid var(--border); font-size: 9px; color: var(--muted); }
.signal-arrow { margin-left: auto; color: var(--accent); font-size: 18px; line-height: 12px; }
.ocean { position: relative; min-height: 430px; overflow: hidden; isolation: isolate; background: var(--canvas); }
.ocean-caption { position: absolute; inset: 18px 22px auto; display: flex; justify-content: space-between; gap: 12px; font-size: 8px; letter-spacing: .08em; color: var(--muted); }
#gup-count { color: var(--success); font-variant-numeric: tabular-nums; }
.water-volume { position: absolute; inset: 72px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--success) 11%, var(--canvas)), var(--canvas)); border-top: 1px solid color-mix(in srgb, var(--success) 15%, transparent); }
.water-surface { position: absolute; width: 200%; height: 25px; top: 59px; left: -50%; overflow: visible; fill: none; stroke: var(--success); stroke-width: 1; }
.wave-front { animation: wave-drift 9s linear infinite; opacity: .65; }
.wave-back { animation: wave-drift 13s linear infinite reverse; opacity: .25; }
.depth-guides { position: absolute; inset: 80px 18px 48px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; color: var(--muted); font-size: 7px; letter-spacing: .12em; }
.depth-guides span:last-child { writing-mode: vertical-rl; position: absolute; right: 0; bottom: 0; opacity: .6; }
.depth-guides i { width: 100%; height: 1px; border-top: 1px dashed var(--border); opacity: .3; }
.ocean-current { position: absolute; left: 10%; width: 70%; height: 100px; border: 1px solid var(--success); border-color: transparent transparent var(--success); border-radius: 50%; opacity: .08; transform: rotate(-12deg); }
.current-one { top: 130px; }
.current-two { top: 270px; left: 32%; }
.swimming-gup { position: absolute; width: 96px; opacity: 0; z-index: 2; }
.gup-one { left: 21%; top: 123px; --float-delay: -.8s; --float-duration: 4.9s; }
.gup-two { left: 65%; top: 206px; --float-delay: -2.2s; --float-duration: 6s; }
.gup-three { left: 32%; top: 270px; --float-delay: -1.4s; --float-duration: 5.5s; }
.swimming-gup.is-launched { opacity: 1; animation: gup-arrive 1.2s cubic-bezier(.2,.65,.25,1) both; }
.gup-bob { position: relative; animation: gup-float var(--float-duration) ease-in-out var(--float-delay) infinite; }
.gup-bob img { display: block; width: 80px; height: auto; margin-inline: auto; filter: drop-shadow(0 6px 12px var(--accent-wash)); }
.gup-tag { text-align: center; margin-top: 3px; font-size: 9px; color: var(--text); }
.gup-tag small { display: block; margin-top: 4px; color: var(--muted); font-size: 7px; letter-spacing: .05em; }
.gup-trail { position: absolute; left: 8px; top: 30px; }
.gup-trail i { position: absolute; width: 4px; height: 4px; border: 1px solid var(--success); border-radius: 50%; animation: exhaust-bubble 2.6s linear infinite; opacity: 0; }
.gup-trail i:nth-child(2) { animation-delay: -.9s; }
.gup-trail i:nth-child(3) { animation-delay: -1.8s; width: 3px; height: 3px; }
.spawn-ripple { position: absolute; left: -10%; top: 20px; width: 120%; height: 45px; border: 1px solid var(--accent); border-radius: 50%; opacity: 0; }
.is-launched .spawn-ripple { animation: arrival-ripple 1.3s ease-out both; }
.ambient-bubbles { position: absolute; inset: 85px 0 36px; overflow: hidden; }
.ambient-bubbles i { position: absolute; bottom: -15px; left: 13%; width: 3px; height: 3px; border: 1px solid var(--success); border-radius: 50%; opacity: 0; animation: ambient-rise 12s linear infinite; }
.ambient-bubbles i:nth-child(2) { left: 42%; animation-delay: -4s; animation-duration: 15s; }
.ambient-bubbles i:nth-child(3) { left: 77%; animation-delay: -9s; }
.ambient-bubbles i:nth-child(4) { left: 92%; animation-delay: -6s; width: 5px; height: 5px; }
.ambient-bubbles i:nth-child(5) { left: 57%; animation-delay: -2s; animation-duration: 17s; }
.ambient-bubbles i:nth-child(6) { left: 6%; animation-delay: -8s; animation-duration: 14s; }
.ocean-bed { position: absolute; inset: auto 20px 13px; border-top: 1px solid var(--border); padding-top: 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: 7px; letter-spacing: .12em; }
.launch-scene[data-playing=false] *, .launch-scene[data-playing=false] *::before, .launch-scene[data-playing=false] *::after { animation-play-state: paused !important; }
.launch-scene[data-reduced=true] * { animation: none !important; }
.launch-scene[data-reduced=true] .swimming-gup { opacity: 1; }
.launch-scene[data-reduced=true] .ambient-bubbles, .launch-scene[data-reduced=true] .gup-trail, .launch-scene[data-reduced=true] .spawn-ripple { display: none; }
@keyframes gup-arrive { from { opacity: 0; transform: translateY(-45px) scale(.55); } 65% { opacity: 1; transform: translateY(5px) scale(1.03); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes gup-float { 0%, 100% { transform: translate(0, 0) rotate(-3deg); } 50% { transform: translate(10px, -10px) rotate(3deg); } }
@keyframes wave-drift { to { transform: translateX(300px); } }
@keyframes exhaust-bubble { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 20% { opacity: .55; } 100% { opacity: 0; transform: translate(-35px, -20px) scale(1.3); } }
@keyframes arrival-ripple { 0% { transform: scale(.4); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ambient-rise { 15% { opacity: .3; } 85% { opacity: .2; } 100% { transform: translate(20px, -320px); opacity: 0; } }
@keyframes cursor-blink { 50% { opacity: 0; } }
@media (max-width: 900px) {
  .hero-copy { gap: 20px 32px; }
  .launch-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #launch-console { padding-inline: 16px; }
  .gup-two { left: 62%; }
}
@media (max-width: 760px) {
  .hero { gap: 28px; padding-block: 32px; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .launch-heading { padding: 12px 14px; }
  .scene-controls { flex-wrap: wrap; gap: 14px; }
  .launch-layout { grid-template-columns: minmax(0, 1fr); }
  .launch-code-side { border-right: 0; border-bottom: 1px solid var(--border); }
  #launch-console { min-height: 325px; }
  .launch-mode-tabs { padding-inline: 16px; }
  .launch-status { padding-inline: 16px; }
  .ocean { min-height: 430px; }
  .gup-one { left: 16%; }
  .gup-two { left: 61%; }
  .gup-three { left: 29%; }
}
@media (prefers-reduced-motion: reduce) {
  .launch-scene * { animation: none !important; }
  .swimming-gup { opacity: 1; }
  .ambient-bubbles, .gup-trail, .spawn-ripple { display: none; }
}

/* Working pods scan their surroundings; idle pods keep floating as they sleep. */
.gup-sonar { position: absolute; width: 130px; height: 130px; left: -17px; top: -32px; z-index: -1; pointer-events: none; }
.gup-sonar i { position: absolute; inset: 0; border: 1px solid var(--success); border-radius: 50%; opacity: 0; }
.swimming-gup[data-state=working] .gup-sonar i { animation: sonar-pulse 3.6s ease-out infinite; }
.swimming-gup[data-state=working] .gup-sonar i:nth-child(2) { animation-delay: -1.2s; }
.swimming-gup[data-state=working] .gup-sonar i:nth-child(3) { animation-delay: -2.4s; }
.gup-bob .gup-asleep { display: none; }
.gup-state { display: block; margin-top: 5px; color: var(--success); font-size: 7px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.gup-state::before { content: ''; display: inline-block; width: 3px; height: 3px; margin: 0 5px 1px 0; border-radius: 50%; background: currentColor; }
.gup-sleep { display: none; position: absolute; left: 70px; top: 6px; color: var(--muted); }
.gup-sleep span { position: absolute; font-size: 10px; opacity: 0; animation: sleep-drift 3.6s ease-in-out infinite; }
.gup-sleep span:nth-child(2) { animation-delay: -1.2s; }
.gup-sleep span:nth-child(3) { animation-delay: -2.4s; }
.swimming-gup[data-state=idle] .gup-awake, .swimming-gup[data-state=idle] .gup-trail { display: none; }
.swimming-gup[data-state=idle] .gup-asleep, .swimming-gup[data-state=idle] .gup-sleep { display: block; }
.swimming-gup[data-state=idle] .gup-state { color: var(--muted); }
.swimming-gup[data-state=idle] .gup-bob { animation-name: gup-sleep-float; animation-duration: 7s; }
.launch-scene[data-reduced=true] .gup-sonar i:first-child { opacity: .25; transform: scale(.8); }
.launch-scene[data-reduced=true] .swimming-gup[data-state=idle] .gup-sonar { display: none; }
.launch-scene[data-reduced=true] .gup-sleep span:first-child { opacity: .7; }
@keyframes sonar-pulse { 0% { opacity: .55; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes sleep-drift { 0% { opacity: 0; transform: translate(0, 0) scale(.7); } 25% { opacity: .8; } 100% { opacity: 0; transform: translate(15px, -30px) scale(1.25); } }
@keyframes gup-sleep-float { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-4px) rotate(-1deg); } }

/* Every loop ends with the whole fleet descending beyond the ocean viewport. */
.swimming-gup.is-launched.is-diving {
  animation: none;
  transform: translateY(calc(var(--dive-progress) * 430px)) rotate(calc(var(--dive-progress) * 12deg));
  opacity: clamp(0, calc(3 - var(--dive-progress) * 3), 1);
}
.swimming-gup.is-diving .gup-sonar, .swimming-gup.is-diving .gup-sleep, .swimming-gup.is-diving .spawn-ripple { display: none; }
