/* =============================================
   ReelForge — Cinematic AI Music Video Landing
   ============================================= */

/* --- Variables --- */
:root {
  --bg:           #09090d;
  --bg-alt:       #0f0f14;
  --bg-card:      #111118;
  --amber:        #c8a853;
  --amber-dim:    #9c7f3f;
  --amber-glow:   rgba(200,168,83,0.12);
  --stone:        #ede8df;
  --stone-mid:    #a89f8e;
  --stone-dim:   #5a5348;
  --border:       rgba(200,168,83,0.15);
  --border-dim:   rgba(255,255,255,0.06);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--stone);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--amber-dim); border-radius: 2px; }
::selection { background: var(--amber); color: var(--bg); }

/* --- SVG Grain Overlay --- */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.45;
  filter: url(#grain);
  animation: grainShift 0.35s steps(1) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-2%, -3%); }
  20%  { transform: translate(3%, 1%); }
  30%  { transform: translate(-1%, 4%); }
  40%  { transform: translate(4%, -2%); }
  50%  { transform: translate(-3%, 2%); }
  60%  { transform: translate(2%, -4%); }
  70%  { transform: translate(-4%, 1%); }
  80%  { transform: translate(1%, 3%); }
  90%  { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 7vw 3rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 25% 60%, rgba(200,168,83,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(200,168,83,0.04) 0%, transparent 60%),
    linear-gradient(160deg, #0d0d13 0%, #09090d 40%, #07070b 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(200,168,83,0.012) 3px,
      rgba(200,168,83,0.012) 4px
    );
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8vw, 9rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--stone);
  display: flex;
  flex-direction: column;
}

.hero-title-line { display: block; }

.hero-title-accent {
  color: var(--amber);
  font-style: italic;
  font-weight: 400;
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0.5rem;
}

.hero-lede {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--stone-mid);
  font-weight: 300;
  margin-bottom: 1.5rem;
  max-width: 44ch;
}

.hero-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-dim);
  font-weight: 400;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-dim);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 3rem 0 0;
}

.stat:first-child { padding-left: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--amber);
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-dim);
  font-weight: 400;
}

.stat-sep {
  width: 1px;
  height: 3rem;
  background: var(--border-dim);
  margin-right: 3rem;
  align-self: center;
  flex-shrink: 0;
}

/* Frame corners */
.frame-corner {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.35;
  z-index: 3;
}
.frame-corner::before,
.frame-corner::after {
  content: '';
  position: absolute;
  background: var(--amber);
}
.frame-corner::before { width: 100%; height: 1px; }
.frame-corner::after  { width: 1px; height: 100%; }

.frame-corner-tl { top: 1.5rem; left: 2rem; }
.frame-corner-tl::before { top: 0; left: 0; }
.frame-corner-tl::after  { top: 0; left: 0; }

.frame-corner-tr { top: 1.5rem; right: 2rem; }
.frame-corner-tr::before { top: 0; right: 0; }
.frame-corner-tr::after  { top: 0; right: 0; }

.frame-corner-bl { bottom: 1.5rem; left: 2rem; }
.frame-corner-bl::before { bottom: 0; left: 0; }
.frame-corner-bl::after  { bottom: 0; left: 0; }

.frame-corner-br { bottom: 1.5rem; right: 2rem; }
.frame-corner-br::before { bottom: 0; right: 0; }
.frame-corner-br::after  { bottom: 0; right: 0; }

/* --- MANIFESTO --- */
.manifesto {
  padding: 7rem 7vw;
  background: var(--bg-alt);
}

.manifesto-rule {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 4rem;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--stone);
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.manifesto-quote p { margin-bottom: 1rem; }
.manifesto-quote p:last-child { margin-bottom: 0; }

.manifesto-byline {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4rem;
  font-weight: 400;
}

/* --- WHY / COMPETITORS --- */
.why {
  padding: 7rem 7vw;
  background: var(--bg);
}

.section-header {
  margin-bottom: 4rem;
}

