/* ==========================================
   HOMEPAGE
   ========================================== */

main {
  padding-top: 80px;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s var(--ease-out);
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s var(--ease-out);
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.08em;
  background: var(--accent);
  opacity: 0.3;
  border-radius: 999px;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
  animation: fadeInUp 0.7s 0.1s var(--ease-out) backwards;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s 0.2s var(--ease-out) backwards;
}

.hero-trust {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s 0.3s var(--ease-out) backwards;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

.hero-trust-item svg {
  color: var(--accent);
}

/* ===== Hero Visual ===== */
.hero-visual {
  margin-top: 4rem;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s 0.4s var(--ease-out) backwards;
}

.editor-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6),
              0 0 60px rgba(212, 255, 59, 0.05);
  position: relative;
  overflow: hidden;
}

.editor-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 255, 59, 0.4), transparent);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.mockup-dots {
  display: flex;
  gap: 0.375rem;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-hover);
}

.mockup-title {
  margin-left: 1rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.mockup-body {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1rem;
  min-height: 320px;
}

.mockup-clips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  align-content: start;
}

.mockup-clip {
  aspect-ratio: 16/9;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.mockup-clip-1 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.mockup-clip-2 { background: linear-gradient(135deg, #831843, #ec4899); }
.mockup-clip-3 { background: linear-gradient(135deg, #14532d, #22c55e); }
.mockup-clip-4 { background: linear-gradient(135deg, #78350f, #f59e0b); }

.mockup-clip-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.mockup-clip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
}

.mockup-clip-time {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 0.6875rem;
  color: white;
  font-family: var(--font-mono);
  z-index: 1;
}

.mockup-preview {
  background: var(--bg-tertiary);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mockup-preview-video {
  flex: 1;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #ec4899);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.mockup-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
}

.mockup-timeline {
  height: 60px;
  background: var(--bg-secondary);
  padding: 0.5rem;
  display: flex;
  gap: 4px;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
}

.mockup-track {
  flex: 1;
  height: 100%;
  background: var(--bg-elevated);
  border-radius: 4px;
  position: relative;
  display: flex;
  gap: 2px;
  padding: 4px;
}

.mockup-segment {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.mockup-segment.s2 { background: linear-gradient(135deg, #ec4899, #f43f5e); flex: 1.5; }
.mockup-segment.s3 { background: linear-gradient(135deg, #22c55e, #84cc16); flex: 0.8; }
.mockup-segment.s4 { background: linear-gradient(135deg, #f59e0b, #f97316); flex: 1.2; }

.mockup-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  left: 35%;
  z-index: 2;
  box-shadow: 0 0 8px var(--accent-glow);
}

@media (max-width: 768px) {
  .mockup-body { grid-template-columns: 1fr; min-height: auto; }
  .editor-mockup { padding: 0.5rem; }
}

/* ===== Section bases ===== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ===== How It Works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), var(--border-default), transparent);
  z-index: 0;
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

.step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  position: relative;
}

.step-number::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-dim);
  opacity: 0;
  transition: opacity 0.3s;
}

.step:hover .step-number::before {
  opacity: 1;
}

.step h3 {
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
}

.feature:hover::before { opacity: 1; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.feature h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ===== Use Cases ===== */
.use-cases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

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

@media (max-width: 480px) {
  .use-cases { grid-template-columns: 1fr; }
}

.use-case {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s;
}

.use-case:hover {
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.use-case-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.use-case h4 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.use-case p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ===== CTA Section ===== */
.cta-section {
  margin: 6rem 0 0;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(212, 255, 59, 0.1), transparent 60%);
  pointer-events: none;
}

.cta-section .section-title {
  position: relative;
  z-index: 1;
}

.cta-section p {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin: 1rem auto 2rem;
  max-width: 540px;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}
