/* =========================================================
   ThumbnailGalaxy — Landing page
   Dark theme · glassmorphism header · looping hero
   ========================================================= */

:root {
  --bg: #07070a;
  --bg-2: #0d0d12;
  --text: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.62);
  --red: #ff1f1f;
  --red-2: #e00000;
  --glass: rgba(22, 22, 28, 0.42);
  --glass-strong: rgba(16, 16, 21, 0.72);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-2: rgba(255, 255, 255, 0.16);

  --radius-thumb: 14px;
  --gap: 18px;
  /* hero sizes are fixed px so the hero looks identical on every desktop
     screen instead of shrinking with the window */
  --thumb-h: 208px;
  --thumb-opacity: 1;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* --- custom scrollbar ---------------------------------------------------
   The native bar is hidden; js/scrollbar.js draws this one instead: a 3px
   bar that brightens and thickens on hover, then fades out when idle.       */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 0; height: 0; }

.scrollbar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: 20px;
  padding: 20px 8px 20px 0;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.scrollbar.is-visible { opacity: 1; }
.scrollbar.is-noscroll { display: none; }

.scrollbar__track {
  position: relative;
  width: 3px;
  height: 100%;
  border-radius: 99px;
  background: rgba(255, 255, 255, .05);
}

.scrollbar__thumb {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .24));
  box-shadow: 0 0 10px -3px rgba(255, 255, 255, .45);
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  will-change: transform, height;
  transition: width .2s ease, background .2s ease, box-shadow .2s ease;
}
.scrollbar__thumb::before { /* invisible grab area around the 3px bar */
  content: "";
  position: absolute;
  inset: -12px -8px;
}
.scrollbar:hover .scrollbar__thumb {
  width: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .45));
  box-shadow: 0 0 16px -3px rgba(255, 255, 255, .55);
}
.scrollbar.is-dragging .scrollbar__thumb { cursor: grabbing; }

/* js/smooth-scroll.js drives the page itself, so the browser must not
   smooth-scroll on top of it */
html.glide { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Display face for every heading; Space Grotesk at 700 already reads heavy,
   so the old 800s are softened to keep the type crisp */
h1, h2, h3, h4,
.section__title,
.cta-band__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.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;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  --h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.btn svg { transition: transform .25s ease; }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.97); }

.btn--primary {
  background: linear-gradient(180deg, #ff3b3b 0%, var(--red-2) 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 80, 80, .45) inset,
    0 1px 0 rgba(255, 255, 255, .25) inset,
    0 8px 24px -6px rgba(255, 20, 20, .55);
}
.btn--primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 110, 110, .6) inset,
    0 1px 0 rgba(255, 255, 255, .3) inset,
    0 12px 32px -6px rgba(255, 20, 20, .75);
  transform: translateY(-1px);
}

.btn--glass {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  border-color: var(--stroke-2);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}
.btn--glass:hover { background: rgba(255, 255, 255, .11); transform: translateY(-1px); }
.btn--glass svg:last-child { transform: none !important; }

.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 16px; }

/* ---------------------------------------------------------
   Header — detached glass pill
   --------------------------------------------------------- */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 32px));
  z-index: 100;
  animation: headerIn .9s cubic-bezier(.2, .8, .2, 1) backwards;
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 10px 0 24px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .07) inset,
    0 -1px 0 rgba(0, 0, 0, .3) inset,
    0 20px 50px -20px rgba(0, 0, 0, .8);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
/* soft top highlight line */
.header__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.header.is-scrolled .header__inner {
  background: var(--glass-strong);
  border-color: var(--stroke-2);
}

.header__logo img {
  height: 26px;
  width: auto;
}

.header__nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.header__nav a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s ease, background-color .2s ease;
}
.header__nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
}

.header__actions { display: flex; align-items: center; gap: 8px; }

.header__burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
}
.header__burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform .3s ease, top .3s ease;
}
.header__burger span:nth-child(1) { top: 17px; }
.header__burger span:nth-child(2) { top: 25px; }
.header.menu-open .header__burger span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.header.menu-open .header__burger span:nth-child(2) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(14, 14, 18, .78);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.mobile-menu a:not(.btn) {
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 500;
  color: var(--muted);
}
.mobile-menu a:not(.btn):hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.mobile-menu .btn { margin-top: 6px; }
.header.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

/* --- looping rows --- */
.hero__rows {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gap);
  transform: translateY(var(--rows-shift, 0px));
  animation: fadeIn 1.4s ease both;
  /* decoration only: no clicks, no right-click / save-image, no drag, no select */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee var(--speed, 70s) linear infinite;
}
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee--1 { --speed: 78s; }
.marquee--2 { --speed: 90s; }
.marquee--3 { --speed: 72s; }

