:root {
  --primary: #7B1E3A;
  --primary-light: #A53D5D;
  --primary-dark: #5C1529;
  --primary-gradient: linear-gradient(135deg, #7B1E3A, #A53D5D);
  --primary-gradient-hover: linear-gradient(135deg, #A53D5D, #7B1E3A);
  --accent-gold: #F59E0B;
  --accent-gold-light: #FCD34D;
  --success: #10B981;
  --info: #3B82F6;
  --bg: #F8F9FB;
  --bg-secondary: #FFFFFF;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --card-bg: #FFFFFF;
  --card-border: rgba(0, 0, 0, 0.06);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --input-bg: #FFFFFF;
  --input-border: #E5E7EB;
  --input-focus: #7B1E3A;
  --section-bg: #FFFFFF;
  --section-alt-bg: #F0F2F5;
  --footer-bg: #1A1A2E;
  --footer-text: #E5E7EB;
  --footer-text-muted: #9CA3AF;
  --divider: rgba(0, 0, 0, 0.08);
  --toggle-bg: #E5E7EB;
  --nav-text: #4B5563;
  --faq-border: rgba(0, 0, 0, 0.1);
  --faq-hover: rgba(123, 30, 58, 0.04);
  --badge-bg: rgba(123, 30, 58, 0.08);
  --badge-text: #7B1E3A;
  --hero-overlay: rgba(123, 30, 58, 0.03);
}

[data-theme="dark"] {
  --bg: #121212;
  --bg-secondary: #1A1A2E;
  --text: #F3F4F6;
  --text-secondary: #D1D5DB;
  --text-muted: #6B7280;
  --card-bg: #1E1E1E;
  --card-border: rgba(255, 255, 255, 0.06);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
  --input-bg: #2A2A2A;
  --input-border: #374151;
  --input-focus: #A53D5D;
  --section-bg: #1A1A2E;
  --section-alt-bg: #16162A;
  --footer-bg: #0D0D1A;
  --footer-text: #E5E7EB;
  --footer-text-muted: #6B7280;
  --divider: rgba(255, 255, 255, 0.08);
  --toggle-bg: #374151;
  --nav-text: #D1D5DB;
  --faq-border: rgba(255, 255, 255, 0.08);
  --faq-hover: rgba(165, 61, 93, 0.06);
  --badge-bg: rgba(165, 61, 93, 0.15);
  --badge-text: #A53D5D;
  --hero-overlay: rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--primary);
  color: white;
}

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

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(248, 249, 251, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(18, 18, 18, 0.85);
}

.navbar.scrolled {
  border-bottom: 1px solid var(--divider);
  padding: 12px 0;
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(18, 18, 18, 0.95);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.navbar-brand:hover {
  color: var(--primary-light);
}

.navbar-brand svg {
  flex-shrink: 0;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle,
.lang-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--input-border);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  color: var(--text);
  position: relative;
}

.theme-toggle:hover {
  border-color: var(--primary-light);
  background: var(--badge-bg);
  transform: rotate(15deg);
}

.lang-toggle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  width: 48px;
}

.lang-toggle:hover {
  border-color: var(--primary-light);
  background: var(--badge-bg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* ─── Hero ─── */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 30, 58, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165, 61, 93, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(123, 30, 58, 0.08) 0%, transparent 70%);
}

