body.home-shell {
  --page: #f5f7fb;
  --page2: #e9eef8;
  --ink: #111827;
  --muted: #536071;
  --panel: rgba(255, 255, 255, .82);
  --panel-strong: rgba(255, 255, 255, .94);
  --line: rgba(17, 24, 39, .14);
  --text: var(--ink);
  --pink: #a900aa;
  --cyan: #007fa5;
  --gold: #c58a2a;
  --shadow: 0 22px 70px rgba(20, 28, 44, .14);
  color-scheme: light;
  font-family: "Manrope", Inter, system-ui, sans-serif;
  background:
    linear-gradient(90deg, rgba(169, 0, 170, .09) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 127, 165, .08) 0 1px, transparent 1px),
    linear-gradient(135deg, #ffffff, var(--page) 46%, var(--page2));
  background-size: 84px 84px, 84px 84px, auto;
  color: var(--ink);
}

body.home-shell[data-theme="dark"] {
  --page: #060711;
  --page2: #0d1320;
  --ink: #fbf7ff;
  --muted: #c7bdd2;
  --panel: rgba(13, 15, 27, .72);
  --panel-strong: rgba(16, 18, 32, .9);
  --line: rgba(255, 255, 255, .13);
  --text: var(--ink);
  --pink: #d400cf;
  --cyan: #09c6ef;
  --gold: #e0a03c;
  --shadow: 0 28px 90px rgba(0, 0, 0, .42);
  color-scheme: dark;
  background:
    linear-gradient(90deg, rgba(212, 0, 207, .1) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(9, 198, 239, .08) 0 1px, transparent 1px),
    linear-gradient(135deg, #06030a, var(--page) 46%, var(--page2));
  background-size: 92px 92px, 92px 92px, auto;
}

body.home-shell:before {
  opacity: .28;
  background-size: 86px 86px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 82%);
}

body.home-shell .space {
  display: none;
}

.home-shell h1,
.home-shell h2,
.home-shell h3 {
  font-family: "Sora", Manrope, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
}

.home-shell h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: 4.35rem;
  line-height: .92;
}

.home-shell h2 {
  margin-bottom: 18px;
  font-size: 3.65rem;
  line-height: .98;
}

.home-shell h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  line-height: 1.08;
}

.home-shell p {
  color: var(--muted);
}

.home-shell .lead {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.72;
}

.home-topbar {
  grid-template-columns: auto 1fr auto auto auto;
  background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 52px rgba(0, 0, 0, .08);
}

.home-shell[data-theme="dark"] .home-topbar {
  box-shadow: 0 16px 60px rgba(0, 0, 0, .34);
}

.home-shell .topbar nav {
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  border-color: var(--line);
}

.home-shell .topbar nav a {
  color: var(--ink);
}

.home-shell .brand strong {
  color: var(--ink);
}

.home-shell .det-mark {
  background: transparent;
  box-shadow: none;
}

.home-shell .det-mark img {
  mix-blend-mode: multiply;
  filter: drop-shadow(0 0 10px rgba(169, 0, 170, .22));
}

.home-shell[data-theme="dark"] .det-mark img {
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 14px rgba(212, 0, 207, .62));
}

.theme-toggle {
  min-height: 48px;
  min-width: 88px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.theme-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle span:before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 0 12px color-mix(in srgb, var(--pink) 55%, transparent);
}

.home-shell .btn {
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}

.home-shell .btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 18px 52px color-mix(in srgb, var(--pink) 24%, transparent);
}

.home-shell .btn.light {
  background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
  color: var(--ink);
}

.home-hero {
  position: relative;
  min-height: calc(100vh - 88px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.home-hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--page) 84%, transparent));
}

#detWebCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .92;
}

#detWebCanvas.three-fallback {
  background:
    linear-gradient(120deg, transparent 10%, color-mix(in srgb, var(--cyan) 11%, transparent), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 54px, color-mix(in srgb, var(--pink) 11%, transparent) 55px 56px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(440px, .72fr);
  gap: 58px;
  align-items: start;
  min-height: calc(100vh - 88px);
  padding: 48px 0 72px;
}

.home-copy {
  max-width: 1030px;
}

