html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

button {
  font: inherit;
}

.product-hero {
  position: relative;
  overflow: hidden;
  padding: 138px 24px 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(247, 244, 238, 0.24), var(--paper) 92%),
    linear-gradient(90deg, rgba(9, 35, 63, 0.12), transparent 36%, rgba(47, 125, 104, 0.12));
}

.product-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.product-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.78fr);
  gap: 54px;
  align-items: center;
  margin: 0 auto;
}

.product-hero-copy {
  max-width: 730px;
}

.atlas-mark {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.atlas-mark strong {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(18, 24, 33, 0.2);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(9, 35, 63, 0.98), rgba(47, 125, 104, 0.96)),
    var(--navy);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 1.55rem;
  letter-spacing: 0;
  padding: 0 18px;
}

.atlas-mark span {
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-hero h1 {
  margin: 0;
  max-width: 780px;
  color: var(--ink);
  font-size: 4.15rem;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.product-hero-copy > p {
  width: min(680px, 100%);
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.atlas-console {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.atlas-console::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--cyan));
}

.console-header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.console-header strong {
  color: var(--green);
}

.console-preview {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--navy-deep);
}

.console-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.console-metrics div {
  min-height: 96px;
  display: grid;
  align-content: center;
  background: rgba(251, 250, 246, 0.96);
  padding: 18px;
}

.console-metrics span,
.product-dock span,
.thesis-lattice span,
.ledger-grid span,
.ledger-grid em,
.engine-map span,
.flow span,
.terminal-top,
.readout-grid span,
.trendline-grid span,
.apex-grid span,
.proof-slide span,
.proof-counter {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-weight: 800;
  text-transform: uppercase;
}

.console-metrics span {
  color: var(--muted);
  font-size: 0.68rem;
}

.console-metrics strong {
  margin-top: 8px;
  color: var(--navy);
  font-size: 0.96rem;
  line-height: 1.15;
}

.product-dock {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 48px auto 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(251, 250, 246, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-dock article {
  min-height: 172px;
  border-right: 1px solid var(--line);
  padding: 22px;
}

.product-dock article:last-child {
  border-right: 0;
}

.product-dock span,
.thesis-lattice span,
.engine-map span,
.trendline-grid span,
.apex-grid span {
  display: block;
  color: var(--green);
  font-size: 0.72rem;
}

.product-dock strong {
  display: block;
  margin-top: 12px;
  color: var(--navy);
  font-size: 1.1rem;
}

.product-dock p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.thesis-section {
  padding-bottom: 48px;
}

.thesis-lattice,
.engine-map,
.trendline-grid,
.apex-grid {
  display: grid;
  gap: 18px;
}

.thesis-lattice {
  grid-template-columns: repeat(3, 1fr);
}

.engine-map,
.apex-grid {
  grid-template-columns: repeat(4, 1fr);
}

.thesis-lattice article,
.engine-map article,
.trendline-grid article,
.apex-grid article,
.research-ledger,
.trendline-shot,
.proof-slide {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.82);
  box-shadow: 0 12px 42px rgba(18, 24, 33, 0.08);
}

.thesis-lattice article,
.engine-map article,
.trendline-grid article,
.apex-grid article {
  min-height: 292px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(251, 250, 246, 0.92)),
    var(--paper-soft);
}

.thesis-lattice h3,
.engine-map h3,
.trendline-grid strong,
.apex-grid h3 {
  margin: 36px 0 0;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.18;
}

.trendline-grid strong {
  display: block;
}

.thesis-lattice p,
.engine-map p,
.trendline-grid p,
.apex-grid p,
.ledger-copy p {
  margin: 16px 0 0;
  color: var(--muted);
}

.research-ledger {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--line);
}

.ledger-copy {
  background: rgba(251, 250, 246, 0.94);
  padding: 32px;
}

.ledger-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.12;
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--navy-deep);
  padding: 1px;
}

