/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #4f46e5;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navigation ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}
#navbar.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
}
.nav-logo-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18)) drop-shadow(0 1px 3px rgba(0,0,0,0.12));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: #1a1a2e;
  background: #f1f5f9;
}
.btn-nav {
  background: #4f6ef7 !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
}
.btn-nav:hover {
  background: #3b5de7 !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: #4f6ef7;
  color: white;
  box-shadow: 0 2px 12px rgba(79, 110, 247, 0.3);
}
.btn-primary:hover {
  background: #3b5de7;
  box-shadow: 0 4px 20px rgba(79, 110, 247, 0.4);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: #4f6ef7;
  border: 2px solid #4f6ef7;
}
.btn-outline:hover {
  background: rgba(79, 110, 247, 0.06);
}
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 12px;
}
.btn-xl {
  padding: 16px 40px;
  font-size: 17px;
  border-radius: 14px;
}

/* ─── Hero Section ─── */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f8faff 0%, #eef2ff 50%, #f0f4ff 100%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(79, 110, 247, 0.08);
  color: #4f6ef7;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(79, 110, 247, 0.15);
}
.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #0f172a;
}
.gradient-text {
  background: linear-gradient(135deg, #4f6ef7, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 13px;
  color: #94a3b8;
}

/* Hero Demo Card */
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-demo-card {
  background: #1e293b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 460px;
}
.demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #0f172a;
}
.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.demo-dot.red { background: #ef4444; }
.demo-dot.yellow { background: #eab308; }
.demo-dot.green { background: #22c55e; }
.demo-title {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  margin-left: 8px;
}
.demo-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.demo-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.demo-file-icon { color: #4f6ef7; flex-shrink: 0; }
.demo-file-name {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
}
.demo-file-meta {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}
.demo-arrow { color: #4f6ef7; }
.demo-result {
  text-align: center;
}
.demo-savings {
  font-size: 44px;
  font-weight: 800;
  color: #22c55e;
  line-height: 1;
}
.demo-result-size {
  color: #94a3b8;
  font-size: 15px;
  margin-top: 8px;
}
.demo-result-quality {
  color: #22c55e;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

/* ─── Stats Bar ─── */
.stats-bar {
  padding: 40px 0;
  background: #0f172a;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: #4f6ef7;
}
.stat-label {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 4px;
}

/* ─── Sections ─── */
.section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-title {
  font-size: 38px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 18px;
  color: #64748b;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Features ─── */
.features-section {
  background: #fafbfc;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 28px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 110, 247, 0.08);
  color: #4f6ef7;
  border-radius: 12px;
  margin-bottom: 16px;
}
.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}
.feature-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* ─── How It Works ─── */
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.step-card {
  text-align: center;
  padding: 32px 28px;
  flex: 1;
  max-width: 320px;
}
.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f6ef7, #7c3aed);
  color: white;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 20px;
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
}
.step-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}
.step-connector {
  color: #cbd5e1;
  flex-shrink: 0;
}

/* ─── Presets Table ─── */
.presets-section {
  background: #fafbfc;
}
.presets-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: white;
}
.presets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.presets-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.presets-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
.presets-table tr:last-child td { border-bottom: none; }
.preset-recommended {
  background: rgba(79, 110, 247, 0.04);
}
.preset-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.preset-badge.lossless { background: #f0fdf4; color: #16a34a; }
.preset-badge.high-quality { background: #eff6ff; color: #2563eb; }
.preset-badge.balanced { background: #eef2ff; color: #4f46e5; }
.preset-badge.maximum { background: #fef9c3; color: #a16207; }
.preset-badge.extreme { background: #fef2f2; color: #dc2626; }

/* ─── Docs ─── */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.doc-card {
  padding: 32px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}
.doc-icon {
  color: #4f6ef7;
  margin-bottom: 16px;
}
.doc-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f172a;
}
.doc-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 20px 0 10px;
}
.doc-content h4:first-child { margin-top: 0; }
.doc-content p, .doc-content li {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}
.doc-content ol, .doc-content ul {
  padding-left: 20px;
  margin-bottom: 8px;
}
.doc-content ol { list-style: decimal; }
.doc-content ul { list-style: disc; }
.doc-content li {
  margin-bottom: 6px;
}
.code-block {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px 18px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  overflow-x: auto;
  margin: 8px 0 12px;
}
.code-block code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ─── FAQ ─── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #e2e8f0;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  gap: 16px;
}
.faq-question:hover { color: #4f6ef7; }
.faq-chevron {
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}
.faq-answer p {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
}

/* ─── Download ─── */
.download-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 100px 0;
}
.download-card {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.download-title {
  font-size: 38px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}
.download-subtitle {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 32px;
}
.download-info {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.download-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #94a3b8;
}
.download-info-item svg { color: #4f6ef7; flex-shrink: 0; }
.download-btn {
  margin-bottom: 16px;
}
.download-note {
  font-size: 13px;
  color: #64748b;
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  text-align: center;
  padding: 32px 24px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.contact-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 110, 247, 0.08);
  color: #4f6ef7;
  border-radius: 16px;
  margin: 0 auto 16px;
}
.contact-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}
.contact-desc {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 12px;
}
.contact-link {
  font-size: 14px;
  font-weight: 600;
  color: #4f6ef7;
}
.contact-link:hover { text-decoration: underline; }

/* ─── Footer ─── */
.footer {
  background: #0f172a;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.footer-logo svg { color: #4f6ef7; }
.footer-logo img {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18)) drop-shadow(0 1px 3px rgba(0,0,0,0.12));
}
.footer-brand-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}
.footer-heading {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 14px;
  color: #64748b;
  transition: color 0.2s;
}
.footer-links a:hover { color: #e2e8f0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #475569;
}

/* ─── Responsive: Tablet (max-width: 1024px) ─── */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-title { font-size: 42px; }
  .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-note { text-align: center; }
  .hero-visual { order: -1; }
  .hero-demo-card { max-width: 400px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .steps-grid { flex-direction: column; gap: 12px; }
  .step-connector { transform: rotate(90deg); }

  .docs-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* ─── Responsive: Mobile (max-width: 768px) ─── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 16px;
    font-size: 15px;
    width: 100%;
  }
  .btn-nav { text-align: center; }

  .hero { padding: 110px 0 60px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-number { font-size: 28px; }

  .section { padding: 70px 0; }
  .section-title { font-size: 28px; }
  .section-subtitle { font-size: 16px; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 24px; }

  .contact-grid { grid-template-columns: 1fr; }

  .presets-table { font-size: 13px; }
  .presets-table th, .presets-table td { padding: 12px 14px; }

  .download-title { font-size: 28px; }
  .download-info { flex-direction: column; align-items: center; gap: 12px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ─── Responsive: Small Mobile (max-width: 480px) ─── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 28px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-demo-card { max-width: 100%; }
  .step-card { padding: 24px 16px; }
  .doc-card { padding: 24px 18px; }
  .faq-question { font-size: 15px; }
}
