/* Homepage redesign */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 92px;
  background: radial-gradient(circle at 88% 12%, #cce3f2 0, transparent 34%), linear-gradient(125deg, #f2f7fb, #dfedf6);
  border-bottom: 1px solid #d4e5ef;
}
.home-hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(350px, .95fr); align-items: center; gap: 62px; }
.home-hero-copy { position: relative; z-index: 1; }
.home-kicker, .home-section-kicker, .home-membership-kicker, .home-dataset-overline {
  display: inline-flex; align-items: center; gap: 10px;
  color: #0b5f95; font-size: .69rem; font-weight: 800; letter-spacing: .15em;
}
.home-kicker { padding: 9px 12px; margin-bottom: 22px; border: 1px solid #bad5e6; border-radius: 999px; background: #fff9; }
.home-kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: #3484c5; box-shadow: 0 0 0 4px #3484c528; }
.home-hero h1 { max-width: 650px; margin: 0 0 19px; color: #16324a; font-size: clamp(3rem, 4.5vw, 4.6rem); line-height: 1.05; letter-spacing: -.06em; }
.home-hero h1 em { color: #2d73ab; font-style: normal; }
.home-hero-copy > p { max-width: 550px; margin: 0 0 28px; color: #3e5b70; font-size: 1.07rem; line-height: 1.65; }
.home-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.home-hero-actions .button-primary { background: #17476e; color: #fff; box-shadow: 0 10px 24px #17476e24; }
.home-hero-actions .button-primary:hover { background: #0e385b; }
.home-text-link { display: inline-flex; align-items: center; gap: 10px; color: #17476e; font-weight: 800; font-size: .9rem; }
.home-text-link:hover { color: #0b5f95; }
.home-text-link span { font-size: 1.2rem; }

.home-preview {
  position: relative; padding: 24px; color: #edf7fc;
  background: linear-gradient(145deg, #14354f, #1c5a83 78%, #2b79a8);
  border: 1px solid #629bc04d; border-radius: 24px;
  box-shadow: 0 26px 60px #153b582b, inset 0 1px #ffffff33;
}
.home-preview::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border: 1px solid #7bb1d24d; border-radius: 24px; }
.home-preview-top { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: .68rem; font-weight: 800; letter-spacing: .15em; }
.home-preview-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #16324a; background: #d9edf8; font-size: 1rem; }
.home-preview-dots { margin-left: auto; color: #9ec6df; font-size: .48rem; letter-spacing: .25em; }
.home-preview-search { display: flex; align-items: center; gap: 11px; padding: 14px 16px; margin-bottom: 14px; color: #55738a; background: #f8fbfd; border-radius: 10px; font-size: .8rem; }
.home-preview-search > span:first-child { font-size: 1.35rem; line-height: .7; }
.home-preview-list { display: grid; gap: 9px; }
.home-preview-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #ffffffeb; border-radius: 10px; }
.home-preview-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; color: #2d73ab; background: #e7f1f8; border-radius: 7px; font-size: 1rem; }
.home-preview-lines { display: grid; gap: 6px; flex: 1; }
.home-preview-lines i { display: block; width: 73%; height: 6px; border-radius: 99px; background: #b7cfdf; }
.home-preview-lines i + i { width: 46%; height: 5px; background: #d9e6ee; }
.home-preview-row:nth-child(2) .home-preview-lines i:first-child { width: 58%; }
.home-preview-row:nth-child(3) .home-preview-lines i:first-child { width: 82%; }
.home-preview-pill { width: 44px; height: 18px; border-radius: 99px; background: #d9edf8; }
.home-preview-bottom { display: flex; justify-content: space-between; margin-top: 18px; color: #d7ecf7; font-size: .75rem; font-weight: 700; }

.home-values {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: -41px; padding: 25px 30px; background: #fff;
  border: 1px solid #d7e4ed; border-radius: 17px; box-shadow: 0 18px 44px #16324a12;
}
.home-values > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 13px; padding: 0 20px; }
.home-values > div + div { border-left: 1px solid #e2ebf2; }
.home-values > div:first-child { padding-left: 0; }
.home-values > div:last-child { padding-right: 0; }
.home-values span { grid-row: span 2; color: #2d73ab; font-size: .73rem; font-weight: 800; }
.home-values strong { color: #16324a; font-size: .92rem; }
.home-values p { margin: 5px 0 0; color: #5a7182; font-size: .8rem; line-height: 1.45; }

.home-library { padding-top: 77px; padding-bottom: 72px; }
.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; }
.home-section-heading h2 { margin: 9px 0 8px; color: #16324a; font-size: clamp(2rem, 3.5vw, 3rem); }
.home-section-heading p { margin: 0; color: #4e6678; }
.home-section-link { display: inline-flex; align-items: center; gap: 13px; flex: none; margin-bottom: 7px; color: #0b5f95; font-weight: 800; font-size: .88rem; }
.home-section-link:hover { color: #16324a; }
.home-library-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(285px, .72fr); gap: 18px; }
.home-dataset-card, .home-guide-card { min-height: 318px; border-radius: 18px; }
.home-dataset-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden;
  padding: 35px 38px; color: #fff;
  background: linear-gradient(135deg, #153a57, #245f89);
  box-shadow: 0 18px 42px #17476e1e; transition: transform .2s, box-shadow .2s;
}
.home-dataset-card::after { content: ""; position: absolute; width: 280px; height: 280px; right: -118px; top: -120px; border: 1px solid #ffffff29; border-radius: 50%; box-shadow: 0 0 0 52px #ffffff08; pointer-events: none; }
a.home-dataset-card:hover { transform: translateY(-3px); box-shadow: 0 24px 49px #17476e2a; }
.home-dataset-overline { color: #c5e4f5; }
.home-dataset-card h3 { position: relative; z-index: 1; max-width: 620px; margin: 17px 0 11px; color: #fff; font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.home-dataset-card p { position: relative; z-index: 1; max-width: 640px; margin: 0 0 20px; color: #e2eff7; line-height: 1.6; }
.home-dataset-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.home-dataset-tags span { padding: 7px 10px; border: 1px solid #ffffff50; border-radius: 99px; color: #eef8fc; background: #ffffff13; font-size: .72rem; font-weight: 700; }
.home-dataset-cta { display: inline-flex; align-items: center; gap: 13px; margin-top: 20px; color: #fff; font-weight: 800; font-size: .88rem; }
.home-dataset-empty { justify-content: center; }
.home-guide-card { display: flex; flex-direction: column; align-items: flex-start; padding: 34px 33px; background: #eef5fa; border: 1px solid #c7dce9; }
.home-guide-card h3 { margin: 24px 0 12px; color: #16324a; font-size: 1.75rem; }
.home-guide-card p { margin: 0 0 20px; color: #4e6678; line-height: 1.63; }
.home-guide-card > a { display: inline-flex; gap: 12px; margin-top: auto; color: #0b5f95; font-weight: 800; font-size: .87rem; }
.home-more-list { width: 100%; margin-top: 22px; }
.home-more-list a { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; color: #16324a; border-bottom: 1px solid #cbdfeb; }
.home-more-list a:last-child { border-bottom: 0; }
.home-more-list small { display: block; margin-bottom: 4px; color: #2d73ab; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.home-more-list strong { font-size: .9rem; }
.home-more-list a > span:last-child { color: #2d73ab; }

.home-membership {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 38px;
  margin-bottom: 82px; padding: 40px 46px; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, #173a56, #245e87); border-radius: 19px;
  box-shadow: 0 19px 46px #173f6420;
}
.home-membership::after { content: ""; position: absolute; right: 20%; top: -155px; width: 390px; height: 390px; border: 1px solid #ffffff20; border-radius: 50%; pointer-events: none; }
.home-membership > div, .home-membership > a { position: relative; z-index: 1; }
.home-membership-kicker { color: #c6e4f4; }
.home-membership h2 { margin: 11px 0 8px; color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.home-membership p { max-width: 590px; margin: 0; color: #e2eff7; line-height: 1.55; }
.home-membership .button { flex: none; margin: 0; background: #fff; color: #17476e; }
.home-membership .button:hover { background: #e8f3f9; }

@media (max-width: 900px) {
  .home-hero-inner { gap: 30px; grid-template-columns: minmax(0, 1fr) minmax(310px, .9fr); }
  .home-hero h1 { font-size: clamp(2.8rem, 5vw, 4rem); }
  .home-preview { padding: 20px; }
  .home-values { padding: 21px 20px; }
  .home-values > div { padding: 0 12px; }
}
@media (max-width: 700px) {
  .home-hero { padding: 46px 0 77px; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .home-hero h1 { font-size: clamp(2.9rem, 10vw, 3.7rem); }
  .home-hero-copy > p { font-size: 1rem; }
  .home-preview { max-width: 500px; }
  .home-values { grid-template-columns: 1fr; gap: 0; margin-top: -38px; padding: 8px 24px; }
  .home-values > div, .home-values > div:first-child, .home-values > div:last-child { padding: 14px 0; }
  .home-values > div + div { border-left: 0; border-top: 1px solid #e2ebf2; }
  .home-library { padding-top: 58px; padding-bottom: 57px; }
  .home-section-heading { display: block; margin-bottom: 22px; }
  .home-section-heading h2 { font-size: 2.25rem; }
  .home-section-link { margin: 18px 0 0; }
  .home-library-layout { grid-template-columns: 1fr; }
  .home-dataset-card, .home-guide-card { min-height: 0; }
  .home-dataset-card { padding: 31px 27px; }
  .home-guide-card { padding: 30px 27px; }
  .home-guide-card h3 { margin-top: 18px; }
  .home-membership { display: block; margin-bottom: 60px; padding: 33px 29px; }
  .home-membership h2 { font-size: 2rem; }
  .home-membership .button { margin-top: 24px; }
}
@media (max-width: 380px) {
  .home-preview-row:nth-child(3) { display: none; }
  .home-hero-actions { gap: 16px; }
}