[data-theme="dark"] .hero::after {
  background: radial-gradient(circle, rgba(165, 61, 93, 0.06) 0%, transparent 70%);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px 24px;
  background: var(--badge-bg);
  border-radius: 50px;
  color: var(--badge-text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-logo svg {
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.hero h1 .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ─── Download Form ─── */
.download-form {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.form-group {
  display: flex;
  gap: 12px;
  background: var(--card-bg);
  border: 2px solid var(--input-border);
  border-radius: 20px;
  padding: 8px;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  position: relative;
}

.form-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(123, 30, 58, 0.1);
}

[data-theme="dark"] .form-group:focus-within {
  box-shadow: 0 0 0 4px rgba(165, 61, 93, 0.15);
}

.form-group input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group .btn-submit {
  padding: 14px 32px;
  border: none;
  border-radius: 14px;
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group .btn-submit:hover {
  background: var(--primary-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(123, 30, 58, 0.3);
}

.form-group .btn-submit:active {
  transform: translateY(0);
}

.form-group .btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── Trust Badges ─── */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── Stats / Keunggulan ─── */
.stats-section {
  padding: 60px 0;
  background: var(--section-alt-bg);
  transition: background 0.3s ease;
}

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

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  background: var(--primary-gradient);
  color: white;
  transform: scale(1.1);
}

.stat-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.stat-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Section Headers ─── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--text);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Features / Services ─── */
.features-section {
  padding: 80px 0;
  background: var(--bg);
  transition: background 0.3s ease;
}

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

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.feature-card .feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary-gradient);
  color: white;
  transform: scale(1.05) rotate(-3deg);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ─── FAQ ─── */
.faq-section {
  padding: 80px 0;
  background: var(--section-alt-bg);
  transition: background 0.3s ease;
}

.faq-container {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--faq-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-family: inherit;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  color: var(--primary);
  font-size: 0.85rem;
}

.faq-item.active .faq-question .faq-icon {
  background: var(--primary-gradient);
  color: white;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer-inner p {
  margin: 0;
}

/* ─── Footer ─── */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: white;
}

.footer-brand p {
  color: var(--footer-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: white;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: var(--footer-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--footer-text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom .credit {
  font-size: 0.7rem;
  opacity: 0.5;
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

/* ─── Result Page ─── */
.result-section {
  padding: 120px 0 80px;
  min-height: 100vh;
  background: var(--bg);
  transition: background 0.3s ease;
}

.result-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.result-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  background: var(--section-alt-bg);
  overflow: hidden;
}

.result-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-preview .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.result-preview:hover .play-overlay {
  opacity: 1;
}

.result-preview .play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.result-preview .play-btn:hover {
  transform: scale(1.1);
}

.result-info {
  padding: 24px;
}

.result-info h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-creator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.result-creator .creator-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  overflow: hidden;
}

.result-creator .creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-stats {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
  flex-wrap: wrap;
}

.result-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result-caption {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  margin: 8px 0 0;
  word-break: break-word;
}

.result-preview-slideshow {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  background: var(--section-alt-bg);
  overflow: hidden;
}

.result-preview-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.result-preview-slideshow .slide.active {
  opacity: 1;
}

.result-preview-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.slide-nav:hover {
  background: rgba(0,0,0,0.75);
}

.slide-prev { left: 10px; }
.slide-next { right: 10px; }

.slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.slide-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-dots .dot.active {
  background: white;
  transform: scale(1.2);
}

/* ─── Download Buttons ─── */
.download-actions {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.download-btn:hover::before {
  opacity: 1;
}

.download-btn:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(123, 30, 58, 0.2);
  border-color: var(--primary);
  color: white;
}

.download-btn:hover .btn-icon {
  background: rgba(255, 255, 255, 0.2);
}

.download-btn:hover .btn-subtitle,
.download-btn:hover .btn-title {
  color: white;
}

.download-btn:hover .btn-icon-gold {
  color: var(--accent-gold-light) !important;
}

.download-btn .btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  color: var(--primary);
}

.download-btn .btn-icon-gold {
  background: rgba(245, 158, 11, 0.12) !important;
  color: var(--accent-gold) !important;
}

.download-btn .btn-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.download-btn .btn-title {
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
  transition: color 0.3s ease;
}

.download-btn .btn-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
  transition: color 0.3s ease;
}

.download-btn-primary {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
}

.download-btn-primary .btn-icon {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.download-btn-primary .btn-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.download-btn-primary:hover {
  box-shadow: 0 12px 32px rgba(123, 30, 58, 0.35);
  transform: translateY(-2px);
  border-color: transparent;
}

/* ─── Loading ─── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loading-overlay.active {
  display: flex;
}

.loading-spinner {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 340px;
}

.spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid var(--input-border);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.loading-spinner .loading-dots::after {
  content: '';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0% { content: ''; }
  33% { content: '.'; }
  66% { content: '..'; }
  100% { content: '...'; }
}

/* ─── Error Toast ─── */
.error-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #EF4444;
  color: white;
  padding: 16px 24px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 400px;
}

.error-toast.active {
  transform: translateY(0);
  opacity: 1;
}

/* ─── Scroll to Top ─── */
.scroll-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(123, 30, 58, 0.3);
  z-index: 999;
  transition: all 0.3s ease;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(123, 30, 58, 0.4);
}

.scroll-top.visible {
  display: flex;
}

/* ─── Back Button (Result) ─── */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  background: var(--primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 24px;
  font-family: inherit;
}

.back-button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateX(-4px);
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in-delay-1 {
  animation-delay: 0.1s;
}

.animate-in-delay-2 {
  animation-delay: 0.2s;
}

.animate-in-delay-3 {
  animation-delay: 0.3s;
}

.animate-in-delay-4 {
  animation-delay: 0.4s;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero {
    padding: 110px 0 60px;
  }

  .form-group {
    flex-direction: column;
    padding: 6px;
    border-radius: 16px;
  }

  .form-group input {
    padding: 14px 16px;
  }

  .form-group .btn-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 12px;
  }

  .result-info h2 {
    font-size: 1rem;
  }

  .download-actions {
    padding: 0 16px 16px;
  }

  .download-btn {
    padding: 14px 16px;
  }

  .download-btn .btn-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .footer {
    padding: 40px 0 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 12px 0;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .trust-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  .stat-card {
    padding: 24px 12px;
  }

  .feature-card {
    padding: 24px 16px;
  }

  .faq-question {
    padding: 16px;
    font-size: 0.9rem;
  }

  .faq-answer-inner {
    padding: 0 16px 16px;
    font-size: 0.85rem;
  }

  .error-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    font-size: 0.85rem;
    padding: 14px 18px;
  }
}
