:root,
[data-theme='light'] {
  --font-display: 'General Sans', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --radius-sm: 0.45rem;
  --radius-md: 0.7rem;
  --radius-lg: 1rem;
  --radius-xl: 1.45rem;
  --radius-full: 999px;
  --bg: #f4fbfb;
  --surface: #fbffff;
  --surface-2: #eff8f8;
  --surface-3: #e5f1f1;
  --line: rgba(23, 62, 67, 0.14);
  --line-strong: rgba(23, 62, 67, 0.24);
  --text: #10292d;
  --muted: #587277;
  --faint: #8da2a6;
  --primary: #007d86;
  --primary-dark: #07565d;
  --primary-soft: #d9f3f1;
  --cyan: #38b8c3;
  --blue: #1d6f98;
  --green: #2f8a56;
  --amber: #a76510;
  --red: #aa3151;
  --shadow-sm: 0 1px 2px rgba(8, 38, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(8, 38, 42, 0.09);
  --shadow-lg: 0 24px 70px rgba(8, 38, 42, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 180ms var(--ease-out);
}

[data-theme='dark'] {
  --bg: #071315;
  --surface: #0d1c1f;
  --surface-2: #112529;
  --surface-3: #173237;
  --line: rgba(188, 238, 239, 0.13);
  --line-strong: rgba(188, 238, 239, 0.24);
  --text: #e7fbfb;
  --muted: #97b9be;
  --faint: #648389;
  --primary: #62d2da;
  --primary-dark: #9eeaf0;
  --primary-soft: rgba(98, 210, 218, 0.16);
  --cyan: #54c8d4;
  --blue: #68a7cf;
  --green: #6fca91;
  --amber: #e1ad58;
  --red: #df7891;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 184, 195, 0.22), transparent 31rem),
    radial-gradient(circle at 95% 8%, rgba(29, 111, 152, 0.12), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--surface-2));
  line-height: 1.55;
}

body.dashboard-app {
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, #7dff9b 34%, transparent),
    inset 0 0 22px color-mix(in srgb, #7dff9b 22%, transparent),
    inset 0 0 64px color-mix(in srgb, #7dff9b 14%, transparent),
    0 0 22px color-mix(in srgb, #7dff9b 10%, transparent);
  animation: perimeterSavePulse 2.4s var(--ease-out) infinite alternate;
}

@keyframes perimeterSavePulse {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 0.9;
  }
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 20;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.app-header {
  position: sticky;
}

.nav-shell {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 74px;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.app-header .nav-shell {
  max-width: 1440px;
  min-height: 62px;
}

.brand {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 38px;
  color: var(--primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-pulse {
  opacity: 0.6;
  animation: markPulse 2.4s var(--ease-out) infinite;
}

@keyframes markPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.nav-links,
.tab-nav,
.nav-actions,
.hero-actions,
.search-row,
.filter-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.tab-nav {
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.tab-button {
  color: var(--muted);
  background: transparent;
  padding: 0.46rem var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 800;
}

.tab-button.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

[data-theme='dark'] .tab-button.active {
  color: var(--primary);
}

.app-main {
  max-width: 1440px;
  height: calc(100dvh - 63px);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
}

.tab-panel {
  height: 100%;
}

.tab-panel[hidden] {
  display: none !important;
}

.dashboard-shell {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: var(--space-2);
  height: 100%;
  min-height: 0;
}

.dashboard-topline {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-8);
}

.dashboard-topline h1 {
  max-width: none;
  margin-top: 0.25rem;
  font-size: clamp(1.15rem, 0.95rem + 0.85vw, 1.9rem);
  letter-spacing: -0.055em;
}

.dashboard-topline p {
  max-width: 62ch;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}

.info-panel {
  height: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.info-panel h2 {
  margin-top: var(--space-3);
  max-width: 22ch;
}

.compact-grid {
  margin-top: var(--space-8);
}

.nav-links button,
.ghost-button {
  color: var(--muted);
  background: transparent;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  transition:
    color var(--transition),
    background var(--transition);
}

.nav-links button:hover,
.ghost-button:hover {
  color: var(--text);
  background: var(--surface-3);
}

.primary-button {
  color: white;
  background: var(--primary-dark);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-5);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

[data-theme='dark'] .primary-button {
  color: #071315;
  background: var(--primary);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.primary-button:active {
  transform: translateY(0);
}

.large {
  padding: var(--space-4) var(--space-6);
}

.hero-section,
.board-section,
.freshness-section,
.api-section,
.launch-section {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
}

.board-section {
  max-width: 1380px;
}

#live-board {
  padding-top: var(--space-3);
  padding-bottom: var(--space-4);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.78fr);
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary-dark);
  font-weight: 900;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

[data-theme='dark'] .eyebrow {
  color: var(--primary);
}

.live-dot,
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--green) 14%, transparent);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

h1 {
  max-width: 12ch;
  margin-top: var(--space-5);
  font-size: var(--text-2xl);
}

h2 {
  font-size: var(--text-xl);
  max-width: 15ch;
}

h3 {
  font-size: var(--text-lg);
}

.hero-lede {
  margin-top: var(--space-6);
  color: var(--muted);
  max-width: 61ch;
  font-size: var(--text-lg);
}

.hero-actions {
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.demo-disclosure {
  margin-top: var(--space-5);
  color: var(--muted);
  max-width: 70ch;
  font-size: var(--text-sm);
}

.intel-panel {
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: var(--space-6);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), var(--surface-2)),
    radial-gradient(circle at top, var(--primary-soft), transparent 55%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.panel-topline strong {
  color: var(--green);
}

.radar {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-width: 340px;
  margin: var(--space-8) auto;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 36px, var(--line) 37px 38px),
    conic-gradient(from 0deg, transparent 0 76%, color-mix(in srgb, var(--primary) 34%, transparent) 96%, transparent 100%);
  animation: sweep 5s linear infinite;
}

.radar span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.radar span:nth-child(1) {
  top: 25%;
  left: 63%;
}

.radar span:nth-child(2) {
  top: 57%;
  left: 31%;
}

.radar span:nth-child(3) {
  top: 69%;
  left: 72%;
}

.radar-core {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-xl);
  animation: counterSweep 5s linear infinite;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes counterSweep {
  to {
    transform: rotate(-360deg);
  }
}

.intel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.intel-stats div,
.quote-module,
.standard-grid article,
.timeline article {
  background: color-mix(in srgb, var(--surface) 83%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.intel-stats span,
.quote-module span {
  color: var(--muted);
  font-size: var(--text-xs);
}

.intel-stats strong,
.quote-module strong {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.signal-strip {
  display: flex;
  align-items: end;
  height: 70px;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.signal-strip span {
  flex: 1;
  height: var(--height);
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 35%, transparent));
  animation: signal 1.8s var(--ease-out) infinite alternate;
  animation-delay: calc(var(--height) * -0.02);
}

@keyframes signal {
  to {
    height: calc(var(--height) * 0.76);
  }
}

.ticker-section {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
}

.ticker-track {
  display: flex;
  gap: var(--space-12);
  width: max-content;
  padding: var(--space-3) 0;
  animation: ticker 32s linear infinite;
}

.ticker-track span {
  color: var(--muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: var(--space-10);
  align-items: end;
  margin-bottom: var(--space-8);
}

#live-board .section-heading {
  margin-bottom: var(--space-2);
  align-items: center;
}

#live-board .section-heading h2 {
  max-width: none;
  font-size: clamp(1.15rem, 1rem + 0.55vw, 1.55rem);
}

#live-board .section-heading p {
  font-size: var(--text-xs);
  max-width: 62ch;
  line-height: 1.35;
}

.section-heading p {
  max-width: 45ch;
  color: var(--muted);
}

.section-heading.narrow {
  display: block;
  max-width: 720px;
}

.section-heading.narrow p {
  margin-top: var(--space-4);
}

.search-console {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  padding: var(--space-2) var(--space-3);
  box-shadow: var(--shadow-md);
}

.dashboard-shell .search-console {
  box-shadow: var(--shadow-sm);
}

.search-console label {
  display: block;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.search-row input,
.search-row select {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  color: var(--text);
  background: var(--surface);
  padding: var(--space-2) var(--space-5) var(--space-2) var(--space-3);
  outline: none;
}

.search-row input:focus,
.search-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.search-row select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 52%,
    calc(100% - 16px) 52%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.sku-identity {
  margin-top: 0.3rem;
  color: var(--muted);
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: var(--text-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-row {
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.22rem var(--space-2);
  font-size: var(--text-xs);
  border-radius: var(--radius-full);
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition:
    color var(--transition),
    background var(--transition);
}

.filter-chip.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-3);
}

.telemetry-strip div {
  min-width: 0;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  padding: 0.45rem var(--space-3);
}

.telemetry-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.telemetry-strip strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.94rem;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-layout {
  display: block;
  margin-top: var(--space-2);
  min-height: 0;
  overflow: hidden;
}

.dashboard-shell .board-layout {
  height: 100%;
}

.deal-list {
  display: grid;
  gap: 0.42rem;
  align-content: start;
}

.deal-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px 42px minmax(260px, 1.2fr) 150px 92px 124px 84px 70px 112px;
  gap: var(--space-2);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: 0.42rem var(--space-2);
  box-shadow: var(--shadow-sm);
  min-height: 0;
  height: 78px;
  max-height: 78px;
  transition:
    transform 260ms var(--ease-out),
    opacity 260ms var(--ease-out),
    box-shadow var(--transition),
    border-color var(--transition);
}

.top-deal-card {
  grid-template-columns: 32px 76px 44px minmax(290px, 1.28fr) 165px 98px 136px 92px 76px 112px;
  height: 122px;
  max-height: 122px;
  border-color: color-mix(in srgb, var(--green) 38%, var(--line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--green) 20%, transparent),
    0 16px 48px color-mix(in srgb, var(--green) 13%, transparent);
}

.support-deal-card {
  opacity: 0.88;
}

.support-deal-card .product-token {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 0.68rem;
}

.support-deal-card .deal-title h3 {
  font-size: 0.92rem;
}

.captured-card {
  display: grid;
  grid-template-columns: 1fr;
  perspective: 900px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--green) 15%, var(--surface)), var(--surface)),
    var(--surface);
  border-color: color-mix(in srgb, var(--green) 46%, var(--line));
  animation: captureFlipOnce 520ms var(--ease-out) both;
}

.captured-card.captured-settled {
  animation: none;
  transform: rotateX(0deg);
  opacity: 1;
}

.captured-card.fade-ether {
  animation: captureFadeEther 900ms var(--ease-out) forwards;
}

.capture-face {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) 280px;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
}

.capture-face strong {
  color: var(--green);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.capture-face span {
  color: var(--text);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.capture-face b {
  color: var(--text);
  font-size: var(--text-sm);
  text-align: right;
}

@keyframes captureFlipOnce {
  from {
    transform: rotateX(82deg) scale(0.985);
    opacity: 0.45;
  }
  to {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes captureFadeEther {
  0% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(-8px) scale(0.985);
  }
}

.refresh-flip {
  animation: refreshFlipOnce 520ms var(--ease-out) both;
}

@keyframes refreshFlipOnce {
  0% {
    transform: rotateX(0deg);
  }
  48% {
    transform: rotateX(84deg);
    filter: brightness(1.08);
  }
  100% {
    transform: rotateX(0deg);
  }
}

.deal-rank {
  position: static;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 900;
  font-size: var(--text-sm);
}

.deal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 9%, transparent), transparent);
  opacity: 0;
  animation: cardPulse 4.5s var(--ease-out) infinite;
}

.deal-card.urgency-warm {
  border-color: color-mix(in srgb, var(--amber) 58%, var(--line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--amber) 25%, transparent),
    0 18px 48px color-mix(in srgb, var(--amber) 18%, transparent);
}

.deal-card.urgency-critical {
  border-color: color-mix(in srgb, var(--red) 65%, var(--line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--red) 34%, transparent),
    0 0 28px color-mix(in srgb, var(--red) 28%, transparent),
    0 20px 60px color-mix(in srgb, var(--amber) 22%, transparent);
  animation: criticalBreath 1.1s var(--ease-out) infinite alternate;
}

@keyframes criticalBreath {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-1px);
  }
}