.marquee__group {
  display: flex;
  flex-shrink: 0;
  gap: var(--gap);
  padding-right: var(--gap); /* keeps the loop seamless */
}

.thumb {
  flex-shrink: 0;
  height: var(--thumb-h);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-thumb);
  overflow: hidden;
  background: var(--bg-2);
  opacity: var(--thumb-opacity);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .1),
    0 14px 30px -12px rgba(0, 0, 0, .8);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

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

/* --- veil / vignette so the pack pops --- */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* center darkening behind the pack */
    radial-gradient(ellipse 38% 64% at 50% calc(50% + var(--rows-shift, 0px)), rgba(7, 7, 10, .72) 0%, rgba(7, 7, 10, .34) 50%, rgba(7, 7, 10, 0) 100%),
    /* top / bottom fade to page bg */
    linear-gradient(180deg, var(--bg) 0%, rgba(7, 7, 10, .18) 18%, rgba(7, 7, 10, 0) 50%, rgba(7, 7, 10, .18) 82%, var(--bg) 100%),
    /* side fades */
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 7, 10, 0) 14%, rgba(7, 7, 10, 0) 86%, var(--bg) 100%),
    /* overall dim so the pack stays the hero */
    rgba(7, 7, 10, .3);
}

/* --- foreground --- */
.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 104px 20px 40px;
  text-align: center;
}

.hero__pack {
  position: relative;
  display: grid;
  place-items: center;
  animation: packIn 1.1s cubic-bezier(.2, .8, .2, 1) .15s both;
}

.hero__pack img {
  position: relative;
  height: 648px; /* frozen: the pack is this size on every desktop screen */
  width: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
  animation: float 7s ease-in-out 1.3s infinite;
  /* independent `scale` so the float animation's transform isn't overridden */
  scale: 1;
  transition: scale .55s cubic-bezier(.2, .8, .2, 1);
}
.hero__pack:hover img { scale: 1.035; }

/* very subtle, round, soft shadow behind the pack */
.hero__shadow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 175%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(0, 0, 0, .78) 0%,
    rgba(0, 0, 0, .5) 38%,
    rgba(0, 0, 0, .18) 58%,
    rgba(0, 0, 0, 0) 70%);
  filter: blur(18px);
  pointer-events: none;
}
.hero__shadow::after { /* faint brand warmth */
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 30, 30, .10), rgba(255, 30, 30, 0) 70%);
  filter: blur(30px);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  animation: fadeUp .9s cubic-bezier(.2, .8, .2, 1) .45s both;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  animation: fadeUp .9s cubic-bezier(.2, .8, .2, 1) .6s both;
}
.hero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { color: var(--red); }

/* removed hero CTA + meta: hidden and non-interactive, but still holding their
   space so the pack and the thumbnail rows keep their exact original position */
.is-removed {
  visibility: hidden;
  pointer-events: none;
}

/* ---------------------------------------------------------
   Niche ribbon — minimal looping text band, sits directly
   below the hero (thumbnail loops). Nothing above it moves.
   --------------------------------------------------------- */
.niche {
  --niche-gap: 54px;
  --niche-lift: 180px;
  position: relative;
  z-index: 1;
  /* ribbon pulled up by --niche-lift (it now tucks over the bottom edge of the
     hero); hero, thumbnail rows and pack above are untouched */
  padding: 0 0 var(--niche-gap);
  margin-top: calc(var(--niche-gap) - var(--niche-lift));
}

.niche__ribbon {
  position: relative;
  overflow: hidden;
  padding: 23px 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045) 0%, rgba(255, 255, 255, .012) 55%, rgba(255, 255, 255, .03) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

/* faint brand warmth behind the text */
.niche__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(900px, 78%);
  height: 300%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 31, 31, .13), rgba(255, 31, 31, 0) 100%);
  pointer-events: none;
}

/* the drift layer: js/main.js slides this with the scroll, the loop inside
   keeps running underneath it */
.niche__rail {
  position: relative;
  z-index: 1;
  will-change: transform;
}

/* no timed loop: the band only moves while the page scrolls (js/main.js),
   wrapping every group of items so it reads as an endless loop */
.niche__track {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
}

.niche__group {
  display: flex;
  flex-shrink: 0;
}

.niche__item {
  display: inline-flex;
  align-items: center;
  /* fixed px, never vw: the band must keep its size when the page is zoomed */
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.15;
  white-space: nowrap;
  color: rgba(245, 245, 247, .88);
}

