:root {
  --primary-color: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --primary-muted: #eef2ff;
  --secondary-color: #7c3aed;
  --success-color: #10b981;
  --success-muted: #ecfdf5;
  --warning-color: #f59e0b;
  --warning-muted: #fffbeb;
  --danger-color: #ef4444;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --gray-lighter: #f1f5f9;
  --white: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow: 0 2px 8px -1px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 8px 20px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 16px 32px -6px rgb(0 0 0 / 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--gray-lighter);
}

a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }
p { color: var(--text-secondary); }

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

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
}
.logo:hover { text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links a {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--primary-color); text-decoration: none; background: var(--primary-muted); }
.nav-links a.active { color: var(--primary-color); background: var(--primary-muted); }
.mobile-menu-btn {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 56px 20px 64px;
}
.hero h1 { font-size: 2.5rem; line-height: 1.2; font-weight: 800; color: var(--white); }
.hero-subtitle { color: #e0e7ff; font-size: 1.15rem; max-width: 640px; margin: 16px auto 0; }

/* ---------- Tool card ---------- */
.tool-card {
  background: var(--white);
  color: var(--text-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  max-width: 660px;
  margin: 32px auto 0;
  padding: 28px;
  text-align: left;
}
.tool-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.tool-card h2 svg { width: 24px; height: 24px; color: var(--primary-color); }
.tool-subtext { text-align: center; color: var(--text-secondary); margin-top: 6px; }
.mode-row { display: flex; gap: 10px; margin-top: 22px; }
.mode-btn, .mode-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  background: var(--white);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}
.mode-btn svg, .mode-link svg { width: 24px; height: 24px; }
.mode-btn:hover, .mode-link:hover { text-decoration: none; border-color: var(--primary-light); }
.mode-btn.active, .mode-link.active {
  border-color: var(--primary-dark);
  background: var(--primary-muted);
  color: var(--primary-color);
}
.speaker-row { display: flex; gap: 10px; margin-top: 14px; }
.speaker-btn {
  flex: 1;
  padding: 12px 8px;
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  background: var(--gray-lighter);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.speaker-btn.active { border-color: var(--primary-dark); background: var(--primary-muted); color: var(--primary-color); }
.progress-wrap { margin-top: 22px; }
.progress-track { height: 8px; background: var(--gray-lighter); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--primary-color); border-radius: 999px; transition: width 0.1s linear; }
.progress-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.9rem; color: var(--text-secondary); }
.progress-meta span:first-child { font-weight: 700; color: var(--text-primary); }
.tool-controls { display: flex; gap: 12px; margin-top: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary-color); color: var(--white); flex: 1; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--gray-lighter); color: var(--text-primary); }
.btn-secondary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-white { background: var(--white); color: var(--primary-color); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.warning-box {
  background: var(--warning-muted);
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 18px;
  font-size: 0.92rem;
}
.warning-box p { color: #92400e; margin: 0; }
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.stat { text-align: center; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--white); }
.stat-label { color: #c7d2fe; font-size: 0.9rem; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2, h2.section-title { font-size: 1.35rem; font-weight: 700; text-align: center; }
.section-head p { margin-top: 10px; }
.content-section { background: var(--white); }
.content-section h2 { font-size: 1.35rem; font-weight: 700; text-align: center; margin-bottom: 12px; }
.content-section .section-intro { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.content-section .card { background: var(--gray-lighter); border: 0; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-muted);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.95rem; }
.card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* ---------- Comparison table ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--gray-light); font-size: 0.95rem; }
.compare-table thead th { background: var(--primary-muted); color: var(--primary-dark); font-weight: 700; }
.compare-table td:first-child { font-weight: 600; color: var(--text-primary); }
.compare-table td:nth-child(2) { background: var(--success-muted); font-weight: 600; color: var(--text-primary); }
.compare-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--gray-light); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}
.faq-question svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--primary-color); transition: transform 0.2s; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 20px 18px; }

/* ---------- CTA ---------- */
.cta-section { background: var(--primary-color); color: var(--white); text-align: center; }
.cta-section h2 { color: var(--white); font-size: 1.35rem; font-weight: 700; }
.cta-section p { color: #e0e7ff; max-width: 560px; margin: 12px auto 24px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: var(--white); padding: 44px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.footer-brand h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 10px; }
.footer-brand p { color: #94a3b8; font-size: 0.95rem; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; font-size: 0.95rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1100px;
  margin: 36px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid var(--dark-light);
  text-align: center;
  color: var(--gray);
  font-size: 0.82rem;
}
.footer-bottom p { color: var(--gray); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  max-width: 420px;
  width: 100%;
  padding: 28px;
  text-align: center;
  position: relative;
}
.modal-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.modal-message { margin-bottom: 20px; color: var(--text-secondary); }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
}
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-actions .btn { width: 100%; }

/* ---------- About / content pages ---------- */
.page-hero { background: var(--primary-color); color: var(--white); text-align: center; padding: 56px 20px; }
.page-hero h1 { font-size: 2.2rem; font-weight: 800; color: var(--white); }
.page-hero p, .page-hero .hero-subtitle { color: #e0e7ff; max-width: 640px; margin: 14px auto 0; }
.page-content { background: var(--white); padding: 56px 0; }
.page-content .container { max-width: 860px; }
.page-content h2 { font-size: 1.35rem; font-weight: 700; margin: 36px 0 12px; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 8px; }
.page-content p { margin-bottom: 12px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.cta-inline { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; margin-top: 8px; }
.contact-info h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.contact-info h3 svg { width: 22px; height: 22px; color: var(--primary-color); }
.contact-info p { margin: 6px 0 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.15rem; }
.legal h3 { font-size: 1.05rem; color: var(--text-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .hero h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .mode-row { flex-wrap: wrap; }
  .mode-btn, .mode-link { flex: 1 1 30%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .tool-card { padding: 20px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 1.7rem; }
  .stats-row { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tool-controls { flex-direction: column; }
}
