/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0D0C10;
  --surface: #15141A;
  --surface-2: #1E1C24;
  --accent: #FF4D0D;
  --accent-dim: rgba(255, 77, 13, 0.15);
  --accent-glow: rgba(255, 77, 13, 0.08);
  --fg: #F5F0E8;
  --fg-muted: rgba(245, 240, 232, 0.55);
  --fg-subtle: rgba(245, 240, 232, 0.25);
  --border: rgba(245, 240, 232, 0.08);
  --border-bright: rgba(245, 240, 232, 0.15);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --section-pad: 100px 24px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 99px; }

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

/* === SECTION UTILITIES === */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 72px;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: var(--font-head);
}
.section-title {
  margin-bottom: 16px;
}
.section-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
em { font-style: normal; color: var(--accent); }

/* === HERO === */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 24px 0;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,77,13,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,77,13,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 80%);
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255,77,13,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 28px;
  font-family: var(--font-head);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}

/* Stats strip */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
}

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

.stat-val {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 28px 0 0;
}

/* Hero Visual — Video Factory Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-factory-card {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 0;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,77,13,0.1);
}

.vf-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.vf-dots {
  display: flex;
  gap: 6px;
}
.vf-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-bright);
}
.vf-dots span:first-child { background: #ff5f57; }
.vf-dots span:nth-child(2) { background: #febc2e; }
.vf-dots span:last-child { background: #28c840; }

.vf-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-family: var(--font-head);
  flex: 1;
}

.vf-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px #28c840;
}

.vf-workflow {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wf-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.wf-step.done {
  border-color: rgba(40,200,64,0.2);
  background: rgba(40,200,64,0.05);
}

.wf-step.active {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.wf-icon {
  color: var(--fg-muted);
  flex-shrink: 0;
}
.wf-step.done .wf-icon { color: #28c840; }
.wf-step.active .wf-icon { color: var(--accent); }

.wf-info { flex: 1; }
.wf-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-head);
}
.wf-status-text {
  font-size: 0.7rem;
  color: var(--fg-muted);
}

.wf-check { color: #28c840; }

.wf-progress {
  width: 48px;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.wf-progress-fill {
  height: 100%;
  width: 45%;
  background: var(--accent);
  border-radius: 99px;
  animation: fill-anim 1.5s ease-in-out infinite alternate;
}
@keyframes fill-anim {
  from { width: 25%; }
  to { width: 75%; }
}

.vf-topic {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.vf-topic-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  margin-bottom: 4px;
  font-family: var(--font-head);
}
.vf-topic-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  font-style: italic;
}

/* Film reel glyph */
.film-reel-glyph {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  pointer-events: none;
  opacity: 0.15;
}

.fr-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.fr-ring-1 { width: 200px; height: 200px; }
.fr-ring-2 { width: 140px; height: 140px; }
.fr-ring-3 { width: 80px; height: 80px; }

.fr-sprocket-row {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
}
.fr-sprocket-row span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent);
}
.fr-top { top: 8px; }
.fr-bottom { bottom: 8px; }

.fr-center-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.5;
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.2; }
}

/* Platform bar */
.hero-platform-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px 80px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.pf-label {
  font-size: 0.75rem;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-head);
  white-space: nowrap;
}
.pf-logos {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.pf-logo {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
  font-family: var(--font-head);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
}

/* === PIPELINE SECTION === */
.pipeline {
  padding: var(--section-pad);
  max-width: 1180px;
  margin: 0 auto;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: start;
}

.pipe-step {
  position: relative;
}

.pipe-num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  opacity: 0.7;
}

.pipe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  height: 100%;
  transition: all 0.3s ease;
}

.pipe-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.pipe-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.pipe-card h3 {
  margin-bottom: 8px;
}

.pipe-card p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

.pipe-connector {
  position: absolute;
  top: 42px;
  right: -8px;
  width: 16px;
  height: 2px;
  background: linear-gradient(to right, var(--border-bright), var(--accent-dim));
  z-index: 1;
}

/* === NICHES SECTION === */
.niches {
  position: relative;
  padding: var(--section-pad);
  background: var(--surface);
  overflow: hidden;
}

.niches-bg-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,77,13,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,77,13,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.niches .section-header {
  position: relative;
}

.niches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

.niche-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: default;
}

