:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-subtle: #64748b;
  --brand: #2563eb;
  --brand-soft: #eff6ff;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --border: #e2e8f0;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.15rem;
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #dbeafe;
  padding: 3px 10px;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.nav-links a:hover {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-sm { padding: 9px 16px; font-size: 0.86rem; }
.btn-md { padding: 13px 22px; font-size: 0.95rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-outline-brand {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid #bfdbfe;
}

.btn-outline-brand:hover {
  background: var(--brand);
  color: #fff;
}

.hero {
  background: radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.28), transparent 45%),
              linear-gradient(135deg, #0b132b 0%, #172554 55%, #1e3a8a 100%);
  color: #fff;
  padding: 84px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #bae6fd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 850;
  margin-bottom: 20px;
}

.hero p.lead {
  color: #cbd5e1;
  font-size: 1.06rem;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.metric-item strong { display: block; font-size: 1.35rem; font-weight: 800; color: #fff; }
.metric-item span { font-size: 0.82rem; color: #94a3b8; }

.standards-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.standards-card h2 { font-size: 1.15rem; font-weight: 700; color: #7dd3fc; margin-bottom: 20px; }
.standards-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.standards-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.92rem; color: #e2e8f0; }

.check-pill {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.section { padding: 84px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.section-head p { color: var(--ink-muted); font-size: 1rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.pillar-num {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1px solid #bfdbfe;
  color: var(--brand);
  font-weight: 850;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.pillar-card h3 { font-size: 1.2rem; font-weight: 750; color: var(--ink); margin-bottom: 10px; }
.pillar-card p { color: var(--ink-muted); font-size: 0.94rem; }

.survey-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
}

.score-group { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.score-option { position: relative; }
.score-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.score-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  margin: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}
.score-option label strong { font-size: 1.05rem; color: var(--ink); }
.score-option label span { font-size: 0.72rem; color: var(--ink-subtle); font-weight: 600; }
.score-option input[type="radio"]:checked + label {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: 0.92rem; font-weight: 600; }
.alert-success { background: var(--success-bg); border: 1px solid var(--success-border); color: #065f46; }
.alert-error { background: var(--error-bg); border: 1px solid var(--error-border); color: #991b1b; }

.site-footer { background: #090f20; color: #94a3b8; padding: 46px 0; font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-inner strong { color: #fff; font-size: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 500; }
.footer-links a:hover { color: #fff; }

.centered-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%); }
.auth-box { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 38px 34px; box-shadow: var(--shadow-md); }
.doc-card { max-width: 800px; margin: 48px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-md); }
.doc-card h1 { font-size: 1.85rem; font-weight: 800; color: var(--ink); margin-bottom: 22px; }
.doc-card p { color: var(--ink-muted); margin-bottom: 16px; }

.admin-topbar { background: #0b132b; color: #fff; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.admin-badge { background: var(--brand); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; margin-left: 8px; }
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow-x: auto; margin-bottom: 30px; box-shadow: var(--shadow-sm); }
.table-title { padding: 16px 22px; border-bottom: 1px solid var(--border); font-weight: 750; color: var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: var(--surface-soft); text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--ink-subtle); font-size: 0.8rem; text-transform: uppercase; }
td { padding: 14px 18px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }

@media (max-width: 900px) {
  .hero-grid, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .form-grid-2, .hero-metrics { grid-template-columns: 1fr; }
}