/* red diamond separator — one per item keeps the rhythm even */
.niche__item::after {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-inline: 32px;
  border-radius: 1px;
  background: var(--red);
  rotate: 45deg;
  box-shadow: 0 0 14px rgba(255, 31, 31, .75);
}

/* ---------------------------------------------------------
   Shared section furniture
   --------------------------------------------------------- */
.wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
.wrap--narrow { width: min(880px, calc(100% - 40px)); }

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
}

.section {
  position: relative;
  padding: clamp(64px, 7.6vw, 108px) 0;
}
.section + .section { border-top: 1px solid var(--stroke); }

.section__head {
  max-width: 640px;
  margin: 0 0 clamp(36px, 4.5vw, 56px);
}
.section__head--center { margin-inline: auto; text-align: center; }

.section__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.section__sub {
  margin: 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
  color: var(--muted);
}

.btn--block { width: 100%; }

/* ---------------------------------------------------------
   CTA band — sits below the ribbon
   --------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: clamp(20px, 3vw, 34px) 0 clamp(44px, 5.5vw, 76px);
  text-align: center;
}
.cta-band__inner {
  width: min(860px, calc(100% - 40px));
  margin-inline: auto;
}
.cta-band__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.cta-band__sub {
  margin: 0 auto 34px;
  max-width: 560px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
  color: var(--muted);
}

/* Photoshop badge + caption, sits on its own line under the CTA button —
   block flex so it never shares the button's line */
.cta-band__psd {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 26px;
}

.cta-band__psd-badge {
  display: grid;
  place-items: center;
  color: #31a8ff;
}
.cta-band__psd-badge svg { display: block; }

.cta-band__psd-text {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: rgba(245, 245, 247, .78);
}

.cta-band__video {
  display: block;
  width: min(1080px, calc(100vw - 40px));
  margin: 30px 0 40px;
  /* breaks out of the 860px .cta-band__inner and stays viewport-relative */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px;
  border: 1px solid var(--stroke-2);
  background: var(--bg-2);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .95);
}

/* ---------------------------------------------------------
   Video demo — same glass panel language as the price card
   --------------------------------------------------------- */
.demo__frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--stroke-2);
  border-radius: 12px;
  background: rgba(13, 13, 18, .6);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .07) inset,
    0 30px 80px -40px rgba(0, 0, 0, .95),
    0 40px 120px -60px rgba(255, 31, 31, .45);
  overflow: hidden;
}
.demo__frame::after { /* faint brand warmth from the top edge */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 31, 31, .1), rgba(255, 31, 31, 0) 58%);
}

.demo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  width: min(760px, 100%);
  margin: 0 auto;
}

.demo__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--bg-2);
}
.demo__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 560px) {
  .demo__grid { grid-template-columns: minmax(0, 1fr); max-width: 380px; }
}

/* ---------------------------------------------------------
   Pricing — one compact card
   gradient hairline border · fine dot grid fading from the top · logo mark
   --------------------------------------------------------- */
.pricing .section__head { margin-bottom: clamp(40px, 4.6vw, 56px); }

.plan {
  position: relative;
  width: min(420px, 100%);
  margin: 0 auto;
}
.plan__inner { z-index: 1; }

/* ── Static ribbons behind the card ─────────────────────── */
.pricing { overflow: hidden; }
.pricing__ribbons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.ribbon {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 58px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.ribbon span { padding: 0 22px; }
.ribbon span::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 44px;
  border-radius: 1px;
  rotate: 45deg;
  vertical-align: middle;
  background: currentColor;
  opacity: .6;
}
/* ribbon 1 — dark glass, outlined text, tilts up-right */
.ribbon--1 {
  top: 42%;
  transform: translateY(-120%) rotate(-7deg);
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .035);
  color: rgba(245, 245, 247, .3);
}
/* ribbon 2 — brand red, solid, tilts down-right, sits lower */
.ribbon--2 {
  top: 42%;
  transform: translateY(40%) rotate(5deg);
  background: linear-gradient(90deg, var(--red-2), var(--red) 50%, var(--red-2));
  color: rgba(255, 255, 255, .92);
  box-shadow: 0 20px 50px -20px rgba(255, 31, 31, .6);
}
.ribbon--2::before { /* satin highlight */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .18));
  pointer-events: none;
}

.plan__inner {
  position: relative;
  padding: 40px clamp(28px, 4vw, 40px) 30px;
  text-align: center;
  border-radius: 28px;
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(255, 31, 31, .13), rgba(255, 31, 31, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01) 45%),
    rgba(12, 12, 17, .93);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 40px 90px -50px rgba(0, 0, 0, 1),
    0 50px 120px -70px rgba(255, 31, 31, .3);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}
