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

:root {
  --bg: #0c0c10;
  --bg-2: #111118;
  --bg-3: #16161f;
  --fg: #f0ede6;
  --fg-muted: #8b8b96;
  --fg-dim: #4a4a56;
  --accent: #ff5722;
  --accent-dim: rgba(255, 87, 34, 0.12);
  --border: #1e1e28;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 12, 16, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-tag {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

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

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

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-weight: 500;
}

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

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

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--fg);
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* === UI WINDOW (CSS mockup) === */
.ui-window {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,87,34,0.08), 0 0 60px rgba(255,87,34,0.06);
}

.ui-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}

.ui-dots {
  display: flex;
  gap: 6px;
}

.ui-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg-dim);
}

.ui-dots span:first-child { background: #ff5f57; }
.ui-dots span:nth-child(2) { background: #febc2e; }
.ui-dots span:last-child { background: #28c840; }

.ui-title {
  font-size: 12px;
  color: var(--fg-muted);
  margin-left: 4px;
}

.ui-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ui-upload {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(255,87,34,0.03);
}

.ui-upload-icon { margin-bottom: 10px; }

.ui-upload-text {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.ui-upload-sub {
  font-size: 11px;
  color: var(--fg-dim);
}

.ui-status { display: flex; flex-direction: column; gap: 6px; }

.ui-status-label {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ui-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.ui-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff8c42);
  border-radius: 2px;
  transition: width 1s ease;
}

.ui-status-meta {
  font-size: 12px;
  color: var(--accent);
}

/* === CLIP CARDS === */
.ui-clips { display: flex; flex-direction: column; gap: 8px; }

.ui-clip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  transition: all 0.2s;
}

.ui-clip-active {
  border-color: var(--accent);
  background: rgba(255,87,34,0.08);
}

.ui-clip-thumb {
  width: 56px;
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2a1a0e, #3d2010);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.ui-clip-thumb-2 { background: linear-gradient(135deg, #0e1a2a, #103d28); }
.ui-clip-thumb-3 { background: linear-gradient(135deg, #1a0e2a, #28103d); }

.ui-clip-time {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  font-family: monospace;
  position: absolute;
  bottom: 3px;
  right: 4px;
}

.ui-clip-play {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-45deg);
}

.ui-clip-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ui-clip-title {
  font-size: 12px;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-clip-score {
  font-size: 11px;
  color: #4cff8a;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.ui-clip-score-bar {
  display: inline-block;
  width: 50px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4cff8a, #2d8a4e);
}

.ui-clip-score-low { color: var(--fg-muted); }

/* === HERO STATS === */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 28px;
  justify-content: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-val {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--fg-muted);
}

/* === SECTION SHARED === */
.section-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.section-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 60px;
}

/* === HOW === */
.how {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 48px;
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.how-step { padding: 0 16px; }

.how-step-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.how-step-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.how-step-body {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}

.how-step-sep { display: flex; align-items: center; padding-top: 36px; }

/* === FEATURES === */
.features { padding: 100px 48px; }

.features-inner { max-width: 1200px; margin: 0 auto; }

.features-head { margin-bottom: 60px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--bg-2); }

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

.feature-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-body {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === MANIFESTO === */
.manifesto {
  padding: 100px 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-mark {
  display: inline-flex;
  margin-bottom: 40px;
}

.manifesto-quote {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--fg);
  letter-spacing: -0.02em;
  font-style: normal;
  margin-bottom: 28px;
}

.manifesto-attr {
  font-size: 14px;
  color: var(--fg-muted);
}

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

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

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

.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 28px;
  text-align: center;
}

.closing-sub {
  font-size: 20px;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.65;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-dim);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-visual {
    display: none;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how-step-sep { display: none; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .how { padding: 60px 24px; }
  .features { padding: 60px 24px; }
  .manifesto { padding: 60px 24px; }
  .closing { padding: 80px 24px; }
  .footer { padding: 28px 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 36px; }
  .closing-headline { font-size: 48px; }
}