@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary: #042C53;
  --primary-light: #0C447C;
  --primary-pale: #E6F1FB;
  --accent: #EF9F27;
  --accent-dark: #633806;
  --success: #27500A;
  --success-pale: #EAF3DE;
  --danger: #791F1F;
  --danger-pale: #FCEBEB;
  --warn: #633806;
  --warn-pale: #FAEEDA;
  --purple-pale: #EEEDFE;
  --purple: #3C3489;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: rgba(0,0,0,0.08);
  --border-mid: rgba(0,0,0,0.15);
  --bg: #ffffff;
  --bg-soft: #f8f9fb;
  --bg-card: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAVIGATION ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-brand-text .name {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  display: block;
  line-height: 1.2;
}

.nav-brand-text .tagline {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.15s;
}

.nav-links a:hover { color: var(--primary); background: var(--primary-pale); }
.nav-links a.active { color: var(--primary); background: var(--primary-pale); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-pale);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.mobile-nav a:hover { background: var(--bg-soft); color: var(--primary); }

/* ─── PAGE WRAPPER ─── */
.page-wrapper {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ─── HERO ─── */
.hero {
  background: var(--primary);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: #E6F1FB;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: white;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: white;
  display: block;
}

.hero-stat .lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── SECTION ─── */
.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-sm {
  padding: 2.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-full {
  padding: 4rem 2rem;
  background: var(--bg-soft);
}

.section-full .inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }

.btn-white {
  background: white;
  color: var(--primary);
}
.btn-white:hover { background: var(--primary-pale); }

.btn-gold {
  background: var(--accent);
  color: var(--accent-dark);
}
.btn-gold:hover { background: #FAC775; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-pale); }

.btn-outline-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { background: #A32D2D; }

/* ─── CARDS ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s;
}

.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-mid); }

.card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ─── GRID ─── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }

/* ─── TAGS ─── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  margin: 2px;
}
.tag-blue { background: var(--primary-pale); color: var(--primary-light); }
.tag-green { background: var(--success-pale); color: var(--success); }
.tag-amber { background: var(--warn-pale); color: var(--warn); }
.tag-red { background: var(--danger-pale); color: var(--danger); }
.tag-purple { background: var(--purple-pale); color: var(--purple); }

/* ─── ALERTS ─── */
.alert {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
}
.alert-icon { min-width: 20px; margin-top: 2px; }
.alert-danger { background: var(--danger-pale); color: var(--danger); }
.alert-info { background: var(--primary-pale); color: var(--primary-light); }
.alert-success { background: var(--success-pale); color: var(--success); }
.alert-warn { background: var(--warn-pale); color: var(--warn); }

/* ─── STAT CARDS ─── */
.stat-card {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
}
.stat-card .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  display: block;
}
.stat-card .lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  background: white;
  transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ─── RESULT BOX ─── */
.result-box {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-top: 1rem;
}

/* ─── STEP LIST ─── */
.step-list { display: flex; flex-direction: column; }
.step-item {
  display: flex;
  gap: 16px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 30px; height: 30px;
  min-width: 30px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}
.step-content h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.step-content p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ─── CHECKLIST ─── */
.check-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.check-item:last-child { border-bottom: none; }
.check-box {
  width: 20px; height: 20px;
  min-width: 20px;
  border: 1.5px solid var(--border-mid);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.15s;
}
.check-box.checked { background: var(--primary); border-color: var(--primary); }
.check-label { font-size: 14px; color: var(--text); line-height: 1.5; }
.check-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ─── QUIZ ─── */
.quiz-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.quiz-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s;
}
.quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  margin-bottom: 10px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
}
.quiz-opt:hover { background: var(--bg-soft); border-color: var(--primary); }
.quiz-opt.correct { background: var(--success-pale); border-color: var(--success); color: var(--success); }
.quiz-opt.wrong { background: var(--danger-pale); border-color: var(--danger); color: var(--danger); }

/* ─── CHAT ─── */
.chat-messages {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg-user { text-align: right; }
.msg-bubble {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 85%;
}
.msg-user .msg-bubble { background: var(--primary); color: white; border-bottom-right-radius: 4px; }
.msg-ai .msg-bubble { background: var(--bg-soft); color: var(--text); border-bottom-left-radius: 4px; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input { flex: 1; }

/* ─── PRICING ─── */
.pricing-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.pricing-card.featured { border-color: var(--primary); border-width: 2px; }
.pricing-badge {
  font-size: 11px;
  background: var(--primary-pale);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 8px;
}
.pricing-name { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.pricing-price span { font-size: 14px; font-family: var(--font-body); color: var(--text-muted); }
.pricing-features { font-size: 13px; color: var(--text-muted); line-height: 2; }

/* ─── CONTACT ─── */
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
}
.contact-label { font-size: 12px; color: var(--text-muted); }
.contact-val { font-size: 14px; font-weight: 600; color: var(--text); }

/* ─── FOOTER ─── */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: white;
  display: block;
  margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer h4 { font-size: 13px; font-weight: 600; color: white; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer ul li a:hover { color: white; }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ─── PAGE HEADER ─── */
.page-header {
  background: var(--primary);
  padding: 3.5rem 2rem;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: white;
  margin-bottom: 8px;
}
.page-header p { font-size: 15px; color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto; }

/* ─── PRO BANNER ─── */
.pro-banner {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 2rem;
}
.pro-banner h3 { font-size: 16px; font-weight: 600; color: white; margin-bottom: 4px; }
.pro-banner p { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ─── FILTER ROW ─── */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-btn {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-mid);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ─── QUICK LINKS ─── */
.quick-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.quick-link {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-mid);
  background: white;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}
.quick-link:hover { border-color: var(--primary); color: var(--primary); }

/* ─── RISK BADGE ─── */
.risk-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.risk-critical { background: var(--danger-pale); color: var(--danger); }
.risk-high { background: var(--warn-pale); color: var(--warn); }
.risk-medium { background: var(--primary-pale); color: var(--primary-light); }
.risk-low { background: var(--success-pale); color: var(--success); }

/* ─── TABLE ─── */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  background: var(--bg-soft);
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-soft); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease forwards; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .nav-price { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 3rem 1.5rem; }
  .hero-stats { gap: 1.5rem; }
  .section { padding: 3rem 1.25rem; }
  .section-full { padding: 3rem 1.25rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .pro-banner { flex-direction: column; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}

/* ─── UTILITY ─── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.disc {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}