.deal-card.purchased-full {
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
}

@keyframes cardPulse {
  0%,
  80%,
  100% {
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
}

.deal-main {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.product-token {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--surface-3), var(--surface)),
    radial-gradient(circle, var(--primary-soft), transparent);
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-weight: 900;
  font-size: var(--text-sm);
}

.product-image {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background:
    radial-gradient(circle at 65% 30%, color-mix(in srgb, var(--green) 36%, transparent), transparent 36%),
    linear-gradient(135deg, var(--surface), var(--surface-3));
  border: 1px solid color-mix(in srgb, var(--green) 42%, var(--line));
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--green) 14%, transparent);
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.28rem;
  filter: drop-shadow(0 8px 10px rgba(0, 60, 65, 0.12));
}

.product-image span {
  position: absolute;
  left: 0.22rem;
  bottom: 0.22rem;
  min-width: 1.9rem;
  height: 1.1rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in srgb, var(--primary) 42%, transparent);
  font-weight: 900;
  font-size: 0.58rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
}

.deal-identity,
.store-block,
.poll-block {
  min-width: 0;
}

.deal-title {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-1);
  min-width: 0;
  overflow: hidden;
}

.deal-title h3 {
  letter-spacing: -0.04em;
  font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.05rem);
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: var(--text-xs);
  border-radius: var(--radius-full);
  padding: 0.05rem var(--space-2);
  font-weight: 800;
  flex: 0 0 auto;
}

