/* ClipForge Landing Page — Dark Gaming Aesthetic */

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

:root {
  --bg-primary: #080810;
  --bg-secondary: #0d0d1a;
  --bg-card: #111122;
  --bg-elevated: #16162e;
  --accent: #00e5a0;
  --accent-dim: #00e5a033;
  --accent-hover: #00ffb3;
  --text-primary: #f0f0f8;
  --text-secondary: #8888aa;
  --text-muted: #555577;
  --border: #1a1a2e;
  --border-light: #22223a;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

html { font-size: 16px; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1rem;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 16, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-mark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--accent);
  color: #080810;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: radial-gradient(ellipse at 70% 50%, #00e5a012 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
  width: fit-content;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.title-accent {
  color: var(--accent);
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-clip-counter {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.counter-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.counter-number {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}
.counter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Stream Monitor Widget */
.hero-right {
  position: relative;
}
.stream-monitor {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 229, 160, 0.05);
}
.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.monitor-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.monitor-live {
  background: #ff3b5c;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
}
.monitor-stream {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.stream-viewer {
  margin-bottom: 0.75rem;
}
.viewer-count {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.clip-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  width: fit-content;
}
.clip-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.clip-label {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}
.monitor-clips {
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.clip-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.clip-thumb {
  width: 56px;
  height: 40px;
  background: linear-gradient(135deg, #1a1a35, #252548);
  border-radius: 6px;
  flex-shrink: 0;
}
.clip-thumb.generating {
  background: linear-gradient(90deg, #1a1a35 25%, #252548 50%, #1a1a35 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.clip-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.clip-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
}
.clip-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.clip-status {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.clip-status.posted {
  background: rgba(0, 229, 160, 0.15);
  color: var(--accent);
}
.clip-status.processing {
  background: rgba(255, 200, 0, 0.15);
  color: #ffc800;
  animation: pulse 1.5s infinite;
}

/* Problem Section */
.problem {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.problem-header {
  margin-bottom: 3rem;
}
.problem-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s;
}
.problem-card:hover {
  border-color: var(--border-light);
}
.problem-icon {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.problem-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.problem-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.problem-quote {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}
.problem-quote p {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.quote-attr {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Agent Section */
.agent {
  padding: 6rem 2rem;
}
.agent-inner {
  max-width: 900px;
  margin: 0 auto;
}
.agent-header {
  text-align: center;
  margin-bottom: 4rem;
}
.agent-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}
.agent-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}
.agent-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.timeline-step:last-child {
  border-bottom: none;
}
.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  flex-shrink: 0;
  width: 60px;
}
.step-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.step-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Preview Section */
.preview {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.preview-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.preview-header {
  margin-bottom: 2.5rem;
}
.preview-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.preview-interface {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
}
.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-section h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-family: 'Syne', sans-serif;
}
.source-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  margin-bottom: 0.4rem;
}
.source-row.active {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
}
.source-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}
.source-icon.twitch { background: #9146ff; }
.source-icon.yt { background: #ff0000; }
.live-badge {
  margin-left: auto;
  background: #ff3b5c;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.offline-badge {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.setting-row:last-child { border-bottom: none; }
.setting-val {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.8rem;
}
.preview-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.preview-stream {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #0a0a14;
  aspect-ratio: 16/9;
}
.stream-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
}
.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.viewer-icon { color: var(--text-muted); }
.stream-placeholder p {
  font-size: 1rem;
  color: var(--text-secondary);
}
.stream-placeholder span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.stream-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
}
.ai-analysis {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.analysis-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
}
.analysis-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}
.analysis-fill {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--accent), #00ffb3);
  border-radius: 2px;
  animation: fillPulse 3s ease-in-out infinite;
}
@keyframes fillPulse {
  0%, 100% { width: 60%; }
  50% { width: 80%; }
}
.analysis-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.preview-clips { }
.clips-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: 'Syne', sans-serif;
  margin-bottom: 0.75rem;
}
.clips-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.clip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}
.clip-thumbnail {
  position: relative;
  flex-shrink: 0;
}
.thumb-placeholder {
  width: 80px;
  height: 52px;
  background: linear-gradient(135deg, #1a1a35, #252548);
  border-radius: 6px;
}
.thumb-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.65rem;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}
.clip-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.clip-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.clip-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Platforms Section */
.platforms {
  padding: 6rem 2rem;
}
.platforms-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.platforms-header {
  text-align: center;
  margin-bottom: 3rem;
}
.platforms-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}
.platforms-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.platform-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.platform-icon.tiktok { background: #ff0050; color: white; }
.platform-icon.youtube { background: #ff0000; color: white; }
.platform-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.platform-icon.twitter { background: #000; color: white; }
.platform-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.platform-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.platform-stat {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

/* Closing Section */
.closing {
  padding: 8rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.closing-accent {
  color: var(--accent);
}
.closing-body {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}
.closing-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.closing-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Footer */
.footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: 'Syne', sans-serif;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.status-indicator {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { display: none; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-interface { grid-template-columns: 1fr; }
  .preview-sidebar { display: none; }
}
@media (max-width: 768px) {
  .hero { padding-top: 6rem; }
  .hero-title { font-size: 2.2rem; }
  .problem-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: 1fr; }
  .closing-stats { flex-direction: column; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .hero-clip-counter { gap: 1.5rem; }
  .counter-number { font-size: 1.4rem; }
}