:root {
  --bg: #040816;
  --bg-2: #08101f;
  --panel: rgba(9, 15, 28, 0.78);
  --panel-strong: rgba(8, 13, 24, 0.94);
  --line: rgba(121, 171, 255, 0.16);
  --line-strong: rgba(121, 171, 255, 0.3);
  --text: #eff5ff;
  --muted: #8da1c4;
  --page-accent: #51d2ff;
  --page-glow: rgba(81, 210, 255, 0.24);
  --amber: #ffb968;
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.34);
  --shadow-xl: 0 38px 110px rgba(0, 0, 0, 0.45);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--page-accent) 26%, transparent), transparent 24%),
    radial-gradient(circle at 86% 10%, rgba(255, 185, 104, 0.14), transparent 18%),
    linear-gradient(180deg, #040714 0%, #07101c 45%, #03050b 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

body.page-leaving {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
}

body.body-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--page-accent) 80%, white);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  color: #050916;
  transform: translateY(-180%);
  transition: transform 140ms ease;
}

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

.page-shell {
  position: relative;
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto;
  padding-bottom: 36px;
}

.ambient,
.scanlines {
  position: fixed;
  pointer-events: none;
  inset: auto;
  z-index: 0;
}

.ambient {
  width: 430px;
  height: 430px;
  border-radius: 50%;
  filter: blur(96px);
  opacity: 0.34;
}

.ambient-a {
  top: -70px;
  left: -90px;
  background: color-mix(in srgb, var(--page-accent) 34%, transparent);
}

.ambient-b {
  top: 60px;
  right: -130px;
  background: rgba(255, 185, 104, 0.14);
}

.scanlines {
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 168, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 168, 255, 0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 95%);
}

.site-header,
main,
.detail-root,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark,
.section-kicker,
.site-nav a,
.nav-cta,
.button,
.proof-index,
.card-label,
.purchase-label,
.deck-label,
.eyebrow-chip {
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.06em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--page-accent) 92%, white), var(--amber));
  color: #07101b;
  font-weight: 700;
  box-shadow: 0 0 28px color-mix(in srgb, var(--page-accent) 30%, transparent);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--page-accent) 24%, rgba(255, 255, 255, 0.08));
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.nav-cta,
.button-primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--page-accent) 82%, white), var(--amber));
  color: #07101a;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--page-accent) 24%, transparent);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--page-accent) 74%, white);
  font-size: 0.86rem;
}

.kicker-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 26px;
  padding: 28px 0 20px;
  align-items: start;
}

.hero-copy,
.hero-stage,
.proof-card,
.system-card,
.profile-panel,
.product-hero,
.tab-row,
.info-card,
.gallery-card,
.module-card,
.related-card,
.missing-state {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 34px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1,
.catalog-head h2,
.section-head h2,
.product-copy h1,
.missing-state h1 {
  margin: 18px 0 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
  color: color-mix(in srgb, var(--page-accent) 78%, white);
  text-shadow: 0 0 26px color-mix(in srgb, var(--page-accent) 24%, transparent);
}

.hero-text,
.catalog-head p,
.section-head p,
.product-summary,
.system-summary,
.purchase-copy p,
.info-card p,
.missing-state p,
.profile-actions p {
  color: var(--muted);
  line-height: 1.78;
  font-size: 1.02rem;
}

.hero-text {
  width: min(100%, 600px);
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.status-band article,
.deck-metrics article,
.product-strip article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.status-band span,
.deck-metrics span,
.product-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-stage {
  border-radius: var(--radius-xl);
  padding: 20px;
  display: grid;
}

.hero-stage-frame {
  min-height: 0;
}

.command-deck {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.deck-head,
.system-card-head,
.related-copy,
.gallery-copy,
.purchase-copy,
.profile-copy {
  display: grid;
  gap: 6px;
}

.deck-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.deck-label,
.purchase-label,
.card-label {
  color: color-mix(in srgb, var(--page-accent) 72%, white);
  font-size: 0.82rem;
}

.deck-head strong,
.system-card-head strong,
.catalog-head h2,
.section-head h2,
.purchase-copy strong,
.related-copy strong {
  font-family: "Chakra Petch", sans-serif;
}

.deck-media {
  min-height: 100%;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--page-accent) 28%, rgba(255, 255, 255, 0.1));
  color: color-mix(in srgb, var(--page-accent) 78%, white);
  background: rgba(255, 255, 255, 0.03);
}

.deck-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.deck-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.deck-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.mini-tab,
.system-card,
.proof-card,
.profile-panel,
.hero-copy,
.hero-stage,
.product-hero {
  min-width: 0;
}

.switch-card,
.mini-tab {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.switch-card strong,
.mini-tab strong {
  color: var(--text);
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.95rem;
}

.switch-card span,
.mini-tab span,
.system-card-head span,
.related-copy span {
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--page-accent) 72%, white);
}

.switch-card.is-active,
.switch-card:hover,
.mini-tab.is-active,
.mini-tab:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--page-accent) 60%, rgba(255, 255, 255, 0.18));
  background: rgba(255, 255, 255, 0.05);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 8px 0 10px;
}

