/* ---------------------------------------------------------- tokens */
:root {
  /* brand */
  --bg: #f9e1ff;
  --fg: #000000;
  --pg: #31002f;
  --primary: #540070;
  --primary-fg: #b000eb;
  --primary-light: #f2b2ff;
  --primary-dark: #2b0033;

  /* derived — light theme */
  --surface: #fdf2ff;
  --surface-2: #f6dcff;
  --muted: #3a2342;
  --border: rgba(84, 0, 112, 0.16);
  --link: #540070;
  --cta-bg: #540070;
  --cta-fg: #ffffff;
  --cta-bg-hover: #420058;
  --ring: #540070;
  --shadow: 0 18px 40px -24px rgba(43, 0, 51, 0.45);

  /* background glows */
  --glow-1: rgba(242, 178, 255, 0.85);
  --glow-2: rgba(84, 0, 112, 0.28);
  --glow-3: rgba(242, 178, 255, 0.6);

  /* fluid type scale */
  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.9rem);
  --step-0: clamp(1rem, 0.7rem + 0.2vw, 1.07rem);
  --step-1: clamp(1rem, 0.8rem + 0.4vw, 1.35rem);
  --step-2: clamp(1rem, 1rem + 0.4vw, 1.8rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.9vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.6rem + 3.1vw, 3.5rem);

  /* metrics */
  --maxw: 1460px;
  --gap: clamp(1rem, 0.6rem + 1.6vw, 1.6rem);
  --radius: 14px;
  --radius-lg: 22px;
  --font:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* dark theme — automatic (OS) unless the user has forced light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07030b;
    --fg: #fbefff;
    --pg: #eebbff;
    --primary-fg: #75009c;
    --surface: #190a20;
    --surface-2: #2b0033;
    --muted: #cbaad8;
    --border: rgba(242, 178, 255, 0.2);
    --link: #f2b2ff;
    --cta-bg: #f2b2ff;
    --cta-fg: #2b0033;
    --cta-bg-hover: #e79bff;
    --ring: #f2b2ff;
    --shadow: 0 22px 50px -26px rgba(0, 0, 0, 0.8);
    --glow-1: rgba(84, 0, 112, 0.55);
    --glow-2: rgba(150, 24, 96, 0.3);
    --glow-3: rgba(84, 0, 112, 0.45);
  }
}

/* dark theme — explicit (user toggle), wins on any OS */
[data-theme="dark"] {
  --bg: #07030b;
  --fg: #fbefff;
  --pg: #eebbff;
  --primary-fg: #75009c;
  --surface: #190a20;
  --surface-2: #2b0033;
  --muted: #cbaad8;
  --border: rgba(242, 178, 255, 0.2);
  --link: #f2b2ff;
  --cta-bg: #f2b2ff;
  --cta-fg: #2b0033;
  --cta-bg-hover: #e79bff;
  --ring: #f2b2ff;
  --shadow: 0 22px 50px -26px rgba(0, 0, 0, 0.8);
  --glow-1: rgba(84, 0, 112, 0.55);
  --glow-2: rgba(150, 24, 96, 0.3);
  --glow-3: rgba(84, 0, 112, 0.45);
}

/* ------------------------------------------------------------ base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 5rem; /* offset anchors below the sticky header */
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background-color: var(--glow-2);
  color: var(--bg);
}
img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--link);
}
h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 700;
}
p {
  margin: 0 0 1rem;
}
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------- layout */
.main {
  position: relative;
  width: 100%;
  z-index: 1; /* Ensures your text/content stays above the pattern layer */
  background: linear-gradient(to bottom right, var(--fg), var(--pg));
  padding-block: clamp(2rem, 1rem + 5vw, 5rem);
  margin-bottom: clamp(1rem, 1rem + 5vw, 3rem);
}

/* The pseudo-element acts as an isolated layer just for the pattern */
.main::before {
  content: "";
  position: absolute;
  inset: 0; /* Stretches the pseudo-element to fill the entire .main container */
  z-index: -1; /* Puts this layer behind the content of .main */
  background-image: url("assets/pattern.png");
  background-repeat: repeat;

  mask-image: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 80%
  );
  -webkit-mask-image: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 80%
  );
  opacity: 0.4;
}

