/* ══════════════════════════════════════════════════════
   WEBDIME — style.css  |  Concept E: "The Swiss Grid"
   3 colors:  #000000  ·  #f0f2f5  ·  #004de6
   Layout: Architectural Grid, masking reveals.
   ══════════════════════════════════════════════════════ */

:root {
  --bg:     #000000;
  --ink:    #f0f2f5;
  --blue:   #004de6;
  --grid:   rgba(0, 77, 230, 0.25);
  --ink-40: rgba(240, 242, 245, 0.40);
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  -webkit-tap-highlight-color: transparent; 
}

/* ── Continuous full-page vertical grid spine ── */
/* This is a fixed overlay that runs through ALL sections creating one unified grid */
/* Layer 2: Above globe (z-index:0), BELOW all site content (z-index:2+) */
#page-grid-spine {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.spine-v-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--grid);
  opacity: 0;
  transition: opacity 2s ease 0.5s;
}

body.loader-finished .spine-v-line {
  opacity: 1;
}


html {
  width: 100%;
  height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
}

/* The scroll container that wraps hero + all sections */
#scroll-wrap {
  position: relative;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════════════════
   LOADER
   ══════════════════════════════════════════════════════ */
/* During load, lock scroll so loader animation is not disrupted */
body.loading { overflow: hidden; }
/* After loader finishes, restore scrolling */
body.loader-finished { overflow-y: auto; overflow-x: hidden; }

#loader-container {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#loader-container.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   HERO / GRID WRAPPER
   ══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: transparent;
  overflow: hidden;
  z-index: 2; /* Above fixed #page-grid-spine at z-index:1 */
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   THE SWISS GRID LINES
   ══════════════════════════════════════════════════════ */
.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.v-line, .h-line {
  position: absolute;
  background: var(--grid);
  transition: transform 1.8s cubic-bezier(0.8, 0, 0.2, 1);
}

/* Vertical lines — HIDDEN: #page-grid-spine already draws these as a fixed overlay.
   Keeping them visible would double the grid line opacity in the hero only. */
.v-line { display: none; }

/* Horizontal lines — unique to hero, keep these */
.h-line { height: 1px; width: 100%; left: 0; transform-origin: left; transform: scaleX(0); background: var(--grid); position: absolute; }
.h-1 { top: 120px; }
.h-2 { bottom: 120px; }

body.loader-finished .h-line { transform: scaleX(1); transition: transform 1.8s cubic-bezier(0.8, 0, 0.2, 1); }

/* ══════════════════════════════════════════════════════
   GRID CONTENT STRUCTURE
   ══════════════════════════════════════════════════════ */
.grid-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.grid-cell {
  position: absolute;
  pointer-events: auto;
}

/* ── LOGO (Top Right) ── */
.cell-logo {
  top: 0;
  left: 50vw;
  width: calc(42vw);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px; /* Gap between logo and right grid line */
}

.cell-logo a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle blur behind the logo to maintain contrast over the globe */
.cell-logo a::before {
  content: '';
  position: absolute;
  width: 130px;
  height: 55px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease 1s;
}

body.loader-finished .cell-logo a::before {
  opacity: 1;
}

.cell-logo img { 
  width: 104px; 
  height: auto; 
  opacity: 0; 
  /* Increased duration from 0.4s to 1.2s and used a smoother cubic-bezier for a slow, organic scale */
  transition: opacity 0.8s ease 1s, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1); 
}
body.loader-finished .cell-logo img { opacity: 0.9; }
.cell-logo img:hover { 
  opacity: 1; 
  transform: scale(1.05); 
}

/* ── MAIN LEFT PANE (Eyebrow, Heading, Sub, CTA) ── */
.cell-left-pane {
  top: 120px;
  bottom: 120px;
  left: 8vw;
  width: 42vw;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers all content vertically in the block */
  padding-left: 24px;
  gap: 32px;
}

