@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap");

/* Additive layer only. The canonical homepage remains the visual source. */
.demo-homepage-plus {
  --demo-gold: var(--gold, #c9a84c);
  --demo-paper: var(--w, #ececf4);
  --demo-sub: var(--sub, #9090c0);
  --demo-line: rgba(255, 255, 255, .11);
  --demo-panel: rgba(7, 7, 16, .82);
  padding-bottom: 0;
}

.demo-homepage-plus .hero {
  min-height: auto;
  padding-bottom: 56px;
  isolation: isolate;
}

/* The demo hero must carry the visual promise above the fold.  The original
   homepage stays untouched; this video layer exists only under /demo. */
body.demo-homepage-plus .demo-hero-motion {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .48;
  pointer-events: none;
  filter: saturate(1.08) contrast(1.08) brightness(.72);
  transform: scale(1.035);
  animation: demoHeroDrift 22s cubic-bezier(.16,1,.3,1) infinite alternate;
}

body.demo-homepage-plus .hero::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(5, 5, 9, .08), rgba(5, 5, 9, .6) 75%),
    linear-gradient(180deg, rgba(5, 5, 9, .22), rgba(5, 5, 9, .68) 86%, #050509 100%);
}

body.demo-homepage-plus .hero > #stars { z-index: 1; }
body.demo-homepage-plus .hero > .orb,
body.demo-homepage-plus .hero > .particles { z-index: 2; }

@keyframes demoHeroDrift {
  from { transform: scale(1.035) translate3d(-.8%, -.4%, 0); }
  to { transform: scale(1.09) translate3d(.8%, .4%, 0); }
}

.demo-homepage-plus .hero-content {
  width: 100%;
}

.demo-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity .85s cubic-bezier(.16, 1, .3, 1),
    transform .85s cubic-bezier(.16, 1, .3, 1);
}

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

.demo-hero-showcase {
  position: relative;
  z-index: 8;
  width: min(1160px, calc(100vw - 48px));
  height: 540px;
  margin: 54px auto 0;
  perspective: 1500px;
  isolation: isolate;
}

.demo-simulation-label {
  position: absolute;
  z-index: 7;
  top: 1rem;
  left: 1rem;
  padding: 0.48rem 0.68rem;
  border: 1px solid rgba(230, 184, 88, 0.38);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.72);
  color: rgba(255, 242, 210, 0.82);
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.16em;
  line-height: 1;
  backdrop-filter: blur(12px);
}

#demoSignalCanvas {
  position: absolute;
  inset: -20px;
  z-index: -2;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  opacity: .72;
  pointer-events: none;
}

.demo-hero-showcase::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 8% 4% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, .13), transparent 66%);
  filter: blur(20px);
}

.demo-depth-card {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(201, 168, 76, .32);
  border-radius: 14px;
  background: rgba(7, 7, 16, .88);
  box-shadow: 0 35px 90px rgba(0, 0, 0, .48);
  transform:
    perspective(1300px)
    rotateX(var(--rx))
    rotateY(var(--ry))
    translate3d(0, var(--lift), 0);
  transform-style: preserve-3d;
  transition:
    transform .28s cubic-bezier(.16, 1, .3, 1),
    border-color .28s ease,
    box-shadow .28s ease;
  will-change: transform;
}

.demo-depth-card:hover {
  --lift: -8px;
  border-color: rgba(201, 168, 76, .62);
  box-shadow: 0 46px 110px rgba(0, 0, 0, .58), 0 0 0 1px rgba(201, 168, 76, .08);
}

.demo-film {
  left: 0;
  top: 36px;
  width: 65%;
  height: 426px;
}

.demo-film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.08) brightness(.72);
}

.demo-film::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 54%, rgba(4, 4, 10, .85)),
    linear-gradient(90deg, rgba(4, 4, 10, .16), transparent 55%);
  pointer-events: none;
}

.demo-film figcaption {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--demo-paper);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.demo-film figcaption button {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(4, 4, 10, .56);
  color: var(--demo-paper);
  cursor: pointer;
}

.demo-call {
  right: 5%;
  top: 0;
  width: 36%;
  min-height: 246px;
  padding: 24px;
  text-align: left;
  backdrop-filter: blur(18px);
}

.demo-call header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--demo-line);
  color: var(--demo-sub);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.demo-call header span,
.demo-call header span i {
  display: inline-flex;
  align-items: center;
}

.demo-call header span i {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #72d6a2;
  box-shadow: 0 0 16px rgba(114, 214, 162, .8);
}