.home-shell .crumb,
.home-shell .eyebrow {
  color: var(--pink);
  font-family: "Manrope", Inter, sans-serif;
  font-size: .78rem;
  font-weight: 900;
}

.home-shell .crumb {
  color: var(--muted);
}

.home-shell .actions {
  margin-top: 28px;
}

.hero-media {
  position: relative;
  min-height: 620px;
}

.hero-photo,
.proof-gallery figure,
.process-section figure,
.system-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-photo {
  position: absolute;
  margin: 0;
}

.hero-photo img,
.proof-gallery img,
.process-section img,
.system-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo.large {
  top: 0;
  right: 0;
  width: 78%;
  height: 430px;
}

.hero-photo.small {
  left: 0;
  bottom: 42px;
  width: 58%;
  height: 300px;
}

.hero-photo figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(4, 6, 16, .72);
  backdrop-filter: blur(12px);
  color: #fff;
}

.hero-photo.large figcaption {
  top: 16px;
  bottom: auto;
}

.hero-photo figcaption strong,
.hero-photo figcaption span {
  display: block;
}

.hero-photo figcaption span {
  margin-top: 4px;
  color: rgba(255, 255, 255, .74);
  font-weight: 800;
}

.live-panel {
  position: absolute;
  right: 22px;
  bottom: 0;
  width: min(360px, 78%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
  box-shadow: var(--shadow);
}

.live-panel span,
.live-panel strong {
  display: block;
}

.live-panel span {
  color: var(--pink);
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 900;
}

.live-panel strong {
  margin-top: 8px;
  font-size: 1.3rem;
  color: var(--ink);
}

.live-panel div {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.live-panel i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.service-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, .72fr);
  gap: 42px;
  align-items: end;
  padding: 84px 0 24px;
}

.service-intro > p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.72;
}

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

.system-grid article {
  min-width: 0;
}

.system-grid img {
  height: 250px;
}

.system-grid div {
  padding: 24px;
}

.system-grid span,
.process-list span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--pink);
  font-weight: 900;
}

.system-grid p,
.process-list p {
  margin-bottom: 0;
  line-height: 1.62;
}

.web-proof {
  padding: 88px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 58%, transparent);
}

.proof-inner {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

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

.proof-gallery figure {
  margin: 0;
  min-height: 250px;
  position: relative;
}

.proof-gallery figure.wide {
  grid-column: 1 / -1;
  min-height: 340px;
}

.proof-gallery figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(4, 6, 16, .76);
  color: #fff;
  font-weight: 900;
}

.process-section {
  display: grid;
  grid-template-columns: minmax(360px, .72fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 94px 0;
}

.process-section figure {
  height: 640px;
  margin: 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.process-list article {
  min-width: 0;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.home-shell .platforms {
  padding-top: 42px;
}

.home-shell .platforms article,
.home-shell .demo-cta {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.home-shell footer {
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
  border-color: var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .home-topbar {
    grid-template-columns: auto 1fr auto auto;
  }

  .home-topbar nav {
    display: none;
  }

  .hero-inner,
  .service-intro,
  .proof-inner,
  .process-section {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 560px;
  }
}

@media (min-width: 1400px) {
  .home-shell h1 {
    font-size: 5.05rem;
  }
}

@media (max-width: 780px) {
  .home-shell h1 {
    font-size: 3.25rem;
  }

  .home-shell h2 {
    font-size: 2.35rem;
  }

  .home-shell .lead,
  .service-intro > p {
    font-size: 1.02rem;
  }

  .home-topbar {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .home-topbar > .btn {
    display: none;
  }

  .theme-toggle {
    min-width: 76px;
    padding: 0 12px;
  }

  .hero-inner {
    padding: 42px 0 64px;
  }

  .hero-media {
    min-height: 500px;
  }

  .hero-photo.large,
  .hero-photo.small {
    position: relative;
    width: 100%;
    height: 260px;
    inset: auto;
    margin-bottom: 12px;
  }

  .live-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
  }

  .system-grid,
  .proof-gallery,
  .process-list,
  .platforms div {
    grid-template-columns: 1fr;
  }

  .proof-gallery figure.wide {
    min-height: 260px;
  }

  .process-section figure {
    height: 360px;
  }
}
