/* ==========================================================================
   Modern Minimalist Theme for Bulk File Downloader Landing Site
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.25);
  
  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
  --dark-border: #334155;
  
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

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

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

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.shadow-glow {
  box-shadow: 0 10px 25px -5px var(--primary-glow);
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  border-radius: 8px;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-main);
}

.version-tag {
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

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

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 80px 0 60px;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 40%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 34px;
  }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ==========================================================================
   Hero Visual / Mockup
   ========================================================================== */
.browser-mockup {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.mockup-header {
  background: #f1f5f9;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mock-dot.red { background: #ef4444; }
.mock-dot.yellow { background: #f59e0b; }
.mock-dot.green { background: #10b981; }

.mock-url-bar {
  margin-left: 12px;
  flex: 1;
  background: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.mockup-body {
  padding: 20px;
  background: #f8fafc;
}

.popup-preview {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.preview-tag {
  font-size: 10px;
  font-weight: 700;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.preview-search {
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.preview-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-muted);
}
.chip.active {
  background: var(--primary);
  color: #ffffff;
}

.preview-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.check-box {
  width: 16px;
  height: 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 3px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.file-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 10px;
  color: var(--text-muted);
}

.row-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.row-badge.pdf { background: #fee2e2; color: #dc2626; }
.row-badge.png { background: #e0e7ff; color: #4338ca; }
.row-badge.audio { background: #dcfce7; color: #15803d; }

.preview-btn {
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 10px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Sections Common
   ========================================================================== */
.section {
  padding: 80px 0;
}

.bg-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

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

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

/* ==========================================================================
   Steps / Guide
   ========================================================================== */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius-lg);
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.7;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   Modes Comparison
   ========================================================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.mode-card.highlighted {
  border-color: var(--primary);
  box-shadow: 0 8px 24px -4px var(--primary-glow);
}

.mode-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 12px;
}

.mode-badge.neutral {
  background: #f1f5f9;
  color: var(--text-muted);
}

.mode-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.mode-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.mode-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mode-features li {
  font-size: 14px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

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

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Author Banner
   ========================================================================== */
.author-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .author-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
}

.author-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 768px) {
  .author-left {
    flex-direction: column;
  }
}

.author-avatar {
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.author-text h3 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 6px;
}

.author-text p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 14px;
  max-width: 480px;
}

.author-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .author-meta {
    justify-content: center;
  }
}

/* ==========================================================================
   Privacy Policy Section
   ========================================================================== */
.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  max-width: 960px;
  margin: 0 auto;
}

.privacy-summary-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.privacy-summary-badge .badge-icon {
  font-size: 24px;
}

.privacy-summary-badge strong {
  display: block;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 2px;
}

.privacy-summary-badge p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .privacy-card {
    padding: 24px;
  }
}

.privacy-block h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.privacy-block p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.privacy-block code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: #f1f5f9;
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--primary);
}

.privacy-footer-note {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: #ffffff;
}

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

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.footer-left .brand {
  margin-bottom: 4px;
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-right a {
  font-size: 13px;
  color: var(--text-muted);
}

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

/* Author CTA Group */
.author-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .author-cta-group {
    width: 100%;
  }
}