.demo-call > strong {
  display: block;
  margin-top: 22px;
  color: var(--demo-paper);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
}

.demo-call > small {
  display: block;
  margin-top: 14px;
  color: var(--demo-gold);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.demo-wave {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 18px 0 0;
}

.demo-wave i {
  width: 3px;
  height: 28%;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5e6b8, var(--demo-gold));
  transform-origin: center;
  animation: demo-wave 1.35s ease-in-out infinite;
}

.demo-wave i:nth-child(2n) { height: 74%; animation-delay: -.55s; }
.demo-wave i:nth-child(3n) { height: 48%; animation-delay: -.92s; }
.demo-wave i:nth-child(4n) { height: 92%; animation-delay: -.28s; }

@keyframes demo-wave {
  0%, 100% { transform: scaleY(.54); opacity: .58; }
  50% { transform: scaleY(1); opacity: 1; }
}

.demo-outcome {
  right: 0;
  bottom: 18px;
  width: 30%;
  min-height: 194px;
  padding: 24px;
  text-align: left;
  backdrop-filter: blur(18px);
}

.demo-check {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 15px;
  border: 1px solid rgba(114, 214, 162, .48);
  border-radius: 50%;
  color: #72d6a2;
}

.demo-outcome small,
.demo-outcome strong,
.demo-outcome p {
  display: block;
  margin: 0;
}

.demo-outcome small {
  color: var(--demo-sub);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.demo-outcome strong {
  margin-top: 8px;
  color: var(--demo-paper);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.demo-outcome p {
  margin-top: 8px;
  color: var(--demo-sub);
  font-size: .78rem;
}

.demo-hero-caption {
  position: absolute;
  left: 7%;
  right: 33%;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--demo-sub);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.demo-hero-caption i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--demo-gold), rgba(255, 255, 255, .18));
}

.demo-journey,
.demo-visual-rail {
  width: min(1120px, calc(100% - 48px));
  margin: 88px auto 0;
}

.demo-journey > header,
.demo-visual-rail > header {
  max-width: 720px;
}

.demo-journey h2,
.demo-visual-rail h2 {
  margin: 12px 0 0;
  color: var(--demo-paper);
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.demo-journey h2 em,
.demo-visual-rail h2 em {
  color: var(--demo-gold);
  font-weight: 300;
}

.demo-journey-shell {
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--demo-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .018);
}

.demo-journey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--demo-line);
}

.demo-journey-steps button {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--demo-line);
  background: transparent;
  color: var(--demo-sub);
  cursor: pointer;
  text-align: left;
  transition: color .25s ease, background .25s ease;
}

.demo-journey-steps button:last-child { border-right: 0; }
.demo-journey-steps button b { color: var(--demo-gold); font-size: .68rem; letter-spacing: .1em; }
.demo-journey-steps button span { font-size: .82rem; }
.demo-journey-steps button.is-active { background: rgba(201, 168, 76, .08); color: var(--demo-paper); }
.demo-journey-steps button:focus-visible { outline: 2px solid var(--demo-gold); outline-offset: -3px; }

.demo-journey-panel {
  min-height: 350px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 54px;
  padding: clamp(30px, 5vw, 62px);
}

.demo-journey-copy > span {
  color: var(--demo-gold);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.demo-journey-copy h3 {
  margin: 14px 0 12px;
  color: var(--demo-paper);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
}

.demo-journey-copy p {
  max-width: 460px;
  margin: 0;
  color: var(--demo-sub);
  font-size: .98rem;
  line-height: 1.75;
}

.demo-journey-visual {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px solid rgba(201, 168, 76, .24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 30%, rgba(201, 168, 76, .12), transparent 58%),
    rgba(4, 4, 10, .7);
}

.demo-phone {
  width: min(300px, 88%);
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--demo-line);
  border-radius: 22px;
  background: #070710;
  box-shadow: 0 24px 55px rgba(0, 0, 0, .42);
}

.demo-phone span {
  color: var(--demo-sub);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.demo-phone b {
  color: var(--demo-paper);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  font-weight: 400;
}

.demo-progress {
  width: min(340px, 92%);
  height: 2px;
  margin-top: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
}

.demo-progress i {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--demo-gold);
  box-shadow: 0 0 16px rgba(201, 168, 76, .64);
  transition: width .55s cubic-bezier(.16, 1, .3, 1);
}

.demo-visual-rail {
  padding: 8px 0 28px;
}