.move-badge {
  font-size: var(--text-xs);
  border-radius: var(--radius-full);
  padding: 0.05rem var(--space-2);
  color: var(--muted);
  background: var(--surface-2);
  font-weight: 800;
  flex: 0 0 auto;
}

.move-badge.down {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, var(--surface));
}

.move-badge.up {
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 13%, var(--surface));
}

.identifier-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  margin-top: 0.3rem;
  font-size: var(--text-xs);
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
}

.identifier-strip span {
  padding: 0;
  border-radius: var(--radius-full);
  background: transparent;
  border: 0;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.identifier-strip strong {
  color: var(--text);
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

.savings-delta {
  width: fit-content;
  margin-top: 0.28rem;
  padding: 0.1rem var(--space-2);
  border-radius: var(--radius-full);
  color: var(--green);
  background: color-mix(in srgb, var(--green) 13%, var(--surface));
  font-size: var(--text-xs);
  font-weight: 900;
}

.deal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: var(--text-xs);
}

.deal-meta strong {
  color: var(--text);
}

.store-block span,
.poll-block span,
.price-block span,
.timer-block span,
.confidence span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.1;
}

.store-block strong,
.poll-block strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-block small {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-actions {
  display: grid;
  grid-template-columns: 118px 92px 70px 70px 112px;
  gap: var(--space-2);
  align-items: center;
}

.price-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.18rem);
  letter-spacing: -0.04em;
}

