:root {
  --bg: #0c0c14;
  --bg-card: #13131f;
  --bg-elevated: #1a1a2a;
  --border: #2a2a3d;
  --text: #f0f0f5;
  --text-muted: #9b9bb0;
  --primary: #7c3aed;
  --primary-hover: #8b5cf6;
  --accent: #ec4899;
  --success: #34d399;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(236, 72, 153, 0.08), transparent);
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  transition: color 0.15s;
}

.nav a:hover { color: var(--text); }

.header-actions { display: flex; gap: 10px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.925rem;
  font-weight: 560;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

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

.btn-outline:hover { border-color: #4a4a65; background: var(--bg-elevated); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 13px 24px; font-size: 1rem; border-radius: 12px; }

.btn-block { width: 100%; }

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.btn-icon:hover { color: var(--text); border-color: #4a4a65; }

/* Hero */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 560;
  margin-bottom: 22px;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(90deg, #c4b5fd, #f9a8d4, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats strong {
  font-size: 1.4rem;
  font-weight: 700;
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Upload */
.upload-section {
  padding: 20px 0 80px;
}

.upload-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 720px;
  margin: 0 auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.upload-card.dragover {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.upload-idle {
  text-align: center;
}

.upload-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--bg-elevated);
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--primary);
}

.upload-idle h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.upload-idle p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.upload-active .file-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 24px;
}

.file-thumb {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.file-meta { flex: 1; min-width: 0; }

.file-name {
  font-weight: 560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.925rem;
  outline: none;
  cursor: pointer;
}

.field select:focus { border-color: var(--primary); }

.progress-wrap { margin-bottom: 20px; }

.progress-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

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

.upload-done {
  text-align: center;
}

.done-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
}

.upload-done h3 { margin-bottom: 6px; }

.upload-done p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.hidden { display: none !important; }

/* Features */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}

.feature-card:hover {
  border-color: #3f3f5a;
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* How */
.how {
  padding: 60px 0 80px;
}

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

.step {
  text-align: center;
  padding: 24px 16px;
}

.step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step h3 { margin-bottom: 8px; }

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

/* Pricing */
.pricing {
  padding: 60px 0 80px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.price-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-name {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.price-value {
  font-size: 2.2rem;
  font-weight: 750;
  margin-bottom: 20px;
}

.price-value span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-card ul {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.price-card li {
  padding: 7px 0;
  font-size: 0.925rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 22px;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* FAQ */
.faq {
  padding: 40px 0 90px;
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 560;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--text-muted);
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-brand .logo-mark {
  width: 28px;
  height: 28px;
  font-size: 0.65rem;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  max-width: 400px;
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-box h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.modal-box p {
  color: var(--text-muted);
  margin-bottom: 22px;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 860px) {
  .nav, .header-actions { display: none; }
  .menu-toggle { display: flex; }

  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero { padding: 48px 0 32px; }
  .upload-card { padding: 28px 18px; }
  .hero-stats { gap: 24px; }
}
