.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #07111f 4%, #07111ffa 28%, #07111f70 65%, #07111f54),
    linear-gradient(0deg, #09101b, transparent 30%, transparent 77%, #07111f),
    url('/site/assets/cinema.webp') center 53% / cover;
}
.hero-copy { position: relative; z-index: 1; }
.hero .actions { align-items: center; }
.hero-partner {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .35rem;
  color: #d8e5f1;
  font-size: .88rem;
  font-weight: 750;
  text-decoration-color: #91a5bb;
}
.hero-partner:hover { color: var(--lime); }
.showcase-stage { isolation: isolate; }
.showcase-light {
  position: absolute;
  inset: 5% 0 1%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 78% 40%, #579cd146, transparent 59%),
    linear-gradient(153deg, transparent 27%, #88e5f00a 36%, #a2ebff25 49%, transparent 72%);
  opacity: .55;
  mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
  pointer-events: none;
}
.showcase-tv {
  z-index: 1;
  aspect-ratio: 1.561;
  --display-left: .89%;
  --display-top: 1.91%;
  --display-width: 98.22%;
  --display-height: 86.26%;
  --screen-x: 2%;
  --screen-y: 1%;
  --screen-turn: -15deg;
  --screen-pitch: 5deg;
  --screen-opacity: .50;
  --screen-delay: 0ms;
}
.showcase-laptop {
  z-index: 2;
  aspect-ratio: 1.58;
  --display-left: 10.93%;
  --display-top: 5.11%;
  --display-width: 77.73%;
  --display-height: 75.33%;
  --screen-x: -8%;
  --screen-y: -1%;
  --screen-turn: 18deg;
  --screen-pitch: 3deg;
  --screen-opacity: .42;
  --screen-delay: 90ms;
}
.showcase-phone {
  z-index: 3;
  aspect-ratio: .52;
  --display-left: 4.89%;
  --display-top: 5.72%;
  --display-width: 90.64%;
  --display-height: 91.87%;
  --screen-x: 7%;
  --screen-y: -5%;
  --screen-turn: -24deg;
  --screen-pitch: -4deg;
  --screen-opacity: .40;
  --screen-delay: 160ms;
}
.showcase-stage > :is(.showcase-tv, .showcase-laptop, .showcase-phone) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.showcase-tv::before, .showcase-tv::after, .showcase-laptop::after { content: none; }
.showcase-stage .showcase-hardware {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  filter: drop-shadow(0 .85rem 1.2rem #01040ac9);
}
.showcase-stage .showcase-screen {
  position: absolute;
  inset: var(--display-top) auto auto var(--display-left);
  width: var(--display-width);
  height: var(--display-height);
  background: #030507;
  object-fit: cover;
}
.showcase-phone .showcase-screen { border-radius: 11% / 5.25%; }
.showcase-reflection {
  position: absolute;
  z-index: 4;
  inset: 4% 1% 2%;
  overflow: clip;
  pointer-events: none;
}
.showcase-reflection::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  opacity: 0;
  background: linear-gradient(104deg, transparent 15%, #a7ecfa15 37%, #e2f9ff54 53%, #c5f47c24 59%, transparent 85%);
  mask-image: linear-gradient(transparent, #000 22%, #000 68%, transparent);
}

.feature-highlights {
  padding-block: clamp(3.6rem, 6vw, 8rem);
  background: radial-gradient(ellipse at 90% 16%, #203749, transparent 57%), #0a1420;
}
.feature-heading {
  margin-block-end: clamp(1.4rem, 2.5vw, 2.5rem);
}
.feature-heading p { color: #ccdae8; }
.feature-chapters { --chapter-accent: #bef578; }
.feature-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem;
  padding: .4rem;
  border: 1px solid #3a5265;
  border-radius: 14px;
  background: #09131f;
}
.feature-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-width: 0;
  min-height: 56px;
  padding: .55rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #d2e1ee;
  font-weight: 800;
  line-height: 1.2;
}
.feature-tabs button:nth-child(2) { --chapter-accent: #8be1f3; }
.feature-tabs button:nth-child(3) { --chapter-accent: #c0adff; }
.feature-tabs button[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--chapter-accent) 38%, #182431);
  color: var(--chapter-accent);
  background: color-mix(in srgb, var(--chapter-accent) 12%, #0b1725);
}
.feature-tabs button:hover { color: var(--chapter-accent); }
.feature-tabs button:focus-visible { outline-offset: -4px; outline-color: var(--chapter-accent); }
.chapter-icon { position: relative; display: block; width: 19px; height: 16px; flex: none; }
.chapter-guide { border: 1.5px solid; border-radius: 3px; }
.chapter-guide::before, .chapter-guide::after {
  content: "";
  position: absolute;
  inset: 4px 2px auto;
  border-top: 1px solid;
}
.chapter-guide::after { top: 8px; right: 5px; }
.chapter-play { background: currentColor; clip-path: polygon(19% 0, 92% 50%, 19% 100%, 19% 83%, 68% 50%, 32% 25%, 32% 75%, 19% 83%); }
.chapter-profile::before, .chapter-profile::after {
  content: "";
  position: absolute;
  border: 1.5px solid;
}
.chapter-profile::before { inset: 0 6px auto; height: 7px; border-radius: 50%; }
.chapter-profile::after { inset: 8px 2px 0; border-radius: 8px 8px 3px 3px; }
.feature-chapter {
  margin-top: clamp(1.1rem, 2vw, 2.25rem);
}
.chapter-heading {
  margin-block-end: .9rem;
  font-size: clamp(1.35rem, 2.35vw, 2.35rem);
}
.feature-chapter .player-systems { margin-block-start: 0; }
.feature-chapter .player-systems article {
  display: grid;
  align-content: start;
  min-height: 17rem;
  padding: clamp(1.25rem, 3vw, 3rem);
  border: 0;
  border-radius: 14px;
}
.feature-chapter .player-systems h3 { color: var(--player-accent); }
.player-engine { --player-accent: #8be1f3; background: linear-gradient(120deg, #162f43, #10202f); }
.player-recovery { --player-accent: #fcc89e; background: linear-gradient(120deg, #302739, #222235); }
.feature-profiles {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.3rem, 3vw, 4rem);
  border-radius: 16px;
  padding: clamp(1rem, 3vw, 3rem);
  background: radial-gradient(ellipse at 24% 60%, #324867, transparent 80%), #191b2e;
}
.feature-profiles .chapter-heading { color: #dcd0ff; }
.profile-capture { padding: .45rem; border-radius: 12px; border: 1px solid #697e9e; background: #0c1520; }
.profile-capture img { width: 100%; height: auto; border-radius: 6px; }
.feature-profiles .personal-features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.feature-profiles .personal-features li {
  padding-block: .72rem;
  border-block-start: 1px solid #3e4560;
}
.feature-profiles .personal-features li:last-child { padding-block-end: 0; }
.feature-profiles .personal-features h3 { font-size: clamp(1.05rem, 1.6vw, 1.5rem); }
.feature-profiles .personal-features p { margin-top: .25rem; }

.compare-detail {
  border-block: 1px solid #b8aacb;
}
.compare-detail > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
  padding: .8rem clamp(.8rem, 2vw, 1.7rem);
  background: #32274a;
  color: #fff;
  border-radius: 9px;
  font: 550 clamp(1.08rem, 2vw, 1.5rem)/1.3 Outfit, sans-serif;
  cursor: pointer;
  list-style: none;
}
.compare-detail > summary::-webkit-details-marker { display: none; }
.compare-detail > summary::after {
  content: "";
  width: .65rem;
  height: .65rem;
  flex: none;
  margin-inline-end: .25rem;
  border-right: 2px solid #e0d4ff;
  border-bottom: 2px solid #e0d4ff;
  transform: translateY(-.12rem) rotate(45deg);
}
.compare-detail > summary:hover { background: #473763; }
.compare-detail[open] > summary { margin-bottom: 1rem; }
.compare-detail[open] > summary::after { transform: translateY(.12rem) rotate(225deg); }

@media (max-width: 1099px) {
  .hero::before {
    background-image: linear-gradient(180deg, #09101cf7 10%, #09101c88 55%, #09101b 99%), url('/site/assets/cinema.webp');
    background-position: center, center 48%;
  }
}
@media (min-width: 701px) and (max-width: 1099px) {
  .device-showcase { width: min(100%, 49rem); }
  .showcase-stage { aspect-ratio: 1.75; }
}
@media (max-width: 700px) {
  .hero-inner { gap: clamp(1.2rem, 4vw, 1.65rem); }
  .hero .actions { gap: .45rem .6rem; }
  .hero-partner { justify-content: center; flex-basis: 100%; }
  .hero .actions .button { width: auto; min-height: 44px; }
  .showcase-stage { aspect-ratio: 1.35; }
  .showcase-laptop { width: 50%; }
  .showcase-phone { width: 18%; }
  .feature-tabs button { gap: .35rem; min-height: 51px; font-size: clamp(.79rem, 2.75vw, .92rem); }
  .feature-profiles { grid-template-columns: minmax(0, 1fr); }
  .feature-chapter .player-systems article { min-height: 0; }
}
@media (max-width: 400px) {
  .feature-tabs button { flex-direction: column; }
  .compare-detail > summary { min-height: 56px; }
}

@media (min-width: 1100px) {
  .showcase-tv { --screen-rest: -4deg; }
  .showcase-laptop { --screen-rest: 7deg; }
  .showcase-phone { --screen-rest: -9deg; }
}
.showcase-stage > :is(.showcase-tv, .showcase-laptop, .showcase-phone) {
  transform: perspective(1150px) rotateY(var(--screen-rest, 0deg));
}
@media (prefers-reduced-motion: no-preference) {
  .showcase-stage.is-projecting > :is(.showcase-tv, .showcase-laptop, .showcase-phone) {
    animation: project-screens 930ms cubic-bezier(.18,.67,.18,1) var(--screen-delay) backwards;
  }
  .showcase-stage.is-projecting .showcase-light { animation: project-light 1050ms ease-out; }
  .showcase-stage.is-projecting .showcase-reflection::before {
    animation: sweep-reflection 830ms cubic-bezier(.28,.16,.42,.95) 180ms;
  }
  .feature-chapters[data-ready] .feature-chapter:not([hidden]) {
    animation: change-chapter 360ms cubic-bezier(.2,.68,.24,1) both;
  }
}
@keyframes project-screens {
  from {
    transform: perspective(1150px) translate3d(var(--screen-x), var(--screen-y), -122px)
      rotateY(var(--screen-turn)) rotateX(var(--screen-pitch));
    opacity: var(--screen-opacity);
  }
  57% { opacity: 1; }
  to { transform: perspective(1150px) translate3d(0, 0, 0) rotateY(var(--screen-rest, 0deg)); }
}
@keyframes project-light {
  from { transform: translateX(-6%) scale(.9); opacity: .22; }
  45% { opacity: .87; }
  to { transform: translateX(0) scale(1); opacity: .55; }
}
@keyframes sweep-reflection {
  from { transform: translateX(-100%); opacity: 0; }
  28% { opacity: .75; }
  65% { opacity: .72; }
  to { transform: translateX(244%); opacity: 0; }
}
@keyframes change-chapter {
  from { transform: translateY(7px); opacity: .57; }
  to { transform: translateY(0); opacity: 1; }
}