.timer-block strong,
.confidence strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: -0.04em;
}

.price-delta {
  display: block;
  margin-top: 0.12rem;
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.delta-less {
  color: var(--green);
}

.delta-more {
  color: var(--red);
}

.timer-block strong.warning {
  color: var(--amber);
}

.timer-block strong.warm {
  color: var(--amber);
}

.timer-block strong.critical {
  color: var(--red);
  animation: urgentText 0.75s var(--ease-out) infinite alternate;
}

@keyframes urgentText {
  to {
    filter: brightness(1.2);
  }
}

.outbound-button {
  color: white;
  background: var(--primary-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 0.45rem var(--space-2);
  font-weight: 900;
  min-width: 96px;
  font-size: 0.76rem;
  transition:
    transform var(--transition),
    background var(--transition);
}

[data-theme='dark'] .outbound-button {
  color: #071315;
  background: var(--primary);
}

.outbound-button:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

.outbound-button.armed {
  background: var(--green);
  color: white;
}

.mobile-competitor-price {
  display: none;
}

.freshness-section {
  padding-top: var(--space-12);
}

.standard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.standard-grid article {
  min-height: 210px;
}

.standard-grid h3,
.timeline h3 {
  margin-top: var(--space-5);
}

.standard-grid p,
.timeline p,
.api-copy p {
  color: var(--muted);
  margin-top: var(--space-3);
}

.status-dot {
  display: block;
}

.status-dot.recent {
  background: var(--blue);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--blue) 14%, transparent);
}