/* Eyebrow */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: -10px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 2px;
  height: 16px;
  background: linear-gradient(
    180deg,
    rgba(0, 77, 230, 0.1) 0%,
    rgba(0, 77, 230, 1) 50%,
    rgba(0, 77, 230, 0.1) 100%
  );
  background-size: 100% 200%;
  animation: lineShimmerVert 3s infinite linear;
}

@keyframes lineShimmerVert {
  0%   { background-position: 0 200%; }
  100% { background-position: 0 -200%; }
}

.eyebrow-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
  opacity: 0;
  transition: opacity 0.8s ease 1.2s;
}
body.loader-finished .eyebrow-text { opacity: 1; }

/* Heading */
.hero__heading {
  display: flex;
  flex-direction: column;
  gap: 0px;
  position: relative;
  top: 30px; /* Nudges only the heading downward */
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

/* Masking reveal logic */
.mask-container {
  overflow: hidden;
  padding-bottom: 8px; /* Room for descenders */
}

.hero__line {
  display: block;
  color: var(--ink);
  transform: translateY(110%); /* Hidden below the mask */
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__line--accent {
  color: var(--ink-40);
}

.hero__line.line-revealed {
  transform: translateY(0);
}

/* ── Premium Fluid Loop (Hero) ── */
#fluid-word {
  display: inline-flex;
  position: relative;
}

.fluid-letter {
  display: inline-block;
  position: relative;
  /* Soft feathered liquid fill: the transition zone (35%→65%) mimics a liquid surface */
  background-image: linear-gradient(
    to top,
    rgba(0, 77, 230, 0.85) 0%,
    rgba(0, 77, 230, 0.5) 35%,
    rgba(255,255,255,0.12) 65%,
    var(--ink-40) 100%
  );
  background-size: 100% 210%;
  background-position: 0 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: liquidFill 6s infinite ease-in-out;
}

/* Static (non-animated) letters keep original color */
.fluid-letter-static {
  display: inline-block;
  color: var(--ink-40);
}

@keyframes liquidFill {
  0%, 20%, 100% {
    background-position: 0 100%;
  }
  40%, 60% {
    background-position: 0 5%;
  }
}

/* Subheading */
.hero__sub {
  position: relative;
  top: 30px; /* Nudges only the subheading downward */
  font-family: 'Inter', sans-serif;
  font-size: 19px; /* Reduced to 70% of the massive size */
  font-weight: 400;
  color: var(--ink-40);
  line-height: 1.5;
  max-width: 500px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.8s var(--ease) 1.5s, transform 0.8s var(--ease) 1.5s;
}
body.loader-finished .hero__sub { opacity: 1; transform: translateX(0); }

/* CTA Actions Container */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px; /* Reverted to prevent layout shift */
  opacity: 0;
  transform: translateY(50px); /* Move only the CTA downward visually */
  transition: opacity 0.8s ease 1.7s, transform 0.8s ease 1.7s;
}
body.loader-finished .hero__actions { opacity: 1; transform: translateY(40px); }