.ledger-grid div {
  min-height: 156px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 125, 104, 0.2), transparent 52%),
    rgba(255, 255, 255, 0.05);
  padding: 20px;
}

.ledger-grid span {
  color: #9ee3cd;
  font-size: 0.7rem;
}

.ledger-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--white);
  font-size: 1.1rem;
}

.ledger-grid em {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.7rem;
  font-style: normal;
}

.auction-section,
.trendline-section,
.apex-section,
.casebook-section {
  position: relative;
  padding-top: 72px;
}

.auction-section::before,
.trendline-section::before,
.apex-section::before,
.casebook-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 125, 104, 0.48), rgba(18, 24, 33, 0.18), transparent);
}

.engine-map article {
  min-height: 274px;
}

.engine-map h3 {
  margin-top: 40px;
  font-size: 1.12rem;
}

.engine-map .accent-card {
  background:
    linear-gradient(135deg, rgba(9, 35, 63, 0.98), rgba(6, 20, 33, 0.99)),
    var(--navy-deep);
}

.engine-map .accent-card span,
.engine-map .accent-card h3 {
  color: #9ee3cd;
}

.engine-map .accent-card p {
  color: rgba(255, 255, 255, 0.72);
}

.signal-lab-section {
  border-top: 1px solid rgba(47, 125, 104, 0.3);
  border-bottom: 1px solid rgba(47, 125, 104, 0.3);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #061421, #09233f 58%, #061421);
  background-size: 64px 64px, 64px 64px, auto;
  color: var(--white);
}

.signal-lab-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0;
}

.invert h2,
.invert p:not(.section-kicker) {
  color: var(--white);
}

.invert p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.68);
}

.signal-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  gap: 24px;
}

.flow {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.flow div {
  min-height: 92px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  padding: 22px;
}

.flow span,
.readout-grid span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
}

.flow strong {
  color: var(--white);
  font-size: 1.15rem;
}

.terminal-panel {
  border: 1px solid rgba(158, 227, 205, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 125, 104, 0.16), transparent 48%),
    rgba(0, 0, 0, 0.18);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.terminal-top {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
}

.terminal-top strong {
  color: #9ee3cd;
}

.readout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.readout-grid div {
  padding: 16px;
  background: rgba(0, 0, 0, 0.24);
}

.readout-grid strong {
  display: block;
  margin-top: 6px;
  color: #9ee3cd;
}

pre {
  margin: 16px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  padding: 18px;
}

code {
  color: rgba(255, 255, 255, 0.78);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.86rem;
}

figure {
  margin: 0;
}

.trendline-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.trendline-shot {
  overflow: hidden;
  background: var(--navy-deep);
}

.trendline-shot img {
  width: 100%;
  height: calc(100% - 54px);
  min-height: 520px;
  object-fit: cover;
}

.trendline-shot figcaption {
  min-height: 54px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy-deep);
  font-weight: 800;
  padding: 0 16px;
}

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

.trendline-grid article {
  min-height: 246px;
}

.apex-grid article {
  min-height: 322px;
}

img.zoomable-shot {
  cursor: zoom-in;
}

.proof-carousel {
  margin-top: 18px;
}

.proof-slide {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--paper-soft);
}

.proof-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: var(--navy-deep);
}

.proof-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-slide figcaption {
  display: grid;
  gap: 14px;
  align-items: start;
  padding: 18px 20px 20px;
}

.proof-slide span {
  color: var(--green);
  font-size: 0.72rem;
}

.proof-slide p {
  margin: 0;
  max-width: 880px;
  color: var(--muted);
  line-height: 1.58;
}

.proof-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(6, 20, 33, 0.72);
  color: var(--white);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 1rem;
  transform: translateY(-50%);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.proof-arrow:hover,
.proof-arrow:focus-visible {
  border-color: #9ee3cd;
  background: rgba(47, 125, 104, 0.2);
  transform: translateY(-50%) scale(1.04);
}