.main h2 {
  /* background: linear-gradient(130deg, var(--primary) 0%, var(--primary-light) 100%); */
  /* -webkit-background-clip: text; */
  /* background-clip: text; */
  /* -webkit-text-fill-color: transparent; */
  color: var(--cta-bg-hover);
  font-size: calc(clamp(0.1rem, calc(2rem + 5vw + 4vh), 250px)) !important;
  line-height: calc(clamp(0.1rem, calc(2rem + 3vw + 3vh), 250px)) !important;
  font-weight: 900;
  padding-bottom: 30px;
  margin-bottom: 10px;
  text-align: center;
}
.line {
  width: 200vw;
  min-width: 1600px;
  justify-self: center;
  position: absolute;
  top: calc(-0.2rem - 0.7vw);
}
.main img {
  height: auto;
  object-fit: cover;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(0.1rem, 3vw, 6rem);
}

section {
  padding-block: clamp(1rem, 1rem + 5vw, 3rem);
  overflow-x: clip;
  width: 100%;
}

/* three radial-gradient glows, absolutely positioned behind content */
.backdrop {
  z-index: -1;
  pointer-events: none;
}
.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}
.glow-1 {
  width: 64vw;
  height: 64vw;
  max-width: 760px;
  max-height: 760px;
  top: -22vw;
  left: -14vw;
  background: radial-gradient(circle at center, var(--glow-1), transparent 68%);
}
.glow-2 {
  width: 125vw;
  height: 125vw;
  max-width: 3000px;
  max-height: 3000px;
  top: -10vw;
  right: -70vw;
  background: radial-gradient(circle at center, var(--glow-2), transparent 68%);
}
.glow-3 {
  width: 68vw;
  height: 68vw;
  max-width: 820px;
  max-height: 820px;
  bottom: -58vw;
  right: 0vw;
  background: radial-gradient(circle at center, var(--glow-3), transparent 70%);
}

/* ------------------------------------------------------ components */

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(7px);
  backdrop-filter: saturate(1.2) blur(7px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.2rem;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* theme toggle (progressive enhancement; hidden without JS) */
@property --border-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0turn;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 8px; /* Strictly maintained */
  font: inherit;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary {
  position: relative;
  z-index: 1;
  color: var(--cta-fg);
  border-radius: 8px;

  /* Heavy default shadow stack mapped strictly to root variables */
  box-shadow:
    0 12px 35px -4px var(--shadow),
    /* Deep outer bloom */ 0 0 25px 2px var(--glow-1),
    /* Vibrant outer aura */ inset 0 -3px 14px var(--glow-3),
    /* Intense bottom lip */ inset 0 -1px 3px
      color-mix(in srgb, var(--cta-fg) 90%, transparent),
    /* Bottom edge specular */ inset 0 1px 2px
      color-mix(in srgb, var(--cta-fg) 50%, transparent); /* Top edge specular */

  background:
    linear-gradient(
        115deg,
        var(--cta-bg) 0%,
        var(--cta-bg-hover) 30%,
        color-mix(in srgb, var(--cta-bg) 70%, var(--cta-fg)) 50%,
        var(--cta-bg-hover) 70%,
        var(--cta-bg) 100%
      )
      padding-box,
    conic-gradient(
        from var(--border-angle),
        var(--border) 0%,
        var(--border) 75%,
        var(--border) 100%
      )
      border-box;

  background-size:
    250% 100%,
    100% 100%;

  animation:
    shimmer-bg 8s linear infinite,
    spin-border 4s linear infinite;
}

/* LAYER 1: The Inner Core Glow 
        Utilizes --glow-3 for a soft ambient pulse from the bottom
      */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at center bottom,
    var(--glow-3) 0%,
    transparent 65%
  );
  pointer-events: none;
  animation: inner-flare 4s ease-in-out infinite alternate;
}

/* LAYER 2: The Hard Glass Highlight 
        Uses --primary-light as the universal bright reflection source, 
        so it stays glossy even if the theme inverts.
      */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary-light) 28%, transparent) 0%,
    color-mix(in srgb, var(--primary-light) 8%, transparent) 30%,
    transparent 31%,
    transparent 100%
  );
}