.niche-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.niche-bar {
  height: 3px;
  background: linear-gradient(to right, var(--accent), transparent);
}

.niche-content {
  padding: 20px 22px 22px;
}

.niche-cpm {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-head);
  margin-bottom: 10px;
}

.niche-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.niche-content p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.niche-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.niche-tags span {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  font-family: var(--font-head);
}

/* === PHILOSOPHY SECTION === */
.philosophy {
  padding: var(--section-pad);
  background: var(--bg);
}

.philosophy-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.phil-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 20px;
  line-height: 1.15;
}

.phil-body {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.phil-facts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.phil-fact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phil-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 70px;
}

.phil-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* Philosophy diagram */
.phil-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 320px;
  position: relative;
}

.phil-diagram {
  position: relative;
  width: 280px;
  height: 280px;
}

.pd-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-bright);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate-ring 20s linear infinite;
}
.pd-ring-1 { width: 280px; height: 280px; animation-duration: 20s; }
.pd-ring-2 { width: 200px; height: 200px; animation-duration: 14s; animation-direction: reverse; border-color: rgba(255,77,13,0.15); }
.pd-ring-3 { width: 120px; height: 120px; animation-duration: 9s; border-color: rgba(255,77,13,0.25); }

@keyframes rotate-ring {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.pd-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.pd-label {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.pd-sublabel {
  font-size: 0.75rem;
  color: var(--fg-muted);
  display: block;
}

.pd-spoke {
  position: absolute;
  font-size: 0.72rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--surface);
  border: 1px solid var(--border-bright);
  padding: 6px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.pd-spoke-1 { top: -20px; left: 50%; transform: translateX(-50%); }
.pd-spoke-2 { right: -10px; top: 50%; transform: translateY(-50%); }
.pd-spoke-3 { bottom: -20px; left: 50%; transform: translateX(-50%); }
.pd-spoke-4 { left: -10px; top: 50%; transform: translateY(-50%); }

/* === EARNINGS SECTION === */
.earnings {
  padding: var(--section-pad);
  background: var(--surface);
}

.earnings-timeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 900px;
  margin: 0 auto 80px;
}

.et-quarter {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}

.et-quarter-target {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.et-period {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-family: var(--font-head);
  margin-bottom: 16px;
}

.et-quarter-target .et-period { color: var(--accent); }

.et-metric {
  margin-bottom: 10px;
}

.et-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  font-family: var(--font-head);
  margin-bottom: 2px;
}

.et-val {
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--fg-muted);
}

.et-quarter-target .et-val { color: var(--fg); }

.et-bar {
  margin-top: 16px;
  height: 4px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}
.et-bar-1 { background: linear-gradient(to right, var(--accent) 15%, var(--surface-2) 15%); }
.et-bar-2 { background: linear-gradient(to right, var(--accent) 35%, var(--surface-2) 35%); }
.et-bar-3 { background: linear-gradient(to right, var(--accent) 60%, var(--surface-2) 60%); }
.et-bar-4 { background: var(--accent); }

.et-connector {
  width: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.et-connector::after {
  content: '';
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--border), var(--border-bright), var(--border));
}

/* Revenue sources */
.revenue-sources {
  max-width: 800px;
  margin: 0 auto;
}

.rs-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
  color: var(--fg-muted);
}

.rs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rs-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all 0.3s ease;
}

.rs-item:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.rs-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rs-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-head);
  margin-bottom: 4px;
}

.rs-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* === CLOSING === */
.closing {
  padding: 120px 24px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255,77,13,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 28px;
  font-family: var(--font-head);
}

.closing-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.closing-body {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 48px;
}

.closing-cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.closing-cta {
  font-size: 1rem;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .pipeline-steps { grid-template-columns: repeat(3, 1fr); }
  .pipe-connector { display: none; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 48px; }
  .phil-visual { height: 240px; }
}

@media (max-width: 768px) {
  .pipeline-steps { grid-template-columns: 1fr 1fr; }
  .niches-grid { grid-template-columns: 1fr 1fr; }
  .earnings-timeline { flex-direction: column; gap: 12px; }
  .et-connector { display: none; }
  .rs-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .pipeline-steps { grid-template-columns: 1fr; }
  .niches-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
  h2 { font-size: 1.8rem; }
}