.proof-card,
.profile-panel {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.proof-index {
  color: color-mix(in srgb, var(--page-accent) 74%, white);
  font-size: 0.92rem;
}

.proof-card h2,
.info-card h2,
.module-card h3 {
  margin: 10px 0 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.24rem;
}

.proof-card p,
.system-summary,
.signal-list p,
.timeline-list p,
.compact-list li,
.gallery-copy span,
.related-copy span,
.muted-paragraph {
  color: var(--muted);
  line-height: 1.72;
}

.catalog-head,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 18px;
}

.catalog-head h2,
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.system-card {
  display: grid;
  gap: 16px;
  border-radius: var(--radius-lg);
  padding: 18px;
}

.system-media {
  min-height: 260px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--page-accent) 24%, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.03);
  color: color-mix(in srgb, var(--page-accent) 76%, white);
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.82rem;
}

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

.signal-list p {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid color-mix(in srgb, var(--page-accent) 50%, transparent);
}

.system-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.text-link {
  color: color-mix(in srgb, var(--page-accent) 78%, white);
  font-family: "Chakra Petch", sans-serif;
}

.text-link:hover {
  color: #fff;
}

.profile-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 26px;
}

.profile-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.site-footer {
  padding: 22px 0 8px;
  color: var(--muted);
  text-align: center;
}

.media-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--page-accent) 24%, rgba(255, 255, 255, 0.1));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    #060b15;
}

.media-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--preview) center / cover no-repeat;
  filter: blur(30px);
  opacity: 0.2;
  transform: scale(1.08);
}

.media-shell img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.media-fit-contain img {
  object-fit: contain;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
}

.media-fit-cover img {
  object-fit: cover;
}

.product-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-top: 18px;
}

.product-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.back-link {
  color: color-mix(in srgb, var(--page-accent) 74%, white);
  font-family: "Chakra Petch", sans-serif;
}

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

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.purchase-panel {
  display: grid;
  gap: 16px;
}

.purchase-visual {
  min-height: 280px;
}

.purchase-copy {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.tab-row {
  border-radius: 22px;
  padding: 14px;
  margin-top: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.info-card {
  border-radius: 22px;
  padding: 22px;
}

.timeline-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.timeline-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.timeline-list span,
.module-card span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--page-accent) 20%, transparent);
  color: color-mix(in srgb, var(--page-accent) 82%, white);
  font-family: "Chakra Petch", sans-serif;
}

.compact-list {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  grid-column: span 4;
  display: grid;
  gap: 12px;
  border-radius: 22px;
  padding: 14px;
}

.gallery-card-wide {
  grid-column: span 6;
}

.gallery-card .media-shell {
  min-height: 220px;
}

.gallery-card-wide .media-shell {
  min-height: 260px;
}

.gallery-copy {
  padding: 4px 4px 0;
}

.module-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.module-card,
.related-card {
  border-radius: 22px;
  padding: 20px;
}

.related-card {
  display: grid;
  gap: 14px;
}

.media-shell-mini {
  min-height: 150px;
}

.missing-state {
  border-radius: 24px;
  padding: 36px;
  margin-top: 24px;
  text-align: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.82);
  backdrop-filter: blur(10px);
}

.lightbox-frame {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 32px));
  margin: 72px auto 0;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 10, 18, 0.95);
}

.lightbox-frame img {
  border-radius: 18px;
  max-height: 72vh;
  margin: 0 auto;
}

.lightbox-frame figcaption {
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

.reveal.delay-1 {
  transition-delay: 90ms;
}

.reveal.delay-2 {
  transition-delay: 180ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .command-deck {
    grid-template-columns: 1fr;
  }

  .status-band,
  .deck-metrics,
  .product-strip,
  .proof-grid,
  .system-grid,
  .product-grid,
  .module-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card,
  .gallery-card-wide {
    grid-column: span 6;
  }

  .hero-copy {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
  }

  .site-header,
  .site-nav,
  .hero-actions,
  .deck-actions,
  .system-actions,
  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header {
    padding-top: 16px;
  }

  .hero-copy,
  .hero-stage,
  .proof-card,
  .system-card,
  .profile-panel,
  .product-hero,
  .tab-row,
  .info-card,
  .gallery-card,
  .module-card,
  .related-card,
  .missing-state {
    border-radius: 22px;
  }

  .hero-copy,
  .product-hero,
  .proof-card,
  .system-card,
  .profile-panel,
  .info-card,
  .module-card,
  .related-card {
    padding: 18px;
  }

  .hero-copy h1,
  .product-copy h1,
  .catalog-head h2,
  .section-head h2,
  .missing-state h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .status-band,
  .deck-metrics,
  .product-strip,
  .proof-grid,
  .system-grid,
  .product-grid,
  .module-grid,
  .related-grid,
  .tab-row {
    grid-template-columns: 1fr;
  }

  .catalog-head,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

  .gallery-card,
  .gallery-card-wide {
    grid-column: auto;
  }

  .deck-media,
  .system-media,
  .purchase-visual,
  .gallery-card .media-shell,
  .gallery-card-wide .media-shell {
    min-height: 190px;
  }
}