/* HOVER STATE - Subtle intensification of the heavy default state */
.btn-primary:hover {
  animation:
    shimmer-bg 10s linear infinite,
    spin-border 10s linear infinite;

  box-shadow:
    0 14px 40px -2px var(--shadow),
    0 0 35px 4px var(--glow-1),
    inset 0 -4px 16px var(--glow-3),
    inset 0 -1px 4px color-mix(in srgb, var(--cta-fg) 100%, transparent),
    inset 0 1px 3px color-mix(in srgb, var(--cta-fg) 70%, transparent);

  text-shadow:
    0 1px 3px color-mix(in srgb, var(--cta-bg) 90%, transparent),
    0 0 16px var(--glow-1);
}

/* ACTIVE/CLICK STATE */
.btn-primary:active {
  box-shadow:
    0 4px 15px -2px var(--shadow),
    0 0 10px 0 var(--glow-2),
    inset 0 -2px 8px var(--glow-3),
    inset 0 -1px 2px color-mix(in srgb, var(--cta-fg) 50%, transparent),
    inset 0 1px 4px color-mix(in srgb, var(--cta-bg) 60%, transparent);
}

/* --- KEYFRAMES --- */

@keyframes shimmer-bg {
  0% {
    background-position:
      100% 50%,
      0% 0%;
  }
  100% {
    background-position:
      -150% 50%,
      0% 0%;
  }
}

@keyframes spin-border {
  0% {
    --border-angle: 0turn;
  }
  100% {
    --border-angle: 1turn;
  }
}

@keyframes inner-flare {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Other button types */
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
}

.btn-lg {
  padding: 1.05rem 1.8rem;
  font-size: var(--step-2);
}

