:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --accent: #ff9f1c;
  --accent-strong: #ff7b00;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --gradient: linear-gradient(120deg, #ffe8c7, #dceafe);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0 0 8px;
  line-height: 1.3;
}

p {
  margin: 0 0 12px;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(246, 248, 251, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  font-size: 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}

.tagline {
  color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions a {
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-actions a:hover {
  background: #e5edff;
  color: #1d4ed8;
}

.nav-actions .cta {
  background: #1d4ed8;
  color: white;
}

.hero {
  background: var(--gradient);
  margin: 24px 0 16px;
  padding: 32px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  background: white;
  border-radius: 999px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.lead {
  font-size: 18px;
  color: #0f172a;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.button.primary {
  background: #1d4ed8;
  color: white;
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.25);
}

.button.ghost {
  background: white;
  border-color: var(--border);
}

.button:hover {
  transform: translateY(-2px);
}

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

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  box-shadow: var(--shadow);
}

.stat {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}

.panel {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 20px 0;
}

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

.muted {
  color: var(--muted);
}

.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  font-weight: 600;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: relative;
  width: 42px;
  height: 22px;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.slider::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

input:checked + .slider {
  background: #1d4ed8;
}

input:checked + .slider::after {
  transform: translateX(20px);
}

.switch-label {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 159, 28, 0.12), transparent 40%);
  pointer-events: none;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #312e81;
  font-weight: 700;
  font-size: 12px;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.card .button {
  margin-top: auto;
  width: fit-content;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 12px 8px;
}

th {
  background: #f3f4f6;
  font-size: 14px;
}

.quiz {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.3fr 1fr;
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 700;
}

input, select, button {
  font-family: inherit;
}

.result {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 14px;
  min-height: 60px;
}

.tip-card {
  background: #0f172a;
  color: white;
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tip-card ul {
  padding-left: 20px;
}

.footer {
  max-width: 1100px;
  margin: 24px auto 40px;
  padding: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#seo-copy {
  background: #0f172a;
  color: white;
}

#seo-copy p {
  color: #e5e7eb;
}

@media (max-width: 900px) {
  .hero, .quiz {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  main {
    padding: 16px 16px 64px;
  }

  .hero {
    padding: 22px;
  }
}
