:root {
  --shell: #172733;
  --shell-2: #203746;
  --paper: #edf3f1;
  --paper-2: #f8f4eb;
  --ink: #172733;
  --muted: #68808a;
  --line: rgba(23, 39, 51, 0.18);
  --line-dark: rgba(237, 243, 241, 0.2);
  --signal: #df6b54;
  --signal-soft: #f2c5b8;
  --proof: #537562;
  --aqua: #9dd6cb;
  --warning: #c28a2c;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper-2); color: var(--ink); font-family: var(--body); line-height: 1.55; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: 0.75rem; left: 1rem; z-index: 100; padding: 0.65rem 0.8rem; background: var(--signal); color: #fff; transform: translateY(-160%); transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }
.romeoapps-brandbar a:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.page { overflow: hidden; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.8fr); gap: clamp(2rem, 7vw, 8rem); min-height: min(720px, calc(100svh - 58px)); padding: clamp(2.8rem, 5vw, 4.8rem) clamp(1.4rem, 7vw, 8rem); background: var(--shell); color: var(--paper); isolation: isolate; }
.hero::after { position: absolute; right: -12vw; bottom: -19vw; width: 55vw; height: 55vw; border: 1px solid rgba(157, 214, 203, 0.2); border-radius: 50%; box-shadow: 0 0 0 5vw rgba(157, 214, 203, 0.035), 0 0 0 10vw rgba(157, 214, 203, 0.025); content: ""; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: 0.36; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 70px 70px; mask-image: linear-gradient(90deg, #000 0 58%, transparent 92%); }
.hero-copy, .route-bench { position: relative; z-index: 1; }
.hero-copy { align-self: center; max-width: 700px; }
.eyebrow, .section-label, .lab-label, .bench-head, .bench-foot, .pane-head, .route-row small, .route-row strong, .signal-strip, .method-list > li > b, .boundary-row, .hero-note, .control-note { font-family: var(--mono); letter-spacing: 0.07em; text-transform: uppercase; }
.eyebrow { display: flex; justify-content: space-between; gap: 1rem; width: min(100%, 520px); margin: 0 0 1.7rem; color: var(--aqua); font-size: 0.68rem; }
.eyebrow b { color: var(--signal); font-weight: 500; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; }
h1 { max-width: 14ch; margin-bottom: 1.4rem; font-size: clamp(3rem, 5.2vw, 6.2rem); letter-spacing: -0.085em; line-height: 0.84; text-transform: uppercase; }
h1 em, h2 em { color: var(--signal); font-style: normal; }
.hero-intro { max-width: 540px; margin-bottom: 2rem; color: rgba(237, 243, 241, 0.78); font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 0.7rem; padding: 0.85rem 1.15rem; border: 1px solid transparent; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--signal); color: #fff; }
.button-primary:hover { background: #ec8069; }
.button-secondary { border-color: rgba(237, 243, 241, 0.45); color: var(--paper); }
.button-secondary:hover { background: rgba(237, 243, 241, 0.1); }
.hero-note { display: flex; align-items: center; gap: 0.55rem; max-width: 610px; margin: 1.4rem 0 0; color: rgba(237, 243, 241, 0.54); font-size: 0.63rem; line-height: 1.55; }
.dot, .bench-live i { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 5px rgba(157, 214, 203, 0.1); }

.route-bench { align-self: center; overflow: hidden; border: 1px solid rgba(157, 214, 203, 0.5); background: var(--paper-2); color: var(--ink); box-shadow: 22px 22px 0 rgba(223, 107, 84, 0.14); animation: bench-in 650ms ease both; }
.bench-head, .bench-foot { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1rem; color: var(--muted); font-size: 0.62rem; }
.bench-head { border-bottom: 1px solid var(--line); }
.bench-live { color: var(--proof); }
.bench-live i { width: 6px; height: 6px; margin-right: 0.35rem; background: var(--proof); box-shadow: none; }
.route-list { padding: 1rem; }
.route-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; min-height: 76px; padding: 0.8rem; border: 1px solid var(--line); background: rgba(237, 243, 241, 0.55); }
.route-row.is-active { border-color: var(--aqua); background: #e1eeeb; }
.route-row--signal { border-color: rgba(223, 107, 84, 0.62); background: #f8e7e1; }
.route-index { color: var(--muted); font: 0.7rem var(--mono); }
.route-row b { display: block; font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.035em; text-transform: uppercase; }
.route-row small { display: block; margin-top: 0.18rem; color: var(--muted); font-size: 0.56rem; letter-spacing: 0.03em; }
.route-row strong { color: var(--proof); font-size: 0.58rem; font-weight: 500; }
.route-row--signal strong { color: var(--signal); }
.route-line { width: 1px; height: 16px; margin: 0 auto; background: var(--line); }
.bench-foot { border-top: 1px solid var(--line); color: var(--muted); }
.bench-foot b { color: var(--signal); font-weight: 500; }
@keyframes bench-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.signal-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--aqua); color: var(--ink); font-size: 0.65rem; }
.signal-strip span { padding: 1rem 1.1rem; border-right: 1px solid rgba(23, 39, 51, 0.2); text-align: center; }
.signal-strip span:last-child { border-right: 0; }

.lab-section, .method-section, .boundary-section { padding: clamp(5rem, 10vw, 10rem) clamp(1.4rem, 7vw, 8rem); }
.lab-section { background: var(--paper-2); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr); gap: 1rem 8vw; max-width: 1160px; margin-bottom: 4rem; }
.section-label { grid-column: 1 / -1; margin-bottom: 0.8rem; color: var(--proof); font-size: 0.66rem; }
h2 { max-width: 10ch; margin-bottom: 0; font-size: clamp(3rem, 6.3vw, 7rem); letter-spacing: -0.09em; line-height: 0.86; text-transform: uppercase; }
.section-intro > p:last-child { align-self: end; max-width: 480px; margin-bottom: 0.35rem; color: var(--muted); font-size: 1.03rem; }
.lab-shell { display: grid; grid-template-columns: minmax(190px, 0.55fr) minmax(250px, 1fr) minmax(260px, 1fr); border: 1px solid var(--line); background: var(--line); }
.lab-controls, .payload-pane, .result-pane { min-width: 0; padding: 1.1rem; background: var(--paper); }
.lab-controls { display: flex; flex-direction: column; gap: 0.8rem; background: var(--shell); color: var(--paper); }
.lab-label { margin: 0; color: var(--aqua); font-size: 0.62rem; }
.fixture-tabs { display: grid; gap: 0.45rem; }
.fixture-tab, .run-button, .copy-button { width: 100%; min-height: 44px; border: 1px solid transparent; cursor: pointer; font: 0.64rem var(--mono); letter-spacing: 0.04em; text-align: left; text-transform: uppercase; }
.fixture-tab { padding: 0.7rem 0.75rem; border-color: var(--line-dark); background: transparent; color: rgba(237, 243, 241, 0.66); }
.fixture-tab:hover, .fixture-tab.is-active { border-color: var(--aqua); background: rgba(157, 214, 203, 0.12); color: var(--paper); }
.run-button, .copy-button { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.75rem; }
.run-button { margin-top: auto; background: var(--signal); color: #fff; }
.run-button:hover { background: #ec8069; }
.copy-button { border-color: var(--line-dark); background: transparent; color: var(--paper); }
.copy-button:hover { background: rgba(237, 243, 241, 0.1); }
.control-note { min-height: 4.2em; margin: 0.3rem 0 0; color: rgba(237, 243, 241, 0.5); font-size: 0.55rem; line-height: 1.55; text-transform: none; }
.payload-pane, .result-pane { background: #f3f7f4; }
.result-pane { background: #f8e7e1; }
.pane-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; color: var(--muted); font-size: 0.6rem; }
pre { min-height: 260px; margin: 0; overflow: auto; padding: 1rem; border-left: 3px solid var(--aqua); background: var(--shell-2); color: var(--paper); font: 0.72rem/1.65 var(--mono); white-space: pre-wrap; word-break: break-word; }
.pane-note { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.72rem; }
.result-status { color: var(--proof); font: 800 clamp(2.6rem, 5vw, 5rem)/0.9 var(--display); letter-spacing: -0.09em; }
.result-status.is-review { color: var(--warning); }
.result-status.is-block { color: var(--signal); }
.result-title { margin: 1rem 0 0.5rem; font: 800 1.35rem/1 var(--display); letter-spacing: -0.045em; text-transform: uppercase; }
.result-detail { min-height: 5.3em; margin-bottom: 1.5rem; color: var(--muted); font-size: 0.86rem; }
.result-list { margin: 0; border-top: 1px solid var(--line); }
.result-list div { display: grid; grid-template-columns: 0.8fr 1fr; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.result-list dt { color: var(--muted); font: 0.62rem var(--mono); text-transform: uppercase; }
.result-list dd { margin: 0; overflow-wrap: anywhere; font: 0.72rem var(--mono); }

.method-section { background: var(--shell-2); color: var(--paper); }
.method-heading { max-width: 900px; margin-bottom: 4rem; }
.method-heading .section-label { color: var(--aqua); }
.method-list { max-width: 1180px; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); list-style: none; }
.method-list > li { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(140px, 0.35fr); gap: 1.4rem; align-items: start; padding: 1.8rem 0; border-bottom: 1px solid var(--line-dark); }
.method-list > li > span, .method-list > li > b { color: var(--aqua); font: 0.64rem var(--mono); }
.method-list h3 { margin: 0 0 0.35rem; font-size: clamp(1.7rem, 3vw, 3rem); letter-spacing: -0.06em; line-height: 0.95; text-transform: uppercase; }
.method-list p { max-width: 620px; margin: 0; color: rgba(237, 243, 241, 0.65); }
.method-list > li > b { justify-self: end; color: var(--signal-soft); font-weight: 500; }

.boundary-section { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); gap: 6vw; background: var(--paper); }
.boundary-section .section-label { color: var(--proof); }
.boundary-lead { max-width: 460px; margin-top: 1.5rem; color: var(--muted); font-size: 1.06rem; }
.boundary-table { align-self: center; border-top: 2px solid var(--ink); }
.boundary-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 0.66rem; letter-spacing: 0.02em; text-transform: none; }
.boundary-row span:first-child { color: var(--proof); }
.boundary-row span:last-child { color: var(--signal); }
.boundary-row--head { color: var(--muted); font-size: 0.6rem; text-transform: uppercase; }
.boundary-row--head span:first-child, .boundary-row--head span:last-child { color: inherit; }

.closing-section { padding: clamp(5rem, 9vw, 8rem) clamp(1.4rem, 7vw, 8rem); background: var(--signal); color: #fff; }
.closing-section .section-label { color: var(--ink); }
.closing-section h2 { max-width: 12ch; margin-bottom: 1.1rem; }
.closing-section > p:not(.section-label) { max-width: 620px; margin-bottom: 1.8rem; font: 0.8rem var(--mono); letter-spacing: 0.02em; text-transform: uppercase; }
.closing-section .button-primary { background: var(--ink); }
.closing-section .button-primary:hover { background: var(--shell-2); }
.site-footer { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 2rem; align-items: center; padding: 1.5rem clamp(1.4rem, 7vw, 8rem); background: var(--ink); color: var(--paper); }
.footer-brand { display: inline-flex; align-items: center; gap: 0.55rem; font: 800 1rem var(--display); text-decoration: none; }
.footer-brand img { border-radius: 4px; background: var(--paper); }
.site-footer p { margin: 0; color: rgba(237, 243, 241, 0.6); font-size: 0.78rem; }
.site-footer div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; font: 0.62rem var(--mono); text-transform: uppercase; }
.site-footer a:hover { color: var(--signal-soft); }
.noscript { margin: 0; padding: 1rem; background: var(--warning); color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 680px; }
  .route-bench { max-width: 650px; }
  .lab-shell { grid-template-columns: 1fr 1fr; }
  .lab-controls { grid-row: span 2; }
  .result-pane { grid-column: 2; }
  .boundary-section { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .romeoapps-brandbar { gap: 0.5rem; }
  .romeoapps-brandbar__meta { font-size: 0.58rem; }
  .hero { padding-top: 3.5rem; }
  h1 { font-size: clamp(3.35rem, 16vw, 5.4rem); }
  h2 { font-size: clamp(2.8rem, 14vw, 4.8rem); }
  .signal-strip { grid-template-columns: 1fr 1fr; }
  .signal-strip span:nth-child(2) { border-right: 0; }
  .signal-strip span:nth-child(-n + 2) { border-bottom: 1px solid rgba(23, 39, 51, 0.2); }
  .section-intro { display: block; }
  .section-intro > p:last-child { margin-top: 1.4rem; }
  .lab-shell { display: block; }
  .lab-controls, .payload-pane, .result-pane { display: block; }
  .lab-controls { min-height: auto; }
  .run-button { margin-top: 0.6rem; }
  pre { min-height: 210px; }
  .method-list > li { grid-template-columns: 34px 1fr; }
  .method-list > li > b { grid-column: 2; justify-self: start; }
  .boundary-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .boundary-row--head { display: none; }
  .site-footer { grid-template-columns: 1fr; gap: 0.9rem; }
  .site-footer div { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