.plan__inner:hover {
  transform: translateY(-4px);
  box-shadow:
    0 50px 100px -50px rgba(0, 0, 0, 1),
    0 60px 130px -70px rgba(255, 31, 31, .4);
}

/* 1px gradient border — brighter at the top, fades out toward the bottom */
.plan__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 120, 120, .55), rgba(255, 255, 255, .16) 35%, rgba(255, 255, 255, .07));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* fine dot grid, visible only in the upper third */
.plan__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.2px);
  background-size: 18px 18px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(80% 45% at 50% 0%, #000 20%, transparent 100%);
          mask-image: radial-gradient(80% 45% at 50% 0%, #000 20%, transparent 100%);
  opacity: .45;
  pointer-events: none;
  z-index: -1;
}

.plan__was {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}
.plan__was s {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(245, 245, 247, .42);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 60, 60, .8);
  text-decoration-thickness: 2px;
}
.plan__save {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(60, 220, 120, .35);
  background: rgba(34, 197, 94, .12);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6ee7a0;
}

.plan__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
}
.plan__amount {
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 92px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: .95;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 35%, rgba(255, 255, 255, .68));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.plan__cur {
  margin: 10px 2px 0 0;
  font-size: .42em;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.plan__per {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--muted);
}

.plan__list {
  margin: 30px 0 0;
  padding: 6px 18px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .025);
}
.plan__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--stroke);
  font-size: 15px;
  font-weight: 500;
  color: rgba(245, 245, 247, .9);
}
.plan__list li:last-child { border-bottom: 0; }
.plan__list li::after {
  content: "";
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23ff5a5a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat,
    rgba(255, 31, 31, .12);
}

.plan__cta { --h: 54px; margin-top: 24px; font-size: 16px; }

.plan__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.plan__secure svg { opacity: .7; }

/* ── Access notes under the pricing card ─────────────────── */
.membership-access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  width: min(820px, 100%);
  margin: clamp(58px, 6.4vw, 72px) auto 0;
  padding-top: 27px;
  border-top: 1px solid var(--stroke);
  text-align: left;
}
.membership-access__item { display: flex; gap: 13px; align-items: flex-start; }
.membership-access__item > svg { flex: 0 0 auto; margin-top: 1px; color: rgba(245, 245, 247, .5); }
.membership-access__title {
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--text);
}
.membership-access__copy {
  max-width: 58ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Value — editorial split: oversized type left, numbered list right
   --------------------------------------------------------- */
.value__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.value__head { max-width: 30ch; }
.value__title {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.04;
}
.value__title em {
  font-style: normal;
  background: linear-gradient(180deg, #ff5a5a, var(--red-2));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.value__sub {
  margin: 20px 0 0;
  max-width: 40ch;
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 1.65;
  color: var(--muted);
}


.value__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--stroke);
}
.value__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  padding: clamp(20px, 2.4vw, 26px) 0;
  border-bottom: 1px solid var(--stroke);
  transition: background-color .3s ease, padding-left .3s ease;
}
.value__item::before {
  content: "";
  position: absolute;
  inset: 0 -14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.value__item:hover::before { opacity: 1; }

.value__num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: rgba(245, 245, 247, .28);
  transition: color .3s ease;
}
.value__item:hover .value__num { color: var(--red); }

.value__body { position: relative; }
.value__item-title {
  margin: 0 0 5px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.3;
  color: var(--text);
}
.value__copy {
  margin: 0;
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.value__icon {
  position: relative;
  flex: 0 0 auto;
  color: rgba(245, 245, 247, .34);
  transition: color .3s ease;
}
.value__item:hover .value__icon { color: var(--red); }

/* ---------------------------------------------------------
   Showcase — curated grid, deliberately uneven scale
   --------------------------------------------------------- */
.showcase__head {
  max-width: 640px;
  margin: 0 auto clamp(38px, 4.6vw, 56px);
  text-align: center;
}
.showcase__head .eyebrow { justify-content: center; }

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  align-items: start;
}

.showcase__item {
  position: relative;
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: 9px;
  background: rgba(13, 13, 18, .6);
  overflow: hidden;
  box-shadow: 0 24px 60px -40px rgba(0, 0, 0, .95);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .45s ease, box-shadow .45s ease;
}
.showcase__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.showcase__item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 40%);
}
.showcase__item:hover {
  transform: translateY(-5px);
  border-color: var(--stroke-2);
  box-shadow: 0 34px 70px -38px rgba(0, 0, 0, 1), 0 40px 90px -60px rgba(255, 31, 31, .38);
}

/* equal tiles — 5 across × 2 rows, every image the same 16:9 box */