.demo-media-grid {
  display: grid;
  grid-template-columns: 1.35fr .825fr .825fr;
  gap: 16px;
  margin-top: 34px;
}

.demo-media-tile {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--demo-line);
  border-radius: 14px;
  background: #070710;
  color: var(--demo-paper);
  cursor: pointer;
  text-align: left;
}

.demo-media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.74) contrast(1.06) brightness(.72);
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), filter .5s ease;
}

.demo-media-tile video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.72) contrast(1.06) brightness(.66);
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), filter .5s ease;
}

.demo-media-tile:hover video {
  transform: scale(1.045);
  filter: saturate(.92) contrast(1.06) brightness(.76);
}

.demo-media-grid--motion {
  margin-top: 16px;
}

.demo-media-tile--motion {
  min-height: 250px;
}

.demo-media-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(4, 4, 10, .9));
}

.demo-media-tile:hover img {
  transform: scale(1.045);
  filter: saturate(.92) contrast(1.06) brightness(.78);
}

.demo-media-tile > span {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: grid;
  gap: 7px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
}

.demo-media-tile > span small {
  color: var(--demo-gold);
  font-family: "DM Sans", sans-serif;
  font-size: .65rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.demo-mobile-actions {
  display: none;
}

@media (max-width: 900px) {
  .demo-homepage-plus {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .demo-homepage-plus .hero {
    padding-bottom: 30px;
  }

  .demo-hero-showcase {
    width: calc(100vw - 28px);
    height: 505px;
    margin-top: 36px;
  }

  .demo-film {
    top: 0;
    width: 100%;
    height: 282px;
  }

  .demo-call {
    left: 0;
    right: auto;
    top: 302px;
    width: 64%;
    min-height: 176px;
    padding: 16px;
  }

  .demo-call header { padding-bottom: 10px; font-size: .6rem; }
  .demo-call > strong { margin-top: 12px; font-size: 1.3rem; }
  .demo-wave { height: 34px; margin-top: 9px; gap: 3px; }
  .demo-call > small { margin-top: 8px; font-size: .56rem; }

  .demo-outcome {
    right: 0;
    bottom: 0;
    width: 43%;
    min-height: 156px;
    padding: 15px;
  }

  .demo-check { width: 30px; height: 30px; margin-bottom: 10px; }
  .demo-outcome strong { font-size: 1.3rem; }
  .demo-outcome p { font-size: .66rem; line-height: 1.45; }
  .demo-hero-caption { display: none; }

  .demo-journey,
  .demo-visual-rail {
    width: calc(100% - 36px);
    margin-top: 66px;
  }

  .demo-journey h2,
  .demo-visual-rail h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .demo-journey-steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .demo-journey-steps::-webkit-scrollbar { display: none; }
  .demo-journey-steps button { min-width: 142px; scroll-snap-align: start; }

  .demo-journey-panel {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px 24px;
  }

  .demo-journey-copy h3 { font-size: 2rem; }
  .demo-journey-visual { min-height: 190px; padding: 20px 12px; }

  .demo-media-grid {
    display: flex;
    gap: 14px;
    margin-right: -18px;
    padding-right: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .demo-media-grid::-webkit-scrollbar { display: none; }
  .demo-media-tile { flex: 0 0 82vw; min-height: 390px; scroll-snap-align: start; }

  .demo-mobile-actions {
    position: fixed;
    z-index: 2147483000;
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(201, 168, 76, .34);
    border-radius: 13px;
    background: rgba(4, 4, 10, .91);
    box-shadow: 0 18px 52px rgba(0, 0, 0, .55);
    backdrop-filter: blur(18px) saturate(125%);
  }

  .demo-mobile-actions a,
  .demo-mobile-actions button {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
    color: var(--demo-paper);
    font: 600 .78rem "DM Sans", sans-serif;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .demo-mobile-actions button {
    border-color: rgba(201, 168, 76, .5);
    color: #070710;
    background: var(--demo-gold);
  }
}

@media (max-width: 430px) {
  .demo-hero-showcase { height: 482px; }
  .demo-film { height: 260px; }
  .demo-call { top: 278px; min-height: 170px; }
  .demo-outcome { min-height: 148px; }
  .demo-call > strong { font-size: 1.18rem; }
  .demo-call > small { max-width: 150px; line-height: 1.35; }
  .demo-journey,
  .demo-visual-rail { width: calc(100% - 30px); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  body.demo-homepage-plus #stars,
  body.demo-homepage-plus #particles,
  body.demo-homepage-plus #demoSignalCanvas { display: none !important; }
  body.demo-homepage-plus .reveal,
  body.demo-homepage-plus .reveal-left,
  body.demo-homepage-plus .reveal-right,
  body.demo-homepage-plus .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }

  .demo-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .demo-depth-card,
  .demo-media-tile img,
  .demo-media-tile video,
  .demo-progress i {
    transition: none;
    transform: none !important;
  }

  .demo-wave i {
    animation: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Product demo system
   Motion Canvas patterns adapted into the Apex visual language: midnight
   field, liquid gold, quiet grids, layered proof cards and short copy.
   ───────────────────────────────────────────────────────────────────────── */
body.product-page {
  --product-ink: #080b12;
  --product-panel: rgba(16, 20, 29, .82);
  --product-panel-strong: rgba(19, 24, 34, .96);
  --product-paper: #f1efe9;
  --product-muted: #a2a8b2;
  --product-line: rgba(255, 255, 255, .13);
  --product-gold: #d8ad47;
  --product-green: #75d7a4;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 9%, rgba(216, 173, 71, .08), transparent 28rem),
    radial-gradient(circle at 10% 50%, rgba(52, 91, 118, .12), transparent 34rem),
    var(--product-ink);
  color: var(--product-paper);
  font-family: "DM Sans", system-ui, sans-serif;
}

body.product-page .button,
body.product-page .grain,
body.product-page .particle-field { box-sizing: border-box; }

body.product-page::before {
  content: "";
  position: fixed;
  z-index: -3;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.82), transparent 84%);
}

body.product-page .particle-field,
body.product-page .grain {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  right: auto;
  max-width: 100vw;
}

body.product-page .particle-field { opacity: .8; mix-blend-mode: screen; }
body.product-page .grain {
  z-index: 20;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

body.product-page .scroll-meter {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--product-gold), #fff3bb);
  box-shadow: 0 0 18px rgba(216, 173, 71, .6);
}

body.product-page .demo-header,
body.product-page .demo-footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

body.product-page .demo-header {
  min-height: 80px;
  border-bottom: 1px solid var(--product-line);
}

body.product-page .demo-footer {
  gap: 22px;
  padding: 58px 0 34px;
  border-top: 1px solid var(--product-line);
  color: var(--product-muted);
}

body.product-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--product-paper);
  text-decoration: none;
}

body.product-page .brand img { width: 38px; height: 38px; object-fit: contain; }
body.product-page .brand span { display: grid; gap: 1px; }
body.product-page .brand b { color: var(--product-paper); font-size: .83rem; letter-spacing: .19em; }
body.product-page .brand small { color: var(--product-muted); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }

body.product-page .demo-header nav,
body.product-page .demo-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 34px);
}

