:root {
  color-scheme: light;
  --bg: #f6f6fb;
  --panel: #ffffff;
  --text: #1c1c28;
  --muted: #5f5f73;
  --primary: #3f5efb;
  --primary-dark: #2b46d9;
  --border: #e1e1f0;
  --shadow: 0 12px 24px rgba(63, 94, 251, 0.08);
}

* {
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 3.5rem 6vw 2rem;
  background: linear-gradient(120deg, #eef1ff 0%, #ffffff 60%);
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-card {
  background: var(--panel);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-card ol {
  padding-left: 1.25rem;
  color: var(--muted);
}

main {
  display: grid;
  gap: 2rem;
  padding: 2rem 6vw 4rem;
}

.panel {
  background: var(--panel);
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.field span {
  font-size: 0.9rem;
}

.field input,
textarea {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  width: 100%;
}

.field-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.field.file input {
  padding: 0.5rem;
  background: #fafaff;
}

.helper {
  color: var(--muted);
  font-size: 0.9rem;
}

.video-area {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
}

video {
  width: 100%;
  max-height: 320px;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #0f0f15;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

button,
.primary {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.primary {
  background: var(--primary);
  color: white;
  transition: background 0.2s ease;
}

.primary:hover {
  background: var(--primary-dark);
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

button:disabled,
.primary[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.status {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #f4f5ff;
  margin-bottom: 0.75rem;
}

.progress {
  width: 100%;
  height: 10px;
  background: #e6e7f6;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.2s ease;
}

.output {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

textarea {
  resize: vertical;
  min-height: 220px;
  background: #fafaff;
}

.list {
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}