/* Base Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  outline: none;
  cursor: pointer;
}

.btn-text {
  position: relative;
  z-index: 2;
}

/* ── Primary CTA: The Liquid Blob ── */
.btn--blob {
  padding: 0 40px;
  background: var(--blue);
  color: #fff;
  /* Organic base shape */
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blobMorph 4s ease-in-out infinite;
  /* Subtle 3D Liquid Glass Shadows */
  box-shadow: 
    0 8px 20px rgba(0, 77, 230, 0.1), 
    inset 2px 2px 6px rgba(255, 255, 255, 0.2), 
    inset -2px -2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

@keyframes blobMorph {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
  67% { border-radius: 30% 70% 30% 70% / 50% 60% 40% 50%; }
}

.btn--blob:hover {
  transform: scale(1.08);
  box-shadow: 
    0 10px 25px rgba(0, 77, 230, 0.15),
    inset 4px 4px 10px rgba(255, 255, 255, 0.25), 
    inset -4px -4px 12px rgba(0, 0, 0, 0.15);
  /* Speed up warp on hover */
  animation: blobMorph 1.5s ease-in-out infinite;
}

/* ── Secondary CTA: The Liquid Dot-to-Line ── */
.btn--drip {
  background: transparent;
  color: var(--ink-40);
  padding: 0 16px;
  border-radius: 0;
  transition: color 0.4s;
}

/* The resting glowing dot */
.btn--drip::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50px;
  transform: translateX(-50%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 6px rgba(0, 77, 230, 0.5);
}

.btn--drip .btn-text {
  position: relative;
  z-index: 2;
}

.btn--drip:hover {
  color: var(--ink);
}

/* Elastic stretch into a liquid underline */
.btn--drip:hover::after {
  width: calc(100% - 32px);
  height: 2px;
  bottom: 6px;
  box-shadow: 0 0 10px rgba(0, 77, 230, 0.6);
}


/* ══════════════════════════════════════════════════════
   DEMO SECTION — THE SPOTLIGHT STAGE
   Same grid, same palette, same language as hero.
   ══════════════════════════════════════════════════════ */

.demo-section {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: 30vh;
  background: transparent;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Continuous grid lines — exact same positions as hero */
.demo-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.demo-v-line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--grid);
}

.demo-h-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--grid);
}

/* ── Two-column inner layout — mirrors hero exactly ── */
.demo-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 8vh calc(8vw + 24px);
  display: grid;
  grid-template-columns: calc(42vw - 24px) 1fr;
  gap: 0;
  align-items: center;
  box-sizing: border-box;
}

/* ── Left column: Heading block (same width as hero left pane) ── */
.demo-heading-block {
  position: relative;
  flex: 0 0 auto;
  width: 30vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Section eyebrow — matches hero eyebrow style ── */
.demo-eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.demo-eyebrow-tag::before {
  content: '';
  display: block;
  width: 2px;
  height: 16px;
  background: linear-gradient(
    180deg,
    rgba(0, 77, 230, 0.1) 0%,
    rgba(0, 77, 230, 1) 50%,
    rgba(0, 77, 230, 0.1) 100%
  );
  background-size: 100% 200%;
  animation: lineShimmerVert 3s infinite linear;
}

.demo-eyebrow-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
}

