/* Public Blog/posts page. */
.blog-index-page {
  --blog-cyan: #3ce3df;
  --blog-text: #f7fbff;
  --blog-muted: #afbdd0;
  --blog-border: rgb(64 224 219 / 22%);
  overflow: clip;
  background: #030912;
}

.blog-index-page section[id] { scroll-margin-top: 6.5rem; }
.blog-index-shell { width: min(calc(100% - (2 * var(--container-gutter))), 82rem); max-width: none; }
.blog-index-section { position: relative; padding-block: clamp(4.5rem, 7vw, 7rem); }

.blog-index-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--blog-cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.145em;
  line-height: 1.2;
}

.blog-index-eyebrow::before {
  width: 2rem;
  height: 0.15rem;
  border-radius: 999px;
  background: var(--blog-cyan);
  box-shadow: 0 0 1rem rgb(60 227 223 / 30%);
  content: "";
}

.blog-index-section__header {
  max-width: 57rem;
  margin: 0 auto clamp(2.3rem, 4vw, 3.5rem);
  text-align: center;
}

.blog-index-section__header h2,
.blog-index-navigation h2,
.blog-index-final h2 {
  margin: 0;
  color: var(--blog-text);
  font-size: clamp(2.15rem, 1.55rem + 2vw, 3.55rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-wrap: balance;
}

.blog-index-section__header > p:last-child,
.blog-index-navigation__intro > p,
.blog-index-final__container > p {
  color: var(--blog-muted);
  font-size: clamp(1rem, 0.94rem + 0.16vw, 1.1rem);
  line-height: 1.75;
}

.blog-index-section__header > p:last-child { max-width: 48rem; margin: 1.1rem auto 0; }

/* Hero */
.blog-index-hero {
  position: relative;
  isolation: isolate;
  min-height: 44rem;
  padding-block: clamp(4.5rem, 7vw, 7.25rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 79% 44%, rgb(25 198 205 / 15%), transparent 30rem),
    radial-gradient(circle at 8% 8%, rgb(13 93 148 / 13%), transparent 27rem),
    linear-gradient(135deg, #030a14 0%, #071422 53%, #04101b 100%);
}

.blog-index-hero::before,
.blog-index-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  filter: blur(5.5rem);
}

.blog-index-hero::before { top: 15%; right: -10rem; width: 27rem; height: 27rem; background: rgb(38 219 216 / 8%); }
.blog-index-hero::after { bottom: -16rem; left: 9%; width: 31rem; height: 31rem; background: rgb(14 102 163 / 7%); }

.blog-index-hero__grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgb(61 218 222 / 8%) 1px, transparent 1px), linear-gradient(90deg, rgb(61 218 222 / 8%) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: radial-gradient(ellipse 88% 78% at 71% 46%, #000 6%, transparent 82%);
}

.blog-index-hero__container {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(26rem, 0.94fr);
  gap: clamp(3rem, 6vw, 6.5rem);
  align-items: center;
  width: min(calc(100% - (2 * var(--container-gutter))), 85rem);
  max-width: none;
}

.blog-index-hero__content,
.blog-index-hero__visual { min-width: 0; }

.blog-index-hero h1 {
  max-width: 50rem;
  margin: 0;
  color: #fff;
  font-size: clamp(3.3rem, 4.8vw, 5.35rem);
  font-weight: 880;
  letter-spacing: -0.055em;
  line-height: 0.99;
  text-wrap: balance;
}

.blog-index-hero h1::after {
  display: block;
  width: clamp(4rem, 7vw, 6rem);
  height: 0.26rem;
  margin-top: 1.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #36e8e2, #139eca);
  box-shadow: 0 0 1.2rem rgb(54 232 226 / 22%);
  content: "";
}

.blog-index-hero__intro {
  max-width: 45rem;
  margin: 1.6rem 0 0;
  color: #b5c2d4;
  font-size: clamp(1.02rem, 0.95rem + 0.22vw, 1.16rem);
  line-height: 1.75;
}

.blog-index-hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.blog-index-hero__actions .button { min-width: 13rem; min-height: 3.45rem; }

.blog-index-hero__visual {
  position: relative;
  width: min(100%, 36rem);
  aspect-ratio: 1.03;
  margin-inline: auto;
}

.blog-index-visual__glow { position: absolute; inset: 10% 2% 3%; border-radius: 50%; background: rgb(26 210 209 / 18%); filter: blur(4.2rem); }

.blog-index-visual__card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgb(85 232 227 / 38%);
  border-radius: 1.15rem;
  background: #0a1c2b;
  box-shadow: 0 1.75rem 4rem rgb(0 0 0 / 40%);
}

