.home-page main { padding: 0 0 64px; }
.home-page .site-header { background: color-mix(in srgb, var(--surface) 94%, transparent); }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  min-height: min(690px, calc(100vh - 58px));
  padding-top: clamp(56px, 8vw, 106px);
  padding-bottom: clamp(52px, 7vw, 92px);
}
.home-hero__content { max-width: 760px; }
.home-hero h1 { max-width: 760px; font-size: clamp(2.55rem, 5.2vw, 5.1rem); line-height: 0.99; letter-spacing: -0.055em; font-weight: 780; text-wrap: balance; }
.home-hero__lead { max-width: 650px; margin-top: 24px; color: var(--text-secondary); font-size: clamp(1.05rem, 1.45vw, 1.28rem); line-height: 1.55; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.home-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid transparent; border-radius: 999px; font-size: 0.82rem; font-weight: 750; transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition); }
.home-button:hover { transform: translateY(-1px); }
.home-button--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 9px 20px color-mix(in srgb, var(--brand) 19%, transparent); }
.home-button--primary:hover { background: var(--brand-strong); }
.home-button--secondary { border-color: var(--border); background: var(--surface); color: var(--text); }
.home-button--secondary:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.home-button--ghost { border-color: color-mix(in srgb, #fff 28%, transparent); color: #fff; background: transparent; }
.home-button--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.11); }
.home-search { max-width: 670px; margin-top: 42px; padding: 13px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 84%, var(--surface-tint)); box-shadow: var(--shadow-sm); }
.home-search label { display: block; margin: 0 0 7px 4px; color: var(--text-muted); font-size: 0.7rem; font-weight: 760; }
.home-search__controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.home-search input { min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 0.82rem; }
.home-search input:focus { border-color: var(--brand); outline: 3px solid var(--brand-soft); }
.home-search .home-button { min-height: 42px; border-radius: var(--radius-sm); }
.home-snapshot { position: relative; overflow: hidden; padding: 24px; border: 1px solid color-mix(in srgb, var(--brand) 29%, var(--border)); border-radius: 20px; background: linear-gradient(150deg, color-mix(in srgb, var(--surface-tint) 88%, var(--surface)) 0%, var(--surface) 72%); box-shadow: 0 25px 65px rgba(26, 54, 70, 0.11); }
.home-snapshot::before { content: ''; position: absolute; width: 230px; height: 230px; right: -74px; top: -80px; border: 1px solid color-mix(in srgb, var(--brand) 23%, transparent); border-radius: 50%; box-shadow: 0 0 0 22px color-mix(in srgb, var(--brand) 7%, transparent), 0 0 0 45px color-mix(in srgb, var(--brand) 4%, transparent); }
.home-snapshot__head { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--success); font-size: 0.72rem; font-weight: 760; }
.home-snapshot__signal { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 13%, transparent); }
.home-snapshot__title { position: relative; margin-top: 58px; font-size: 1.18rem; font-weight: 760; }
.home-snapshot__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.home-snapshot__grid div { min-width: 0; padding: 14px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--surface) 78%, transparent); }
.home-snapshot__grid strong { display: block; color: var(--text); font-size: 1.45rem; line-height: 1; font-variant-numeric: tabular-nums; }
.home-snapshot__grid span { display: block; margin-top: 6px; color: var(--text-muted); font-size: 0.68rem; line-height: 1.25; }
.home-snapshot__link { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-soft); color: var(--brand); font-size: 0.72rem; font-weight: 730; }
.home-snapshot__link:hover { color: var(--brand-strong); }
.home-section { padding-top: clamp(58px, 7vw, 94px); }
.home-section__heading { max-width: 750px; }
.home-section__heading h2, .home-trust h2, .home-developer h2 { max-width: 820px; font-size: clamp(1.75rem, 3.2vw, 2.8rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 760; text-wrap: balance; }
.home-section__heading > p:last-child, .home-trust__copy > p, .home-developer > div:first-child > p:last-child { max-width: 660px; margin-top: 12px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55; }
.home-section__heading--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 0.65fr); gap: 30px; align-items: end; }
.home-section__heading--split > div:last-child { padding-bottom: 3px; }
.home-inline-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: 15px; color: var(--brand); font-size: 0.75rem; font-weight: 760; }
.home-inline-link:hover { color: var(--brand-strong); }
.home-task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.home-task-card { position: relative; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: 25px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition); }
.home-task-card:hover { border-color: var(--brand-border); background: var(--surface-tint); box-shadow: var(--shadow-map); transform: translateY(-3px); }
.home-task-card__index { color: var(--brand); font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; font-weight: 760; }
.home-task-card__body { display: block; }
.home-task-card__body strong { display: block; color: var(--text); font-size: 1rem; line-height: 1.2; }
.home-task-card__body small { display: block; max-width: 220px; margin-top: 8px; color: var(--text-muted); font-size: 0.74rem; line-height: 1.45; }
.home-task-card__arrow { align-self: flex-end; color: var(--brand); font-size: 1.1rem; }
.home-preview { padding-top: clamp(72px, 9vw, 120px); }
.home-atlas-card { overflow: hidden; margin-top: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 20px 45px rgba(23, 35, 52, 0.08); }
.home-atlas-card__toolbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--border-soft); color: var(--text); font-size: 0.76rem; font-weight: 760; }
.home-atlas-card__toolbar-pill { padding: 5px 9px; border: 1px solid var(--border-soft); border-radius: 999px; color: var(--text-muted); font-size: 0.64rem; font-weight: 650; }
.home-atlas-card__body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr); min-height: 365px; }
.home-atlas-card__map { position: relative; min-height: 365px; overflow: hidden; background: linear-gradient(135deg, #e9f2ef 0%, #d3e7e0 49%, #edf1ed 100%); }
[data-theme="dark"] .home-atlas-card__map { background: linear-gradient(135deg, #1c3538 0%, #234d4e 54%, #1b272b 100%); }
.home-atlas-card__map::before, .home-atlas-card__map::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(35deg, transparent 48%, rgba(255,255,255,0.55) 49%, transparent 50%), linear-gradient(155deg, transparent 47%, rgba(255,255,255,0.4) 48%, transparent 49%); background-size: 170px 150px, 200px 180px; opacity: 0.62; }
.home-map-shape { position: absolute; display: block; border: 1px solid rgba(18, 93, 95, 0.5); background: rgba(121, 182, 170, 0.31); clip-path: polygon(8% 22%, 31% 8%, 62% 12%, 89% 34%, 76% 78%, 45% 91%, 17% 73%); }
.home-map-shape--one { width: 45%; height: 48%; left: 11%; top: 14%; transform: rotate(-11deg); }
.home-map-shape--two { width: 43%; height: 54%; left: 39%; top: 8%; transform: rotate(18deg); background: rgba(70, 143, 152, 0.27); }
.home-map-shape--three { width: 42%; height: 49%; left: 20%; top: 50%; transform: rotate(26deg); background: rgba(174, 195, 133, 0.28); }
.home-map-shape--four { width: 37%; height: 43%; left: 59%; top: 47%; transform: rotate(-15deg); background: rgba(71, 127, 166, 0.24); }
.home-map-point { position: absolute; z-index: 1; width: 24px; height: 24px; border: 4px solid rgba(255, 255, 255, 0.85); border-radius: 50%; background: var(--brand); box-shadow: 0 5px 13px rgba(0, 77, 82, 0.25); }
.home-map-point--one { left: 34%; top: 34%; }
.home-map-point--two { left: 56%; top: 51%; background: var(--blue); }
.home-map-point--three { left: 72%; top: 26%; width: 17px; height: 17px; background: #c0872c; }
.home-atlas-card__map-label { position: absolute; z-index: 2; left: 18px; bottom: 16px; color: rgba(18, 71, 74, 0.48); font-size: clamp(1.1rem, 3vw, 2rem); font-weight: 780; letter-spacing: 0.14em; }
.home-atlas-card__side { display: flex; flex-direction: column; padding: 28px; background: var(--surface); }
.home-atlas-card__side strong { margin-top: 3px; font-size: 1.25rem; line-height: 1.15; }
.home-atlas-card__side > p:not(.eyebrow) { margin-top: 10px; color: var(--text-secondary); font-size: 0.79rem; line-height: 1.5; }
.home-bars { display: grid; gap: 10px; margin-top: auto; padding-top: 30px; }
.home-bars span { position: relative; display: block; width: var(--bar-size); height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--blue)); }
.home-bar--one { --bar-size: 92%; }
.home-bar--two { --bar-size: 77%; }
.home-bar--three { --bar-size: 62%; }
.home-bar--four { --bar-size: 48%; }
.home-bars span::after { content: ''; position: absolute; left: calc(var(--bar-size) + 10px); right: calc(-1 * (100% - var(--bar-size)) - 10px); top: 3px; height: 4px; border-radius: 99px; background: var(--surface-muted); }
.home-atlas-card__side .home-inline-link { margin-top: 24px; }
.home-domain-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.home-domain-card { min-height: 238px; display: flex; flex-direction: column; align-items: flex-start; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color var(--transition), background var(--transition), transform var(--transition); }
.home-domain-card:hover { border-color: var(--brand-border); background: var(--surface-tint); transform: translateY(-2px); }
.home-domain-card__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 1.3rem; }
.home-domain-card__icon--statistics { background: var(--blue-soft); color: var(--blue); }
.home-domain-card__icon--infrastructure { background: var(--amber-soft); color: var(--amber); }
.home-domain-card__icon--eo { background: #e8eef0; color: #3e6f75; }
.home-domain-card strong { margin-top: 22px; font-size: 0.98rem; line-height: 1.2; }
.home-domain-card p { margin-top: 9px; color: var(--text-muted); font-size: 0.75rem; line-height: 1.48; }
.home-domain-card .home-inline-link { margin-top: auto; }
.home-audience-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.home-audience-grid article { min-height: 180px; padding: 18px; border-top: 2px solid var(--brand); background: color-mix(in srgb, var(--surface) 78%, var(--surface-subtle)); }
.home-audience-grid article:nth-child(2) { border-color: var(--blue); }
.home-audience-grid article:nth-child(3) { border-color: var(--amber); }
.home-audience-grid article:nth-child(4) { border-color: var(--success); }
.home-audience-grid__label { color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; }
.home-audience-grid h3 { margin-top: 22px; font-size: 0.95rem; line-height: 1.2; }
.home-audience-grid p { margin-top: 8px; color: var(--text-muted); font-size: 0.74rem; line-height: 1.48; }
.home-trust { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 38px; align-items: center; margin-top: clamp(68px, 9vw, 120px); padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.home-trust__copy > p:not(.eyebrow) { max-width: 520px; }
.home-trust__copy .home-button { margin-top: 24px; }
.home-trust__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.home-trust__facts div { min-height: 150px; display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.home-trust__facts strong { color: var(--brand); font-size: 1.55rem; line-height: 1; font-variant-numeric: tabular-nums; }
.home-trust__facts span { margin-top: 18px; color: var(--text); font-size: 0.78rem; font-weight: 760; }
.home-trust__facts small { margin-top: 7px; color: var(--text-muted); font-size: 0.68rem; line-height: 1.4; }
.home-developer { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: clamp(60px, 8vw, 100px); padding: 28px 30px; border-radius: 16px; background: linear-gradient(120deg, #123b57 0%, #075f65 70%, #08777b 100%); color: #fff; box-shadow: 0 18px 38px rgba(4, 50, 66, 0.18); }
.home-developer .eyebrow { color: #8ed6d2; }
.home-developer h2 { max-width: 630px; }
.home-developer > div:first-child > p:last-child { color: #d2dee6; }
.home-developer__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.home-page .site-footer { margin-top: 0; }

@media (max-width: 1080px) {
  .home-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr); gap: 34px; }
  .home-task-grid, .home-domain-grid, .home-audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-task-card { min-height: 160px; }
}

@media (max-width: 820px) {
  .home-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 54px; }
  .home-hero h1 { max-width: 690px; font-size: clamp(2.55rem, 9vw, 4.2rem); }
  .home-snapshot { max-width: 620px; }
  .home-section__heading--split, .home-trust { grid-template-columns: 1fr; gap: 20px; }
  .home-atlas-card__body { grid-template-columns: 1fr; }
  .home-atlas-card__map { min-height: 280px; }
  .home-atlas-card__side { min-height: 270px; }
  .home-developer { align-items: flex-start; flex-direction: column; }
  .home-developer__actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .home-page main { padding-bottom: 42px; }
  .home-hero { width: min(100% - 32px, 1240px); padding-top: 42px; padding-bottom: 50px; }
  .home-hero h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .home-hero__lead { font-size: 0.98rem; }
  .home-search { margin-top: 30px; }
  .home-search__controls { grid-template-columns: 1fr; }
  .home-search .home-button { width: 100%; }
  .home-section { width: min(100% - 32px, 1240px); padding-top: 58px; }
  .home-task-grid, .home-domain-grid, .home-audience-grid, .home-trust__facts { grid-template-columns: 1fr; }
  .home-task-card { min-height: 130px; }
  .home-atlas-card__toolbar { align-items: flex-start; flex-direction: column; justify-content: center; min-height: 76px; padding: 12px 14px; }
  .home-atlas-card__map { min-height: 230px; }
  .home-atlas-card__side { padding: 21px; }
  .home-trust { width: min(100% - 32px, 1240px); margin-top: 58px; padding-top: 26px; padding-bottom: 26px; }
  .home-developer { width: min(100% - 32px, 1240px); margin-top: 58px; padding: 23px 20px; }
  .home-developer__actions { width: 100%; }
  .home-developer__actions .home-button { flex: 1 1 170px; }
  .home-snapshot { padding: 19px; border-radius: 15px; }
  .home-snapshot__title { margin-top: 46px; }
}