/* theme toggle (progressive enhancement; hidden without JS) */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--fg);
  cursor: pointer;
}
.no-js .theme-toggle {
  display: none;
}
.theme-toggle svg {
  width: 1.4rem;
  height: 1.4rem;
}
.theme-toggle .icon-dark {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-dark {
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-light {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-dark {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-light {
    display: none;
  }
}

/* generic section heading block */
.section-head {
  margin-bottom: clamp(1.8rem, 1rem + 1vw, 2rem);
}
.section-head h2 {
  font-size: var(--step-3);
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step-1);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.3rem 1.4rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  color: var(--primary-fg);
  font-size: var(--step--1);
  font-weight: 600;
  -webkit-backdrop-filter: saturate(1.2) blur(7px);
  backdrop-filter: saturate(1.2) blur(7px);
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.feature-tags .eyebrow {
  margin-bottom: 0;
}

/* hero */
.hero {
  display: flex;
  position: relative;
  margin-top: 0rem;
  height: 95svh;
  gap: 2rem;
  align-items: end;
}
.hero-blur {
  position: absolute;
  inset: 0;
  left: 0;
  width: 100%;
  max-width: 800px;
  z-index: -1;
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}
.hero-grdt1 {
  mask-image: radial-gradient(
    circle at calc(50% - 4rem) center,
    black 20%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    circle at calc(50% - 4rem) center,
    black 20%,
    transparent 70%
  );
}
.hero h1 {
  max-width: 15ch;
  font-size: calc(clamp(0.1rem, calc(32px + 2.5vw + 2vh), 100px));
  line-height: calc(clamp(0.1rem, calc(32px + 2vw + 2vh), 100px));
  font-weight: 900;
}
.hero .sub {
  max-width: 48ch;
  color: var(--muted);
  font-size: var(--step-1);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 5vh;
}

/* Hero title — gradient text (progressive enhancement) */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-title {
    background: linear-gradient(
      140deg,
      var(--fg) 0%,
      var(--primary) 65%,
      var(--primary-light) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 20px;
    margin-bottom: 10px;
  }
}

/* Animated equaliser bars (voice indicator) */
.audio-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.audio-bars span {
  display: block;
  width: 2px;
  background: var(--primary-fg);
  border-radius: 1px;
  transform-origin: center center;
  animation: audio-eq 1.4s ease-in-out infinite;
}
.audio-bars span:nth-child(1) {
  height: 6px;
  animation-delay: 0s;
}
.audio-bars span:nth-child(2) {
  height: 10px;
  animation-delay: 0.18s;
}
.audio-bars span:nth-child(3) {
  height: 12px;
  animation-delay: 0.36s;
}
.audio-bars span:nth-child(4) {
  height: 8px;
  animation-delay: 0.54s;
}
.audio-bars span:nth-child(5) {
  height: 10px;
  animation-delay: 0.72s;
}

@keyframes audio-eq {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes dpulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes dping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}
.dpulse {
  animation: dpulse 2s infinite;
}
.dping {
  animation: dping 1s infinite;
}

.dot-box {
  position: relative;
  display: flex;
  width: 6px;
  height: 6px;
  align-items: center;
  justify-content: center;
}

.dot-ring,
.dot {
  border-radius: 50%;
}

.dot-ring {
  position: absolute;
  background: var(--primary-fg);
  opacity: 1;
  width: 100%;
  height: 100%;
}

.dot {
  position: relative;
  background: var(--primary-fg);
  width: 100%;
  height: 100%;
}

/* Container defining the dark canvas */
.collage-canvas {
  display: block;
  position: absolute;
  right: 0;
  top: 0rem;
  z-index: -2;
  width: 100%;
  height: 50%;
  background-color: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
  opacity: 0.5;
}

/* Base styles for the image wrappers */
.box {
  position: absolute;
  background-color: #222;
  overflow: hidden;
}

.box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 1. Top Image */
.box-1 {
  top: 50px;
  left: 21%;
  width: 160px;
  height: 160px;
}

/* 2. Left Image */
.box-3 {
  top: 38px;
  left: 0%;
  width: 130px;
  height: 130px;
}

/* 3. Right Image */
.box-2 {
  top: 38px;
  left: 50%;
  width: 250px;
  height: 220px;
}

/* 4. Bottom Image */
.box-4 {
  top: 50%;
  left: 75%;
  width: 150px;
  height: 120px;
}

/* =========================================
   BOUNDING BOXES & CROSSHAIRS
   ========================================= */

/* The camera bracket corners */
.bounds {
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 15%;
  right: 15%;
  opacity: 0.5;
  pointer-events: none; /* Allows user to right-click/save image underneath */
  background:
    /* Top Left Corner */
    linear-gradient(#fff, #fff) top left / 30px 2px no-repeat,
    linear-gradient(#fff, #fff) top left / 2px 30px no-repeat,
    /* Top Right Corner */ linear-gradient(#fff, #fff) top right / 30px 2px
      no-repeat,
    linear-gradient(#fff, #fff) top right / 2px 30px no-repeat,
    /* Bottom Left Corner */ linear-gradient(#fff, #fff) bottom left / 30px 2px
      no-repeat,
    linear-gradient(#fff, #fff) bottom left / 2px 30px no-repeat,
    /* Bottom Right Corner */ linear-gradient(#fff, #fff) bottom right / 30px
      2px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 2px 30px no-repeat;
}

/* The crosshair targeting lines (specifically on Box 3) */
.crosshair {
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 15%;
  right: 15%;
  pointer-events: none;
  opacity: 0.5;
  background:
    /* Top Line */
    linear-gradient(#fff, #fff) top center / 2px calc(25% - 25px) no-repeat,
    /* Bottom Line */ linear-gradient(#fff, #fff) bottom center / 2px
      calc(25% - 25px) no-repeat,
    /* Left Line */ linear-gradient(#fff, #fff) left center / calc(25% - 25px)
      2px no-repeat,
    /* Right Line */ linear-gradient(#fff, #fff) right center / calc(25% - 25px)
      2px no-repeat;
}

.card {
  padding: clamp(1.3rem, 1rem + 1vw, 1.7rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.card h3 {
  font-size: var(--step-1);
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* faq (native disclosure) */
.faq-list {
  display: grid;
  gap: 0.75rem;
}
.faq {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--link);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.faq[open] summary::after {
  content: "\2013";
}
.faq .ans {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
}

/* responsible-use / trust */
.trust-card {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.6rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.trust-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.badge-age {
  display: inline-grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  flex: none;
  border-radius: 50%;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-weight: 800;
  font-size: 0.95rem;
}
.trust-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1.6rem;
}
.trust-item h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: var(--step-0);
}
.trust-item .ic {
  color: var(--link);
}
.trust-item .ic svg {
  width: 1.2rem;
  height: 1.2rem;
}
.trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
}
.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  margin-top: 1.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: var(--step--1);
}

/* final CTA */
.cta-final .container {
  max-width: 74ch;
  text-align: center;
}
.cta-panel {
  padding: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.cta-final h2 {
  font-size: var(--step-3);
}
.cta-final p {
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: var(--step-1);
}
.cta-final .note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: var(--step--1);
}

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-size: var(--step--1);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(0.1rem, 7vw, 6rem);
  gap: 0.5rem 1.5rem;
  color: var(--muted);
}

/* -------------------------------------------------------- utilities */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  text-decoration: none;
}
.skip-link:focus {
  top: 0.5rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------- media queries */
@media (min-width: 760px) {
  .container {
    padding-inline: clamp(0.1rem, 7vw, 6rem);
  }

  .hero h1 {
    font-weight: 700;
  }

  .main h2 {
    font-weight: 700;
  }

  .hero {
    align-items: center;
  }

  .collage-canvas {
    width: 50%;
    max-width: 650px;
    min-width: 400px;
    height: 100%;
    opacity: 1;
  }

  .box-1 {
    top: 0%;
    left: 30%;
    width: 300px;
    height: 32%;
  }

  .box-2 {
    top: 24%;
    left: -3%;
    right: auto;
    width: 400px;
    height: 400px;
  }

  .box-3 {
    top: 50%;
    right: 10%;
    left: auto;
    width: 250px;
    height: 250px;
    z-index: 1;
  }

  .box-4 {
    top: 68%;
    left: 25%;
    width: 250px;
    height: 27%;
  }

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

  .footer-bottom {
    padding-inline: clamp(0.1rem, 7vw, 6rem);
  }
}

/* --- Container Frame Layout --- */

.nz-section {
  width: clamp(500px, 55vw, 850px);
  margin: 0 auto;
  position: relative;
  margin-bottom: 5rem;
  padding-inline: clamp(0.1rem, 7vw, 6rem);
}

.nz-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  z-index: 2;
}

.nz-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(clamp(0.3rem, calc(0.3rem + 0.5vw), 16px));
}

/* Theme Switching Logic (Kept exactly as requested) */
.img-dark {
  display: none;
}
.img-light {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .img-dark {
    display: block;
  }
  :root:not([data-theme="light"]) .img-light {
    display: none;
  }
}
[data-theme="dark"] .img-dark {
  display: block;
}
[data-theme="dark"] .img-light {
  display: none;
}
[data-theme="light"] .img-dark {
  display: none;
}
[data-theme="light"] .img-light {
  display: block;
}

/* --- Absolutely Positioned Translucent Cards --- */
.nz-card {
  position: absolute;
  z-index: 10;
  background: rgb(from var(--bg) r g b / 0.1);
  border: 1px solid rgb(from var(--bg) r g b / 0.1);
  padding: 1.25rem;
  border-radius: var(--radius);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(3px);
  /* Text constraints to prevent awkward breaking */
  min-width: 140px;
  max-width: 240px;
}

.nz-card h3 {
  font-size: var(--step-1);
  color: var(--primary-fg);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.nz-card p {
  font-size: var(--step--1);
  color: var(--bg); /* Fixed: bg and fg color mapping on text */
  line-height: 1.5;
  margin: 0;
}

/* Left edge overlay */
#nz-card-1 {
  top: 25%;
  left: 0;
  transform: translateX(-92%);
}

/* Right Side - Bottom Label ("Voice clone") */
#nz-card-2 {
  top: 62%;
  right: 0;
  transform: translateX(92%);
}
/* Right Side - Top Label ("Tuned to taste") */
#nz-card-3 {
  top: -5%;
  right: 0;
  transform: translateX(92%);
}

/* MOBILE / TABLET (Tall/Narrow Frame: Labels Top & Bottom) */
@media (max-width: 1024px) {
  .nz-section {
    width: clamp(300px, 100%, 830px);
    margin: 0 auto;
    padding-inline: clamp(0.1rem, 2vw, 6rem);
    margin-top: 10rem;
    margin-bottom: 10rem;
    position: relative;
  }

  .nz-card {
    width: 45%;
    max-width: 200px;
  }

  /* Card 1 & 2 share the top edge, separated horizontally */
  #nz-card-1 {
    top: 0;
    left: 2%; /* Prevents clipping edge of screen */
    transform: translateY(-92%); /* 8% overlaps top edge */
  }

  /* Voice clone — pinned to bottom edge; top/transform reset to clear desktop values */
  #nz-card-2 {
    top: 90%;
    left: 33%;
    right: auto;
    transform: none;
    width: 55%;
    max-width: 220px;
  }

  #nz-card-3 {
    top: 0;
    right: 2%;
    transform: translateY(-92%); /* 8% overlaps top edge */
  }
}

/* --- Hotspots --- */
.nz-hotspot {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--primary-fg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 var(--glow-1);
  animation: pulse 2s infinite;
  z-index: 12;
  opacity: 0.6;
}

.nz-hotspot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--primary-fg);
  border-radius: 50%;
  opacity: 0.3;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 178, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(242, 178, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 178, 255, 0);
  }
}

/* --- Precision SVG Full-Bleed Overlay --- */
.nz-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
  z-index: 11; /* Sits beneath hotspot but above image */
}

.nz-path {
  fill: none;
  stroke: var(--primary-fg);
  stroke-width: 2.5;
  stroke-dasharray: 6 6;
  opacity: 0.75;
  transition: stroke 0.3s ease;
}

/* --- Guide Section Container --- */

.nz-guide-header p {
  font-size: var(--step-0);
  color: var(--bg);
  opacity: 0.8;
  margin: 0;
}

/* --- Layout Grid --- */
.nz-guide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .nz-guide-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
  }
}

