@import "./shadcn.css";
@import "tailwindcss";

@custom-variant dark (&:where(.dark, .dark *));

@source "../../views/**/*.erb";
@source "../../helpers/**/*.rb";
@source "../../javascript/**/*.js";

@theme {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Inter", ui-monospace, monospace;

  --color-border: hsl(var(--border));
  --color-input: hsl(var(--input));
  --color-ring: hsl(var(--ring));
  --color-background: hsl(var(--background));
  --color-foreground: hsl(var(--foreground));

  --color-primary: hsl(var(--primary));
  --color-primary-foreground: hsl(var(--primary-foreground));

  --color-secondary: hsl(var(--secondary));
  --color-secondary-foreground: hsl(var(--secondary-foreground));

  --color-destructive: hsl(var(--destructive));
  --color-destructive-foreground: hsl(var(--destructive-foreground));

  --color-success: hsl(var(--success));
  --color-success-foreground: hsl(var(--success-foreground));

  --color-info: hsl(var(--info));
  --color-info-foreground: hsl(var(--info-foreground));

  --color-attention: hsl(var(--attention));
  --color-attention-foreground: hsl(var(--attention-foreground));

  --color-muted: hsl(var(--muted));
  --color-muted-foreground: hsl(var(--muted-foreground));

  --color-accent: hsl(var(--accent));
  --color-accent-foreground: hsl(var(--accent-foreground));

  --color-popover: hsl(var(--popover));
  --color-popover-foreground: hsl(var(--popover-foreground));

  --color-card: hsl(var(--card));
  --color-card-foreground: hsl(var(--card-foreground));

  /* Nova radius scale */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Letter-spacing scale tuned for Inter */
  --tracking-tighter: -0.04em;
  --tracking-tight: -0.03em;
  --tracking-normal: -0.01em;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.12em;
}

/* ── Cosmic backdrop ─────────────────────────────────────────────────────── */
/* Anchored to the top of the document and scrolls naturally with the page —
   the purple glow sits behind the hero and slides out of view as you scroll. */

body { position: relative; }

.nova-cosmic {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% -10%,
      rgba(108, 79, 247, 0.25) 0%,
      rgba(91, 42, 134, 0.18) 25%,
      rgba(30, 8, 56, 0.10) 50%,
      transparent 75%
    ),
    radial-gradient(
      ellipse 60% 40% at 20% 10%,
      rgba(124, 58, 237, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 30% at 80% 5%,
      rgba(108, 79, 247, 0.12) 0%,
      transparent 60%
    ),
    #0f0f0f;
}

.dark .nova-cosmic::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 41% 12%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 55% 28%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 68% 8%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 75% 35%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 88% 22%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 8% 60%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 92% 55%, rgba(255, 255, 255, 0.3), transparent);
  background-size: 100% 70%;
  background-repeat: no-repeat;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 70%);
  animation: nova-parallax 12s ease-in-out infinite;
}

/* Light mode cosmic — soft slate near-white that matches the body bg
   token, plus the subtle primary halo at the top of the page. */
:root:not(.dark) .nova-cosmic {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(108, 79, 247, 0.12) 0%, transparent 70%),
    hsl(220 22% 97%);
}

@keyframes nova-parallax {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 1; }
  50% { transform: translate3d(0, -8px, 0); opacity: 0.85; }
}

/* ── Glass surfaces ──────────────────────────────────────────────────────── */

.nova-glass {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  padding: 24px;
  border-radius: 23px;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(64px);
  -webkit-backdrop-filter: blur(64px);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -2px 4px 0 rgba(0, 0, 0, 0.90);
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* When stretched by a grid/flex parent (e.g., feature cards in a row) the
   card fills the row height; when stacked vertically the card hugs its
   content. Use h-full explicitly on parents that need equal-height. */

/* Soft hover glow — purple radial halo behind card content */
.nova-glass::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(
      120% 80% at 50% 0%,
      rgba(108, 79, 247, 0.28) 0%,
      rgba(124, 58, 237, 0.14) 35%,
      transparent 70%
    );
  opacity: 0;
  transition: opacity 320ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nova-glass:hover::before {
  opacity: 1;
}

.nova-glass:hover {
  transform: translateY(-2px);
}

/* Light mode override — bright surface, softer glow */
:root:not(.dark) .nova-glass {
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.80),
    inset 0 -2px 4px 0 rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.04);
}

:root:not(.dark) .nova-glass::before {
  background: radial-gradient(
    120% 80% at 50% 0%,
    rgba(108, 79, 247, 0.18) 0%,
    rgba(124, 58, 237, 0.08) 35%,
    transparent 70%
  );
}

/* ── Privacy card entrance ──────────────────────────────────────────────
   Slower than .nova-fade-up so cards visibly land one after another
   instead of overlapping. Pair with inline `animation-delay` for stagger. */

