﻿:root {
  --bg-1: #0f0f1a;
  --bg-2: #1b1c3a;
  --accent: #ff2d2d;
  --accent-soft: #ff6a6a;
  --text: #f5f5f7;
  --muted: #a6a6bd;
  --glass: rgba(20, 20, 40, 0.7);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-soft: rgba(255, 255, 255, 0.12);
  --stroke-strong: rgba(255, 255, 255, 0.2);
  --stroke-dash: rgba(255, 255, 255, 0.3);
  --surface: rgba(10, 10, 26, 0.5);
  --surface-soft: rgba(10, 10, 26, 0.6);
  --surface-strong: rgba(10, 10, 24, 0.7);
  --track: rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] {
  --bg-1: #f4f5fb;
  --bg-2: #dfe4f2;
  --accent: #e23a3a;
  --accent-soft: #ff6a6a;
  --text: #1a1a24;
  --muted: #5b6078;
  --glass: rgba(255, 255, 255, 0.82);
  --stroke: rgba(0, 0, 0, 0.08);
  --stroke-soft: rgba(0, 0, 0, 0.12);
  --stroke-strong: rgba(0, 0, 0, 0.18);
  --stroke-dash: rgba(0, 0, 0, 0.25);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-soft: rgba(255, 255, 255, 0.85);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --track: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #2a2a5a 0%, var(--bg-2) 35%, var(--bg-1) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.muted {
  color: var(--muted);
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

body[data-theme="light"] .noise {
  opacity: 0.08;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: floatIn 0.6s ease-out;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 20px;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo-link:hover {
  opacity: 0.9;
}

.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 14px rgba(255, 45, 45, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .nav a:hover {
  background: rgba(0, 0, 0, 0.06);
}

.theme-toggle {
  border: 1px solid var(--stroke-strong);
  background: transparent;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}

body[data-theme="light"] .theme-toggle {
  border-color: rgba(0, 0, 0, 0.15);
}


.headline {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
}

.subtitle {
  color: var(--muted);
  margin: 0;
  font-weight: 300;
}

.card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  animation: fadeUp 0.8s ease-out;
}

body[data-theme="light"] .card {
  box-shadow: 0 18px 40px rgba(33, 41, 68, 0.12);
}

.content h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 28px);
}

.content p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.content a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--stroke-dash);
}

.content code {
  font-family: "Courier New", monospace;
  background: var(--surface-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}

.section {
  margin-top: 24px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.section h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--text);
}

.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.feature-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--stroke);
}

.feature-card strong {
  display: block;
  margin-bottom: 6px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.steps li {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--stroke);
}

.link-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.link-card {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--stroke);
  background: var(--surface);
  transition: transform 0.2s ease, border 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--stroke-strong);
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.faq-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--stroke);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  margin-bottom: 6px;
}

.faq-answer {
  color: var(--muted);
  line-height: 1.6;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-label {
  font-size: 14px;
  color: var(--muted);
}

.field-input {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.field-input input {
  width: 100%;
  padding: 14px 16px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 45, 45, 0.2);
}

.field-input .btn {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #3c3c6a, #24244a);
  color: var(--text);
  border: 1px solid var(--stroke-soft);
}

body[data-theme="light"] .btn.primary {
  background: linear-gradient(135deg, #ffffff, #e4e8f5);
  color: var(--text);
  border-color: var(--stroke);
}

.btn.accent {
  background: linear-gradient(135deg, var(--accent), #ff7b6b);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 45, 45, 0.35);
}

.btn.small {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
  width: fit-content;
}

.btn.wide {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke-strong);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status {
  margin-top: 12px;
  font-size: 14px;
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--stroke-strong);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

.video-info {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-preview {
  display: flex;
  gap: 16px;
  align-items: center;
}

.video-preview img {
  width: 160px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--stroke-strong);
}

.video-meta h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.video-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.formats {
  display: grid;
  gap: 18px;
}

.format-group h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.format-list {
  display: grid;
  gap: 10px;
}

.format-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface-soft);
  transition: border 0.2s ease, transform 0.2s ease;
}

.format-option:hover {
  border-color: var(--stroke-strong);
  transform: translateY(-1px);
}

.format-option input {
  accent-color: var(--accent);
}

.format-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.format-text span {
  font-size: 14px;
}

.format-text small {
  color: var(--muted);
}

.actions {
  display: grid;
  gap: 12px;
}

.prep-note {
  font-size: 13px;
  color: var(--muted);
}

.ready-note {
  font-size: 13px;
  color: #9ef0b2;
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.share-bar a {
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--stroke-soft);
  background: var(--surface);
}

.progress {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff2d2d, #ff7b6b, #ffc7b2);
  transition: width 0.3s ease;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.progress-text {
  font-size: 13px;
}

.eta-text {
  font-size: 13px;
}

.btn.download {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  background: var(--surface-strong);
  color: var(--muted);
  border: 1px solid var(--stroke);
}

.btn.download.disabled {
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.btn.download.ready {
  background: linear-gradient(135deg, #1ecf73, #35e58a);
  color: #05120b;
  box-shadow: 0 12px 30px rgba(40, 196, 120, 0.35);
  animation: pulse 1.6s ease-in-out infinite;
}

.hidden {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 196, 120, 0.35);
  }
  50% {
    box-shadow: 0 0 48px 12px rgba(40, 196, 120, 0.55);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 196, 120, 0.35);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 720px) {
  .field-input {
    flex-direction: row;
  }

  .field-input input {
    flex: 1;
  }

  .formats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .video-preview {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-preview img {
    width: 100%;
    height: auto;
  }
}