/* --- The Visual Stage --- */
.nz-guide-visuals {
  position: relative;
  width: 100%;
}

.nz-mockup-window {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgb(from var(--bg) r g b / 0.05);
  border: 1px solid rgb(from var(--bg) r g b / 0.1);
  border-radius: var(--radius-lg, 24px);
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.nz-step-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Adjust to 'contain' if you don't want cropping */
  opacity: 0;
  scale: 1.03;
  transform: translateX(-0.6rem);
  transition:
    opacity 0.6s ease,
    transform 6s ease-out;
  pointer-events: none;
}

.nz-step-img.active {
  opacity: 1;
  transform: translateX(0.6rem);
}

/* --- The Interactive Steps --- */
.nz-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nz-step-card {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Base states for unselected cards */
.nz-step-card .nz-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(from var(--bg) r g b / 0.1);
  color: var(--bg);
  font-weight: bold;
  font-size: var(--step--1);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.nz-step-card h3 {
  font-size: var(--step-0);
  color: var(--bg);
  margin: 0 0 0.5rem 0;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.nz-step-card p {
  font-size: var(--step--1);
  color: var(--bg);
  opacity: 0; /* Hidden by default to keep layout clean */
  height: 0;
  margin: 0;
  overflow: hidden;
  transition:
    opacity 0.3s ease,
    height 0.3s ease;
}

.nz-step-content {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

/* --- ACTIVE CARD STATE --- */
.nz-step-card.active {
  background: rgb(from var(--bg) r g b / 0.08);
  border: 1px solid rgb(from var(--bg) r g b / 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nz-step-card.active .nz-step-num {
  background: var(--primary-fg);
  color: #000; /* Contrast against primary */
  box-shadow: 0 0 15px var(--glow-1);
}

.nz-step-card.active h3 {
  color: var(--primary-fg);
  opacity: 1;
}

.nz-step-card.active p {
  opacity: 0.8;
  height: auto; /* Expands smoothly */
  margin-top: 0.5rem;
}

/* --- Auto-Play Progress Bar --- */
.nz-step-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
}

.nz-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary-fg);
}

/* Triggers the 6-second CSS animation when active */
.nz-guide-steps:not(.manual-mode) .nz-step-card.active .nz-progress-fill {
  animation: fillBar 6s linear forwards;
}

@keyframes fillBar {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* =========================================
   PURCHASE MODAL COMPONENT
   ========================================= */

/* The dark/blurred background overlay */
.nz-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99; /* Must sit above the sticky header */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* Initial hidden state */
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* The actual modal card */
.nz-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  width: 90%;
  max-width: 480px;

  /* Initial hidden state (slightly smaller and pushed down) */
  opacity: 0;
  transform: scale(0.95) translateY(15px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- ACTIVE STATES (Triggered by JS) --- */
.nz-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.nz-modal-overlay.is-active .nz-modal-box {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* --- Modal Interior Styling --- */
.nz-modal-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--primary-fg);
}

.nz-modal-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.nz-modal-title {
  margin-bottom: 0.5rem;
}

.nz-modal-desc {
  color: var(--muted);
  font-size: var(--step-0);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.nz-modal-actions {
  display: flex;
  flex-wrap: wrap-reverse; /* Ensures buttons stack nicely on tiny phones */
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

/* Make buttons fill width on very small mobile screens */
@media (max-width: 400px) {
  .nz-modal-actions .btn {
    width: 100%;
  }
}

/* =========================================
   AESTHETIC OVERLAPPING VIDEO COMPONENT
   ========================================= */

/* The main responsive container */
.video-overlap-widget {
  position: relative;
  width: 100%;
  max-width: 1270px; /* Adjust this to fit your layout */
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  margin-top: 20px;
}

/* Base styles for both video containers */
.video-frame {
  position: absolute;
  border-radius: 1rem;
  background: var(--surface-2);
  padding: 2px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.video-frame video {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
}

/* --- Primary Video (Left/Back) --- */
.primary-frame {
  top: 0;
  left: 0;
  width: 65%;
  height: 100%;
  z-index: 1;
  border: 1px solid var(--border);
  aspect-ratio: 1;
}

/* --- Secondary Video (Right/Front/Half-Size) --- */
.secondary-frame {
  bottom: 0;
  right: 0;
  width: 30%;
  height: 70%;
  z-index: 2;
  border: 1px solid var(--primary-light);

  /* Creates a heavy glowing drop-shadow so it pops off the primary video */
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 30px var(--glow-1);
}

/* --- Cyber/Tech UI Elements --- */

/* Top left status labels */
.frame-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-family: monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
}

/* Blinking status dots */
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-dot.live {
  background: #ff3366;
  box-shadow: 0 0 8px #ff3366;
  animation: pulse-dot 1.5s infinite;
}
.status-dot.clone {
  background: var(--primary-light);
  box-shadow: 0 0 8px var(--primary-light);
}

/* Futuristic corner brackets */
.tech-brackets {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.tech-brackets::before,
.tech-brackets::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid color-mix(in srgb, var(--primary-light) 60%, transparent);
}
.tech-brackets::before {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 4px 0 0;
}
.tech-brackets::after {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 4px;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* =========================================
   AESTHETIC VOICE RECORDING BOX (BOX-4)
   ========================================= */

.aesthetic-voice-box {
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

/* --- High-tech grid overlay --- */
.voice-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      color-mix(in srgb, var(--bg) 30%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--bg) 30%, transparent) 1px,
      transparent 1px
    );
  background-size: 15px 15px;
  z-index: 1; /* Forces grid OVER the glows */
  pointer-events: none;
}

/* --- Ambient shifting glows (Behind Grid) --- */
.voice-ambient {
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0; /* Keeps glows at the absolute back */
  opacity: 0.5;
  animation: float-glow 8s infinite alternate ease-in-out;
}
.glow-a {
  background: radial-gradient(circle, var(--primary-fg) 0%, transparent 60%);
  top: 0%;
  left: 0%;
}

/* --- Header / Footer Telemetry --- */
.voice-header,
.voice-footer {
  position: absolute;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 9px;
  z-index: 3;
  letter-spacing: 0.5px;
}
.voice-header {
  top: 10px;
}
.voice-footer {
  bottom: 10px;
  justify-content: center;
}
.freq-label {
  color: var(--muted);
  opacity: 0.8;
}

/* --- Blinking REC UI --- */
.rec-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ff3366;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(255, 51, 102, 0.5);
}
.rec-dot {
  width: 6px;
  height: 6px;
  background: #ff3366;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff3366;
  animation: rec-blink 1s infinite alternate;
}
.timecode {
  color: var(--primary-light);
  opacity: 0.8;
}

/* --- Sweeping Playhead --- */
.voice-playhead {
  position: absolute;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: var(--primary-light);
  box-shadow: 0 0 8px 2px
    color-mix(in srgb, var(--primary-light) 50%, transparent);
  z-index: 4;
  left: 0;
  animation: scan-playhead 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* --- Waveform Bars --- */
.waveform-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 3%, 6px);
  width: 80%;
  height: 50%;
  z-index: 2;
}

.voice-bar {
  flex: 1;
  max-width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--pg) 0%, var(--primary-fg) 100%);
  border-radius: 10px;
  transform-origin: center; /* Scales outward symmetrically */
  transform: scaleY(0.1);
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary-fg) 60%, transparent);
  animation: eq-pulse 1.2s ease-in-out infinite alternate;
}