@keyframes privacy-card-enter {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Cards stay hidden until their own IntersectionObserver flips them to
   `.is-revealed` (via the `reveal` Stimulus controller on each card). Each
   card animates independently when it scrolls into view — cards above the
   fold can stagger via inline `--d`. */
.privacy-card-enter {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}

.privacy-card-enter.is-revealed {
  animation: privacy-card-enter 1100ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .privacy-card-enter,
  .privacy-card-enter.is-revealed {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ── Privacy hero — 3D floating secured tickets ─────────────────────────
   Each card is a ticket (notched mask) carrying a security glyph
   (padlock / shield / QR / key / fingerprint). Lightweight perspective
   scene: GPU transforms only, no backdrop-filter, paused under
   prefers-reduced-motion. */

.nova-priv-stage {
  perspective: 1100px;
  transform-style: preserve-3d;
}

.nova-priv-ticket {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 170px;
  margin: -85px 0 0 -140px;
  --tx: var(--x, 0px);
  --ty: var(--y, 0px);
  --tz: var(--z, 0px);
  --rx0: var(--rx, 0deg);
  --ry0: var(--ry, 0deg);
  transform: translate3d(var(--tx), var(--ty), var(--tz)) rotateX(var(--rx0)) rotateY(var(--ry0));
  animation: nova-priv-float 9s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  will-change: transform;
  filter: drop-shadow(0 24px 40px rgba(108, 79, 247, 0.25));
}

.nova-priv-ticket-outline,
.nova-priv-ticket-fill {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  /* Side notches, same mask as .nova-ticket */
  --notch-r: 12px;
  -webkit-mask:
    radial-gradient(circle var(--notch-r) at 0 50%,    transparent 99%, #000 100%),
    radial-gradient(circle var(--notch-r) at 100% 50%, transparent 99%, #000 100%);
  -webkit-mask-composite: source-in;
          mask:
    radial-gradient(circle var(--notch-r) at 0 50%,    transparent 99%, #000 100%),
    radial-gradient(circle var(--notch-r) at 100% 50%, transparent 99%, #000 100%);
          mask-composite: intersect;
}

.nova-priv-ticket-outline {
  background: rgba(108, 79, 247, 0.5);
}

.nova-priv-ticket-fill {
  inset: 1px;
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(20, 18, 36, 0.94) 0%, rgba(15, 12, 28, 0.96) 60%, rgba(28, 22, 52, 0.94) 100%);
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  gap: 10px;
}

.nova-priv-ticket-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nova-priv-bar {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  height: 12px;
}

.nova-priv-bar > i {
  width: 1px;
  background: rgba(255, 255, 255, 0.8);
}
.nova-priv-bar > i:nth-child(1) { height: 12px; }
.nova-priv-bar > i:nth-child(2) { height:  8px; opacity: 0.55; }
.nova-priv-bar > i:nth-child(3) { height: 12px; opacity: 0.85; }
.nova-priv-bar > i:nth-child(4) { height:  8px; opacity: 0.4;  }
.nova-priv-bar > i:nth-child(5) { height: 12px; opacity: 0.75; }
.nova-priv-bar > i:nth-child(6) { height:  8px; opacity: 0.55; }
.nova-priv-bar > i:nth-child(7) { height: 12px; opacity: 0.9;  }
.nova-priv-bar > i:nth-child(8) { height:  8px; opacity: 0.45; }

.nova-priv-code {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.nova-priv-glyph {
  width: 64px;
  height: 64px;
  margin: auto auto 0 auto;
  color: hsl(var(--primary));
  filter: drop-shadow(0 0 12px rgba(108, 79, 247, 0.55));
}

.nova-priv-qr {
  width: 64px;
  height: 64px;
  margin: auto auto 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 2px;
  filter: drop-shadow(0 0 10px rgba(108, 79, 247, 0.45));
}

.nova-priv-qr > i {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
}

.nova-priv-qr > i.on {
  background: hsl(var(--primary));
}

@keyframes nova-priv-float {
  0%, 100% {
    transform: translate3d(var(--tx), var(--ty), var(--tz)) rotateX(var(--rx0)) rotateY(var(--ry0));
  }
  50% {
    transform: translate3d(var(--tx), calc(var(--ty) + 14px), calc(var(--tz) + 30px)) rotateX(calc(var(--rx0) + 4deg)) rotateY(calc(var(--ry0) - 4deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .nova-priv-ticket { animation: none; }
}

/* ── Privacy/Sitemap ticket cards — LIGHT mode overrides ──────────────────
   The default fill/text/bar colors are tuned for a dark page. In light mode
   we flip the surface to pearl-lavender, the text/bars to dark, and tighten
   the drop shadow so the floating tickets read clearly on a bright page. */

:root:not(.dark) .nova-priv-ticket {
  filter:
    drop-shadow(0 18px 28px rgba(108, 79, 247, 0.20))
    drop-shadow(0 4px 10px rgba(31, 22, 64, 0.10));
}

:root:not(.dark) .nova-priv-ticket-outline {
  background: rgba(108, 79, 247, 0.42);
}

:root:not(.dark) .nova-priv-ticket-fill {
  background:
    linear-gradient(
      135deg,
      rgba(253, 252, 255, 0.98) 0%,
      rgba(243, 239, 253, 0.97) 60%,
      rgba(232, 226, 252, 0.97) 100%
    );
}

:root:not(.dark) .nova-priv-bar > i {
  background: rgba(31, 22, 64, 0.7);
}

:root:not(.dark) .nova-priv-code {
  color: rgba(31, 22, 64, 0.55);
}

:root:not(.dark) .nova-priv-qr > i {
  background: rgba(31, 22, 64, 0.12);
}

/* ── Privacy page ambient backdrop ───────────────────────────────────────
   A single layered radial-gradient mesh so the frosted-glass cards have a
   continuously varying color behind them to blur, without the visible
   seams that overlapping <div> orbs produce. */

.privacy-ambient {
  background:
    radial-gradient(ellipse 70% 50% at 80% 8%,  rgba(108, 79, 247, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 60% 55% at 12% 45%, rgba(124, 58, 237, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 65% 40% at 65% 78%, rgba(108, 79, 247, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(30, 16, 60, 0.18) 0%, transparent 70%),
    hsl(var(--background));
}

/* Light mode — same shape, softer pigments on a white page */
:root:not(.dark) .privacy-ambient {
  background:
    radial-gradient(ellipse 70% 50% at 80% 8%,  rgba(108, 79, 247, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 60% 55% at 12% 45%, rgba(124, 58, 237, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 65% 40% at 65% 78%, rgba(108, 79, 247, 0.10) 0%, transparent 65%),
    hsl(var(--background));
}

/* ── Frosted glass variant — heavier blur, real translucency ──────────────
   Use where you want the cosmic backdrop / page color to show through
   the card with a real frosted-glass effect (e.g., the privacy page).
   Differs from .nova-glass which is essentially opaque. */

.nova-glass-frost {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  padding: 24px;
  border-radius: 23px;
  /* Solid-feel dark surface with just enough translucency for the backdrop
     blur to register — matches the landing-page card aesthetic. */
  background: rgba(15, 13, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -2px 4px 0 rgba(0, 0, 0, 0.90),
    0 24px 48px -20px rgba(0, 0, 0, 0.60);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 280ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle primary halo bleeds from the top edge */
.nova-glass-frost::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(
      120% 70% at 50% 0%,
      rgba(108, 79, 247, 0.22) 0%,
      transparent 65%
    );
  opacity: 0;
  transition: opacity 320ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nova-glass-frost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 4px 0 rgba(0, 0, 0, 0.90),
    0 30px 60px -20px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(108, 79, 247, 0.18);
}

.nova-glass-frost:hover::before {
  opacity: 1;
}

/* Light mode — soft lavender card with clean layered shadow. Three
   shadows total (close, mid, far purple bloom) so the elevation reads
   smoothly without visible bands or hard seams. */
:root:not(.dark) .nova-glass-frost {
  background:
    radial-gradient(
      120% 60% at 100% 0%,
      rgba(108, 79, 247, 0.05) 0%,
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(253, 252, 255, 1) 0%,
      rgba(243, 239, 253, 1) 100%
    );
  border-color: rgba(108, 79, 247, 0.18);
  box-shadow:
    /* clean inner top highlight */
    inset 0 1px 0 0 rgba(255, 255, 255, 1),
    /* hairline outer ring */
    0 0 0 1px rgba(31, 22, 64, 0.03),
    /* close definition shadow */
    0 1px 3px 0 rgba(31, 22, 64, 0.06),
    /* mid soft drop */
    0 12px 24px -6px rgba(31, 22, 64, 0.10),
    /* far purple ambient */
    0 30px 60px -18px rgba(108, 79, 247, 0.28);
}

:root:not(.dark) .nova-glass-frost::before {
  background: radial-gradient(
    140% 80% at 50% 0%,
    rgba(108, 79, 247, 0.12) 0%,
    transparent 65%
  );
}

:root:not(.dark) .nova-glass-frost:hover {
  border-color: rgba(108, 79, 247, 0.32);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(108, 79, 247, 0.14),
    0 1px 3px 0 rgba(31, 22, 64, 0.06),
    0 16px 32px -6px rgba(31, 22, 64, 0.14),
    0 40px 80px -18px rgba(108, 79, 247, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  .nova-glass-frost { transition: none; }
  .nova-glass-frost::before { transition: none; }
}

.nova-panel {
  background: var(--nova-surface-1);
  backdrop-filter: var(--nova-blur-glass);
  -webkit-backdrop-filter: var(--nova-blur-glass);
  border: 1px solid var(--nova-border-hairline);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    var(--nova-shadow-elev);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Light mode — pearl-lavender panel matching the privacy / glass-frost card
   palette, with a soft purple-tinted ambient shadow. */
:root:not(.dark) .nova-panel {
  background:
    radial-gradient(
      120% 60% at 100% 0%,
      rgba(108, 79, 247, 0.05) 0%,
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(253, 252, 255, 1) 0%,
      rgba(243, 239, 253, 1) 100%
    );
  border-color: rgba(108, 79, 247, 0.18);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(31, 22, 64, 0.03),
    0 1px 3px 0 rgba(31, 22, 64, 0.06),
    0 12px 24px -6px rgba(31, 22, 64, 0.10),
    0 30px 60px -18px rgba(108, 79, 247, 0.28);
}

.nova-tile {
  background: var(--nova-surface-3);
  border: 1px solid var(--nova-border-hairline);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root:not(.dark) .nova-tile {
  background: hsl(258 14% 97%);
  border-color: var(--nova-border-hairline);
}

/* ── Ticket shape — rounded rectangle with semicircular cutouts on left/right ──
   Apply to both the outline layer and the fill layer of a two-layer ticket
   so the cutouts are real (mask-cut) and the border follows the notch curves.
   The fill layer should be slightly smaller than the outline layer.
   Notch radius defaults to 14px; override with `--notch-r`.                */

.nova-ticket {
  --notch-r: 14px;
  -webkit-mask:
    radial-gradient(circle var(--notch-r) at 0 50%,    transparent 99%, #000 100%),
    radial-gradient(circle var(--notch-r) at 100% 50%, transparent 99%, #000 100%);
  -webkit-mask-composite: source-in;
          mask:
    radial-gradient(circle var(--notch-r) at 0 50%,    transparent 99%, #000 100%),
    radial-gradient(circle var(--notch-r) at 100% 50%, transparent 99%, #000 100%);
          mask-composite: intersect;
}

/* ── Glow & accent effects ──────────────────────────────────────────────── */

.nova-glow {
  box-shadow: var(--nova-glow-accent);
}

.nova-ring-accent {
  border: 1px solid var(--nova-border-accent);
}

/* ── Eyebrow / pill labels ──────────────────────────────────────────────── */

.nova-eyebrow {
  font-size: 0.6875rem;          /* 11px */
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.nova-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--nova-border-strong);
  color: hsl(var(--foreground));
}

.nova-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: hsl(var(--primary));
  box-shadow: var(--nova-glow-accent);
}

/* ── Tabular numerics for stat numbers ──────────────────────────────────── */

.nova-stat {
  font-feature-settings: "tnum" 1, "ss01" 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* ── Pricing orbit decoration ─────────────────────────────────────────────
   Bright central core + dashed orbit ring + three music notes orbiting at
   different radii and phases + dashed SVG curves descending to each card.
   "Optimal layer" / constellation pattern adapted for the pricing tier
   picker. Desktop-only (the parent uses `hidden lg:block`). */

/* Music note orbits — outer rotation spins around the center; inner
   counter-rotation keeps the note upright. */
.pricing-orbit-note {
  display: inline-flex;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}

@keyframes pricing-note-1 {
  from { transform: rotate(0deg)   translateX(72px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(72px) rotate(-360deg); }
}

@keyframes pricing-note-2 {
  from { transform: rotate(140deg) translateX(108px) rotate(-140deg); }
  to   { transform: rotate(500deg) translateX(108px) rotate(-500deg); }
}

@keyframes pricing-note-3 {
  from { transform: rotate(260deg) translateX(92px) rotate(-260deg); }
  to   { transform: rotate(620deg) translateX(92px) rotate(-620deg); }
}

.pricing-orbit-note--1 { animation: pricing-note-1 14s linear infinite; }
.pricing-orbit-note--2 { animation: pricing-note-2 19s linear infinite; }
.pricing-orbit-note--3 { animation: pricing-note-3 23s linear infinite; }

/* Slow rotation on the dashed orbit ring (transform set up in markup
   already includes the centering translate; we rotate around that). */
@keyframes pricing-ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Dashed curves from the core down to each card — march along the path */
.pricing-orbit-curve {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: pricing-curve-march 12s linear infinite;
}

@keyframes pricing-curve-march {
  to { stroke-dashoffset: -100; }
}

.pricing-orbit-dot {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
  animation: pricing-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes pricing-dot-pulse {
  0%, 100% { opacity: 0.45; r: 4; }
  50%      { opacity: 1;    r: 5.5; }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-orbit-note--1,
  .pricing-orbit-note--2,
  .pricing-orbit-note--3,
  .pricing-orbit-curve,
  .pricing-orbit-dot { animation: none; }
}

/* ── Stat cell — ambient pulse + staggered glow ──────────────────────────
   Each .stat-cell's number breathes subtly while idle. Staggered phase
   per nth-child so all four don't pulse in lockstep. */

.stat-cell .nova-stat {
  animation: stat-breathe 4.2s ease-in-out infinite;
}

.stat-cell:nth-child(1) .nova-stat { animation-delay: 0s; }
.stat-cell:nth-child(2) .nova-stat { animation-delay: 1.05s; }
.stat-cell:nth-child(3) .nova-stat { animation-delay: 2.10s; }
.stat-cell:nth-child(4) .nova-stat { animation-delay: 3.15s; }

@keyframes stat-breathe {
  0%, 100% {
    text-shadow: 0 0 0 transparent;
    transform: translateZ(0);
  }
  50% {
    text-shadow: 0 0 24px rgba(108, 79, 247, 0.18);
    transform: translateZ(0);
  }
}

/* Pause the pulse when the cell is hovered — the hover scale + glow take over */
.stat-cell:hover .nova-stat {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .stat-cell .nova-stat { animation: none; }
}

/* ── Page entry animation ───────────────────────────────────────────────── */

@keyframes nova-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nova-fade-up {
  animation: nova-fade-up 480ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes nova-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.nova-fade-in {
  animation: nova-fade-in 600ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes nova-slide-left {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.nova-slide-left {
  animation: nova-slide-left 480ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes nova-scale-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.nova-scale-in {
  animation: nova-scale-in 520ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nova-fade-up,
  .nova-fade-in,
  .nova-slide-left,
  .nova-scale-in {
    animation: none;
  }
}

/* ── Scroll-triggered reveal system ───────────────────────────────────────
   Pair these classes with `data-controller="reveal"` on the section. Each
   child stays hidden until the parent section enters the viewport, then
   eases in. Per-child stagger via inline `style="--d: 120ms"`.

   Wrapped in @layer components so Tailwind utility classes (e.g.
   `duration-300`, `ease-out`, `transition-transform`) can override the
   long reveal transition for subsequent hover/state changes.           */

@layer components {
  .reveal-up,
  .reveal-down,
  .reveal-fade,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-blur,
  .reveal-tilt {
    opacity: 0;
    transition-property: opacity, transform, filter;
    transition-duration: 760ms;
    transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform, filter;
  }

  .reveal-up    { transform: translateY(34px); }
  .reveal-down  { transform: translateY(-26px); }
  .reveal-left  { transform: translateX(-34px); }
  .reveal-right { transform: translateX(34px); }
  .reveal-scale { transform: scale(0.94); }
  .reveal-blur  { filter: blur(8px); transform: translateY(12px); }
  .reveal-tilt  { transform: perspective(800px) rotateX(8deg) translateY(20px); transform-origin: top center; }
  .reveal-fade  { /* opacity only */ }

  .is-revealed .reveal-up,
  .is-revealed .reveal-down,
  .is-revealed .reveal-fade,
  .is-revealed .reveal-left,
  .is-revealed .reveal-right,
  .is-revealed .reveal-scale,
  .is-revealed .reveal-blur,
  .is-revealed .reveal-tilt,
  .is-revealed.reveal-up,
  .is-revealed.reveal-down,
  .is-revealed.reveal-fade,
  .is-revealed.reveal-left,
  .is-revealed.reveal-right,
  .is-revealed.reveal-scale,
  .is-revealed.reveal-blur,
  .is-revealed.reveal-tilt {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ── Marquee — continuous horizontal scroll (for testimonials) ──────────── */

@keyframes nova-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.nova-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.nova-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: nova-marquee 60s linear infinite;
  will-change: transform;
}

.nova-marquee:hover .nova-marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .nova-marquee-track { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-down,
  .reveal-fade,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-blur,
  .reveal-tilt {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ── Animated step shapes ─────────────────────────────────────────────────
   Three looping mini-scenes for the "How it works" section. Each tells the
   story of its step in motion, not just decoration.                         */

.nova-shape {
  position: relative;
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(
    120% 80% at 50% 50%,
    rgba(108, 79, 247, 0.10) 0%,
    transparent 65%
  );
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHAPE 1 — EVENT GENESIS
   A calendar grid in the back, one cell "lights up" while a small event
   chip orbits above on a soft elliptical path, and a pulse ring radiates
   from the selected date. Tells the story: pick a date, an event is born.
   ═══════════════════════════════════════════════════════════════════════════ */

.nova-shape-calendar { perspective: 600px; }

.nova-shape-calendar .cal-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
  padding: 14px 22px;
  transform: rotateX(38deg) rotateZ(-2deg) translateY(8px);
  transform-style: preserve-3d;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 60%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 60%, #000 30%, transparent 80%);
}

.nova-shape-calendar .cal-grid > i {
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nova-shape-calendar .cal-grid > i.active {
  background: rgba(108, 79, 247, 0.85);
  border-color: #6C4FF7;
  box-shadow: 0 0 14px rgba(108, 79, 247, 0.7);
  animation: nova-cal-blink 3.4s ease-in-out infinite;
}

@keyframes nova-cal-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 14px rgba(108, 79, 247, 0.7); }
  50%      { opacity: 0.75; box-shadow: 0 0 22px rgba(108, 79, 247, 1); }
}

/* Pulse rings emanating from the highlighted date */
.nova-shape-calendar .cal-pulse,
.nova-shape-calendar .cal-pulse::after {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  border: 1px solid rgba(108, 79, 247, 0.7);
  animation: nova-cal-ripple 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.nova-shape-calendar .cal-pulse::after {
  content: "";
  inset: 0;
  margin: 0;
  animation-delay: 1.1s;
}

@keyframes nova-cal-ripple {
  0%   { transform: scale(0.4); opacity: 0.9; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Stage Constellation — concentric expanding rings around the spotlight core */
@keyframes nova-stage-ring {
  from { transform: scale(0.6); opacity: 0.8; }
  to   { transform: scale(1.6); opacity: 0; }
}

/* Animated dash flow for the "live signal" connector line in the constellation */
@keyframes nova-stage-signal {
  to { stroke-dashoffset: -28; }
}

/* Hover-driven connector lines — when a ticket card with matching data-node
   is hovered, the matching SVG path lights up purple and animates the dash
   flow. Uses :has() for pure-CSS coupling — no JS needed. */
.constellation-line {
  transition: stroke 280ms ease, stroke-width 280ms ease, filter 280ms ease;
}

.constellation:has([data-node="conferences"]:hover)      [data-line="conferences"],
.constellation:has([data-node="product-launches"]:hover) [data-line="product-launches"],
.constellation:has([data-node="networking"]:hover)       [data-line="networking"],
.constellation:has([data-node="workshops"]:hover)        [data-line="workshops"],
.constellation:has([data-node="galas"]:hover)            [data-line="galas"],
.constellation:has([data-node="pitch-days"]:hover)       [data-line="pitch-days"] {
  stroke: #6C4FF7;
  stroke-width: 1.5;
  stroke-dasharray: 6 22;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(108, 79, 247, 0.7));
  animation: nova-stage-signal 1.4s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .stage-ring, .stage-signal { animation: none !important; }
  .constellation-line { animation: none !important; transition: stroke 0s; }
}

/* Floating event chip above the calendar */
.nova-shape-calendar .cal-chip {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 116px;
  height: 38px;
  margin-left: -58px;
  border-radius: 10px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(108, 79, 247, 0.6);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 32px rgba(108, 79, 247, 0.25);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  animation: nova-cal-float 4.6s ease-in-out infinite;
}

.nova-shape-calendar .cal-chip::before {
  content: "";
  height: 5px;
  width: 70%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
}

.nova-shape-calendar .cal-chip::after {
  content: "";
  height: 3px;
  width: 45%;
  border-radius: 2px;
  background: rgba(108, 79, 247, 0.9);
  box-shadow: 0 0 8px rgba(108, 79, 247, 0.7);
}

@keyframes nova-cal-float {
  0%, 100% { transform: translate(0, 0) rotate(-1deg); }
  50%      { transform: translate(0, -6px) rotate(1deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHAPE 2 — TICKET FAN
   Three tickets fanned out from a central pivot, gently opening and
   closing like a hand of cards. The center ticket has a shimmer sweep
   and barcode. Sparkles drift upward like sales-in-progress signals.
   ═══════════════════════════════════════════════════════════════════════════ */

.nova-shape-tickets { perspective: 800px; }

.nova-shape-tickets .ticket {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110px;
  height: 88px;
  margin: -44px 0 0 -55px;
  border-radius: 12px;
  background: rgba(20, 18, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform-origin: 50% 110%;
  animation: nova-tick-fan 5s ease-in-out infinite;
}

/* Each ticket has the classic side notches */
.nova-shape-tickets .ticket::before,
.nova-shape-tickets .ticket::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 1);
  top: 50%;
  transform: translateY(-50%);
}

.nova-shape-tickets .ticket::before { left: -7px; }
.nova-shape-tickets .ticket::after  { right: -7px; }

.nova-shape-tickets .ticket:nth-child(1) { animation-delay: 0s;    z-index: 1; }
.nova-shape-tickets .ticket:nth-child(2) { animation-delay: 0.12s; z-index: 2; }
.nova-shape-tickets .ticket:nth-child(3) { animation-delay: 0.24s; z-index: 3; }

@keyframes nova-tick-fan {
  0%, 100% { transform: rotate(-2deg)  translateY(2px)  scale(0.96); }
  35%      { transform: rotate(-14deg) translateY(-2px) scale(1);    }
}

.nova-shape-tickets .ticket:nth-child(2) {
  animation-name: nova-tick-fan-mid;
}
@keyframes nova-tick-fan-mid {
  0%, 100% { transform: rotate(0deg) translateY(0)    scale(1); }
  35%      { transform: rotate(0deg) translateY(-6px) scale(1.04); }
}

.nova-shape-tickets .ticket:nth-child(3) {
  animation-name: nova-tick-fan-r;
}
@keyframes nova-tick-fan-r {
  0%, 100% { transform: rotate(2deg)  translateY(2px)  scale(0.96); }
  35%      { transform: rotate(14deg) translateY(-2px) scale(1);    }
}

/* Decoration on the middle (front) ticket */
.nova-shape-tickets .ticket-front {
  background: linear-gradient(135deg, rgba(108, 79, 247, 0.18), rgba(20, 18, 30, 0.95) 60%);
  border-color: rgba(108, 79, 247, 0.55);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(108, 79, 247, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nova-shape-tickets .ticket-front .lines {
  position: absolute;
  inset: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nova-shape-tickets .ticket-front .lines > b {
  height: 4px;
  border-radius: 2px;
}

.nova-shape-tickets .ticket-front .lines > b:nth-child(1) {
  width: 80%; background: rgba(255, 255, 255, 0.85);
}
.nova-shape-tickets .ticket-front .lines > b:nth-child(2) {
  width: 60%; background: rgba(108, 79, 247, 0.95); box-shadow: 0 0 8px rgba(108, 79, 247, 0.7);
}
.nova-shape-tickets .ticket-front .lines > b:nth-child(3) {
  width: 45%; background: rgba(255, 255, 255, 0.30);
}

.nova-shape-tickets .ticket-front .shimmer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    rgba(108, 79, 247, 0.5),
    transparent
  );
  filter: blur(3px);
  animation: nova-tick-shimmer 2.8s ease-in-out infinite;
}

@keyframes nova-tick-shimmer {
  0%   { left: -50px; opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { left: 110px; opacity: 0; }
}

/* Rising sparkles */
.nova-shape-tickets .sparkles {
  position: absolute;
  inset: 0;
}

.nova-shape-tickets .sparkles > i {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6C4FF7;
  box-shadow: 0 0 8px rgba(108, 79, 247, 0.9);
  opacity: 0;
  animation: nova-tick-rise 3.6s ease-out infinite;
}

.nova-shape-tickets .sparkles > i:nth-child(1) { left: 18%; animation-delay: 0s;   }
.nova-shape-tickets .sparkles > i:nth-child(2) { left: 38%; animation-delay: 0.9s; width: 3px; height: 3px; }
.nova-shape-tickets .sparkles > i:nth-child(3) { left: 62%; animation-delay: 1.6s; }
.nova-shape-tickets .sparkles > i:nth-child(4) { left: 82%; animation-delay: 2.4s; width: 3px; height: 3px; }

@keyframes nova-tick-rise {
  0%   { transform: translateY(0)      scale(0.6); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-140px) scale(0.2); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHAPE 3 — SCAN & CONFIRM
   A QR grid is scanned by a horizontal beam. When the beam reaches the
   bottom, a flash fires, the QR fades, an SVG checkmark draws on, and a
   pulse ring expands outward — then it all resets. 4.4s loop.
   ═══════════════════════════════════════════════════════════════════════════ */

.nova-shape-checkin {
  --cycle: 4.4s;
}

.nova-shape-checkin .qr-frame {
  position: relative;
  width: 100px;
  height: 100px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(108, 79, 247, 0.35);
  background: rgba(108, 79, 247, 0.04);
  overflow: hidden;
}

/* Corner brackets — a classic scanner viewfinder */
.nova-shape-checkin .qr-frame::before,
.nova-shape-checkin .qr-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #6C4FF7;
  box-shadow: 0 0 10px rgba(108, 79, 247, 0.6);
}

.nova-shape-checkin .qr-frame::before {
  top: 6px; left: 6px;
  border-right: none; border-bottom: none;
  border-top-left-radius: 4px;
}

.nova-shape-checkin .qr-frame::after {
  bottom: 6px; right: 6px;
  border-left: none; border-top: none;
  border-bottom-right-radius: 4px;
}

.nova-shape-checkin .qr-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 2px;
  width: 100%;
  height: 100%;
  animation: nova-qr-fade var(--cycle) ease-in-out infinite;
}

.nova-shape-checkin .qr-grid > i {
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.10);
}

.nova-shape-checkin .qr-grid > i.on    { background: rgba(255, 255, 255, 0.82); }
.nova-shape-checkin .qr-grid > i.glow  {
  background: #6C4FF7;
  box-shadow: 0 0 8px rgba(108, 79, 247, 0.9);
}

@keyframes nova-qr-fade {
  0%, 45% { opacity: 1; }
  55%, 90% { opacity: 0.18; }
  100% { opacity: 1; }
}

.nova-shape-checkin .scan-beam {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6C4FF7, transparent);
  box-shadow: 0 0 16px rgba(108, 79, 247, 0.95);
  animation: nova-beam var(--cycle) cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes nova-beam {
  0%   { top: 8px;  opacity: 0; }
  5%   { opacity: 1; }
  42%  { top: calc(100% - 10px); opacity: 1; }
  48%  { opacity: 0; }
  100% { top: 8px;  opacity: 0; }
}

/* Flash overlay at the moment of scan completion */
.nova-shape-checkin .flash {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(108, 79, 247, 0.7), transparent 70%);
  opacity: 0;
  animation: nova-flash var(--cycle) ease-out infinite;
}

@keyframes nova-flash {
  0%, 44% { opacity: 0; }
  48%     { opacity: 1; }
  60%     { opacity: 0; }
  100%    { opacity: 0; }
}

/* Checkmark SVG that draws after the scan completes */
.nova-shape-checkin .check {
  position: absolute;
  inset: 14px;
  z-index: 2;
  opacity: 0;
  animation: nova-check-show var(--cycle) ease-in-out infinite;
}

.nova-shape-checkin .check path {
  fill: none;
  stroke: #6C4FF7;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  filter: drop-shadow(0 0 8px rgba(108, 79, 247, 0.9));
  animation: nova-check-draw var(--cycle) cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes nova-check-show {
  0%, 50%   { opacity: 0; transform: scale(0.85); }
  60%, 88%  { opacity: 1; transform: scale(1);    }
  95%, 100% { opacity: 0; transform: scale(0.95); }
}

@keyframes nova-check-draw {
  0%, 55% { stroke-dashoffset: 60; }
  72%, 100% { stroke-dashoffset: 0; }
}

/* Expanding pulse rings on confirmation */
.nova-shape-checkin .ring,
.nova-shape-checkin .ring::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  border: 1.5px solid #6C4FF7;
  opacity: 0;
  animation: nova-check-ring var(--cycle) cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.nova-shape-checkin .ring::after {
  content: "";
  margin: 0;
  inset: 0;
  animation-delay: calc(var(--cycle) * 0.08);
}

@keyframes nova-check-ring {
  0%, 50% { transform: scale(0.5); opacity: 0; }
  55%     { transform: scale(0.5); opacity: 0.9; }
  80%     { transform: scale(2);   opacity: 0; }
  100%    { transform: scale(2);   opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
  .nova-shape-calendar .cal-grid > i.active,
  .nova-shape-calendar .cal-pulse,
  .nova-shape-calendar .cal-chip,
  .nova-shape-tickets .ticket,
  .nova-shape-tickets .ticket-front .shimmer,
  .nova-shape-tickets .sparkles > i,
  .nova-shape-checkin .qr-grid,
  .nova-shape-checkin .scan-beam,
  .nova-shape-checkin .flash,
  .nova-shape-checkin .check,
  .nova-shape-checkin .check path,
  .nova-shape-checkin .ring {
    animation: none;
  }
}

/* ── Animated step shapes — light mode overrides ──────────────────────────
   The shapes are designed for a dark surface. In light mode we flip
   white/black tones and tighten contrast so each animation reads cleanly
   on the pearl-lavender card surface. */

:root:not(.dark) .nova-shape {
  background: radial-gradient(
    120% 80% at 50% 50%,
    rgba(108, 79, 247, 0.06) 0%,
    transparent 65%
  );
}

/* Calendar — light grid cells, dark chip with light text */
:root:not(.dark) .nova-shape-calendar .cal-grid > i {
  background: rgba(15, 12, 22, 0.06);
  border-color: rgba(15, 12, 22, 0.04);
}
:root:not(.dark) .nova-shape-calendar .cal-grid > i.active {
  background: rgba(108, 79, 247, 0.85);
  border-color: rgba(108, 79, 247, 1);
}
:root:not(.dark) .nova-shape-calendar .cal-pulse,
:root:not(.dark) .nova-shape-calendar .cal-pulse::after {
  border-color: rgba(108, 79, 247, 0.55);
}
:root:not(.dark) .nova-shape-calendar .cal-chip {
  background: #ffffff;
  border-color: rgba(108, 79, 247, 0.40);
  box-shadow:
    0 12px 32px rgba(31, 22, 64, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 24px rgba(108, 79, 247, 0.20);
}
:root:not(.dark) .nova-shape-calendar .cal-chip::before {
  background: rgba(15, 12, 22, 0.75);
}

/* Tickets — light ticket bodies, dark notches matching the card surface */
:root:not(.dark) .nova-shape-tickets .ticket {
  background: rgba(248, 245, 255, 0.95);
  border-color: rgba(108, 79, 247, 0.18);
  box-shadow:
    0 12px 28px rgba(31, 22, 64, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
:root:not(.dark) .nova-shape-tickets .ticket::before,
:root:not(.dark) .nova-shape-tickets .ticket::after {
  /* Notches need to match the *container* surface so they look "cut out";
     the wrapper is bg-card which in light mode is the pearl-lavender. */
  background: hsl(220 22% 97%);
}
:root:not(.dark) .nova-shape-tickets .ticket-front {
  background: linear-gradient(135deg, rgba(108, 79, 247, 0.10), rgba(248, 245, 255, 0.95) 60%);
  border-color: rgba(108, 79, 247, 0.45);
  box-shadow:
    0 16px 36px rgba(31, 22, 64, 0.16),
    0 0 28px rgba(108, 79, 247, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
:root:not(.dark) .nova-shape-tickets .ticket-front .lines > b:nth-child(1) {
  background: rgba(15, 12, 22, 0.75);
}
:root:not(.dark) .nova-shape-tickets .ticket-front .lines > b:nth-child(3) {
  background: rgba(15, 12, 22, 0.20);
}

/* QR scanner — light frame, dark grid cells, primary glow stays */
:root:not(.dark) .nova-shape-checkin .qr-frame {
  background: rgba(108, 79, 247, 0.04);
  border-color: rgba(108, 79, 247, 0.30);
}
:root:not(.dark) .nova-shape-checkin .qr-grid > i {
  background: rgba(15, 12, 22, 0.08);
}
:root:not(.dark) .nova-shape-checkin .qr-grid > i.on {
  background: rgba(15, 12, 22, 0.80);
}

/* ── Nova dark scope ──────────────────────────────────────────────────────
   Sections that are always dark regardless of the global theme (Hero,
   Use Cases, Pricing, CTA — anything with hardcoded dark imagery, video
   backgrounds, or premium-tier visuals). Overrides the shadcn HSL token
   set on the element itself; descendants inherit. */

.nova-dark {
  /* Abstract HSL tokens (for non-Tailwind custom CSS that reads --foreground etc.) */
  --background: 0 0% 6%; /* #0f0f0f — matches the page background */
  --foreground: 0 0% 100%;
  --card: 258 12% 7%;
  --card-foreground: 0 0% 100%;
  --popover: 258 14% 6%;
  --popover-foreground: 0 0% 100%;
  --primary: 250 92% 64%;
  --primary-foreground: 0 0% 100%;
  --secondary: 258 14% 10%;
  --secondary-foreground: 0 0% 100%;
  --muted: 258 12% 12%;
  --muted-foreground: 0 0% 72%;
  --accent: 258 12% 12%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 100%;
  --border: 0 0% 18%;
  --input: 0 0% 12%;
  --ring: 250 92% 64%;
  --nova-border-hairline: rgba(255, 255, 255, 0.06);
  --nova-border-strong: rgba(255, 255, 255, 0.12);
  --nova-shadow-elev: 0 8px 32px rgba(0, 0, 0, 0.40);

  /* Tailwind v4 resolves @theme `--color-*` tokens at the declaring scope —
     redefining just `--foreground` on a nested element doesn't update the
     already-substituted `--color-foreground`. Redeclare them here so
     `bg-card`, `text-foreground`, `border-border`, etc. resolve correctly
     for descendants of any element with the `.nova-dark` class. */
  --color-background: hsl(240 29% 5.5%);
  --color-foreground: hsl(0 0% 100%);
  --color-card: hsl(258 12% 7%);
  --color-card-foreground: hsl(0 0% 100%);
  --color-popover: hsl(258 14% 6%);
  --color-popover-foreground: hsl(0 0% 100%);
  --color-primary: hsl(250 92% 64%);
  --color-primary-foreground: hsl(0 0% 100%);
  --color-secondary: hsl(258 14% 10%);
  --color-secondary-foreground: hsl(0 0% 100%);
  --color-muted: hsl(258 12% 12%);
  --color-muted-foreground: hsl(0 0% 72%);
  --color-accent: hsl(258 12% 12%);
  --color-accent-foreground: hsl(0 0% 100%);
  --color-destructive: hsl(0 72% 51%);
  --color-destructive-foreground: hsl(0 0% 100%);
  --color-border: hsl(0 0% 18%);
  --color-input: hsl(0 0% 12%);
  --color-ring: hsl(250 92% 64%);

  color: hsl(0 0% 100%);
}

/* ── Testimonial cascade — focus management ──────────────────────────────
   When any card in the testimonial-cascade row is hovered or focused, the
   sibling cards get blurred + dimmed so attention is on the active one.
   Quick transition (200ms) so the focus shift feels instant. */

.testimonial-cascade > article {
  transition:
    flex-grow 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 200ms ease-out,
    opacity 200ms ease-out;
}

.testimonial-cascade:has(> article:is(:hover, :focus-within))
  > article:not(:hover):not(:focus-within) {
  filter: blur(3px) saturate(0.6);
  opacity: 0.45;
}

/* ── Nova card shadow ─────────────────────────────────────────────────────
   Inset highlight + soft inner shadow combo that's used on every Nova
   card surface. Defined here once so light mode can swap the values
   instead of every card hardcoding rgba(0,0,0,0.90). */

.nova-card-shadow {
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -2px 4px 0 rgba(0, 0, 0, 0.90);
}

:root:not(.dark) .nova-card-shadow {
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.90),
    0 1px 2px 0 rgba(15, 12, 22, 0.04),
    0 8px 24px -4px rgba(15, 12, 22, 0.08);
}

/* ── Pricing — rotating conic-gradient border on featured card ────────────
   The ::before pseudo paints a slowly rotating conic gradient behind the
   card; ::after masks the center with the card color, leaving only the
   thin animated rim visible. Pause on reduced motion. */

@property --nova-price-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes nova-price-rim {
  to { --nova-price-angle: 360deg; }
}

.nova-price-rim {
  position: relative;
  isolation: isolate;
}

.nova-price-rim::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--nova-price-angle),
    rgba(108, 79, 247, 0.0) 0deg,
    rgba(108, 79, 247, 0.85) 60deg,
    rgba(255, 255, 255, 0.9) 90deg,
    rgba(108, 79, 247, 0.85) 120deg,
    rgba(108, 79, 247, 0.0) 180deg,
    rgba(108, 79, 247, 0.0) 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: nova-price-rim 6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .nova-price-rim::before { animation: none; }
}

/* ── Pricing — slow shimmer sweep across the big price number ─────────── */

@keyframes nova-price-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.nova-price-shimmer {
  background: linear-gradient(
    100deg,
    hsl(var(--foreground)) 0%,
    hsl(var(--foreground)) 40%,
    rgba(255, 255, 255, 0.6) 50%,
    hsl(var(--foreground)) 60%,
    hsl(var(--foreground)) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: nova-price-shimmer 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .nova-price-shimmer {
    animation: none;
    -webkit-text-fill-color: hsl(var(--foreground));
  }
}

/* ── Pricing — drifting background orbs ───────────────────────────────── */

@keyframes nova-orb-drift-a {
  0%, 100% { transform: translate(0, 0)         scale(1); }
  50%      { transform: translate(40px, -30px)  scale(1.08); }
}

@keyframes nova-orb-drift-b {
  0%, 100% { transform: translate(0, 0)         scale(1); }
  50%      { transform: translate(-30px, 40px)  scale(0.92); }
}

.nova-orb-a { animation: nova-orb-drift-a 14s ease-in-out infinite; }
.nova-orb-b { animation: nova-orb-drift-b 18s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .nova-orb-a, .nova-orb-b { animation: none; }
}

/* ── Slider utilities ─────────────────────────────────────────────────────
   Hide native scrollbar where a slider keeps scroll for touch/keyboard. */

.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ── 3D Coverflow slider ──────────────────────────────────────────────────
   Stage establishes a perspective context. Slides are absolutely centered
   and their transform/opacity/z-index are driven by the Stimulus slider
   controller so adjacent slides peek with depth + rotation. */

.slider-3d-stage {
  position: relative;
  perspective: 1400px;
  transform-style: preserve-3d;
  overflow: hidden;
  padding-block: 24px;
}

.slider-3d-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(640px, 88%);
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition:
    transform 720ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 520ms ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .slider-3d-slide { transition: none; }
}

/* ── Animated <details> (FAQ disclosures) ─────────────────────────────────
   Enable smooth open/close on native <details>. Uses the modern
   ::details-content pseudo-element + interpolate-size to transition
   height: auto. Falls back gracefully (instant open) on older browsers. */

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
}

details::details-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    height 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 240ms ease-out,
    content-visibility 320ms allow-discrete;
}

details[open]::details-content {
  height: auto;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  details::details-content {
    transition: none;
  }
}

/* ── Hero 3D ticket-stack scene ─────────────────────────────────────────────
   Three ticket cards arranged in perspective space. The stage tilts back and
   forth subtly; each card has its own slow float so the stack never feels
   static. Cards use the .nova-ticket mask for the notched ticket silhouette. */

.hero-3d-scene {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.hero-3d-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: hero-3d-stage-drift 14s ease-in-out infinite alternate;
}

@keyframes hero-3d-stage-drift {
  0%   { transform: rotateY(-6deg) rotateX(4deg); }
  100% { transform: rotateY(6deg)  rotateX(-2deg); }
}

/* Common ticket card — positioned at scene center, then translated/rotated
   per-card via the modifier classes. */
.hero-3d-ticket {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(24, 24, 27, 0.92) 0%, rgba(15, 15, 15, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

/* Back card — top-left, deeper, rotated away */
.hero-3d-ticket--back {
  width: 240px;
  height: 140px;
  margin: -70px 0 0 -120px;
  --base: translate3d(-130px, -110px, -60px) rotateY(22deg) rotateX(-4deg) rotateZ(-3deg);
  transform: var(--base);
  animation: hero-3d-float-back 11s ease-in-out infinite alternate;
}

@keyframes hero-3d-float-back {
  0%   { transform: translate3d(-130px, -110px, -60px) rotateY(22deg) rotateX(-4deg) rotateZ(-3deg); }
  100% { transform: translate3d(-122px, -120px, -50px) rotateY(18deg) rotateX(-2deg) rotateZ(-1deg); }
}

/* Mid card — center, primary visible card */
.hero-3d-ticket--mid {
  width: 280px;
  height: 160px;
  margin: -80px 0 0 -140px;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(155deg, rgba(28, 28, 32, 0.96) 0%, rgba(18, 18, 22, 0.98) 100%);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translate3d(0, 0, 40px) rotateY(-4deg) rotateX(2deg);
  animation: hero-3d-float-mid 9s ease-in-out infinite alternate;
}

@keyframes hero-3d-float-mid {
  0%   { transform: translate3d(0, -6px, 40px) rotateY(-6deg) rotateX(2deg); }
  100% { transform: translate3d(4px, 8px, 50px) rotateY(2deg)  rotateX(-1deg); }
}

/* Front card — bottom-right, closest to camera, primary-accented */
.hero-3d-ticket--front {
  width: 230px;
  height: 130px;
  margin: -65px 0 0 -115px;
  border-color: rgba(108, 79, 247, 0.45);
  background: linear-gradient(155deg, rgba(34, 28, 56, 0.96) 0%, rgba(20, 16, 36, 0.98) 100%);
  box-shadow:
    0 30px 60px -10px rgba(108, 79, 247, 0.35),
    0 0 24px rgba(108, 79, 247, 0.25),
    0 0 0 1px rgba(108, 79, 247, 0.1) inset;
  transform: translate3d(120px, 110px, 110px) rotateY(-18deg) rotateX(3deg) rotateZ(2deg);
  animation: hero-3d-float-front 8s ease-in-out infinite alternate;
}

@keyframes hero-3d-float-front {
  0%   { transform: translate3d(120px, 110px, 110px) rotateY(-18deg) rotateX(3deg) rotateZ(2deg); }
  100% { transform: translate3d(128px, 100px, 120px) rotateY(-14deg) rotateX(1deg) rotateZ(0deg); }
}

/* ── Light-mode overrides for the hero 3D ticket stack ────────────────────
   The default gradients are tuned for a dark hero. In light mode we flip
   the surfaces to pearl-lavender so the floating tickets read as light
   cards with primary edges instead of black slabs on a bright page. */

:root:not(.dark) .hero-3d-ticket {
  background: linear-gradient(155deg, rgba(253, 252, 255, 0.98) 0%, rgba(243, 239, 253, 0.97) 100%);
  border-color: rgba(31, 22, 64, 0.10);
  box-shadow:
    0 30px 60px -20px rgba(31, 22, 64, 0.18),
    0 8px 24px -8px rgba(108, 79, 247, 0.18),
    0 0 0 1px rgba(31, 22, 64, 0.03) inset;
}

:root:not(.dark) .hero-3d-ticket--mid {
  border-color: rgba(108, 79, 247, 0.18);
  background: linear-gradient(155deg, rgba(255, 254, 255, 1) 0%, rgba(239, 234, 252, 0.98) 100%);
  box-shadow:
    0 40px 80px -20px rgba(31, 22, 64, 0.22),
    0 12px 28px -8px rgba(108, 79, 247, 0.22),
    0 0 0 1px rgba(108, 79, 247, 0.06) inset;
}

:root:not(.dark) .hero-3d-ticket--front {
  border-color: rgba(108, 79, 247, 0.50);
  background: linear-gradient(155deg, rgba(248, 244, 255, 1) 0%, rgba(232, 222, 252, 1) 100%);
  box-shadow:
    0 30px 60px -10px rgba(108, 79, 247, 0.40),
    0 0 28px rgba(108, 79, 247, 0.30),
    0 0 0 1px rgba(108, 79, 247, 0.18) inset;
}

/* ── Hero background ornaments ──────────────────────────────────────────────
   Diagonal light streaks, drifting particles, and a horizontal scanline.
   Purely atmospheric — they sit behind the headline at low opacity. */

.hero-streak {
  position: absolute;
  top: -20%;
  left: -10%;
  height: 140%;
  width: 0.5px;
  background: linear-gradient(to bottom, transparent 0%, rgba(108, 79, 247, 0.18) 35%, rgba(180, 160, 255, 0.32) 50%, rgba(108, 79, 247, 0.18) 65%, transparent 100%);
  filter: drop-shadow(0 0 3px rgba(108, 79, 247, 0.25));
  opacity: 0;
  transform-origin: top center;
}

.hero-streak--1 { animation: hero-streak-sweep 9s ease-in-out 0.4s infinite; }
.hero-streak--2 { animation: hero-streak-sweep 12s ease-in-out 3.2s infinite; }
.hero-streak--3 { animation: hero-streak-sweep 14s ease-in-out 6.5s infinite; }

@keyframes hero-streak-sweep {
  0%   { transform: translateX(0)      rotate(18deg); opacity: 0; }
  20%  { opacity: 0.35; }
  80%  { opacity: 0.35; }
  100% { transform: translateX(110vw)  rotate(18deg); opacity: 0; }
}

.hero-particle {
  position: absolute;
  bottom: -10px;
  left: var(--x);
  width: 3px;
  height: 3px;
  border-radius: 9999px;
  background: rgba(108, 79, 247, 0.9);
  box-shadow: 0 0 8px #6C4FF7, 0 0 16px rgba(108, 79, 247, 0.55);
  opacity: 0;
  animation: hero-particle-rise var(--dur) linear var(--delay) infinite;
}

@keyframes hero-particle-rise {
  0%   { transform: translateY(0)      translateX(0);    opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { transform: translateY(-50vh)  translateX(20px); }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-100vh) translateX(-10px); opacity: 0; }
}

.hero-scanline {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.5px;
  background: linear-gradient(to right, transparent 0%, rgba(108, 79, 247, 0.18) 25%, rgba(180, 160, 255, 0.3) 50%, rgba(108, 79, 247, 0.18) 75%, transparent 100%);
  box-shadow: 0 0 6px rgba(108, 79, 247, 0.2);
  opacity: 0;
  animation: hero-scanline-fall 13s ease-in-out 1.5s infinite;
}

@keyframes hero-scanline-fall {
  0%   { top: 0;    opacity: 0; }
  20%  { opacity: 0.3; }
  80%  { opacity: 0.3; }
  100% { top: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-streak,
  .hero-particle,
  .hero-scanline {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* ── Hero topographic wireframe terrain ─────────────────────────────────────
   Subtle full-width wireframe mesh that ripples horizontally across the
   lower half of the hero. The SVG is tilted on the floor plane via 3D
   transform so it reads as a perspective horizon, and the sine rows flow
   left↔right to create a parallax depth illusion. */

.hero-terrain {
  position: absolute;
  inset: auto 0 0 0;
  height: 75%;
  perspective: 1200px;
  perspective-origin: 50% 0%;
  overflow: hidden;
  pointer-events: none;
}

.hero-terrain-svg {
  width: 240%;
  height: 140%;
  margin-left: -70%;
  transform-origin: 50% 0%;
  transform: rotateX(62deg);
  opacity: 0.55;
}

.hero-terrain-row {
  animation: hero-terrain-flow 26s linear infinite;
  animation-delay: calc(var(--row) * -1.2s);
  will-change: transform;
  transform-box: fill-box;
}

@keyframes hero-terrain-flow {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-400px); }
}

/* Floating sparkle glyphs at varying depth */
.hero-3d-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #6C4FF7;
  box-shadow: 0 0 10px #6C4FF7, 0 0 20px rgba(108, 79, 247, 0.6);
}

.hero-3d-spark--1 {
  top: 18%;
  left: 28%;
  transform: translateZ(80px);
  animation: hero-3d-spark-pulse 3.4s ease-in-out infinite;
}

.hero-3d-spark--2 {
  top: 72%;
  left: 18%;
  width: 4px;
  height: 4px;
  transform: translateZ(60px);
  animation: hero-3d-spark-pulse 4.2s ease-in-out infinite 0.6s;
}

.hero-3d-spark--3 {
  top: 30%;
  right: 12%;
  width: 5px;
  height: 5px;
  transform: translateZ(-40px);
  animation: hero-3d-spark-pulse 3.8s ease-in-out infinite 1.2s;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes hero-3d-spark-pulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* Scanning beam on the front (check-in) ticket */
@keyframes hero-3d-scan {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(130px); opacity: 0; }
}

/* Tilted orbit ring behind the stack */
@keyframes hero-3d-orbit-spin {
  0%   { transform: translate(-50%, -50%) perspective(800px) rotateX(70deg) rotateZ(0deg); }
  100% { transform: translate(-50%, -50%) perspective(800px) rotateX(70deg) rotateZ(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-3d-stage,
  .hero-3d-ticket--back,
  .hero-3d-ticket--mid,
  .hero-3d-ticket--front,
  .hero-3d-spark,
  .hero-terrain-row,
  .hero-3d-scene [class*="animation"] {
    animation: none !important;
  }
}

/* ── Light-mode body wash ───────────────────────────────────────────────────
   In light mode the body picks up a translucent lavender-pink tint instead
   of the default cool-slate background. The dark mode body bg is untouched. */
html:not(.dark) body {
  background-color: #f0ccf738;
}

/* ── Collapsible sidebar ─────────────────────────────────────────────────── */

/* Tooltip: hidden by default, shown on hover only when collapsed */
.sidebar-tooltip {
  display: none;
}

.collapsed .sidebar-label {
  display: none;
}

.collapsed .sidebar-tooltip {
  display: none;
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: hsl(var(--popover));
  color: hsl(var(--popover-foreground));
  border: 1px solid hsl(var(--border));
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.collapsed a:hover .sidebar-tooltip,
.collapsed button:hover .sidebar-tooltip {
  display: block;
}

/* Section headers: show a divider line when collapsed */
.collapsed .sidebar-section-header {
  font-size: 0;
  color: transparent;
  height: 1px;
  margin: 8px 12px;
  padding: 0;
  background: hsl(var(--border));
  overflow: hidden;
}

/* Tighten padding and center icons when collapsed */
.collapsed {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.collapsed > div:first-child {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.collapsed > div:first-child a {
  justify-content: center;
}

.collapsed nav ul[role="list"] {
  margin-left: 0;
  margin-right: 0;
  padding-left: 6px;
  padding-right: 6px;
}

.collapsed nav a,
.collapsed nav button {
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
}

/* Hide the org letter + name, show just letter */
.collapsed .sidebar-org-name {
  display: none;
}

/* Context panel positioning */
.sidebar-context-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 49;
  width: 18rem;
  overflow-y: auto;
  border-right: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  transition: left 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
