/* ============================================
   ClipForge — Theme CSS
   ============================================ */

:root {
  --bg: #0C0C0E;
  --bg-2: #111115;
  --bg-3: #16161B;
  --fg: #F0EDE6;
  --fg-2: #9896A0;
  --fg-3: #5C5A66;
  --accent: #FF6B00;
  --accent-dim: rgba(255, 107, 0, 0.12);
  --border: rgba(240, 237, 230, 0.07);
  --tiktok: #FF0040;
  --reels: #E1306C;
  --shorts: #FF0000;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(24px, 5vw, 64px);
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(20px);
}
.nav-inner { width: 100%; max-width: 1200px; margin: 0 auto; }
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  padding: 100px clamp(24px, 5vw, 80px) 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-bg-glow {
  position: absolute;
  top: 20%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.headline-accent {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #FF9B3C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 460px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--fg);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ---- HERO RIGHT (CLIP VISUAL) ---- */
.clip-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.long-form-bar {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
.bar-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.bar-track {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  height: 6px;
}
.bar-segment {
  flex: 1;
  border-radius: 3px;
}
.seg-1 { background: rgba(255,107,0,0.25); }
.seg-2 { background: rgba(255,107,0,0.5); }
.seg-3 { background: var(--accent); }
.seg-4 { background: rgba(255,107,0,0.35); }
.seg-5 { background: rgba(255,107,0,0.15); }
.bar-duration {
  font-size: 0.75rem;
  color: var(--fg-3);
}
.arrow-flow {
  position: absolute;
  top: 55%;
  right: 50%;
  transform: translate(50%, -50%);
}
.clip-output { }
.clip-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.clips-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.clip-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease;
}
.clip-card:hover { transform: translateY(-3px); }
.clip-thumb {
  height: 80px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  position: relative;
  overflow: hidden;
}
.clip-card-1 .clip-thumb { background: linear-gradient(160deg, #1a0a10 0%, #2d0d18 100%); }
.clip-card-1 .clip-thumb::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 20px;
  background: linear-gradient(transparent, rgba(255,0,64,0.4));
}
.clip-card-2 .clip-thumb { background: linear-gradient(160deg, #1a0a12 0%, #28091a 100%); }
.clip-card-2 .clip-thumb::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 20px;
  background: linear-gradient(transparent, rgba(225,48,108,0.4));
}
.clip-card-3 .clip-thumb { background: linear-gradient(160deg, #0f0a14 0%, #1a0f22 100%); }
.clip-card-3 .clip-thumb::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 20px;
  background: linear-gradient(transparent, rgba(255,0,0,0.3));
}
.clip-meta {
  padding: 8px 10px;
}
.clip-title-bar {
  height: 5px;
  background: var(--fg-3);
  border-radius: 3px;
  margin-bottom: 5px;
  opacity: 0.5;
}
.clip-sub-bar {
  height: 4px;
  background: var(--fg-3);
  border-radius: 3px;
  opacity: 0.25;
  width: 70%;
}
.clip-badge {
  position: absolute;
  top: 6px; right: 6px;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.clip-card-1 .clip-badge { background: rgba(255,0,64,0.2); color: #FF4472; }
.clip-card-2 .clip-badge { background: rgba(225,48,108,0.2); color: #E1306C; }
.clip-card-3 .clip-badge { background: rgba(255,0,0,0.2); color: #FF4444; }

/* ---- FEATURES ---- */
.features {
  padding: 100px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--border);
}
.features-inner { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 600px;
  line-height: 1.2;
}
.section-header.centered .section-title { max-width: 100%; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s ease;
}
.feature-card:hover { border-color: rgba(255,107,0,0.25); }
.feat-icon {
  margin-bottom: 20px;
}
.feat-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 12px;
}
.feat-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--fg-2);
  margin-bottom: 24px;
}
.feat-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.feat-stat-n {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
}
.feat-stat-label {
  font-size: 0.78rem;
  color: var(--fg-3);
}

/* ---- HOW IT WORKS ---- */
.howitworks {
  padding: 100px clamp(24px, 5vw, 80px);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.howitworks-inner { max-width: 1200px; margin: 0 auto; }
.pipeline-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.step-2 { background: var(--bg); border-color: rgba(255,107,0,0.2); }
.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 16px;
}
.step-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--fg-2);
  margin-bottom: 20px;
}
.step-connector {
  width: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
}
.step-connector::after {
  content: '';
  width: 100%;
  height: 1px;
  background: var(--border);
  position: relative;
}
.step-connector::before {
  content: '→';
  position: absolute;
  color: var(--fg-3);
  font-size: 1.2rem;
  z-index: 1;
}

/* SV boxes */
.sv-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--fg-2);
}
.sv-source { border-color: rgba(255,107,0,0.3); }
.sv-ai { border-color: rgba(255,107,0,0.15); }
.sv-icon-wrap { color: var(--accent); }
.ai-particles {
  display: flex;
  gap: 4px;
  align-items: center;
}
.ap {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: blink 1.5s ease-in-out infinite;
}
.ap-2 { animation-delay: 0.2s; }
.ap-3 { animation-delay: 0.4s; }
.ap-4 { animation-delay: 0.6s; }
.ap-5 { animation-delay: 0.8s; }
@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.sv-platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sv-p {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.p-tiktok { background: rgba(255,0,64,0.15); color: #FF4472; }
.p-reels { background: rgba(225,48,108,0.15); color: #E1306C; }
.p-shorts { background: rgba(255,0,0,0.15); color: #FF4444; }

/* ---- PIPELINE ---- */
.pipeline {
  padding: 100px clamp(24px, 5vw, 80px);
}
.pipeline-inner { max-width: 1200px; margin: 0 auto; }
.pipeline-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.p-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--fg);
  margin-bottom: 16px;
  line-height: 1.3;
}
.p-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--fg-2);
  margin-bottom: 28px;
}
.p-features { display: flex; flex-direction: column; gap: 14px; }
.pf-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--fg-2);
}
.pf-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Platform cards */
.platform-cards { display: flex; flex-direction: column; gap: 16px; }
.platform-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.pc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.pc-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--fg); }
.pc-status { font-size: 0.7rem; color: var(--accent); font-weight: 500; }
.pc-clips { display: flex; flex-direction: column; gap: 10px; }
.pc-clip { display: flex; gap: 12px; align-items: center; }
.pc-thumb {
  width: 48px; height: 64px;
  border-radius: 6px;
  flex-shrink: 0;
}
.tiktok-thumb { background: linear-gradient(160deg, #1a0a10, #2d0d18); }
.tiktok-thumb-2 { background: linear-gradient(160deg, #0d0508, #1a080f); }
.reels-thumb { background: linear-gradient(160deg, #1a0a12, #28091a); }
.shorts-thumb { background: linear-gradient(160deg, #0f0a14, #1a0f22); }
.pc-info { flex: 1; min-width: 0; }
.pc-title { font-size: 0.75rem; color: var(--fg-3); margin-bottom: 6px; }
.pc-bar { height: 3px; background: var(--bg-3); border-radius: 2px; }
.pc-fill { height: 100%; border-radius: 2px; }
.pf-tiktok { background: linear-gradient(90deg, var(--tiktok), #FF4472); }
.pf-reels { background: linear-gradient(90deg, var(--reels), #F06292); }
.pf-shorts { background: linear-gradient(90deg, var(--shorts), #FF4444); }

/* ---- CLOSING ---- */
.closing {
  padding: 120px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 64px;
}
.closing-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 20px;
}
.closing-accent {
  color: var(--accent);
}
.closing-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 440px;
}
.closing-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  flex-shrink: 0;
}
.closing-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(255,107,0,0.2);
  padding: 6px 14px;
  border-radius: 100px;
}
.factory-dots {
  display: flex;
  gap: 8px;
}
.fd {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: factory-pulse 1.8s ease-in-out infinite;
}
.fd-2 { animation-delay: 0.25s; }
.fd-3 { animation-delay: 0.5s; }
.fd-4 { animation-delay: 0.75s; }
.fd-5 { animation-delay: 1s; }
.fd-6 { animation-delay: 1.25s; }
@keyframes factory-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}
.closing-metric {
  text-align: right;
}
.cm-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 4px;
}
.cm-label {
  font-size: 0.75rem;
  color: var(--fg-3);
}

/* ---- FOOTER ---- */
.footer {
  padding: 40px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--fg);
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-3);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: 1fr; }
  .pipeline-content { grid-template-columns: 1fr; }
  .closing-inner { flex-direction: column; align-items: flex-start; }
  .closing-visual { align-items: flex-start; }
  .pipeline-steps { flex-direction: column; }
  .step-connector { display: none; }
}
@media (max-width: 600px) {
  .clips-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .clip-meta { display: none; }
  .clip-thumb { height: 60px; }
  .hero { padding-top: 80px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .closing-metric { text-align: left; }
  .closing-visual { width: 100%; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
}