body.product-page .demo-header nav a,
body.product-page .demo-footer nav a {
  color: var(--product-muted);
  font-size: .72rem;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .25s ease;
}

body.product-page .demo-header nav a:hover,
body.product-page .demo-footer nav a:hover { color: var(--product-paper); }

body.product-page .header-cta { min-height: 42px; padding: 0 17px; }
body.product-page .header-menu { display: none; }
body.product-page .mobile-menu { display: none; }

body.product-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: transparent;
  color: var(--product-paper);
  cursor: pointer;
  font: 600 .75rem "DM Sans", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s ease, background .35s ease, color .35s ease;
}

body.product-page .button:hover { transform: translateY(-3px); border-color: rgba(216, 173, 71, .72); }
body.product-page .button-gold { border-color: transparent; background: var(--product-gold); color: #101015; box-shadow: 0 12px 32px rgba(216, 173, 71, .2); }
body.product-page .button-gold:hover { background: #f1cc6b; box-shadow: 0 16px 38px rgba(216, 173, 71, .3); }
body.product-page .button-ghost { background: rgba(255, 255, 255, .025); }
body.product-page .button.full { width: 100%; }

body.product-page main#productPage {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

body.product-page .product-hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(36px, 7vw, 108px);
  min-height: 680px;
  padding: 84px 0 104px;
}

body.product-page .product-copy { position: relative; z-index: 2; max-width: 560px; }
body.product-page .product-kicker,
body.product-page .overline {
  margin: 0 0 20px;
  color: var(--product-gold);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

body.product-page .product-copy h1,
body.product-page .product-section-heading h2,
body.product-page .interactive-demo h2,
body.product-page .process-section h2,
body.product-page .subpage-cta h2 {
  max-width: 670px;
  margin: 0;
  color: var(--product-paper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .96;
}

body.product-page .product-copy h1 { font-size: clamp(2.7rem, 4.7vw, 4.25rem); }
body.product-page .product-copy h1 i { font-style: normal; }
body.product-page .product-lead {
  max-width: 495px;
  margin: 27px 0 0;
  color: var(--product-muted);
  font-size: clamp(.95rem, 1.35vw, 1.14rem);
  line-height: 1.65;
}

body.product-page .product-bullets {
  display: grid;
  gap: 11px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #d8d7d1;
  font-size: .88rem;
}

body.product-page .product-bullets li { display: flex; align-items: center; gap: 11px; }
body.product-page .product-bullets li i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--product-green); box-shadow: 0 0 14px rgba(117, 215, 164, .65); }
body.product-page .hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }

