/* =====================================================
   Chella — AI Video Editor for Creators
   Dark creator aesthetic: deep blacks, coral accent,
   Syne display + DM Sans body
   ===================================================== */

:root {
  --bg:          #0a0a0d;
  --bg-2:        #111116;
  --bg-3:        #18181f;
  --bg-4:        #1f1f28;
  --border:      rgba(255,255,255,0.07);
  --border-soft: rgba(255,255,255,0.04);

  --accent:      #ff4d2e;
  --accent-2:    #ff7a5a;
  --accent-glow: rgba(255,77,46,0.22);

  --text:        #f0eee8;
  --text-2:      #a09e9a;
  --text-3:      #666460;

  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10,10,13,0.75);
  border-bottom: 1px solid var(--border-soft);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-login:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  padding: 13px 28px;
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-4);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}
.btn-lg { font-size: 17px; padding: 16px 36px; }
.btn-sm { font-size: 13px; padding: 9px 20px; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 5%; }
.section { padding: 120px 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(255,77,46,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(100,80,200,0.05) 0%, transparent 50%),
    var(--bg);
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,77,46,0.1);
  border: 1px solid rgba(255,77,46,0.25);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero-title {
  font-size: clamp(40px, 5.5vw, 70px);
  margin-bottom: 24px;
}
.hero-title .highlight { color: var(--accent); }
.hero-subtitle {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 16px;
}
.platform-badges {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.platform-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}
.platform-badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-tiktok  { background: #ff0050; }
.dot-ig      { background: #c13584; }
.dot-yt      { background: #ff0000; }

/* Hero editor mockup */
.hero-visual { position: relative; }
.editor-mock {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.editor-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-4);
  border-bottom: 1px solid var(--border);
}
.editor-dots { display: flex; gap: 6px; }
.editor-dot { width: 10px; height: 10px; border-radius: 50%; }
.editor-dot.red   { background: #ff5f57; }
.editor-dot.amber { background: #febc2e; }
.editor-dot.green { background: #28c840; }
.editor-filename { font-size: 12px; color: var(--text-3); }
.editor-preview {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a24 0%, #0f0f18 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.editor-preview-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 1;
}
.play-btn {
  width: 56px; height: 56px;
  background: rgba(255,77,46,0.15);
  border: 2px solid rgba(255,77,46,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.play-btn:hover {
  background: rgba(255,77,46,0.25);
  border-color: var(--accent);
}
.editor-caption-chip {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: #fff;
  backdrop-filter: blur(8px);
}
.editor-waveform {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 36px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 16px 6px;
  opacity: 0.35;
}
.wave-bar { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 3px; }
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.tool-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}
.tool-btn:hover, .tool-btn.active {
  background: var(--bg-4);
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
}
.tool-btn.active { color: var(--accent); border-color: rgba(255,77,46,0.3); }
.editor-timeline {
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.timeline-track {
  height: 26px;
  border-radius: 5px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.timeline-fill {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.track-video  { background: rgba(255,77,46,0.2); border-right: 2px solid var(--accent); color: var(--accent-2); width: 70%; }
.track-audio  { background: rgba(100,180,255,0.12); border-right: 2px solid rgba(100,180,255,0.5); color: rgba(100,180,255,0.8); width: 84%; }
.track-captions { background: rgba(180,130,255,0.12); border-right: 2px solid rgba(180,130,255,0.5); color: rgba(180,130,255,0.8); width: 60%; }
.ai-suggestion {
  position: absolute;
  top: -14px; right: -10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(255,77,46,0.4);
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ── Stats bar ── */
.stats-bar {
  padding: 36px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.stat-num span { color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ── How it works ── */
.how {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.how-header { text-align: center; margin-bottom: 72px; }
.how-header .section-subtitle { margin: 0 auto; max-width: 480px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, rgba(255,77,46,0.3) 50%, var(--border) 100%);
}
.step-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, transform 0.2s;
}
.step-card:hover { border-color: rgba(255,77,46,0.3); transform: translateY(-4px); }
.step-number {
  width: 52px; height: 52px;
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 24px;
  position: relative; z-index: 1;
}
.step-card:hover .step-number { border-color: var(--accent); background: rgba(255,77,46,0.08); }
.step-icon { font-size: 28px; margin-bottom: 20px; }
.step-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: 15px; color: var(--text-2); line-height: 1.65; }

/* ── Features ── */
.features { padding: 120px 0; }
.features-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.feature-card:hover { border-color: rgba(255,77,46,0.25); background: var(--bg-3); transform: translateY(-3px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(255,77,46,0.1);
  border: 1px solid rgba(255,77,46,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  transition: background 0.2s;
}
.feature-card:hover .feature-icon { background: rgba(255,77,46,0.18); }
.feature-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature-desc { font-size: 15px; color: var(--text-2); line-height: 1.65; }
.feature-tags { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.feature-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-4);
  color: var(--text-3);
  border: 1px solid var(--border);
  letter-spacing: 0.04em;
}

/* ── Pricing ── */
.pricing { padding: 120px 0; background: var(--bg-2); }
.pricing-header { text-align: center; margin-bottom: 64px; }
.pricing-header .section-subtitle { margin: 0 auto; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(255,77,46,0.07) 0%, var(--bg-3) 50%);
}
.pricing-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.pricing-plan {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 12px;
}
.pricing-price {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.pricing-price sup { font-size: 22px; vertical-align: top; margin-top: 8px; font-weight: 600; color: var(--text-2); }
.pricing-price .period { font-size: 16px; font-weight: 400; color: var(--text-3); font-family: 'DM Sans', sans-serif; }
.pricing-desc { font-size: 14px; color: var(--text-2); margin-bottom: 24px; min-height: 40px; }
.pricing-divider { height: 1px; background: var(--border); margin-bottom: 24px; }
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  margin-bottom: 32px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.check { color: var(--accent); font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.pricing-cta { width: 100%; text-align: center; justify-content: center; }
.pricing-note { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 10px; }

/* ── Audience ── */
.audience { padding: 120px 0; }
.audience-header { text-align: center; margin-bottom: 64px; }
.audience-header .section-subtitle { margin: 0 auto; }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.audience-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.audience-card:hover { border-color: rgba(255,77,46,0.3); transform: translateY(-4px); }
.audience-emoji { font-size: 40px; margin-bottom: 20px; display: block; }
.audience-type { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.audience-desc { font-size: 15px; color: var(--text-2); line-height: 1.65; }
.audience-stats {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.audience-stat { display: flex; flex-direction: column; gap: 2px; }
.audience-stat-num { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; color: var(--accent); }
.audience-stat-label { font-size: 12px; color: var(--text-3); }

/* ── Closing CTA ── */
.closing {
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255,77,46,0.09) 0%, transparent 65%);
  z-index: 0;
}
.closing-content { position: relative; z-index: 1; }
.closing-title {
  font-size: clamp(38px, 5vw, 64px);
  max-width: 720px;
  margin: 0 auto 24px;
}
.closing-subtitle {
  font-size: 18px;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto 48px;
}
.closing-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.closing-note { font-size: 13px; color: var(--text-3); margin-top: 20px; }

/* ── Footer ── */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.footer-brand span { color: var(--accent); }
.footer-tagline { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--text-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-2); }
.footer-copy { font-size: 13px; color: var(--text-3); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-actions, .hero-badge { justify-content: center; }
  .hero-subtitle { margin: 0 auto 40px; }
  .platform-badges { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .features-header { grid-template-columns: 1fr; gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 80px; }
  .btn-lg { font-size: 15px; padding: 14px 28px; }
  .pricing-card { padding: 32px 24px; }
  .feature-card { padding: 28px; }
  .step-card { padding: 28px 24px; }
}