.showcase__note {
  margin: clamp(30px, 3.6vw, 42px) auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(12px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, .42);
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq__list {
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: rgba(255, 255, 255, .02);
  overflow: hidden;
}
.faq__item + .faq__item { border-top: 1px solid var(--stroke); }

.faq__item h3 { margin: 0; font-size: inherit; font-weight: inherit; }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px clamp(20px, 2.4vw, 30px);
  border: 0;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: clamp(15.5px, 1.25vw, 17.5px);
  font-weight: 600;
  letter-spacing: -0.012em;
  text-align: left;
  cursor: pointer;
  transition: background-color .25s ease;
}
.faq__q:hover { background: rgba(255, 255, 255, .035); }

.faq__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--stroke-2);
  border-radius: 50%;
  color: var(--muted);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .25s ease, color .25s ease, border-color .25s ease;
}
.faq__q:hover .faq__icon { color: var(--text); border-color: rgba(255, 255, 255, .28); }
.faq__q[aria-expanded="true"] .faq__icon {
  transform: rotate(180deg);
  background: rgba(255, 31, 31, .14);
  border-color: rgba(255, 60, 60, .45);
  color: #ff8b8b;
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a p {
  margin: 0;
  padding: 0 clamp(20px, 2.4vw, 30px) 24px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer {
  position: relative;
  border-top: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, .012), transparent 40%);
  padding: clamp(48px, 6vw, 72px) 0 34px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
}
.footer__logo img { height: 24px; width: auto; }
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.footer__tag {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.footer__connect {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.footer__label {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, .38);
}
.footer__label:first-child { margin-top: 0; }

.footer__email {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--stroke-2);
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}
.footer__email:hover { border-color: rgba(255, 255, 255, .3); }

.footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.footer__social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  color: var(--muted);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer__social-link svg { display: block; }
.footer__social-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border-color: var(--stroke-2);
  transform: translateY(-2px);
}
.footer__social-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--stroke);
  font-size: 13px;
  color: rgba(245, 245, 247, .48);
}
.footer__bottom p { margin: 0; }

/* ---------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------
   Animations
   --------------------------------------------------------- */
@keyframes headerIn {
  from { opacity: 0; transform: translate(-50%, -16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes packIn {
  from { opacity: 0; transform: translateY(30px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 920px) {
  .header__nav { display: none; }
  .header__burger { display: block; }
  .mobile-menu { display: flex; }

  .value__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .value__head { max-width: 34ch; }

  /* 10 items divide evenly by 2 and 5, so both breakpoints stay symmetric */
  .showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .plan__inner { border-radius: 22px; }
  .ribbon { height: 46px; font-size: 12px; }
}

@media (max-width: 560px) {
  :root { --gap: 12px; --thumb-h: clamp(90px, 18svh, 152px); --radius-thumb: 10px; }

  .header { top: 12px; width: calc(100% - 24px); }
  .header__inner { height: 58px; padding: 0 8px 0 18px; }
  .header__logo img { height: 21px; }
  .header__actions .btn--sm { display: none; }

  .hero__content { padding: 96px 16px 32px; }
  .hero__pack img { height: clamp(280px, 48svh, 480px); }
  .hero__cta { flex-direction: column; width: 100%; max-width: 340px; }
  .hero__cta .btn { width: 100%; }
  .hero__meta { gap: 6px 16px; font-size: 12.5px; }

  .niche { --niche-lift: 196px; }
  .niche__item { font-size: 15px; letter-spacing: .12em; }
  .niche__item::after { margin-inline: 20px; }
  .demo__frame { border-radius: 10px; }
  .wrap, .wrap--narrow, .cta-band__inner { width: calc(100% - 32px); }
  .cta-band__video { width: calc(100vw - 32px); border-radius: 10px; }
  .membership-access { grid-template-columns: 1fr; gap: 22px; margin-top: 30px; padding-top: 24px; }
  .membership-access__copy { font-size: 13px; }
  .footer__top { gap: 26px; }
  .footer__email { font-size: 13.5px; }
  .footer__social-link { width: 38px; height: 38px; border-radius: 11px; }

  .value__grid { gap: 26px; }
  .value__sub { margin-top: 16px; }
  
  .value__item { grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; padding: 18px 0; }
  .value__icon { display: none; }
  .value__copy { font-size: 13.5px; }

  .showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .showcase__head { margin-bottom: 30px; }
  .showcase__note { font-size: 11px; letter-spacing: .12em; }
  .footer__bottom { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .hero__pack img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scrollbar, .scrollbar__thumb { transition: none; }
  .faq__a { transition: none; }
  html { scroll-behavior: auto; }
}