body.product-page .product-media-stage {
  position: relative;
  min-height: 550px;
  perspective: 1400px;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

body.product-page .product-media-frame {
  position: absolute;
  inset: 28px 9% 22px 0;
  overflow: hidden;
  border: 1px solid rgba(216, 173, 71, .33);
  border-radius: 24px;
  background: #111722;
  box-shadow: 0 38px 100px rgba(0, 0, 0, .48), inset 0 0 0 1px rgba(255,255,255,.035);
  transform: translateZ(0);
}

body.product-page .product-media-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 34%, rgba(4, 6, 10, .66));
  pointer-events: none;
}

body.product-page .product-media-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.08) brightness(.74); transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), filter .55s ease; }
body.product-page .product-media-stage:hover .product-media-frame img { transform: scale(1.055); filter: saturate(.96) contrast(1.08) brightness(.82); }
body.product-page .product-media-glow { position: absolute; z-index: 2; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(216,173,71,.22), transparent 32%); mix-blend-mode: screen; pointer-events: none; }

body.product-page .product-live-badge,
body.product-page .product-signal-card,
body.product-page .product-demo-card {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(8, 11, 18, .82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .44);
  backdrop-filter: blur(20px) saturate(130%);
}

body.product-page .product-live-badge {
  top: 0;
  left: 10%;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  padding: 10px 13px;
  border-color: rgba(117, 215, 164, .26);
  border-radius: 999px;
  color: #e6eee8;
  font-size: .7rem;
  letter-spacing: .06em;
}

body.product-page .product-live-badge small { grid-column: 2; color: var(--product-muted); font-size: .58rem; letter-spacing: .08em; }
body.product-page .status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--product-green); box-shadow: 0 0 14px rgba(117, 215, 164, .8); }

body.product-page .product-signal-card { top: 19%; right: 0; width: min(252px, 42%); padding: 15px; border-radius: 17px; transform: translateZ(42px); }
body.product-page .product-signal-card header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 17px; color: var(--product-muted); font-size: .58rem; letter-spacing: .12em; }
body.product-page .product-signal-card header b { color: var(--product-gold); font-weight: 500; }
body.product-page .product-signal-line { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 8px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08); color: #dedfdc; font-size: .68rem; }
body.product-page .product-signal-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--product-green); }
body.product-page .product-signal-line b { color: var(--product-green); font-size: .53rem; letter-spacing: .1em; }
body.product-page .product-signal-line.is-next i { background: var(--product-gold); box-shadow: 0 0 11px rgba(216,173,71,.7); }
body.product-page .product-signal-line.is-next b { color: var(--product-gold); }

body.product-page .product-demo-card { right: 5%; bottom: 0; width: min(315px, 62%); padding: 21px; border-color: rgba(216,173,71,.44); border-radius: 19px; transform: translateZ(72px); }
body.product-page .product-demo-card header { display: flex; justify-content: space-between; gap: 8px; color: var(--product-muted); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
body.product-page .product-demo-card header span { display: inline-flex; align-items: center; gap: 7px; }
body.product-page .product-demo-card header small { color: var(--product-gold); font-size: .54rem; }
body.product-page .product-demo-card h3 { margin: 22px 0 8px; color: var(--product-paper); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.7rem; font-weight: 500; line-height: 1; }
body.product-page .product-demo-card p { margin: 0 0 18px; color: var(--product-muted); font-size: .76rem; line-height: 1.55; }
body.product-page .product-demo-card .button { min-height: 42px; font-size: .64rem; }
body.product-page .product-orbit { position: absolute; z-index: 1; display: block; width: 90px; height: 90px; border: 1px solid rgba(216,173,71,.22); border-radius: 50%; pointer-events: none; }
body.product-page .product-orbit-a { top: 40%; left: -6%; }
body.product-page .product-orbit-b { right: -4%; bottom: 15%; width: 130px; height: 130px; border-color: rgba(117,215,164,.16); }

body.product-page .product-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 112px;
  border-block: 1px solid var(--product-line);
  background: var(--product-line);
}