/* Main heading — same font scale as hero */
.demo-heading {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 3.8vw, 60px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.demo-head-line {
  display: block;
  color: var(--ink);
  font-style: normal;
}

em.demo-head-accent {
  color: var(--ink-40);
  font-style: italic;
}

/* ── Ultra-Premium Kinetic Text Slice Reveal ── */
.slice-word {
  position: relative;
  display: inline-block;
  white-space: pre;
}

/* The invisible spacer to maintain document flow */
.slice-spacer {
  opacity: 0;
  display: inline-block;
}

/* The sliced halves */
.slice-layer {
  position: absolute;
  left: 0;
  top: 0;
  color: inherit;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.2s ease-out;
  will-change: transform, opacity, filter;
}

/* Top half */
.slice-top {
  clip-path: polygon(0 0, 100% 0, 100% 51%, 0 51%);
  transform: translateY(-20px) translateX(-10px) skewX(-20deg);
  opacity: 0;
  filter: blur(8px);
}

/* Bottom half */
.slice-bottom {
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
  transform: translateY(20px) translateX(10px) skewX(20deg);
  opacity: 0;
  filter: blur(8px);
}

/* Revealed State */
.slice-word.is-revealed .slice-top,
.slice-word.is-revealed .slice-bottom {
  transform: translateY(0) translateX(0) skewX(0);
  opacity: 1;
  filter: blur(0);
}

/* Maintain original spacing for text */
.slice-word.is-space {
  width: 0.25em;
}

/* ── Card Scrambler dud character styling ── */
.dud {
  color: var(--ink-40);
}

/* ── 1. Cinematic Blur Reveal ── */
.cinematic-word {
  display: inline-block;
  transform: translateY(40px);
  opacity: 0;
  filter: blur(12px);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}
.cinematic-word.is-revealed {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}
.cinematic-word.is-space {
  width: 0.25em;
}

/* ── Premium 3D Flip Reveal (Pricing) ── */
.flip-word {
  display: inline-block;
  perspective: 1000px;
}
.flip-char {
  display: inline-block;
  transform-origin: bottom;
  transform: rotateX(-90deg) translateY(20px);
  opacity: 0;
  filter: blur(12px);
  transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              opacity 1.2s ease-out, 
              filter 1.2s ease-out;
  will-change: transform, opacity, filter;
}
.flip-char.is-revealed {
  transform: rotateX(0deg) translateY(0);
  opacity: 1;
  filter: blur(0);
}
.flip-char.is-space {
  width: 0.25em;
}

/* ── 2. 3D Rolling Dial ── */
.dial-char {
  display: inline-block;
  opacity: 0;
  transform: rotateX(90deg) translateY(-10px);
  transform-origin: bottom center;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
  will-change: transform, opacity;
}
.dial-char.is-dialed {
  opacity: 1;
  transform: rotateX(0) translateY(0);
}

/* ── 3. Digital Slot Machine ── */
.slot-strip {
  will-change: transform;
}

/* The subheading — same as hero sub */
.demo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-40);
  line-height: 1.6;
}

/* ── Subtle VIEW PLANS CTA — mirrors hero btn--drip at smaller scale ── */
.demo-cta {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0 2px 8px 2px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-40);
  text-decoration: none;
  transition: color 0.4s;
  margin-top: 8px;
}

/* Resting glowing dot */
.demo-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50px;
  transform: translateX(-50%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 5px rgba(0, 77, 230, 0.5);
}

.demo-cta:hover {
  color: var(--ink);
}

/* Stretch dot into underline on hover */
.demo-cta:hover::after {
  width: calc(100% - 4px);
  height: 1px;
  bottom: 0;
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(0, 77, 230, 0.4);
}

/* ── Right column: Spotlight Stage ── */
.spotlight-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Breathing room from the 50vw center grid line */
  padding-left: 4vw;
}

/* Inner wrapper: card stacked above controls */
.spotlight-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Card container — fills right column, capped at comfortable size */
.spotlight-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 10;
}

.spotlight-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #080808;
  border: 1px solid var(--grid);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 20px 40px -12px rgba(0, 77, 230, 0.05);
}

.spotlight-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

/* Screen / preview area */
.spotlight-card__screen {
  position: relative;
  flex: 1;
  background: #030303;
  overflow: hidden;
}

/* Placeholder content — muted, like hero's dimmed aesthetic */
.spotlight-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.placeholder-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(240, 242, 245, 0.1);
}

.placeholder-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(240, 242, 245, 0.30);
  letter-spacing: 0.05em;
}

/* Card label bar — same grid border language */
.spotlight-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--grid);
}

.spotlight-card__type {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-40);
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

/* Waving horizontal line below text */
.spotlight-card__type::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  /* SVG Sine Wave encoded with #004de6 (var(--blue)) */
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1.5 Q 3 0 6 1.5 T 12 1.5' fill='none' stroke='%23004de6' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  animation: cardWave 1.2s linear infinite;
  opacity: 0.6;
}

@keyframes cardWave {
  0% { background-position: 0 0; }
  100% { background-position: 12px 0; }
}

/* ── Controls row: dots left, arrows right — sits below the card ── */
.spotlight-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 520px;
}

/* Stage Indicator Dots */
.spotlight-indicator {
  display: flex;
  gap: 10px;
  align-items: center;
}

