:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --accent: #0EA5E9;
  --bg: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --text: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --success: #10B981;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

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

/* Navbar */
.navbar {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  text-decoration: none;
}
.brand-badge {
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--primary); }

/* Dropdown Menu for Free Tools */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
}
.dropdown-btn:hover { color: var(--primary); }
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #FFFFFF;
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 100;
  top: 100%;
  left: 0;
  padding: 6px 0;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content a {
  color: var(--text);
  padding: 8px 14px;
  text-decoration: none;
  display: block;
  font-size: 13px;
}
.dropdown-content a:hover {
  background-color: var(--bg-subtle);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--primary); color: #FFF; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg-subtle); border-color: var(--primary); }

/* Hero */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: #0F172A;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 30px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* Features Grid */
.section { padding: 60px 0; }
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.section-title p { color: var(--text-muted); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text-muted); }

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.comp-table th, .comp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.comp-table th { background: var(--bg-subtle); font-weight: 700; }
.comp-table tr:hover { background: #F8FAFC; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  background: white;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
}
.badge-popular {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
}
.price { font-size: 32px; font-weight: 800; margin: 16px 0; }
.price span { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 20px 0; }
.pricing-card li { margin-bottom: 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; }

/* Legal Pages */
.legal-content {
  max-width: 760px;
  margin: 40px auto 80px;
  padding: 0 20px;
}
.legal-content h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.legal-content .meta { font-size: 13px; color: var(--text-muted); margin-bottom: 30px; }
.legal-content h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.legal-content p, .legal-content ul { margin-bottom: 16px; font-size: 15px; color: #334155; }
.legal-content ul { padding-left: 24px; }

/* Tool UI */
.tool-container {
  max-width: 860px;
  margin: 30px auto 60px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.drop-zone {
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  background: var(--bg-subtle);
  margin-bottom: 16px;
  cursor: pointer;
}
.drop-zone.dragover { border-color: var(--primary); background: var(--primary-light); }
.raw-textarea {
  width: 100%;
  height: 140px;
  padding: 10px;
  font-family: monospace;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 16px;
}
.toggles-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  background: var(--bg-subtle);
  padding: 12px;
  border-radius: 6px;
}
.tool-preview-box {
  margin: 18px 0;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.tool-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cta-banner {
  margin-top: 24px;
  padding: 16px 20px;
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tabs for Bidirectional Tool */
.tabs-header {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 18px;
}
.tab-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s ease;
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }
