/* ============================================
   AI-CRAFTERS Pitch — Golden Cinematic Tokens
   Shared design system across all 5 variants
   ============================================ */

:root {
  /* Background spectrum */
  --bg-deep:        #000411;
  --bg-card:        rgba(255,255,255,0.03);
  --bg-card-hi:     rgba(255,255,255,0.05);
  --bg-modal:       rgba(0,4,17,0.92);

  /* Foreground spectrum */
  --fg:             #ffffff;
  --fg-soft:        rgba(255,255,255,0.85);
  --fg-mute:        rgba(255,255,255,0.55);
  --fg-faint:       rgba(255,255,255,0.40);
  --fg-ghost:       rgba(255,255,255,0.10);

  /* Accent palette */
  --gold:           #d4a73c;
  --gold-deep:      #b8860b;
  --gold-glow:      rgba(212,167,60,0.30);
  --gold-line:      rgba(212,167,60,0.40);
  --cyan:           #00E0FF;
  --purple:         #790AF8;
  --emerald:        #10b981;

  /* Shadow */
  --shadow-card:    0 50px 100px -20px rgba(212,167,60,0.20);
  --shadow-cta:     0 20px 60px -10px rgba(255,255,255,0.20);

  /* Typography */
  --font-sans:      'Inter', system-ui, sans-serif;
  --font-serif:     'Fraunces', Georgia, serif;
  --tracking-eyebrow: 0.40em;

  /* Radii */
  --r-card:         24px;
  --r-pill:         9999px;

  /* Easing */
  --ease-cinematic: cubic-bezier(.2,.8,.2,1);
  --ease-mask:      cubic-bezier(.65,0,.35,1);
}

* { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--fg);
  font-family: var(--font-sans);
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
}
.serif { font-family: var(--font-serif); }
.gold { color: var(--gold); }
.bg-deep { background: var(--bg-deep); }

/* === Eyebrow === */
.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.eyebrow::before { content: '// '; opacity: .6; }

/* === Shimmer text === */
.text-shimmer {
  background: linear-gradient(90deg, #fff 0%, var(--gold) 25%, #fff 50%, var(--cyan) 75%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

/* === Liquid blob === */
.blob {
  animation: blobMorph 18s ease-in-out infinite, blobSpin 30s linear infinite;
}
@keyframes blobMorph {
  0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  33%     { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  66%     { border-radius: 50% 50% 40% 60% / 40% 70% 30% 60%; }
}
@keyframes blobSpin { to { transform: rotate(360deg); } }

/* === Ken Burns === */
.ken-burns { animation: kenBurns 20s ease-in-out infinite alternate; }
@keyframes kenBurns {
  0%   { transform: scale(1.0)  translate(0,0);     filter: brightness(.7) contrast(1.1); }
  100% { transform: scale(1.15) translate(-2%,-2%); filter: brightness(.8) contrast(1.15); }
}

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(60px); transition: opacity 1s var(--ease-cinematic), transform 1s var(--ease-cinematic); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-mask { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease-mask); }
.reveal-mask.in { clip-path: inset(0 0 0 0); }
.reveal-stagger > * { opacity: 0; transform: translateY(40px); transition: .8s var(--ease-cinematic); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .55s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .65s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .75s; }

/* === Tilt === */
.tilt {
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-cinematic);
  will-change: transform;
}
.tilt:hover { transform: perspective(1500px) rotateX(var(--rx,0)) rotateY(var(--ry,0)) translateZ(30px); }

/* === Magnetic === */
.magnet { transition: transform .15s ease-out; }

/* === Counter === */
.counter { font-variant-numeric: tabular-nums; }

/* === Zoom Card === */
.zoom-card { overflow: hidden; }
.zoom-card img, .zoom-card .zoom-bg { transition: transform 1.2s var(--ease-cinematic); }
.zoom-card:hover img, .zoom-card:hover .zoom-bg { transform: scale(1.08); }

/* === Scroll progress bar === */
.scroll-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--purple));
  width: 0%;
  z-index: 100;
  box-shadow: 0 0 20px var(--cyan);
  transition: width .1s ease-out;
}

/* === Big outlined number === */
.num-bg {
  -webkit-text-stroke: 2px var(--gold-glow);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* === Magnetic Link === */
.link-line { position: relative; }
.link-line::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-mask);
}
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* === Divider === */
.div-shine {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

/* === Hero light beam === */
.light-beam {
  position: absolute; width: 200%; height: 200%; top: -50%; left: -50%;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg, transparent 320deg,
    rgba(212,167,60,.15) 340deg,
    rgba(212,167,60,.30) 0deg,
    rgba(212,167,60,.15) 20deg,
    transparent 40deg);
  animation: beamRotate 30s linear infinite;
  pointer-events: none;
}
@keyframes beamRotate { to { transform: rotate(360deg); } }

/* === Vignette === */
.vignette { position: relative; }
.vignette::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,4,17,.7) 80%, var(--bg-deep) 100%);
}

/* === Logo light filter === */
.logo-light { filter: brightness(0) invert(1); }

/* === Hashtag pill === */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--fg-ghost);
  border-radius: var(--r-pill);
  background: var(--bg-card);
  color: var(--fg-soft);
  font-size: 13px;
  font-weight: 500;
  transition: all .3s var(--ease-cinematic);
  cursor: pointer;
  white-space: nowrap;
}
.tag::before { content: '#'; color: var(--gold); margin-right: 4px; font-weight: 700; }
.tag:hover {
  border-color: var(--gold-line);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,167,60,.15);
}

/* === Audio player (custom) === */
.aic-audio {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-pill);
  color: var(--fg-soft);
  cursor: pointer;
  transition: all .3s var(--ease-cinematic);
}
.aic-audio:hover { background: var(--bg-card-hi); border-color: var(--gold); }
.aic-audio .play-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.aic-audio audio { display: none; }
.aic-audio .label { font-size: 13px; font-weight: 600; }
.aic-audio .duration { font-size: 11px; color: var(--fg-mute); margin-left: auto; }

/* === Lang toggle === */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--fg-ghost);
  border-radius: var(--r-pill);
  padding: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.lang-toggle button {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--fg-mute);
  cursor: pointer;
  border: 0;
  transition: all .2s ease;
  font: inherit;
}
.lang-toggle button.active {
  background: var(--gold);
  color: var(--bg-deep);
}

/* === Section number === */
.sect-num {
  font-family: var(--font-serif);
  font-weight: 300;
  color: rgba(212,167,60,.4);
  font-size: 14rem;
  line-height: 1;
  letter-spacing: -.05em;
  pointer-events: none;
}

/* === Sticky head === */
.sticky-head { position: sticky; top: 120px; }

/* === Audio-Player Disclaimer === */
.aic-audio-note {
  font-size: 10px;
  color: var(--fg-faint);
  font-style: italic;
  letter-spacing: 0.02em;
  margin: 6px 18px 0 18px;
  line-height: 1.4;
  opacity: .75;
}
.aic-audio-note::before { content: '⚑ '; opacity: .5; }
.aic-audio.on-paper + .aic-audio-note { color: rgba(33,28,22,.55); }

/* === I18N visibility === */
[data-lang]:not(.lang-active) { display: none; }
