@import url("../saurus_style/tokens.css");

:root {
  color-scheme: dark;
  --ink: #111916;
  --control: #07151d;
  --panel: rgba(11, 28, 29, 0.76);
  --panel-soft: rgba(229, 242, 233, 0.1);
  --panel-ink: #f2f8f4;
  --evidence-panel: rgba(238, 247, 241, 0.94);
  --evidence-ink: #17211d;
  --muted: rgba(229, 242, 233, 0.66);
  --line: rgba(246, 243, 234, 0.16);
  --line-dark: rgba(229, 242, 233, 0.16);
  --signal: #8fd9bb;
  --tape: var(--saurus-color-tape);
  --green: #54b783;
  --green-soft: rgba(84, 183, 131, 0.16);
  --copper: #c06f4f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --gutter: clamp(18px, 4vw, 52px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 14% 8%, rgba(84, 183, 131, 0.23), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(127, 183, 191, 0.14), transparent 24%),
    linear-gradient(145deg, #07151d 0%, #111916 43%, #1d241f 100%);
  background-attachment: fixed;
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: #f8f5ea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.alpha-shell {
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.alpha-shell::before {
  background: linear-gradient(90deg, var(--green), var(--signal), rgba(244, 208, 63, 0.7));
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: fixed;
  z-index: 20;
}

.ambient-wave {
  inset: 82px auto auto 50%;
  opacity: 0.19;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  width: max(1020px, 128vw);
  z-index: -1;
}

.wave-line {
  fill: none;
  stroke: rgba(143, 217, 187, 0.92);
  stroke-linecap: round;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(11, 24, 30, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #fffdf4;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 24px var(--gutter) 0;
  min-height: 76px;
  padding: 12px 16px;
  position: sticky;
  top: 16px;
  z-index: 12;
}

.brand {
  align-items: center;
  display: flex;
  font-size: 1.02rem;
  font-weight: 760;
  gap: 12px;
  min-width: 0;
}

.brand img {
  flex: 0 0 auto;
  height: 48px;
  object-fit: contain;
  width: 96px;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.status-pill,
.mode-pill,
.tag {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 780;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  white-space: nowrap;
}

.status-pill {
  background: rgba(84, 183, 131, 0.14);
  border: 1px solid rgba(84, 183, 131, 0.32);
  color: #d7f4e4;
}

.status-pill::before {
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(84, 183, 131, 0.58);
  content: "";
  height: 8px;
  width: 8px;
}

.mode-pill {
  background: var(--green);
  color: var(--ink);
}

.layout {
  display: grid;
  gap: 26px;
  grid-template-columns: 252px minmax(0, 1fr);
  padding: 26px var(--gutter) 58px;
}

.side-panel {
  align-self: start;
  background: rgba(11, 28, 29, 0.66);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  padding: 12px;
  position: sticky;
  top: 118px;
}

.workspace {
  min-width: 0;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(248, 245, 234, 0.68);
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  min-height: 58px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.nav-button strong {
  color: #fffdf4;
  display: block;
  font-size: 0.9rem;
  line-height: 1.25;
}

.nav-button span {
  display: block;
  font-size: 0.74rem;
  line-height: 1.25;
}

.nav-button.is-active {
  background: rgba(84, 183, 131, 0.14);
  border-color: rgba(84, 183, 131, 0.42);
  color: #f8f5ea;
}

.nav-icon {
  align-items: center;
  background: rgba(143, 217, 187, 0.12);
  border: 1px solid rgba(143, 217, 187, 0.22);
  border-radius: 4px;
  color: #c6e7e9;
  display: inline-flex;
  flex: 0 0 36px;
  font-size: 0.82rem;
  font-weight: 820;
  height: 36px;
  justify-content: center;
}

.nav-button.is-active .nav-icon {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.side-note {
  border-top: 1px solid var(--line);
  color: rgba(248, 245, 234, 0.62);
  font-size: 0.82rem;
  margin: 0;
  padding: 14px 4px 2px;
}

.view {
  display: none;
}

.view.is-active {
  display: grid;
  gap: 18px;
}

.view-header {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.eyebrow {
  color: var(--signal);
  font-size: 0.73rem;
  font-weight: 850;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1, h2, h3, p { margin: 0; }

h1 {
  color: #fffdf4;
  font-size: clamp(2.55rem, 7vw, 5.9rem);
  font-weight: 760;
  line-height: 0.95;
  max-width: 11ch;
}

h2 {
  color: #fffdf4;
  font-size: clamp(1.62rem, 3.2vw, 3rem);
  font-weight: 720;
  line-height: 1.08;
  max-width: 16ch;
}

h3 {
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.25;
}

.lede {
  color: var(--muted);
  font-size: 1rem;
  max-width: 68ch;
}

.view-header .lede,
.hero-card .lede,
.card.dark .lede {
  color: rgba(248, 245, 234, 0.72);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  align-items: center;
  border: 1px solid rgba(246, 243, 234, 0.22);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.button.tape {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.button.secondary {
  background: rgba(246, 243, 234, 0.08);
  color: #fffdf4;
}

.button.danger {
  background: rgba(192, 111, 79, 0.16);
  border-color: rgba(192, 111, 79, 0.5);
  color: #ffd8c9;
}

.grid-2,
.grid-3,
.story-steps {
  display: grid;
  gap: 16px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spaced-grid { margin-top: 0; }

.card {
  background:
    linear-gradient(135deg, rgba(84, 183, 131, 0.1), transparent 38%),
    var(--panel);
  border: 1px solid rgba(143, 217, 187, 0.18);
  border-radius: 8px;
  color: var(--panel-ink);
  min-width: 0;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.card .lede {
  color: var(--muted);
}

.account-tabs {
  background: rgba(7, 21, 29, 0.58);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  padding: 4px;
}

.account-tab {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: rgba(248, 245, 234, 0.64);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 820;
  min-height: 36px;
  padding: 7px 8px;
}

.account-tab.is-active {
  background: var(--green);
  color: var(--ink);
}

.account-form {
  display: grid;
  gap: 13px;
}

.form-status {
  color: var(--muted);
  font-size: 0.8rem;
}

.story-band {
  align-items: start;
  display: grid;
  gap: clamp(18px, 4vw, 44px);
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
}

.story-band h2 {
  color: var(--panel-ink);
  max-width: 18ch;
}

.story-band p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.step-number {
  color: var(--copper);
  display: block;
  font-size: 0.74rem;
  font-weight: 850;
  margin: 0 0 12px;
}

.card.dark {
  background:
    linear-gradient(145deg, rgba(17, 43, 36, 0.96), rgba(7, 21, 29, 0.98)),
    var(--control);
  border-color: rgba(143, 217, 187, 0.22);
  color: #fffdf4;
}

.card.dark p,
.card.dark .meta {
  color: rgba(248, 245, 234, 0.68);
}

.hero-card {
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(7, 21, 29, 0.82), rgba(7, 21, 29, 0.36)),
    linear-gradient(145deg, rgba(13, 35, 44, 0.98), rgba(11, 24, 30, 0.96));
  color: #fffdf4;
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.82fr);
  min-height: 430px;
  padding: clamp(24px, 4vw, 46px);
}

.hero-card > img {
  bottom: -36px;
  opacity: 0.11;
  position: absolute;
  right: -90px;
  width: min(620px, 70vw);
}

.hero-card .hero-copy {
  align-content: center;
  display: grid;
  gap: 22px;
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-kicker span {
  background: rgba(127, 183, 191, 0.12);
  border: 1px solid rgba(127, 183, 191, 0.32);
  border-radius: 4px;
  color: #d8eff0;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  min-height: 28px;
  padding: 5px 8px;
  text-transform: uppercase;
}

.oscilloscope-panel {
  align-self: stretch;
  background: #060d11;
  border: 1px solid rgba(127, 183, 191, 0.28);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 24px 52px rgba(0, 0, 0, 0.34);
  display: grid;
  margin: 0;
  min-height: 320px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.oscilloscope-panel::before,
.oscilloscope-panel::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.oscilloscope-panel::before {
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(244, 208, 63, 0.18) 49% 50%, transparent 50%),
    linear-gradient(0deg, transparent 0 49%, rgba(127, 183, 191, 0.2) 49% 50%, transparent 50%);
  background-size: 64px 64px;
  mix-blend-mode: screen;
}

.oscilloscope-panel::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 42%, rgba(0, 0, 0, 0.36));
}

.oscilloscope-panel img {
  display: block;
  filter: sepia(0.35) saturate(0.78) hue-rotate(142deg) contrast(1.24);
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  width: 100%;
}

.oscilloscope-panel figcaption {
  background: rgba(6, 13, 17, 0.86);
  bottom: 0;
  color: rgba(248, 245, 234, 0.72);
  font-size: 0.68rem;
  font-weight: 780;
  left: 0;
  padding: 7px 9px;
  position: absolute;
  right: 0;
  text-transform: uppercase;
  z-index: 2;
}

.card-wave,
.package-wave {
  display: block;
  filter: sepia(0.18) saturate(1.35) hue-rotate(86deg) contrast(1.45);
  height: 46px;
  margin: -2px 0 14px;
  object-fit: cover;
  opacity: 0.42;
  width: 100%;
}

.dark-wave {
  bottom: 4px;
  filter: invert(1) sepia(0.2) saturate(1.4) hue-rotate(72deg);
  opacity: 0.14;
  pointer-events: none;
  position: absolute;
  right: -32px;
  width: 82%;
}

.package-wave {
  height: 38px;
  margin: 8px 0 14px;
  opacity: 0.38;
}

.product-hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 58px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  min-height: 560px;
}

.product-copy {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.headline-line {
  display: block;
}

.hero-text {
  color: rgba(248, 245, 234, 0.72);
  font-size: 1.08rem;
  line-height: 1.66;
  max-width: 52ch;
}

.hero-signal {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 5px;
  height: 44px;
  max-width: 280px;
  padding: 0 4px 12px;
}

.hero-signal i {
  background: var(--signal);
  display: block;
  height: 8px;
  width: 4px;
}

.hero-signal i:nth-child(2n) { height: 18px; }
.hero-signal i:nth-child(3n) { background: var(--green); height: 28px; }
.hero-signal i:nth-child(5n) { background: var(--copper); height: 36px; }

.hero-stats {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 600px;
  padding-top: 20px;
}

.hero-stats dt {
  color: #fffdf4;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-stats dd {
  color: rgba(248, 245, 234, 0.62);
  font-size: 0.82rem;
  margin: 0;
}

.hero-visual {
  min-width: 0;
  width: 100%;
}

.glass-shell {
  background: var(--evidence-panel);
  border: 1px solid rgba(143, 217, 187, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--evidence-ink);
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.shell-wave {
  filter: sepia(0.18) saturate(1.35) hue-rotate(86deg) contrast(1.45);
  height: 54px;
  left: 18px;
  object-fit: cover;
  opacity: 0.42;
  position: absolute;
  right: 18px;
  top: 60px;
  width: calc(100% - 36px);
}

.shell-topbar {
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  gap: 6px;
  min-height: 36px;
  padding-bottom: 12px;
}

.shell-topbar span {
  background: var(--copper);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.shell-topbar span:nth-child(2) { background: var(--signal); }
.shell-topbar span:nth-child(3) { background: var(--green); }
.shell-topbar strong { font-size: 0.82rem; font-weight: 800; margin-left: 6px; }

.track-panel { margin-top: 20px; }
.track-meta { display: grid; gap: 4px; margin-bottom: 16px; }
.track-meta strong { font-size: 0.94rem; font-weight: 800; overflow-wrap: anywhere; }

.track-meta span,
.export-stack span,
.match-card span {
  color: rgba(23, 33, 29, 0.66);
  font-size: 0.75rem;
  font-weight: 650;
}

.waveform {
  align-items: center;
  background: var(--ink);
  border-radius: 4px;
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(8, 1fr);
  height: 84px;
  padding: 12px 18px;
}

.waveform i {
  background: var(--signal);
  border-radius: 2px;
  display: block;
  height: 18px;
}

.waveform i:nth-child(2n) { background: var(--green); height: 36px; }
.waveform i:nth-child(3n) { height: 52px; }

.trace-rail {
  background: var(--signal);
  height: 2px;
  margin: 28px 12px;
  position: relative;
}

.trace-dot {
  background: var(--evidence-panel);
  border: 2px solid var(--green);
  border-radius: 50%;
  height: 12px;
  position: absolute;
  top: -5px;
  width: 12px;
}

.source-dot { left: 0; }
.export-dot { left: calc(50% - 6px); }
.leak-dot { right: 0; }

.export-stack { display: grid; }

.export-stack article {
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 12px;
}

.export-stack strong { font-size: 0.82rem; font-weight: 800; }
.export-stack article.active { background: rgba(216, 239, 240, 0.72); border-color: rgba(127, 183, 191, 0.7); }

.match-card {
  background: var(--ink);
  border-radius: 4px;
  color: #fffdf4;
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 16px;
}

.match-card strong { font-size: 1rem; font-weight: 800; }
.match-card span { color: rgba(248, 245, 234, 0.7); }
.match-card .status-pill { justify-self: start; min-height: 28px; text-transform: uppercase; }

.problem-section,
.workflow-section,
.proof-section {
  border-radius: 8px;
  padding: clamp(24px, 4vw, 44px);
}

.problem-section {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(84, 183, 131, 0.12), transparent 38%),
    var(--panel);
  border: 1px solid rgba(143, 217, 187, 0.18);
  color: var(--panel-ink);
  display: grid;
  gap: clamp(18px, 4vw, 44px);
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
}

.problem-section h2 {
  color: var(--panel-ink);
  max-width: 18ch;
}

.problem-section p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.workflow-section {
  background: linear-gradient(180deg, rgba(12, 29, 25, 0.74), rgba(7, 21, 29, 0.44));
  border: 1px solid var(--line);
  color: #fffdf4;
}

.section-heading {
  margin-bottom: 30px;
}

.steps,
.proof-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps article,
.proof-grid article {
  border-top: 1px solid rgba(246, 243, 234, 0.18);
  padding-top: 18px;
}

.steps article > span {
  color: var(--green);
  display: block;
  font-size: 0.74rem;
  font-weight: 850;
  margin-bottom: 20px;
}

.steps p,
.proof-grid p {
  color: rgba(248, 245, 234, 0.7);
  font-size: 0.94rem;
  line-height: 1.7;
}

.proof-section {
  background: #07151d;
  border: 1px solid var(--line);
  color: #fffdf4;
  overflow: hidden;
  position: relative;
}

.proof-wave {
  filter: invert(1);
  height: 76px;
  object-fit: cover;
  opacity: 0.08;
  position: absolute;
  right: 28px;
  top: 28px;
  width: min(540px, 42vw);
}

.metric-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
}

.metric {
  background: rgba(246, 243, 234, 0.08);
  border: 1px solid rgba(246, 243, 234, 0.18);
  border-radius: 6px;
  padding: 12px;
}

.metric strong { display: block; font-size: 0.92rem; }
.metric span, .meta { color: var(--muted); font-size: 0.78rem; }
.metric span { color: rgba(248, 245, 234, 0.62); }

.timeline {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.timeline li {
  align-items: start;
  border-left: 3px solid var(--line-dark);
  display: grid;
  gap: 4px;
  padding: 2px 0 14px 14px;
}

.timeline li.is-ready { border-color: var(--green); }
.timeline li.is-current { border-color: var(--green); }
.timeline strong { font-size: 0.92rem; }
.timeline span { color: var(--muted); font-size: 0.8rem; }

.card.dark .timeline li {
  border-color: rgba(246, 243, 234, 0.16);
}

.drop-zone {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(84, 183, 131, 0.16), rgba(127, 183, 191, 0.1)),
    var(--panel-soft);
  border: 2px dashed rgba(143, 217, 187, 0.32);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 226px;
  padding: 24px;
  text-align: center;
}

.drop-zone.is-dragging {
  background: rgba(84, 183, 131, 0.22);
  border-color: var(--green);
}

.file-name {
  background: rgba(7, 21, 29, 0.58);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--muted);
  display: inline-flex;
  justify-self: center;
  max-width: 100%;
  min-height: 34px;
  overflow-wrap: anywhere;
  padding: 7px 10px;
}

.hidden-input { display: none; }

.field-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.field-grid.compact {
  margin-top: 0;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 780;
  gap: 6px;
  text-transform: uppercase;
}

input {
  background: rgba(7, 21, 29, 0.58);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: #fffdf4;
  min-height: 44px;
  padding: 9px 11px;
}

.registry-strip {
  background: #171f1b;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  color: #fffdf4;
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px;
}

.danger-zone {
  border-color: rgba(192, 111, 79, 0.28);
}

.registry-strip strong { font-size: 0.95rem; }
.registry-strip span {
  color: rgba(248, 245, 234, 0.68);
  font-size: 0.82rem;
}

.song-list {
  display: grid;
  gap: 10px;
}

.song-row {
  align-items: center;
  background: rgba(11, 28, 29, 0.66);
  border: 1px solid rgba(143, 217, 187, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 12px 14px;
}

.song-row strong {
  color: #fffdf4;
  display: block;
  overflow-wrap: anywhere;
}

.tag {
  background: rgba(84, 183, 131, 0.14);
  border: 1px solid rgba(84, 183, 131, 0.3);
  color: #d7f4e4;
}

.footer {
  color: rgba(248, 245, 234, 0.54);
  font-size: 0.8rem;
  padding: 0 var(--gutter) 30px;
}

@media (max-width: 1100px) {
  .product-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 620px;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .oscilloscope-panel {
    min-height: 250px;
  }
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .nav-list {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-2,
  .grid-3,
  .story-steps,
  .steps,
  .proof-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }
  .view-header { grid-template-columns: 1fr; }
  .story-band { grid-template-columns: 1fr; }
  .problem-section { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .top-actions { width: 100%; }
  .status-pill, .mode-pill { flex: 1 1 auto; justify-content: center; }
  .nav-list { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.35rem, 16vw, 3.6rem); }
  .product-hero { min-height: 0; }
  .hero-stats { gap: 12px; grid-template-columns: 1fr; }
  .glass-shell { padding: 16px; }
  .problem-section,
  .workflow-section,
  .proof-section {
    padding: 20px;
  }
  .proof-wave { display: none; }
  .hero-card { min-height: 0; padding: 20px; }
  .hero-card > img { opacity: 0.08; right: -160px; }
  .oscilloscope-panel { min-height: 190px; }
  .song-row { grid-template-columns: 1fr; }
}