/* Creating an envelope shape (shorter on edges, taller in middle) 
  by pairing custom scale targets and staggered delays 
*/
.voice-bar:nth-child(1) {
  animation-duration: 1.1s;
  animation-delay: -0.05s;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --h: 0.28;
}
.voice-bar:nth-child(2) {
  animation-duration: 0.85s;
  animation-delay: -0.42s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  --h: 0.44;
}
.voice-bar:nth-child(3) {
  animation-duration: 1.3s;
  animation-delay: -0.18s;
  animation-timing-function: cubic-bezier(0.5, 0.1, 0.5, 0.9);
  --h: 0.61;
}
.voice-bar:nth-child(4) {
  animation-duration: 0.95s;
  animation-delay: -0.71s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  --h: 0.76;
}
.voice-bar:nth-child(5) {
  animation-duration: 1.15s;
  animation-delay: -0.28s;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --h: 0.88;
}
.voice-bar:nth-child(6) {
  animation-duration: 0.9s;
  animation-delay: -0.55s;
  animation-timing-function: cubic-bezier(0.5, 0.1, 0.5, 0.9);
  --h: 0.94;
}
.voice-bar:nth-child(7) {
  animation-duration: 1s;
  animation-delay: -0.12s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  --h: 0.99;
}
.voice-bar:nth-child(8) {
  animation-duration: 1.2s;
  animation-delay: -0.82s;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --h: 1;
}
.voice-bar:nth-child(9) {
  animation-duration: 0.88s;
  animation-delay: -0.35s;
  animation-timing-function: cubic-bezier(0.5, 0.1, 0.5, 0.9);
  --h: 0.97;
}
.voice-bar:nth-child(10) {
  animation-duration: 1.05s;
  animation-delay: -0.63s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  --h: 0.91;
}
.voice-bar:nth-child(11) {
  animation-duration: 0.92s;
  animation-delay: -0.22s;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --h: 0.83;
}
.voice-bar:nth-child(12) {
  animation-duration: 1.18s;
  animation-delay: -0.75s;
  animation-timing-function: cubic-bezier(0.5, 0.1, 0.5, 0.9);
  --h: 0.62;
}
.voice-bar:nth-child(13) {
  animation-duration: 0.97s;
  animation-delay: -0.08s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  --h: 0.46;
}
.voice-bar:nth-child(14) {
  animation-duration: 1.25s;
  animation-delay: -0.48s;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --h: 0.31;
}

/* --- Keyframes --- */
@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(10%, 10%) scale(1.2);
  }
}

@keyframes rec-blink {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

@keyframes scan-playhead {
  0% {
    left: 10%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 90%;
    opacity: 0;
  }
}

@keyframes eq-pulse {
  0% {
    transform: scaleY(0.1);
  }
  100% {
    transform: scaleY(var(--h));
  }
}