.indicator-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(240, 242, 245, 0.2);
  transition: background 0.4s, transform 0.4s;
}

.indicator-dot.is-active {
  background: var(--blue);
  transform: scale(1.3);
}

/* Arrow buttons — inline, small, clean */
.spotlight-arrows {
  display: flex;
  gap: 8px;
}

.spotlight-nav {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--grid);
  border-radius: 50%;
  color: var(--ink-40);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.spotlight-nav:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--ink);
  background: rgba(0, 77, 230, 0.06);
}

.spotlight-nav:disabled {
  opacity: 0.2;
  cursor: default;
}

/* ── Scroll reveal (for items outside .section-reveal) ── */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

/* film-card reveal — merged with its layout definition above */
.film-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.film-card:nth-child(2).is-visible {
  transition-delay: 0.15s;
}

/* ══════════════════════════════════════════════════════
   SECTION-LEVEL REVEAL — sections are ALWAYS opaque so hero
   canvas never bleeds through. Inner items animate via JS.
   ══════════════════════════════════════════════════════ */
.section-reveal {
  opacity: 1;
  position: relative;
  z-index: 2; /* Above fixed #page-grid-spine at z-index:1 */
}

.section-reveal.is-section-visible {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════
   PRICING SECTION: THE TERMINAL (Concept C)
   ══════════════════════════════════════════════════════ */
.pricing-section {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: 30vh;
  background: transparent;
  z-index: 2;
  overflow: hidden;
}


/* ── Inner: Two-column layout matching demo/hero ── */
.pricing-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 8vh calc(8vw + 24px) 4vh;
  display: grid;
  grid-template-columns: 25vw 1fr;
  gap: 8vw;
  align-items: start;
  box-sizing: border-box;
}

/* ── Header (left column) ── */
.pricing-header {
  position: sticky;
  top: 8vh;
}

.pricing-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--blue);
  margin: 0 0 16px 0;
  text-shadow: 0 4px 24px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,0.8);
}

.pricing-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 3.8vw, 60px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-shadow: 0 4px 32px rgba(0,0,0,1), 0 2px 8px rgba(0,0,0,0.8);
}

.pricing-sub {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-40);
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 4px 24px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,0.8);
  display: inline-block;
}

.pricing-sub::before {
  content: '';
  position: absolute;
  inset: -16px -8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: radial-gradient(ellipse 90% 70% at 40% 50%, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 40% 50%, black 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.pricing-terminal {
  position: relative;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--grid);
}

.pricing-trust-note {
  margin-top: 24px;
  padding: 0 16px;
  border-left: 2px solid rgba(0, 140, 255, 0.35);
}

.pricing-trust-note p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  background: linear-gradient(
    105deg,
    rgba(180, 180, 180, 0.6) 0%,
    rgba(200, 200, 200, 0.65) 30%,
    rgba(255, 255, 255, 0.5) 43%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.5) 57%,
    rgba(200, 200, 200, 0.65) 70%,
    rgba(180, 180, 180, 0.6) 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: trust-shimmer 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes trust-shimmer {
  0%   { background-position: 150% center; }
  50%  { background-position: -50% center; }
  100% { background-position: 150% center; }
}

/* A single row */
.terminal-row {
  border-bottom: 1px solid var(--grid);
  transition: background 0.4s ease;
  overflow: hidden;
}

.terminal-row--active {
  background: rgba(0, 77, 230, 0.03);
}

/* Clickable header row */
.terminal-row__header {
  display: grid;
  grid-template-columns: 40px 1fr auto 32px;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.3s;
}

.terminal-row__header:hover {
  opacity: 0.8;
}

.terminal-row__index {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue);
  opacity: 0.6;
}

.terminal-row__name {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-shadow: 0 4px 24px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,0.8);
  display: inline-block;
  justify-self: start;
}