body.product-page .product-proof-strip article { min-height: 148px; padding: 24px 26px; background: rgba(8, 11, 18, .88); }
body.product-page .product-proof-strip span { display: block; margin-bottom: 14px; color: var(--product-gold); font-size: .62rem; letter-spacing: .18em; }
body.product-page .product-proof-strip strong { display: block; color: var(--product-paper); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.55rem; font-weight: 500; }
body.product-page .product-proof-strip p { margin: 5px 0 0; color: var(--product-muted); font-size: .76rem; }

body.product-page .interactive-demo,
body.product-page .process-section,
body.product-page .product-media-rail,
body.product-page .subpage-cta { padding: 0 0 126px; }
body.product-page .interactive-demo { display: grid; grid-template-columns: .72fr 1.28fr; align-items: end; gap: 72px; }
body.product-page .interactive-demo h2,
body.product-page .process-section h2,
body.product-page .product-section-heading h2,
body.product-page .subpage-cta h2 { font-size: clamp(2.65rem, 4.5vw, 4.1rem); }
body.product-page .interactive-demo-copy > p:not(.overline) { max-width: 410px; margin: 24px 0 0; color: var(--product-muted); font-size: .95rem; line-height: 1.65; }
body.product-page .demo-console { overflow: hidden; border: 1px solid var(--product-line); border-radius: 20px; background: var(--product-panel); box-shadow: 0 28px 80px rgba(0,0,0,.27); }
body.product-page .console-tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--product-line); }
body.product-page .console-tabs button { flex: 1; min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--product-muted); cursor: pointer; font: 600 .66rem "DM Sans", sans-serif; letter-spacing: .1em; text-transform: uppercase; transition: background .25s ease, color .25s ease; }
body.product-page .console-tabs button.is-active { background: rgba(216,173,71,.15); color: var(--product-gold); }
body.product-page .console-screen { display: grid; gap: 8px; padding: 19px; }
body.product-page .console-row { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.075); border-radius: 11px; color: var(--product-muted); font-size: .77rem; transition: border-color .35s ease, background .35s ease, color .35s ease; }
body.product-page .console-row i { width: 8px; height: 8px; border-radius: 50%; background: #4d5561; }
body.product-page .console-row b { color: #6f7782; font-size: .56rem; letter-spacing: .12em; }
body.product-page .console-row.is-active { border-color: rgba(117,215,164,.26); background: rgba(117,215,164,.05); color: var(--product-paper); }
body.product-page .console-row.is-active i { background: var(--product-green); box-shadow: 0 0 12px rgba(117,215,164,.65); }
body.product-page .console-row.is-active b { color: var(--product-green); }

body.product-page .process-section { border-top: 1px solid var(--product-line); padding-top: 72px; }
body.product-page .process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 46px; }
body.product-page .process-grid article { min-height: 184px; padding: 22px; border: 1px solid var(--product-line); border-radius: 16px; background: rgba(255,255,255,.024); transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .4s ease, background .4s ease; }
body.product-page .process-grid article:hover { transform: translateY(-7px); border-color: rgba(216,173,71,.46); background: rgba(216,173,71,.05); }
body.product-page .process-grid article > span { color: var(--product-gold); font-size: .62rem; letter-spacing: .16em; }
body.product-page .process-grid h3 { margin: 34px 0 9px; color: var(--product-paper); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.52rem; font-weight: 500; }
body.product-page .process-grid p { margin: 0; color: var(--product-muted); font-size: .77rem; line-height: 1.55; }

body.product-page .product-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
body.product-page .product-section-heading .overline { margin-bottom: 12px; }
body.product-page .product-media-grid { display: grid; grid-template-columns: 1fr 1.16fr 1fr; gap: 14px; }
body.product-page .product-media-tile { position: relative; min-height: 370px; overflow: hidden; margin: 0; border: 1px solid var(--product-line); border-radius: 18px; background: #111722; box-shadow: 0 20px 55px rgba(0,0,0,.25); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .35s ease; }
body.product-page .product-media-tile:hover { border-color: rgba(216,173,71,.5); }
body.product-page .product-media-tile img,
body.product-page .product-media-tile video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.74) contrast(1.08) brightness(.72); transition: transform 1s cubic-bezier(.16,1,.3,1), filter .5s ease; }
body.product-page .product-media-tile:hover img,
body.product-page .product-media-tile:hover video { transform: scale(1.06); filter: saturate(.95) contrast(1.08) brightness(.82); }
body.product-page .product-media-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 34%, rgba(6,8,13,.92)); pointer-events: none; }
body.product-page .product-media-tile figcaption { position: absolute; z-index: 2; right: 22px; bottom: 20px; left: 22px; display: grid; gap: 7px; }
body.product-page .product-media-tile small { color: var(--product-gold); font-size: .61rem; letter-spacing: .14em; text-transform: uppercase; }
body.product-page .product-media-tile strong { color: var(--product-paper); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.55rem; font-weight: 500; line-height: 1.02; }

