:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --primary: #1d4ed8;
  --primary-dark: #163fa6;
  --accent: #f97316;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  --radius: 16px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: #0f172a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

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

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: #111827;
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.25);
}

.btn.secondary {
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}

.btn.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.75), rgba(29, 78, 216, 0.7)), url('https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #fff;
  padding: 72px 64px;
  margin: 28px auto 40px;
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero p.lead {
  max-width: 620px;
  color: #e5e7eb;
  font-size: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 16px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid var(--border);
  color: #0f172a;
  overflow: hidden;
}

.card h3 {
  margin-bottom: 10px;
}
.card-visual {
  margin: 0 0 12px 0;
}
.card-visual img {
  width: 100%;
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  box-shadow: none;
}

.card-visual {
  position: relative;
}

.card-visual .tag-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(17, 24, 39, 0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.card.blog-card h3,
.card.blog-card p {
  margin-left: 2px;
  margin-right: 2px;
}

.section {
  padding: 40px 0 26px 0;
}

.blog-post .section {
  padding-bottom: 0;
}

.section h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.section p.section-intro {
  color: var(--muted);
  margin-bottom: 22px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: #111827;
}
.list ul,
ul {
  padding-left: 20px;
}

.list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.list .icon {
  color: var(--primary);
  font-weight: 800;
}

.highlight {
  border-left: 4px solid var(--primary);
  padding-left: 14px;
  margin: 12px 0;
  color: #1f2937;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.stat {
  background: #eef2ff;
  padding: 16px;
  border-radius: 12px;
  color: #111827;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  font-weight: 600;
  color: #111827;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font);
  font-size: 15px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #c7d2fe;
  border-color: var(--primary);
}

textarea {
  min-height: 140px;
}

.footer {
  background: #0b1224;
  color: #e5e7eb;
  padding: 32px 0;
  margin-top: 40px;
}

.footer .grid {
  align-items: start;
}

.footer a {
  color: #e5e7eb;
  opacity: 0.9;
}

.footer a:hover {
  opacity: 1;
  color: #fff;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0ea5e9;
  font-weight: 700;
  font-size: 13px;
}

.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.blog-card img {
  height: 160px;
  object-fit: cover;
}

.card-cover {
  display: block;
  margin: -22px -22px 0 -22px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative;
}

.card-cover img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
  margin-bottom: 12px;
}

.card-cover .tag-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.card.blog-card .btn {
  margin-top: 10px;
}

.table-of-contents {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 12px;
}

.hero-mini {
  background: #ffffff;
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: #0f172a;
}

.card.dark {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.2);
}

.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 8px;
  padding: 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
}

.breadcrumb li::after {
  content: '›';
  margin-left: 8px;
  color: var(--muted);
}

.breadcrumb li:last-child::after {
  content: '';
}

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

.breadcrumb .current {
  color: #111827;
  font-weight: 700;
}

.hero-mini h3 {
  margin-bottom: 8px;
}

.hero-mini .result {
  margin-top: 12px;
  font-weight: 700;
  color: var(--primary);
}

.badge-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-block;
  font-weight: 600;
  color: #374151;
}

.stepper {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 16px;
}

.step {
  background: #fff;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.step .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 10px;
}

.table-strip tr:nth-child(even) {
  background: #f9fafb;
}

.hero-secondary {
  border-radius: 20px;
  background: linear-gradient(145deg, #0f172a, #1f2937);
  color: #fff;
  padding: 40px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 12px;
  color: #111827;
  margin: 14px 0;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    width: 100%;
  }
  .nav-links.open {
    display: grid;
    grid-template-columns: 1fr;
  }
  nav {
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .hero {
    padding: 42px 28px;
  }
}
.table-of-contents ul {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.table-of-contents a {
  color: #1d4ed8;
  font-weight: 600;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

.notice {
  background: #ecfeff;
  border: 1px solid #22d3ee;
  color: #0f172a;
  padding: 12px;
  border-radius: 12px;
  margin: 10px 0;
}

.message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.summary-block {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  padding: 16px 24px;
  margin: 0 0 18px;
}
.summary-block h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 12px;
  color: #172f66;
}
.summary-block .card {
  margin-bottom: 16px;
}

.faq-section {
  margin-top: 0;
}