.terminal-row__name::before {
  content: '';
  position: absolute;
  inset: -10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.terminal-row__price {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
  justify-content: flex-end;
  text-shadow: 0 4px 24px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,0.8);
}

.price-prefix {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--ink-40);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 4px;
}

/* Currency symbol — slightly smaller, superscript feel */
.price-currency {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-40);
  line-height: 1;
  padding-top: 2px;
}

/* The price number — slot machine target */
.price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  display: inline-block;
}

.terminal-row__toggle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--ink-40);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--grid);
  border-radius: 50%;
  transition: all 0.4s var(--ease);
}

.terminal-row--active .terminal-row__toggle {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

/* Accordion body (collapses and expands) */
.terminal-row__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s ease,
              opacity 0.4s ease;
  opacity: 0;
  padding-bottom: 0;
}

.terminal-row--active .terminal-row__body {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 20px;
}

.terminal-row__desc {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px 60px;
  line-height: 1.6;
  text-shadow: 0 4px 24px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,0.8);
  display: inline-block;
}

.terminal-row__desc::before {
  content: '';
  position: absolute;
  inset: -12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.terminal-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
  border: 1px solid rgba(0, 77, 230, 0.3);
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 20px;
  margin-left: 60px;
  box-shadow: 0 0 10px rgba(0, 77, 230, 0.15);
}

/* Feature list inside accordion */
.terminal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.terminal-features li {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  text-shadow: 0 4px 24px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,0.8);
}

.terminal-features li::after {
  content: '';
  position: absolute;
  inset: -8px -12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.terminal-features li::before {
  content: '';
  flex-shrink: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.6;
}

.terminal-btn {
  margin-left: 60px;
}

/* Price currency/amount sizes shared */
.price-currency {
  font-size: 20px;
  font-weight: 500;
  margin-top: 2px;
  opacity: 0.6;
}

.price-amount {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}


/* ══════════════════════════════════════════════════════
   HIDE DEFAULT SCROLLBAR
   ══════════════════════════════════════════════════════ */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* ══════════════════════════════════════════════════════
   CIRCULAR SECTION NAV
   Inactive  = slow, quiet idle spin (4s)
   Active    = ultra-fast shimmer loop (0.12s) — looks like a glowing ring
   Hover     = reveals section name label only
   ══════════════════════════════════════════════════════ */
.section-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 9000;
}

.section-nav__item {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  outline: none;
  text-decoration: none;
}

/* ── The spinning ring ── */
.section-nav__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(0, 77, 230, 0)    0%,
    rgba(0, 77, 230, 0.4) 55%,
    rgba(0, 77, 230, 0.9) 85%,
    rgba(200, 220, 255, 1) 100%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #fff calc(100% - 1px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #fff calc(100% - 1px));
  animation: navRingSpin 4s linear infinite;
  opacity: 0.3;
  transition: opacity 0.6s ease, filter 0.6s ease;
}

.section-nav__item.is-active .section-nav__ring {
  animation: navRingSpin 0.12s linear infinite;
  opacity: 1;
  filter: blur(0.4px) drop-shadow(0 0 4px rgba(0, 77, 230, 0.9));
  background: conic-gradient(
    from 0deg,
    rgba(0, 77, 230, 0.3)  0%,
    rgba(0, 77, 230, 1)   60%,
    rgba(180, 210, 255, 1) 100%
  );
}

/* HOVER: ring brightens slightly — label slides in */
.section-nav__item:hover .section-nav__ring {
  opacity: 0.65;
}

@keyframes navRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Label tooltip — hidden by default, shows on hover only ── */
.section-nav__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-40);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

/* Show label only on hover — NOT on active state */
.section-nav__item:hover .section-nav__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Active state label: slightly brighter on hover */
.section-nav__item.is-active:hover .section-nav__label {
  color: var(--blue);
}

/* ── Film card offset (2nd card staggered) ── */
.film-card--offset {
  margin-top: 40px;
}