.section-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--stone);
  letter-spacing: -0.02em;
}

.competitor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
}

.competitor-card {
  background: var(--bg);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.3s ease;
}

.competitor-card:hover { background: var(--bg-alt); }

.competitor-card-active {
  background: var(--bg-card);
  border: 1px solid var(--amber-dim);
  position: relative;
}

.competitor-card-active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amber-glow);
  pointer-events: none;
}

.competitor-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--stone);
  letter-spacing: -0.01em;
}

.competitor-desc {
  font-size: 0.88rem;
  color: var(--stone-mid);
  line-height: 1.55;
  font-weight: 300;
}

.competitor-verdict {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-dim);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-dim);
  font-weight: 400;
}

.competitor-card-active .competitor-verdict {
  color: var(--amber);
  border-top-color: var(--border);
}

/* --- HOW --- */
.how {
  padding: 7rem 7vw;
  background: var(--bg-alt);
}

.steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 4rem;
}

.step {
  flex: 1;
  padding: 2.5rem 2rem 2.5rem 0;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--amber);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--stone);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--stone-mid);
  line-height: 1.7;
  font-weight: 300;
}

.step-connector {
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-top: 2.5rem;
}

.step-connector::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.how-note {
  font-size: 0.85rem;
  color: var(--stone-dim);
  font-style: italic;
  font-family: var(--font-display);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* --- SHOWCASE --- */
.showcase {
  padding: 7rem 7vw;
  background: var(--bg);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
}

.showcase-card {
  background: var(--bg-alt);
  padding: 2rem;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  transition: background 0.3s ease;
}

.showcase-card:hover { background: var(--bg-card); }

.showcase-card-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 420px;
}

.showcase-vignette {
  position: relative;
  z-index: 2;
}

.showcase-card-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--amber);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.showcase-card-desc {
  font-size: 0.82rem;
  color: var(--stone-mid);
  line-height: 1.6;
  font-weight: 300;
}

.showcase-card-corner {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  opacity: 0.4;
}

.showcase-note {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--stone-dim);
  font-style: italic;
  font-family: var(--font-display);
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* --- CLOSING --- */
.closing {
  padding: 7rem 7vw;
  background: var(--bg-alt);
  text-align: center;
}

.closing-rule {
  width: 60px;
  height: 1px;
  background: var(--amber);
  margin: 0 auto 4rem;
  opacity: 0.5;
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--stone);
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.closing-sub {
  font-size: 1rem;
  color: var(--stone-mid);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.closing-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.3s ease;
  margin-bottom: 4rem;
}

.closing-cta:hover {
  background: var(--stone);
}

/* --- FOOTER --- */
.footer {
  padding: 2.5rem 7vw;
  background: var(--bg);
  border-top: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--stone);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-dim);
  font-weight: 400;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--stone-dim);
  font-weight: 300;
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--stone-dim);
  opacity: 0.5;
  flex-shrink: 0;
}

/* --- HERO CTA --- */
.hero-cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.hero-cta:hover {
  background: var(--stone);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200, 168, 83, 0.25);
}

/* --- FEATURES --- */
.features {
  padding: 7rem 7vw;
  background: var(--bg);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(200, 168, 83, 0.015) 80px,
      rgba(200, 168, 83, 0.015) 81px
    );
  pointer-events: none;
}

.features-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
}

.feature-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-alt);
}

.feature-icon {
  color: var(--amber);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--stone);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--stone-mid);
  line-height: 1.7;
  font-weight: 300;
}

/* --- SHOWCASE DEMO PLAYER --- */
.showcase-demo {
  margin-bottom: 3rem;
}

.demo-screen {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.demo-player {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, #0a0a12 0%, #111118 50%, #0d0d14 100%);
}

.demo-player::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(200, 168, 83, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 70% 40%, rgba(200, 168, 83, 0.03) 0%, transparent 60%);
}

.demo-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(200, 168, 83, 0.15);
  border: 1px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.demo-player:hover .demo-play-btn {
  opacity: 1;
  transform: scale(1.05);
}

