:root {
  --orange: #ff9933;
  --green: #138808;
  --blue: #000080;
  --light-bg: #f8f9fb;
  --dark-bg: #0b1220;
  --light-text: #1c2433;
  --dark-text: #e9eef7;
  --card-bg: #ffffff;
  --card-bg-dark: #131a2b;
  --muted: #6c757d;
  --border-light: rgba(0, 0, 128, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--light-bg);
  color: var(--light-text);
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

body.dark .navbar {
  background: rgba(11, 18, 32, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.hero {
  background: linear-gradient(120deg, rgba(255, 153, 51, 0.2), rgba(0, 0, 128, 0.1));
  border-radius: 24px;
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-weight: 700;
}

.tool-card,
.calculator-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 16px 32px rgba(0, 0, 128, 0.08);
  border: 1px solid rgba(0, 0, 128, 0.05);
}

body.dark .tool-card,
body.dark .calculator-card {
  background: var(--card-bg-dark);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-saffron {
  background: var(--orange);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-saffron:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255, 153, 51, 0.25);
  color: #fff;
}

.badge-soft {
  background: rgba(0, 0, 128, 0.08);
  color: var(--blue);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
}

body.dark .badge-soft {
  background: rgba(255, 255, 255, 0.1);
  color: var(--dark-text);
}

.toggle-switch {
  cursor: pointer;
  width: 52px;
  height: 28px;
  background: rgba(0, 0, 128, 0.15);
  border-radius: 999px;
  position: relative;
}

.toggle-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

body.dark .toggle-switch {
  background: rgba(255, 153, 51, 0.4);
}

body.dark .toggle-switch span {
  transform: translateX(24px);
  background: #0b1220;
}

.section-title {
  font-weight: 700;
  color: var(--blue);
}

body.dark .section-title {
  color: var(--dark-text);
}

.seo-content {
  margin-top: 2.5rem;
  line-height: 1.8;
  font-size: 1.02rem;
}

.seo-content h2 {
  margin-top: 2rem;
  font-weight: 700;
  color: var(--blue);
}

.seo-content h3 {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--blue);
}

body.dark .seo-content h2,
body.dark .seo-content h3 {
  color: var(--dark-text);
}

.seo-content table {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}

footer {
  border-top: 1px solid var(--border-light);
}

body.dark footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-link {
  color: inherit;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--orange);
}

@media (max-width: 767px) {
  .hero {
    padding: 3rem 1.5rem;
  }
}
