:root {
  --bg-page: #f0f4f8;
  --bg-card: #fafcfe;
  --bg-elevated: #ffffff;
  --brand-light: #e8f1fa;
  --brand-muted: #d4e4f2;
  --brand: #5b8fc7;
  --brand-deep: #3d6fa0;
  --brand-primary: #2e4a66;
  --brand-primary-dark: #243a52;
  --linen: #e8dcc8;
  --stroke: #b8cce0;
  --text-primary: #1e2d3d;
  --text-secondary: #4a6278;
  --text-tertiary: #8a9db0;
  --success: #3a7d5c;
  --shadow: 0 18px 48px rgba(46, 74, 102, 0.1);
  --shadow-soft: 0 8px 24px rgba(46, 74, 102, 0.06);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 920px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(91, 143, 199, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 220, 200, 0.35), transparent 50%),
    linear-gradient(180deg, #eef3f8 0%, var(--bg-page) 40%, #e8eef5 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(250, 252, 254, 0.82);
  border-bottom: 1px solid rgba(184, 204, 224, 0.55);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand-primary) 0%, var(--brand) 100%);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: white;
}

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

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--brand-light);
  color: var(--brand-deep);
  text-decoration: none;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 22px 64px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 42px 32px;
  color: white;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand) 62%, #6fa3d6 100%);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -80px;
  right: -60px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(232, 220, 200, 0.12);
  bottom: -40px;
  left: -20px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  max-width: 620px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-light);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--brand-deep);
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--brand-primary);
}

.card p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand));
  color: white;
  box-shadow: 0 10px 24px rgba(46, 74, 102, 0.22);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--brand-deep);
  border: 1px solid var(--stroke);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.feature-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}

.feature-pill strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.feature-pill span {
  color: var(--brand-deep);
  font-weight: 700;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.content-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--brand-primary);
}

.content-card .updated {
  margin: 0 0 28px;
  color: var(--text-tertiary);
  font-size: 0.92rem;
}

.content-card h2 {
  margin: 32px 0 12px;
  font-size: 1.2rem;
  color: var(--brand-deep);
}

.content-card h2:first-of-type {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: var(--text-secondary);
}

.content-card ul {
  padding-left: 1.25rem;
}

.content-card li {
  margin-bottom: 8px;
}

.toc {
  background: var(--brand-light);
  border: 1px solid rgba(91, 143, 199, 0.25);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-primary);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc a {
  font-weight: 600;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--brand-primary);
}

.faq-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.contact-box {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(46, 74, 102, 0.06), rgba(91, 143, 199, 0.1));
  border: 1px solid var(--stroke);
}

.contact-box h2 {
  margin-top: 0;
}

.contact-box a {
  font-weight: 700;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px 40px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .header-inner {
    padding: 12px 16px;
  }

  main {
    padding: 20px 16px 48px;
  }

  .hero {
    padding: 28px 22px;
  }

  .content-card {
    padding: 22px 18px;
  }

  .brand span {
    font-size: 0.95rem;
  }
}