.proof-arrow-prev {
  left: 18px;
}

.proof-arrow-next {
  right: 18px;
}

.proof-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  min-width: 84px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(6, 20, 33, 0.72);
  backdrop-filter: blur(14px);
  font-size: 0.78rem;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(6, 20, 33, 0.92);
  backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox:not([data-gallery="proof"]) .lightbox-nav {
  display: none;
}

.lightbox-frame {
  width: min(1320px, 100%);
  max-height: calc(100vh - 56px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid rgba(158, 227, 205, 0.34);
  border-radius: 8px;
  background: #050b13;
  overflow: hidden;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.56);
  cursor: zoom-out;
}

.lightbox-frame img {
  width: 100%;
  max-height: calc(100vh - 124px);
  object-fit: contain;
  background: #050b13;
  cursor: zoom-out;
}

.lightbox-frame figcaption {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(158, 227, 205, 0.2);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0 16px;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(158, 227, 205, 0.34);
  color: #9ee3cd;
  background: rgba(6, 20, 33, 0.94);
  cursor: zoom-out;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
  transition: transform 160ms ease, background 160ms ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(47, 125, 104, 0.16);
  transform: translateY(-50%) scale(1.04);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.product-access {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(9, 35, 63, 0.98), rgba(6, 20, 33, 0.99));
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--white);
  padding: 52px 24px;
}

.product-access-inner {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin: 0 auto;
}

.product-access .access-copy h2,
.product-access .access-copy p {
  color: var(--white);
}

.product-access .access-copy p {
  width: min(720px, 100%);
  color: rgba(255, 255, 255, 0.72);
}

.product-access-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.product-access-actions .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1040px) {
  .product-hero-inner,
  .research-ledger,
  .signal-lab,
  .trendline-lab,
  .product-access-inner {
    grid-template-columns: 1fr;
  }

  .product-hero-copy {
    max-width: 780px;
  }

  .product-hero h1 {
    font-size: 3.65rem;
  }

  .product-dock,
  .engine-map,
  .apex-grid,
  .thesis-lattice {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-access-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .product-hero {
    padding: 120px 18px 0;
  }

  .product-hero h1 {
    font-size: 2.72rem;
  }

  .product-hero-copy > p {
    font-size: 1.04rem;
  }

  .hero-actions .btn,
  .product-access-actions .btn {
    width: 100%;
  }

  .product-dock,
  .engine-map,
  .apex-grid,
  .thesis-lattice,
  .ledger-grid,
  .trendline-grid,
  .console-metrics {
    grid-template-columns: 1fr;
  }

  .product-dock article {
    min-height: 132px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-dock article:last-child {
    border-bottom: 0;
  }

  .signal-lab-inner {
    width: min(100% - 32px, 1180px);
    padding: 76px 0;
  }

  .auction-section,
  .trendline-section,
  .apex-section,
  .casebook-section {
    padding-top: 56px;
  }

  .ledger-copy {
    padding: 24px;
  }

  .flow div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .readout-grid {
    grid-template-columns: 1fr;
  }

  .trendline-shot img {
    min-height: 320px;
  }

  .proof-frame {
    aspect-ratio: 4 / 3;
  }

  .proof-slide figcaption {
    padding: 16px;
  }

  .proof-arrow {
    width: 42px;
    height: 42px;
  }

  .proof-arrow-prev {
    left: 10px;
  }

  .proof-arrow-next {
    right: 10px;
  }

  .proof-counter {
    top: 10px;
    right: 10px;
    height: 34px;
    min-width: 74px;
    font-size: 0.68rem;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .product-access {
    padding: 40px 16px;
  }
}

@media (max-width: 460px) {
  .product-hero h1 {
    font-size: 2.32rem;
  }

  .atlas-mark {
    align-items: flex-start;
    flex-direction: column;
  }
}