.blog-index-visual__card img { width: 100%; height: 100%; object-fit: cover; }
.blog-index-visual__card::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgb(2 11 20 / 82%) 100%); content: ""; }
.blog-index-visual__card--main { z-index: 2; inset: 13% 10% 13% 5%; transform: rotate(-2deg); }
.blog-index-visual__card--top { z-index: 1; top: 2%; right: 0; width: 42%; height: 32%; transform: rotate(5deg); }
.blog-index-visual__card--bottom { z-index: 3; right: 0; bottom: 3%; width: 43%; height: 30%; transform: rotate(3deg); }
.blog-index-visual__card--main > span { position: absolute; z-index: 2; right: 1.25rem; bottom: 1.15rem; left: 1.25rem; }
.blog-index-visual__card--main small { display: block; margin-bottom: 0.25rem; color: #47e4df; font-size: 0.65rem; font-weight: 850; letter-spacing: 0.14em; }
.blog-index-visual__card--main strong { color: #fff; font-size: 1.1rem; }

.blog-index-visual__badge {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgb(75 229 224 / 38%);
  border-radius: 0.9rem;
  color: #fff;
  background: rgb(5 18 31 / 93%);
  box-shadow: 0 1.4rem 3rem rgb(0 0 0 / 35%);
  font-size: 0.82rem;
}

.blog-index-visual__badge span { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 50%; color: #03131c; background: #43e5e0; font-weight: 900; }

/* Articles */
.blog-index-articles {
  background: radial-gradient(circle at 8% 8%, rgb(25 202 211 / 10%), transparent 24rem), #f4f6f9;
}
.blog-index-articles .blog-index-section__header h2 { color: #071321; }
.blog-index-articles .blog-index-section__header > p:last-child { color: #5b6878; }
.blog-index-articles .blog-index-eyebrow { color: #008f99; }
.blog-index-articles .blog-index-eyebrow::before { background: #12bfc8; box-shadow: none; }
.blog-index-articles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }

.blog-index-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce3ea;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgb(7 23 38 / 8%);
  flex-direction: column;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.blog-index-card:hover { border-color: #b9dfe2; box-shadow: 0 1.25rem 2.8rem rgb(7 23 38 / 13%); transform: translateY(-0.2rem); }

.blog-index-card__media { position: relative; display: block; aspect-ratio: 1.78; overflow: hidden; background: #dfe8ee; }
.blog-index-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.blog-index-card:hover .blog-index-card__image { transform: scale(1.025); }

.blog-index-card__fallback { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #087e87; background: linear-gradient(135deg, #e8f5f6, #dfe9ef); }
.blog-index-card__fallback svg { width: 4.5rem; height: 4.5rem; fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.25; opacity: 0.78; }
.blog-index-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.55rem 1.45rem 1.65rem; }
.blog-index-card__category { width: fit-content; padding: 0; border: 0; color: #058f9a; background: transparent; font-size: 0.76rem; font-weight: 750; letter-spacing: 0.01em; text-transform: none; }
.blog-index-card h3 { margin: 1.05rem 0 0; color: #071321; font-size: clamp(1.18rem, 1.08rem + 0.25vw, 1.38rem); letter-spacing: -0.02em; line-height: 1.35; }
.blog-index-card h3 a { color: inherit; text-decoration: none; }
.blog-index-card h3 a:hover { color: #007f89; }
.blog-index-card__body > .blog-index-card__meta { margin: 0.8rem 0 0; color: #0699a4; font-size: 0.74rem; font-weight: 650; line-height: 1.45; }
.blog-index-card__body > .blog-index-card__excerpt { display: -webkit-box; margin: 1rem 0 0; overflow: hidden; color: #4c5969; font-size: 0.9rem; line-height: 1.68; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.blog-index-card__link { display: inline-flex; width: fit-content; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 1.25rem; color: #007f89; font-size: 0.82rem; font-weight: 780; text-decoration: none; }
.blog-index-card__link:hover { color: #071321; }
.blog-index-card__status { width: fit-content; margin-top: auto; padding-top: 1.35rem; color: #768aa2; font-size: 0.78rem; font-weight: 720; }

.blog-index-empty { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; max-width: 64rem; padding: 1.5rem; margin-inline: auto; border: 1px solid var(--blog-border); border-radius: 1rem; background: rgb(8 24 39 / 88%); }
.blog-index-empty__icon { display: inline-flex; width: 4rem; height: 4rem; align-items: center; justify-content: center; border-radius: 0.9rem; color: #43e2dd; background: rgb(40 207 204 / 10%); }
.blog-index-empty__icon svg { width: 2.2rem; height: 2.2rem; fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; }
.blog-index-empty h3 { margin: 0; color: #fff; font-size: 1.15rem; }
.blog-index-empty p { margin: 0.35rem 0 0; color: #aebcd0; font-size: 0.88rem; }

.blog-index-articles .navigation.pagination { margin-top: 2.5rem; }
.blog-index-articles .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.blog-index-articles .page-numbers { display: inline-flex; min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; padding: 0.5rem 0.75rem; border: 1px solid #d9e1e8; border-radius: 0.6rem; color: #172536; background: #fff; box-shadow: 0 0.4rem 1.2rem rgb(7 23 38 / 6%); font-size: 0.8rem; font-weight: 730; text-decoration: none; }
.blog-index-articles .page-numbers.current,
.blog-index-articles .page-numbers:hover { border-color: #12bfc8; color: #03121b; background: #39dfdb; }

/* Topics */
.blog-index-topics { border-block: 1px solid rgb(55 218 214 / 10%); background: radial-gradient(circle at 50% 0%, rgb(20 185 190 / 9%), transparent 30rem), #030a13; }
.blog-index-topics__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.blog-index-topic-card { display: grid; min-width: 0; min-height: 9rem; grid-template-columns: 3.25rem minmax(0, 1fr) 1.5rem; gap: 0.9rem; align-items: center; padding: 1.25rem; border: 1px solid var(--blog-border); border-radius: 1rem; color: #f3f8fc; background: linear-gradient(145deg, #0b1c2c, #06121f); text-decoration: none; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.blog-index-topic-card:hover { border-color: rgb(68 230 224 / 48%); color: #fff; box-shadow: 0 1.25rem 2.6rem rgb(0 0 0 / 20%); transform: translateY(-0.2rem); }
.blog-index-topic-card__icon { display: inline-flex; width: 3.25rem; height: 3.25rem; align-items: center; justify-content: center; border: 1px solid rgb(64 230 224 / 32%); border-radius: 0.9rem; color: #48e4df; background: rgb(39 212 208 / 10%); }
.blog-index-topic-card__icon svg { width: 1.65rem; height: 1.65rem; fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.55; }
.blog-index-topic-card strong { display: block; font-size: 1rem; line-height: 1.25; }
.blog-index-topic-card small { display: block; margin-top: 0.35rem; color: #9eafc3; font-size: 0.78rem; line-height: 1.5; }
.blog-index-topic-card__arrow { color: #52e4df; }

/* Internal navigation */
.blog-index-navigation { background: radial-gradient(circle at 5% 25%, rgb(12 113 154 / 7%), transparent 25rem), linear-gradient(180deg, #05101c, #040b14); }
.blog-index-navigation__container { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(30rem, 1.22fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; width: min(calc(100% - (2 * var(--container-gutter))), 76rem); max-width: none; }
.blog-index-navigation__intro > p:not(.blog-index-eyebrow) { margin: 1.1rem 0 0; }
.blog-index-navigation__links ul { display: grid; gap: 0.65rem; padding: 0; margin: 0; list-style: none; }
.blog-index-navigation__links a { display: grid; grid-template-columns: minmax(0, 1fr) 2rem; gap: 1rem; align-items: center; min-height: 5rem; padding: 0.85rem 1rem; border: 1px solid rgb(66 220 217 / 18%); border-radius: 0.85rem; color: #eef7fc; background: rgb(8 24 39 / 78%); text-decoration: none; }
.blog-index-navigation__links a:hover { border-color: rgb(68 229 224 / 42%); color: #fff; background: rgb(10 33 50 / 90%); }
.blog-index-navigation__links strong { display: block; font-size: 0.94rem; }
.blog-index-navigation__links small { display: block; margin-top: 0.22rem; color: #96a8bc; font-size: 0.76rem; line-height: 1.45; }
.blog-index-navigation__links a > span:last-child { color: #50e3df; text-align: center; }

/* FAQ */
.blog-index-faq { background: radial-gradient(circle at 10% 30%, rgb(13 114 156 / 7%), transparent 25rem), #040b14; }
.blog-index-faq__container { width: min(calc(100% - (2 * var(--container-gutter))), 64rem); max-width: none; }
.blog-index-faq__list { display: grid; gap: 0.75rem; }
.blog-index-faq__item { overflow: hidden; border: 1px solid rgb(68 220 217 / 18%); border-radius: 0.9rem; background: linear-gradient(145deg, rgb(9 26 42 / 96%), rgb(5 16 28 / 96%)); transition: border-color 180ms ease, box-shadow 180ms ease; }
.blog-index-faq__item.is-open { border-color: rgb(70 225 221 / 38%); box-shadow: 0 1.2rem 3rem rgb(0 0 0 / 12%); }
.blog-index-faq__question { margin: 0; }
.blog-index-faq__question button { display: grid; width: 100%; min-height: 4.75rem; grid-template-columns: minmax(0, 1fr) 2.2rem; gap: 1.25rem; align-items: center; padding: 1.15rem 1.35rem; border: 0; color: #f3f8fc; background: transparent; cursor: pointer; font-size: 1rem; font-weight: 750; line-height: 1.45; text-align: left; }
.blog-index-faq__question button:hover { color: #5ae6e2; }
.blog-index-faq__icon { position: relative; display: inline-flex; width: 2.2rem; height: 2.2rem; align-items: center; justify-content: center; border: 1px solid rgb(65 225 221 / 34%); border-radius: 50%; color: #4be5e0; background: rgb(42 208 205 / 8%); }
.blog-index-faq__icon span { position: absolute; width: 0.75rem; height: 1.5px; border-radius: 999px; background: currentcolor; transition: transform 180ms ease; }
.blog-index-faq__icon span:last-child { transform: rotate(90deg); }
.blog-index-faq__question button[aria-expanded="true"] .blog-index-faq__icon span:last-child { transform: rotate(0deg); }
.blog-index-faq__answer > div { padding: 0 4.8rem 1.35rem 1.35rem; }
.blog-index-faq__answer p { max-width: 50rem; margin: 0; color: #aebdd0; font-size: 0.93rem; line-height: 1.7; }
.js .blog-index-faq__answer[hidden] { display: none; }

/* Final CTA */
.blog-index-final { position: relative; padding: clamp(4.5rem, 7vw, 7rem) 0; overflow: hidden; background: linear-gradient(180deg, #030a13, #050c16); }
.blog-index-final__container { position: relative; isolation: isolate; width: min(calc(100% - (2 * var(--container-gutter))), 61rem); max-width: none; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5.25rem); overflow: hidden; border: 1px solid rgb(65 226 221 / 39%); border-radius: 1.5rem; background: radial-gradient(circle at 50% 0%, rgb(39 219 215 / 12%), transparent 24rem), linear-gradient(145deg, rgb(9 28 44 / 97%), rgb(4 14 25 / 98%)); box-shadow: 0 2rem 5rem rgb(0 0 0 / 25%), inset 0 1px 0 rgb(255 255 255 / 4%); text-align: center; }
.blog-index-final__glow { position: absolute; z-index: -1; top: -16rem; left: 50%; width: 32rem; height: 32rem; border-radius: 50%; background: rgb(38 221 216 / 10%); transform: translateX(-50%); filter: blur(4rem); }
.blog-index-final .blog-index-eyebrow::before { display: none; }
.blog-index-final__container > p:not(.blog-index-eyebrow) { max-width: 42rem; margin: 1.1rem auto 0; }
.blog-index-final__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 2rem; }
.blog-index-final__actions .button { min-width: 13rem; }

@media (prefers-reduced-motion: reduce) {
  .blog-index-page *, .blog-index-page *::before, .blog-index-page *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 75rem) {
  .blog-index-hero__container { grid-template-columns: minmax(0, 1fr) minmax(23rem, 0.86fr); gap: 3rem; }
  .blog-index-hero h1 { font-size: clamp(3rem, 5.2vw, 4.5rem); }
  .blog-index-articles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 64rem) {
  .blog-index-hero { min-height: 0; padding-block: 4.75rem 5.5rem; }
  .blog-index-hero__container { grid-template-columns: minmax(0, 1fr); max-width: 49rem; }
  .blog-index-hero__visual { width: min(100%, 39rem); }
  .blog-index-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-index-navigation__container { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; max-width: 48rem; }
}

@media (max-width: 48rem) {
  .blog-index-section, .blog-index-final { padding-block: 4rem; }
  .blog-index-section__header { margin-bottom: 2rem; }
  .blog-index-hero { padding-block: 4rem 4.75rem; }
  .blog-index-hero__container { gap: 2.75rem; }
  .blog-index-hero h1 { font-size: clamp(2.65rem, 10vw, 3.75rem); }
  .blog-index-articles__grid, .blog-index-topics__grid { grid-template-columns: minmax(0, 1fr); }
  .blog-index-empty { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .blog-index-empty .button { grid-column: 1 / -1; width: 100%; }
  .blog-index-faq__question button { min-height: 4.5rem; padding: 1rem 1.05rem; }
  .blog-index-faq__answer > div { padding: 0 1.05rem 1.15rem; }
}

@media (max-width: 30rem) {
  .blog-index-hero__actions, .blog-index-final__actions { align-items: stretch; flex-direction: column; }
  .blog-index-hero__actions .button, .blog-index-final__actions .button { width: 100%; }
  .blog-index-hero__visual { aspect-ratio: 0.95; }
  .blog-index-visual__badge { right: 4%; left: 4%; justify-content: center; }
  .blog-index-topic-card { grid-template-columns: 2.8rem minmax(0, 1fr) 1.2rem; padding: 1rem; }
  .blog-index-topic-card__icon { width: 2.8rem; height: 2.8rem; }
  .blog-index-final__container { padding: 2.5rem 1.15rem; border-radius: 1.15rem; }
}

@media (max-width: 22rem) {
  .blog-index-hero h1 { font-size: 2.35rem; }
  .blog-index-section__header h2, .blog-index-navigation h2, .blog-index-final h2 { font-size: 2rem; }
  .blog-index-eyebrow { font-size: 0.7rem; }
}