body.product-page .subpage-cta { display: grid; grid-template-columns: minmax(0, 1fr); padding: 70px clamp(24px, 6vw, 90px); border: 1px solid rgba(216,173,71,.28); border-radius: 24px; background: radial-gradient(circle at 84% 20%, rgba(216,173,71,.14), transparent 30%), rgba(255,255,255,.025); }
body.product-page .subpage-cta h2 { max-width: 770px; }
body.product-page .subpage-cta p:not(.overline) { max-width: 600px; margin: 22px 0 0; color: var(--product-muted); line-height: 1.6; }
body.product-page .subpage-cta .hero-actions { margin-top: 28px; }

body.product-page .reveal,
body.product-page .reveal-mask { opacity: 0; transform: translateY(24px); transition: opacity .82s cubic-bezier(.16,1,.3,1), transform .82s cubic-bezier(.16,1,.3,1); }
body.product-page .reveal-mask { transform: translateY(14px); }
body.product-page .reveal.is-visible,
body.product-page .reveal-mask.is-visible { opacity: 1; transform: translateY(0); }
body.product-page .line-mask { display: block; overflow: hidden; }

body.product-page .demo-footer small { font-size: .66rem; }
body.product-page .demo-mobile-actions { display: none; }

/* The demo homepage stays aligned with the live Apex hierarchy without
   repeating a billboard-sized headline. Keep the first decision visible
   above the fold and let the media stage carry the visual weight. */
body.demo-homepage-plus .hero-content h1 { font-size: clamp(2.5rem, 4.7vw, 4.2rem) !important; max-width: 790px; }

