:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --accent: #4353ff;
  --accent-hover: #3644e6;
  --border: #e4e4e7;
  --header-bg: #ffffff;
  --footer-bg: #1a1a2e;
  --footer-text: #e8e8ef;
  --footer-muted: #a0a0b8;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.04);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --max: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* —— Header (same on every page) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.site-brand__logo {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.site-nav__link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.site-nav__link:hover {
  color: var(--text);
  background: #f3f4f6;
}

.site-nav__link.is-active {
  color: var(--accent);
  background: #eef2ff;
}

.site-header__cta {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
}

.site-header__cta:hover {
  background: var(--accent-hover);
}

/* —— Main —— */
.site-main {
  flex: 1;
  width: 100%;
}

.site-main__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 48px;
}

.page-head {
  margin-bottom: 32px;
}

.page-head .badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: #eef2ff;
  border-radius: 999px;
}

.page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-head .lead,
.page-head .muted {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

.page-head .muted {
  font-size: 14px;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* —— Cards & content —— */
.card {
  margin-top: 20px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card:first-child {
  margin-top: 0;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.card ol,
.card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.card li {
  margin-bottom: 8px;
}

.card p {
  margin: 0 0 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn--primary {
  color: #fff;
  background: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn--ghost:hover {
  background: #f9fafb;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

code {
  font-size: 0.9em;
  padding: 2px 6px;
  background: #f3f4f6;
  border-radius: 4px;
}

/* —— Footer (same on every page) —— */
.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 32px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__brand {
  max-width: 280px;
}

.site-footer__brand .site-brand {
  color: #fff;
  margin-bottom: 10px;
}

.site-footer__brand .site-brand__logo {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.site-footer__tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--footer-muted);
}

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.site-footer__col h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--footer-muted);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li {
  margin-bottom: 8px;
}

.site-footer__links a {
  font-size: 14px;
  color: var(--footer-text);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--footer-muted);
}

.site-footer__bottom p {
  margin: 0;
}

.btn--lg {
  padding: 12px 22px;
  font-size: 15px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-lead {
  margin: 0 auto 28px;
  max-width: 36rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

/* —— Homepage —— */
.page-home .site-main__inner--home {
  padding-top: 48px;
  padding-bottom: 56px;
}

.home-hero {
  background: linear-gradient(165deg, #eef2ff 0%, #f8f9fc 45%, #f4f5f8 100%);
  border-bottom: 1px solid var(--border);
}

.home-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px 52px;
  text-align: center;
}

.home-hero__badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.home-hero__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}

.home-hero__lead {
  margin: 0 auto 28px;
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.home-hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-hero__pills li {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.home-features {
  margin-bottom: 48px;
}

.home-features__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 700px) {
  .home-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  font-size: 1.25rem;
  color: var(--accent);
  background: #eef2ff;
  border-radius: 10px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.home-steps {
  margin-bottom: 48px;
}

.step-list {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.step-list__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.5;
}

.step-list__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
}

.home-cta-band {
  padding: 36px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-cta-band h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.home-cta-band p {
  margin: 0 0 20px;
  color: var(--muted);
}

.home-cta-band .btn-row {
  justify-content: center;
  margin-top: 0;
}

.site-footer__bottom a {
  color: var(--footer-muted);
  text-decoration: none;
}

.site-footer__bottom a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .site-header__cta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .home-hero__inner {
    padding: 40px 20px 36px;
  }
}