.demo-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-mid);
  font-weight: 400;
  position: relative;
  z-index: 2;
}

.demo-progress {
  height: 3px;
  background: var(--border-dim);
  width: 100%;
  position: relative;
}

.demo-bar {
  height: 100%;
  width: 35%;
  background: var(--amber);
  opacity: 0.6;
}

.demo-caption {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--stone-dim);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 300;
}

/* --- SHOWCASE ATMOSPHERIC BACKGROUNDS --- */
.showcase-card {
  position: relative;
  overflow: hidden;
}

.showcase-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.6s ease;
}

.showcase-card:hover .showcase-bg {
  transform: scale(1.04);
}

/* Scene 1: Bar — dark amber with grain */
.showcase-card-atmos-1 .showcase-bg {
  background:
    radial-gradient(ellipse 80% 80% at 40% 30%, rgba(180, 120, 50, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 70%, rgba(100, 70, 30, 0.3) 0%, transparent 60%),
    linear-gradient(160deg, #0f0c08 0%, #1a140c 40%, #0d0a06 100%);
}

/* Scene 2: Performance — tungsten portrait warmth */
.showcase-card-atmos-2 .showcase-bg {
  background:
    radial-gradient(ellipse 50% 60% at 50% 40%, rgba(200, 160, 80, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 30% 80%, rgba(80, 60, 30, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, #110f0c 0%, #1c1610 50%, #0e0b07 100%);
}

/* Scene 3: Narrative — wet street neon */
.showcase-card-atmos-3 .showcase-bg {
  background:
    radial-gradient(ellipse 40% 50% at 70% 40%, rgba(60, 40, 100, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(30, 80, 120, 0.25) 0%, transparent 60%),
    linear-gradient(160deg, #080a12 0%, #0c0f1a 50%, #090b14 100%);
}

/* Scene 4: Abstract — layered light */
.showcase-card-atmos-4 .showcase-bg {
  background:
    radial-gradient(ellipse 60% 60% at 60% 50%, rgba(200, 168, 83, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 30% 60%, rgba(100, 80, 40, 0.15) 0%, transparent 50%),
    linear-gradient(140deg, #0a0d12 0%, #0f1118 50%, #090b0e 100%);
}

/* Scene 5: Wide — horizon establishing */
.showcase-card-atmos-5 .showcase-bg {
  background:
    radial-gradient(ellipse 80% 30% at 50% 80%, rgba(200, 168, 83, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 20% at 50% 20%, rgba(180, 140, 60, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #0c0e14 0%, #111318 50%, #0a0b10 100%);
}

.showcase-vignette {
  position: relative;
  z-index: 2;
}

/* --- FAQ --- */
.faq {
  padding: 7rem 7vw;
  background: var(--bg-alt);
}

.faq-inner {
  max-width: 860px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item:first-child {
  border-top: 1px solid var(--border-dim);
}

.faq-q {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--stone);
  letter-spacing: -0.01em;
}

.faq-a {
  font-size: 0.9rem;
  color: var(--stone-mid);
  line-height: 1.7;
  font-weight: 300;
  max-width: 65ch;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .competitor-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .showcase-card-large { grid-column: span 2; }
  .steps { flex-direction: column; gap: 0; }
  .step-connector { display: none; }
  .step { padding: 2rem 0; border-bottom: 1px solid var(--border-dim); }
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero {
    padding: 4rem 6vw 2.5rem;
    min-height: auto;
    padding-top: 6rem;
  }

  .hero-stats {
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-sep { display: none; }
  .stat { padding: 0; }

  .competitor-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-card-large { grid-column: span 1; grid-row: span 1; min-height: 280px; }

  .features-grid { grid-template-columns: 1fr; }

  .manifesto, .why, .features, .how, .showcase, .closing {
    padding: 5rem 6vw;
  }

  .frame-corner { display: none; }

  .footer { flex-direction: column; align-items: flex-start; }
}