@media (max-width: 900px) {
  body.product-page .demo-header,
  body.product-page .demo-footer,
  body.product-page main#productPage { width: min(100% - 36px, 700px); }
  body.product-page .demo-header { min-height: 70px; }
  body.product-page .demo-header nav,
  body.product-page .header-cta { display: none; }
  body.product-page .header-menu { display: grid; width: 42px; height: 42px; place-content: center; gap: 5px; border: 1px solid var(--product-line); border-radius: 50%; background: transparent; }
  body.product-page .header-menu span:not(.sr-only) { display: block; width: 16px; height: 1px; background: var(--product-paper); }
  body.product-page .mobile-menu { position: fixed; z-index: 30; top: 71px; right: 18px; left: 18px; display: grid; gap: 4px; padding: 8px; border: 1px solid var(--product-line); border-radius: 15px; background: rgba(8,11,18,.97); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease; }
  body.product-page .mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  body.product-page .mobile-menu a { padding: 14px; border-radius: 9px; color: var(--product-muted); font-size: .77rem; text-decoration: none; }
  body.product-page .mobile-menu a:hover { background: rgba(216,173,71,.1); color: var(--product-paper); }
  body.product-page .product-hero { grid-template-columns: 1fr; gap: 54px; min-height: 0; padding: 72px 0 80px; }
  body.product-page .product-copy { max-width: 640px; }
  body.product-page .product-copy h1 { font-size: clamp(2.9rem, 9vw, 4.35rem); }
  body.product-page .product-media-stage { min-height: 510px; }
  body.product-page .product-proof-strip { margin-bottom: 84px; }
  body.product-page .interactive-demo { grid-template-columns: 1fr; gap: 34px; padding-bottom: 92px; }
  body.product-page .process-grid { grid-template-columns: repeat(2, 1fr); }
  body.product-page .product-media-grid { display: flex; min-width: 0; max-width: 100%; overflow-x: auto; margin-right: -18px; padding-right: 18px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  body.product-page .product-media-grid::-webkit-scrollbar { display: none; }
  body.product-page .product-media-tile { flex: 0 0 72%; min-height: 360px; scroll-snap-align: start; }
  body.product-page .product-section-heading { display: block; }
  body.product-page .demo-mobile-actions { position: fixed; z-index: 2147483000; right: 10px; bottom: max(8px, env(safe-area-inset-bottom)); left: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 7px; border: 1px solid rgba(216,173,71,.42); border-radius: 14px; background: rgba(8,11,18,.92); box-shadow: 0 18px 52px rgba(0,0,0,.55); backdrop-filter: blur(18px) saturate(130%); }
  body.product-page .demo-mobile-actions a,
  body.product-page .demo-mobile-actions button { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--product-paper); font: 600 .76rem "DM Sans", sans-serif; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
  body.product-page .demo-mobile-actions button { border-color: transparent; background: var(--product-gold); color: #101015; cursor: pointer; }
  body.demo-homepage-plus .hero-content h1 { font-size: clamp(2.35rem, 8.8vw, 3.9rem) !important; }
}

@media (max-width: 560px) {
  body.product-page .demo-header,
  body.product-page .demo-footer,
  body.product-page main#productPage { width: calc(100% - 30px); }
  body.product-page .demo-footer { align-items: flex-start; flex-direction: column; padding-bottom: 96px; }
  body.product-page .demo-footer nav { flex-wrap: wrap; gap: 14px 20px; }
  body.product-page .product-hero { padding-top: 56px; }
  body.product-page .product-copy h1 { font-size: clamp(2.55rem, 13vw, 3.35rem); line-height: .98; }
  body.product-page .product-lead { font-size: .92rem; }
  body.product-page .hero-actions { align-items: stretch; flex-direction: column; }
  body.product-page .hero-actions .button { width: 100%; }
  body.product-page .product-media-stage { min-height: 435px; }
  body.product-page .product-media-frame { inset: 24px 0 22px 0; border-radius: 18px; }
  body.product-page .product-live-badge { top: 0; left: 4%; padding: 8px 10px; font-size: .62rem; }
  body.product-page .product-live-badge small { font-size: .5rem; }
  body.product-page .product-signal-card { top: 15%; right: 2%; width: 58%; padding: 11px; }
  body.product-page .product-signal-card header { margin-bottom: 9px; font-size: .5rem; }
  body.product-page .product-signal-line { grid-template-columns: 6px 1fr; gap: 6px; padding: 8px 0; font-size: .59rem; }
  body.product-page .product-signal-line b { display: none; }
  body.product-page .product-demo-card { right: 4%; bottom: 0; width: 82%; padding: 16px; border-radius: 15px; }
  body.product-page .product-demo-card h3 { margin-top: 16px; font-size: 1.43rem; }
  body.product-page .product-demo-card p { margin-bottom: 13px; font-size: .69rem; }
  body.product-page .product-proof-strip { grid-template-columns: 1fr; margin-bottom: 70px; }
  body.product-page .product-proof-strip article { min-height: 0; padding: 18px 20px; }
  body.product-page .interactive-demo,
  body.product-page .process-section,
  body.product-page .product-media-rail,
  body.product-page .subpage-cta { padding-bottom: 82px; }
  body.product-page .interactive-demo h2,
  body.product-page .process-section h2,
  body.product-page .product-section-heading h2,
  body.product-page .subpage-cta h2 { font-size: clamp(2.35rem, 11vw, 3.1rem); }
  body.product-page .process-grid { grid-template-columns: 1fr; margin-top: 30px; }
  body.product-page .process-grid article { min-height: 0; }
  body.product-page .product-media-tile { flex-basis: 84%; min-height: 315px; }
  body.product-page .subpage-cta { padding: 42px 21px 84px; border-radius: 18px; }
  body.demo-homepage-plus .hero-content h1 { font-size: clamp(2.2rem, 12vw, 3.1rem) !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.demo-homepage-plus .demo-hero-motion { display: none; animation: none; }
  body.product-page .reveal,
  body.product-page .reveal-mask,
  body.product-page .product-media-stage,
  body.product-page .product-media-frame img,
  body.product-page .product-media-tile img,
  body.product-page .product-media-tile video,
  body.product-page .button,
  body.product-page .process-grid article { opacity: 1; transform: none; transition: none; }
}
