:root {
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.8);
  --primary: #ff5722;
  --primary-hover: #f4511e;
  --primary-glow: rgba(255, 87, 34, 0.35);
  --secondary: #6366f1;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.15);
  --radius-lg: 16px;
  --radius-md: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 87, 34, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.12) 0%, transparent 40%);
}

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

/* Header Navbar */
header {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.8);
}

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

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

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero & Downloader Section */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span {
  background: linear-gradient(135deg, #ff7043 0%, #ff5722 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 36px;
}

/* Downloader Card Box */
.downloader-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.input-group {
  display: flex;
  gap: 12px;
  position: relative;
  width: 100%;
}

.input-group input {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.btn-primary {
  background: linear-gradient(135deg, #ff7043 0%, #ff5722 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

/* Status Loading & Result */
.status-loading {
  display: none;
  margin-top: 24px;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

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

.result-card {
  display: none;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: left;
  width: 100%;
}

.result-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
  width: 100%;
}

.video-container {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.video-preview {
  width: 100%;
  height: auto;
  max-height: 380px;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.result-info {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.result-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.result-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.action-buttons a,
.action-buttons button {
  max-width: 100%;
  text-align: center;
  justify-content: center;
}

/* Feature Grid Section */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  color: var(--primary);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-header {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-body {
  padding: 0 24px 20px;
  color: var(--text-muted);
  display: none;
  font-size: 0.95rem;
}

.faq-item.active .faq-body {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: var(--transition);
}

/* Content Article SEO */
.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 40px;
  color: #cbd5e1;
}

.article-content h2 {
  font-size: 1.5rem;
  color: #fff;
  margin: 24px 0 12px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.article-content li {
  margin-bottom: 8px;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  padding: 40px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Mobile Optimizations */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 14px;
  }

  .hero {
    padding: 36px 0 24px;
  }

  .hero h1 { 
    font-size: 1.65rem; 
    line-height: 1.3;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .downloader-box {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .input-group { 
    flex-direction: column; 
    gap: 10px;
  }

  .btn-primary, 
  .btn-secondary { 
    width: 100%; 
    justify-content: center; 
    padding: 13px; 
    font-size: 0.95rem;
    box-sizing: border-box;
  }

  .nav-links { 
    display: none; 
  }

  /* Result section mobile fix (anti-melebar) */
  .result-grid { 
    grid-template-columns: 1fr; 
    gap: 16px;
  }

  .video-container {
    max-width: 100%;
    width: 100%;
  }

  .video-preview {
    max-height: 320px;
  }

  .result-info h3 {
    font-size: 1.05rem;
  }

  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }

  #qualityContainer {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px !important;
    width: 100%;
  }

  #qualityContainer a {
    width: 100%;
    box-sizing: border-box;
  }

  /* Keunggulan & Cara Download: Tetap Grid 2 Kolom di Mobile */
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }

  .card-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .card h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .card p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .article-content {
    padding: 22px 16px;
    border-radius: var(--radius-md);
  }

  .article-content h2 {
    font-size: 1.25rem;
  }

  .faq-header {
    padding: 16px 18px;
    font-size: 0.92rem;
  }

  .faq-body {
    padding: 0 18px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  /* Untuk HP layar sangat kecil (iPhone SE / 320px) */
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