.status-dot.stale {
  background: var(--amber);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--amber) 14%, transparent);
}

.status-dot.risk {
  background: var(--red);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--red) 14%, transparent);
}

.api-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.api-card {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #071315;
  color: #d9fffb;
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.timeline article span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 900;
}

.site-footer {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-16);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: var(--space-8);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--text);
}

.site-footer p {
  max-width: 62ch;
  font-size: var(--text-sm);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .app-header .nav-shell {
    flex-wrap: wrap;
    padding-block: var(--space-2);
  }

  .tab-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .app-main {
    height: auto;
    min-height: calc(100dvh - 100px);
  }

  .dashboard-topline {
    display: block;
  }

  .dashboard-topline p {
    margin-top: var(--space-2);
  }

  .hero-grid,
  .api-section {
    grid-template-columns: 1fr;
  }

  .telemetry-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .standard-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .deal-card {
    grid-template-columns: 24px 42px minmax(0, 1fr) 96px 72px 88px;
    height: auto;
    max-height: none;
    min-height: 94px;
  }

  .top-deal-card {
    grid-template-columns: 26px 58px 38px minmax(0, 1fr) 104px 78px 96px;
    height: 112px;
    max-height: 112px;
  }

  .top-deal-card .store-block,
  .top-deal-card .poll-block,
  .top-deal-card .watchers,
  .top-deal-card .confidence {
    display: none;
  }

  .store-block,
  .poll-block,
  .confidence {
    display: none;
  }

  .capture-face {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .capture-face b {
    text-align: left;
  }
}

@media (max-width: 640px) {
  html,
  body {
    min-height: 100dvh;
    overflow: hidden;
  }

  .nav-shell,
  .hero-section,
  .board-section,
  .freshness-section,
  .api-section,
  .launch-section,
  .site-footer {
    padding-inline: var(--space-4);
  }

  .app-main {
    height: calc(100dvh - 132px);
    min-height: 0;
    padding: 0.35rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .brand span {
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 28px;
  }

  .tab-button {
    padding-inline: var(--space-2);
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .dashboard-topline h1 {
    display: none;
    max-width: 100%;
    white-space: normal;
  }

  .dashboard-topline p {
    display: none;
  }

  .dashboard-shell {
    gap: 0.32rem;
  }

  .eyebrow {
    display: none;
    letter-spacing: 0.08em;
  }

  .info-panel {
    padding: var(--space-5);
  }

  .nav-actions .ghost-button {
    display: none;
  }

  .section-heading,
  .site-footer {
    display: block;
  }

  .section-heading p {
    margin-top: var(--space-2);
  }

  .standard-grid,
  .timeline,
  .intel-stats {
    grid-template-columns: 1fr;
  }

  .telemetry-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telemetry-strip div {
    padding: 0.38rem var(--space-2);
  }

  .search-row {
    align-items: stretch;
    flex-direction: row;
    gap: 0.25rem;
  }

  .search-row select,
  .search-row button {
    width: 100%;
    max-width: 100%;
  }

  .search-row select {
    font-size: 0.68rem;
    padding: 0.28rem 1.55rem 0.28rem 0.62rem;
  }

  .search-console {
    padding: 0.32rem;
    border-radius: var(--radius-md);
  }

  .search-console label {
    font-size: 0.62rem;
  }

  .primary-button {
    width: auto;
    min-width: 5.6rem;
    padding: 0.28rem var(--space-2);
    font-size: 0.7rem;
  }

  .sku-identity {
    display: none;
  }

  .filter-row {
    display: none;
  }

  .deal-card {
    grid-template-columns: 20px 26px minmax(0, 1fr) 76px;
    gap: 0.32rem;
    min-height: 0;
    height: 44px;
    max-height: 44px;
    padding: 0.18rem 0.28rem;
  }

  .top-deal-card {
    grid-template-columns: 20px 42px minmax(0, 1fr) 82px;
    grid-template-rows: 24px 36px 28px;
    height: 106px;
    max-height: 106px;
  }

  .top-deal-card .product-image {
    grid-column: 2;
    grid-row: 2 / 4;
  }

  .deal-identity {
    grid-column: 3 / 5;
  }

  .top-deal-card .deal-identity {
    grid-column: 3 / 5;
    grid-row: 1;
    align-self: center;
  }

  .deal-title h3 {
    font-size: 0.64rem;
  }

  .top-deal-card .deal-title h3 {
    font-size: 0.64rem;
    max-width: 100%;
  }

  .badge,
  .move-badge {
    display: none;
  }

  .product-token {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 0.54rem;
  }

  .top-deal-card .product-token {
    display: none;
  }

  .product-image {
    width: 40px;
    height: 40px;
  }

  .product-image span {
    min-width: 1.45rem;
    height: 0.86rem;
    font-size: 0.46rem;
  }

  .price-block,
  .timer-block {
    grid-row: 2;
  }

  .price-block {
    grid-column: 3;
  }

  .top-deal-card .price-block {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
  }

  .timer-block {
    grid-column: 4;
    justify-self: end;
  }

  .top-deal-card .timer-block {
    grid-column: 4;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    text-align: right;
  }

  .outbound-button {
    grid-column: 3 / 5;
    grid-row: 3;
    width: 100%;
  }

  .top-deal-card .outbound-button {
    grid-column: 3 / 5;
    grid-row: 3;
    align-self: center;
  }

  .identifier-strip {
    font-size: 0.66rem;
    max-width: 100%;
  }

  .top-deal-card .identifier-strip {
    display: none;
  }

  .support-deal-card .identifier-strip,
  .support-deal-card .timer-block,
  .support-deal-card .outbound-button,
  .support-deal-card .price-block,
  .support-deal-card .confidence {
    display: none;
  }

  .mobile-competitor-price {
    display: block;
    grid-column: 4;
    grid-row: 1 / 3;
    justify-self: end;
    text-align: right;
    align-self: center;
  }

  .support-deal-card .deal-identity {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }

  .mobile-competitor-price strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: -0.03em;
  }

  .mobile-competitor-price .price-delta {
    font-size: 0.48rem;
    margin-top: 0.02rem;
  }

  .price-delta {
    font-size: 0.58rem;
    margin-top: 0.1rem;
  }

  .telemetry-strip div {
    padding: 0.16rem var(--space-2);
  }

  .telemetry-strip span {
    font-size: 0.48rem;
  }

  .telemetry-strip strong {
    font-size: 0.58rem;
  }

  .capture-face {
    gap: 0;
  }

  .capture-face strong {
    font-size: 0.92rem;
  }

  .capture-face span,
  .capture-face b {
    font-size: 0.72rem;
    white-space: normal;
  }

  .top-deal-card .deal-title h3 {
    font-size: 0.7rem;
  }

  .top-deal-card .price-block strong {
    font-size: 1rem;
  }

  .top-deal-card .timer-block strong {
    font-size: 0.78rem;
  }

  .support-deal-card .deal-title {
    min-width: 0;
  }

  .support-deal-card .deal-title h3 {
    max-width: 100%;
    font-size: 0.58rem;
  }

  .identifier-strip span:nth-child(3) {
    display: none;
  }
}

@media (max-width: 960px) and (orientation: landscape) {
  html,
  body {
    overflow: hidden;
  }

  .app-header .nav-shell {
    min-height: 34px;
    flex-wrap: nowrap;
    padding-block: 0;
  }

  .brand-mark {
    width: 25px;
  }

  .brand span {
    font-size: 0.82rem;
  }

  .tab-nav {
    order: initial;
    width: auto;
    flex: 1;
    justify-content: center;
  }

  .tab-button {
    padding: 0.24rem var(--space-2);
    font-size: 0.72rem;
  }

  .ghost-button {
    padding: 0.24rem var(--space-2);
    font-size: 0.72rem;
  }

  .app-main {
    height: calc(100dvh - 35px);
    min-height: 0;
    padding: 0.28rem var(--space-2);
  }

  .dashboard-shell {
    gap: 0.28rem;
  }

  .dashboard-topline {
    display: none;
  }

  .dashboard-topline h1 {
    font-size: 0.88rem;
    margin: 0;
  }

  .dashboard-topline p {
    display: none;
  }

  .search-console {
    padding: 0.14rem var(--space-2);
  }

  .search-console label,
  .sku-identity {
    display: none;
  }

  .search-row {
    flex-direction: row;
  }

  .search-row select {
    padding: 0.24rem 2rem 0.24rem 0.7rem;
    font-size: 0.74rem;
  }

  .primary-button {
    padding: 0.24rem var(--space-3);
    font-size: 0.72rem;
  }

  .filter-row {
    display: none;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .filter-chip {
    font-size: 0.62rem;
    padding: 0.08rem var(--space-2);
  }

  .telemetry-strip {
    display: none;
  }

  .telemetry-strip div {
    padding: 0.16rem var(--space-2);
  }

  .telemetry-strip span {
    font-size: 0.5rem;
  }

  .telemetry-strip strong {
    font-size: 0.68rem;
  }

  .deal-card {
    height: 28px;
    max-height: 28px;
    min-height: 0;
    grid-template-columns: 20px 26px minmax(0, 1fr) 78px;
    padding: 0.14rem 0.28rem;
  }

  .top-deal-card {
    height: 48px;
    max-height: 48px;
    grid-template-columns: 22px 34px minmax(0, 1fr) 82px 52px 72px;
  }

  .product-image {
    width: 30px;
    height: 30px;
  }

  .product-image span {
    min-width: 1.32rem;
    height: 0.78rem;
    font-size: 0.42rem;
  }

  .deal-title h3 {
    font-size: 0.5rem;
    line-height: 1;
  }

  .identifier-strip,
  .store-block,
  .poll-block,
  .confidence,
  .badge,
  .move-badge {
    display: none;
  }

  .support-deal-card .timer-block,
  .support-deal-card .outbound-button,
  .support-deal-card .price-block {
    display: none;
  }

  .top-deal-card .product-token {
    display: none;
  }

  .top-deal-card .deal-identity {
    grid-column: 3;
  }

  .top-deal-card .price-block {
    grid-column: 4;
  }

  .top-deal-card .timer-block {
    grid-column: 5;
  }

  .top-deal-card .outbound-button {
    grid-column: 6;
  }

  .price-block strong {
    font-size: 0.58rem;
  }

  .timer-block strong,
  .confidence strong {
    font-size: 0.54rem;
  }

  .outbound-button {
    min-width: 72px;
    padding: 0.2rem var(--space-2);
    font-size: 0.54rem;
  }

  .mobile-competitor-price {
    display: block;
    grid-column: 4;
    justify-self: end;
    text-align: right;
  }

  .top-deal-card .mobile-competitor-price {
    display: none;
  }

  .mobile-competitor-price strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.56rem;
    line-height: 1;
  }

  .mobile-competitor-price .price-delta {
    font-size: 0.4rem;
    line-height: 1;
  }

  .support-deal-card .deal-title h3 {
    font-size: 0.46rem;
    line-height: 1;
    max-width: 44ch;
  }

  .support-deal-card .product-token {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: 0.48rem;
  }

  .support-deal-card .deal-rank {
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
  }
}

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