/* ========================================================================
   LOGO ANIMATOR SUBPAGE – Standalone Styles
   Uses same design tokens as landing/style.css
   ======================================================================== */

:root {
  --bg-primary: #080a0f;
  --bg-secondary: #0e1117;
  --bg-card: rgba(22, 24, 34, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #e8eaed;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  --accent: #4ade80;
  --accent-glow: rgba(74, 222, 128, 0.15);
  --accent-hover: #22c55e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --danger: #ef4444;
  --warning: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #22c55e);
  color: #0a0f0a;
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(74, 222, 128, 0.35);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---- Glass Panel ---- */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.12); }

/* ---- Text Gradient ---- */
.text-gradient {
  background: linear-gradient(135deg, var(--accent), #22d3ee, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Glass Badge ---- */
.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ========================================================================
   NAVBAR
   ======================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.glass-nav { background: rgba(8, 10, 15, 0.7); }

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.la-hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding-bottom: 40px;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text { flex: 1; }

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-item i {
  color: var(--accent);
  font-size: 0.9rem;
}

.hero-visual {
  flex: 0 0 360px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--accent-glow);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ---- Fade-in animations ---- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================================
   DEMO VIDEO (Hero Visual)
   ======================================================================== */
.demo-video-wrapper {
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ========================================================================
   UPLOAD SECTION
   ======================================================================== */
.upload-section {
  padding: 40px 0 80px;
  position: relative;
}

.upload-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.upload-wrapper,
.processing-wrapper,
.preview-wrapper,
.error-wrapper {
  max-width: 580px;
  margin: 0 auto;
}

.upload-card,
.processing-card,
.preview-card,
.error-card {
  padding: 36px;
}

/* ---- Dropzone ---- */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 28px;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(74, 222, 128, 0.04);
}

.dropzone-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  transition: var(--transition);
}

.dropzone:hover .dropzone-icon,
.dropzone.dragover .dropzone-icon {
  color: var(--accent);
}

.dropzone-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.dropzone-link {
  cursor: pointer;
  font-weight: 600;
}

.dropzone-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- File Preview ---- */
.file-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.file-preview img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
}

.file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

.file-size {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.file-remove {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.file-remove:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ---- Settings Panel ---- */
.settings-panel {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}

.setting-group {
  flex: 1;
}

.setting-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.toggle-group {
  display: flex;
  gap: 8px;
}

.toggle-btn {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.toggle-btn:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.toggle-btn.active {
  background: var(--accent-glow);
  border-color: rgba(74, 222, 128, 0.3);
  color: var(--accent);
}

/* ---- CTA ---- */
.cta-btn {
  margin-bottom: 16px;
}

.cta-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cta-hint i {
  margin-right: 4px;
}

/* ========================================================================
   PROCESSING STEPPER
   ======================================================================== */
.processing-card {
  text-align: center;
}

.processing-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.processing-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.stepper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 360px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 20px;
  position: relative;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.step-line {
  width: 2px;
  height: 32px;
  background: var(--border);
  transition: var(--transition);
}

.step-content {
  padding-top: 10px;
  padding-bottom: 24px;
  text-align: left;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  transition: var(--transition);
}

.step-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition);
}

/* Step states */
.step.active .step-circle {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
  animation: stepPulse 2s ease-in-out infinite;
}

.step.active .step-content h4 { color: var(--accent); }
.step.active .step-content p { color: var(--text-secondary); }
.step.active .step-line { background: var(--accent); }

.step.done .step-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: #0a0f0a;
}

.step.done .step-circle i::before { content: "\f00c"; } /* fa-check */
.step.done .step-content h4 { color: var(--text-primary); }
.step.done .step-content p { color: var(--text-secondary); }
.step.done .step-line { background: var(--accent); }

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
}

/* ========================================================================
   PREVIEW & DOWNLOAD
   ======================================================================== */
.preview-card {
  text-align: center;
}

.preview-success-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.preview-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  background: #000;
}

.video-frame video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

.preview-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* ---- Download Link Box ---- */
.download-link-box {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.download-link-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.download-link-label i {
  color: var(--accent);
  margin-right: 6px;
}

.download-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.download-link-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', monospace;
  font-size: 0.82rem;
  outline: none;
}

.download-link-input:focus {
  border-color: var(--accent);
}

.download-copy-btn {
  padding: 10px 14px;
  flex-shrink: 0;
}

.download-link-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.download-link-hint i {
  color: var(--warning);
  margin-right: 4px;
}

/* ========================================================================
   ERROR STATE
   ======================================================================== */
.error-card {
  text-align: center;
}

.error-icon {
  font-size: 3rem;
  color: var(--danger);
  margin-bottom: 16px;
}

.error-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.error-message {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Cancelled Toast ---- */
.cancelled-toast {
  max-width: 500px;
  margin: 0 auto 32px;
  padding: 14px 20px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  color: var(--warning);
  font-size: 0.9rem;
  text-align: center;
  animation: fadeInUp 0.5s ease;
}

.cancelled-toast i {
  margin-right: 8px;
}

/* ========================================================================
   HOW IT WORKS SECTION
   ======================================================================== */
.how-it-works-section {
  padding: 80px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #22c55e);
  color: #0a0f0a;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: 16px;
  margin: 0 auto 18px;
  font-size: 1.4rem;
  color: var(--accent);
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ========================================================================
   CTA SECTION
   ======================================================================== */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  padding: 48px 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1024px) {
  .hero-content { flex-direction: column; text-align: center; }
  .hero-visual { flex: none; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.4rem; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .section-header h2 { font-size: 1.8rem; }
  .settings-panel { flex-direction: column; gap: 16px; }
  .upload-card, .processing-card, .preview-card, .error-card { padding: 24px; }
  .demo-video-wrapper { display: none; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.8rem; }
  .container { padding: 0 16px; }
  .hero-trust { flex-direction: column; align-items: center; gap: 12px; }
  .steps-grid { grid-template-columns: 1fr; }
  .error-actions { flex-direction: column; }
}
