/* HD Admin² landing, ported from the Astro showcase (apps/web hd-admin-page.css)
   into the docs Home page. The mkdocs header + tabs replace the old hda-nav, so
   the nav block is gone and the hero fills the viewport under the fixed chrome.
   Everything is scoped to .hda-page so it cannot leak into docs pages */

/* The landing injects after the tabs block, so the page's empty content would
   otherwise leave a dead gap before the footer. The mobile nav drawer lives
   inside md-main too, so only the content and ToC go. The sidebar disappears
   at desktop widths where it would take layout space (on mobile it is the
   off-canvas drawer the hamburger opens) */
.md-container:has(.hda-page) .md-content,
.md-container:has(.hda-page) .md-sidebar--secondary {
  display: none;
}

@media (min-width: 76.1875em) {
  .md-container:has(.hda-page) .md-sidebar--primary {
    display: none;
  }
}

.md-container:has(.hda-page) .md-main__inner {
  margin-top: 0;
}

/* ────────────────────────────────────────────────────────────────────────
   Transparent chrome over the hero (Home only)
   The hero pulls up under the announce bar + header + tabs (--hda-chrome is
   measured by landing.js). Their solid backgrounds live on ::before layers
   whose opacity follows --hda-fade, a 0..1 scroll progress landing.js updates
   every scroll frame. Everything reads the ONE variable, so the whole chrome
   fades in together, tracking the scroll rather than animating on a trigger
   ──────────────────────────────────────────────────────────────────────── */
body:has(.hda-page) {
  --hda-fade: 0;
}

/* Pre-paint fast path. html.hda-home is set by a synchronous head script on the
   home page, so the chrome is already transparent on the first streamed frame,
   before body:has(.hda-page) can match (kills the solid-bar refresh flash) */
html.hda-home .md-banner,
html.hda-home .md-header,
html.hda-home .md-tabs {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body:has(.hda-page) .md-banner,
body:has(.hda-page) .md-header,
body:has(.hda-page) .md-tabs {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  isolation: isolate; /* keeps the ::before solid layer inside this element's stacking */
}

body:has(.hda-page) .md-banner::before,
body:has(.hda-page) .md-header::before,
body:has(.hda-page) .md-tabs::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: var(--hda-fade, 1);
  pointer-events: none;
}

body:has(.hda-page) .md-banner::before {
  background: linear-gradient(90deg, var(--hd-bgrad-1), var(--hd-bgrad-2) 60%, var(--hd-bgrad-3));
  border-bottom: 1px solid rgba(var(--hd-tint), 0.25);
}

body:has(.hda-page) .md-header::before {
  background: linear-gradient(
    90deg,
    var(--hd-grad-1) 0%,
    var(--hd-grad-2) 55%,
    var(--hd-grad-3) 100%
  );
  border-bottom: 1px solid rgba(var(--hd-tint), 0.25);
  box-shadow: 0 4px 24px rgba(var(--hd-strong-tint), 0.15);
}

body:has(.hda-page) .md-tabs::before {
  /* The tabs element extends up behind the whole header, so anchor its solid
     layer to the visible bottom strip only or it darkens the header too */
  inset: auto 0 0 0;
  height: 2.4rem;
  background: rgba(15, 15, 23, 0.6);
  border-bottom: 1px solid #26263a;
}

/* Text and the search field blend between their over-banner and solid looks
   with the same variable. The banner gets a dark glass fill and a hairline
   underline over the artwork (both hidden once the solid gradient fades in),
   so it reads as a component rather than loose text on the sky. No backdrop
   blur here, Chrome leaves tile seams when it repaints blurred fixed bars */
html.hda-home .md-banner {
  background: rgba(10, 18, 36, 0.34);
}

body:has(.hda-page) .md-banner {
  color: color-mix(in srgb, #c3cde6 calc(var(--hda-fade, 1) * 100%), rgba(255, 255, 255, 0.95));
  text-shadow: 0 1px 8px rgba(20, 40, 60, 0.55);
  background: rgba(10, 18, 36, 0.34);
  border-bottom-color: color-mix(
    in srgb,
    transparent calc(var(--hda-fade, 1) * 100%),
    rgba(255, 255, 255, 0.16)
  );
}

body:has(.hda-page) .md-banner a {
  color: color-mix(in srgb, var(--hd-pill-text) calc(var(--hda-fade, 1) * 100%), #ffffff);
}

body:has(.hda-page) .md-search__form {
  background: color-mix(
    in srgb,
    rgba(var(--hd-tint), 0.1) calc(var(--hda-fade, 1) * 100%),
    rgba(14, 22, 42, 0.25)
  );
  border-color: color-mix(
    in srgb,
    rgba(var(--hd-tint), 0.2) calc(var(--hda-fade, 1) * 100%),
    rgba(255, 255, 255, 0.18)
  );
}

body:has(.hda-page) .hda-hero {
  margin-top: calc(-1 * var(--hda-chrome, 4.8rem));
  /* The blend gradient starts softly inside the first viewport and finishes in
     this below-fold zone, so the fade is visible at rest without going black */
  min-height: calc(100svh + 60px);
}

/* The sky is bottom-anchored, so this only bites on short viewports where the
   title could otherwise slide under the transparent bars */
body:has(.hda-page) .hda-hero__sky {
  padding-top: var(--hda-chrome, 4.8rem);
}

/* A soft black fade at the very top lifts the transparent chrome off the
   bright sky */
body:has(.hda-page) .hda-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--hda-chrome, 4.8rem) + 80px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 1;
}

/* The pulled-up hero would otherwise paint over the static banner and steal
   its clicks (the header and tabs already carry their own z-index) */
body:has(.hda-page) .md-banner {
  position: relative;
  z-index: 5;
}

.hda-page {
  --g: #96db85; /* stat / accent green */
  --bt: #89c3ee; /* secondary-button blue text */
  --dark: #0b1120; /* dark scroll-section navy */
  --font-display: "Outfit", sans-serif;
  --font-sans: "Manrope", sans-serif;
  background: var(--dark);
}

/* Buttons share the utility styling the Astro page got from Tailwind classes */
.hda-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

/* ────────────────────────────────────────────────────────────────────────
   Hero
   ──────────────────────────────────────────────────────────────────────── */
.hda-hero {
  position: relative;
  /* Fill the viewport under the sticky mkdocs header (2.4rem) + tabs (2.4rem) */
  min-height: calc(100svh - 4.8rem);
  overflow: hidden;
  background-color: #63ab5e; /* matches the artwork's bottom grass rows */
  background-repeat: no-repeat;
  /* Each banner sits on a tiny data URI copy of itself. The real file is a
     late low-priority fetch on a cold load, so the copy fills the first
     frames as a soft preview instead of a flat colour wash. Regenerate with
     `pnpm dlx sharp-cli -i banner.png -o out resize 32` and base64 the result */
  background-image: url("../assets/landing/banner-portrait.webp"),
    url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAeCAIAAAC5TEmyAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAGbklEQVR4nIXO+U8b6RkH8Pml/QdWbVWtKrWqtj9UlRpt1bS7VaNms8kuIccawhVj5vJ4xp6xjcGE21wBHMINcbjN4fs2viHYAXwRDIlz1fMahpDNtj+1f0M1QFKS1bbSR6/0PM/3efRCxUa22MgWGU4Ilv6/ordhfteQK7HsX9PFoQorW275rzILW2b+nyzv5SssOaFjv3gqDsFOADtA1SmiY/bvcfBOJ2Eei3q4irkERHgA4QHit/BjblbszuFu9qQ8chw4HeZLNyvxc1XzCYj2A9kpUj+gfCwZ2CeCr6X+POUD0iOSZRbzspiHxT2503nazzJhDjMkIFUYVIdBdYinCgE6wPZvHNz1bs66nc+++/f87hupn1WEgCbKjade6R4djqQO5YEcnw8DVRioQmztKic1JaCGVVC/CupXjkRyjVFOadogbwosys8mm0Xtkae3Huypwrl7W4eb4DvX2nNznO1Nvm6IsPUroGEVNKywTVFOaU1AbdF8WzSviQJNFLSugdvpfyrsqYtXS4iKEvjGVw3+x5rYvuYBq4nlaeuT6/KFunuhxehu2xqriYK2KNCsgY51rs6RhHrW893r+ZN37e/tzs1zZZKf/OrMFapZNWjQxl/djoHuGOjZ2G8OPqP7FojWket1A32p190PAb/yEGjjB83uJDQQzw9s8vo380Px/BelyK//8NnvLhR1hh4PbYC767n+zfzdDTCW4qgBw2VF73mivdERH9067F8HR1tgKHXQ4U1C48n8iQS4l+burOz2BrfOXChsMUcmdr4dTYCxZH40mZ9J5PrcG9rI48+LpEjXjG7rYCwBxpP5sQS4v8VpfUloZgtMvzWVZud2D6Y2n3VMmu7HX85s5d+NJtPs/JPDoZUM3HoXbdcOBlL6nb3pNDudZucy3GAgAS1ug6VTFh+xS5m8JXu4uA3e84g17nIDEXbBLE7Grs7Eni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fmecTkEcrDl4QDgw0wakIQE4yYYNSMoGb4PSYEs6EV9ysgyov/oGWccKKIsQoxvcOf+wBqRSomyk8fwo6R7yxjYicCG0Ww6YcZRYgVLteVQaQHlXwIOUZ6EdxeJTIIq4zfV3nCUAlbRGW60v8AU8zfQJvYJ3EAAAAASUVORK5CYII=");
  background-size: cover;
  background-position: 50% 50%;
}
@media (orientation: landscape) {
  .hda-hero {
    background-image: url("../assets/landing/banner-landscape.webp"),
      url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAQCAYAAAB3AH1ZAAAACXBIWXMAABJ0AAASdAHeZh94AAAFhUlEQVR4nHXQ6VNb1xnHcb3oTP+Gvux0ppPpi77MTNs0fkHGmbSNC14wttZ7tVxJV2KxwU5NDF6a2CQGbEzsITEYpIB2CS0IEBKOxZhAEpYkjtE9wsa4mSTTTPIvfDtXckia5cVnzj3n3PN7nnMMlriGKaZhjGoci2i0hDWaQxpHpjQOT2ocelejKajRFNBoDGj8c0LjwESFA+MVXh6vjzUT9b3Gifq/B4P1s3qGnqVn6tl6DWO0gjlR5XhwHYOSETjTAkdaYJ8WyCmBLSmwJgSWeJ05VsFca1JwXBcRHKupB9a/63v6P8aYwBQTmPXzCYEtoSElK7VsvYZjWkPJbmOPbGDomBO0zwra8gJ/XuCbEag5gTcn8GQFzoxAzjzElNhCTmm1Zr9r+Ie+W3fpMgL9YkpWoGYrKNlHuHKf45vRajXa8hod89v4khsYXi1V6S5WOVMU/GtB8MoPdBUEr5c0hkrrlB9+zeDyE1rzGifmBB2zPzInausndfOCzoLgVKGCN/8VQ3dnmVnu5XShXudMUePs4kNOZzcxXC5XuXS3yuu68jbn39ump6jRXXjAxXtP6BqepN/VQLRPoW9+g573HtFbEvSUqv+nd7GuWy+wIOjWM4o7TK8H6EqEOXAzSXipj+iHCc4t7tK3tM35uU0M15erDOmWKvSX7pPa2GHp8des/ucb4lv/5fi56zz/l+ewGI/w2uw6A/cecaUsuLJU/Yk3yoKJtcdkP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WozdqGTNh0Au6M/bv1cLlPUpa+mXTEtYpE5YpU238eebvhcz1pkKW2guZxoz8Dyx+eOiXif09AAAAAElFTkSuQmCC");
    /* Mirrors the landing.js framing dials (shiftX 25, lift 25) so the frame
       painted before the script runs matches the scripted one (no load hop).
       Update alongside HERO_BANNERS.landscape */
    background-position: calc(50% + 25px) -25px;
  }
}

/* Content split around the horizon (--horizon, set per-frame by JS):
   title + text bottom-anchored in the sky, buttons top-anchored on the grass */
.hda-hero__sky,
.hda-hero__ground {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 16px;
  pointer-events: none;
}
.hda-hero__sky {
  top: 0;
  height: var(--horizon, 50%);
  justify-content: flex-end;
  padding-bottom: 18px;
}
.hda-hero__ground {
  top: var(--horizon, 50%);
  bottom: 0;
  justify-content: flex-start;
  padding-top: 22px;
}
.hda-hero__sky > *,
.hda-hero__ground > * {
  pointer-events: auto;
}

.hda-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  -webkit-text-fill-color: currentColor;
  margin: 0;
  text-shadow: 0 0 14px rgba(75, 120, 145, 0.95), 0 2px 26px rgba(75, 120, 145, 0.8);
}
.hda-hero__desc {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 292px;
  margin: 12px auto 0;
  text-shadow: 0 0 10px rgba(75, 120, 145, 0.95), 0 2px 20px rgba(75, 120, 145, 0.8);
}
.hda-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Wide enough that "Join the Community" stays on one line on mobile */
  width: 320px;
}

/* A soft dark pool behind the subtitle lifts it off the bright sky */
.hda-hero__desc::before {
  content: "";
  position: absolute;
  inset: -30px -80px;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(8, 16, 30, 0.2) 0%,
    rgba(8, 16, 30, 0.09) 55%,
    transparent 75%
  );
  pointer-events: none;
}

/* Narrow screens: the wide bleed would clip hard at the viewport edge, so keep
   the pool inside the text column */
@media (max-width: 639px), (orientation: portrait) {
  .hda-hero__desc::before {
    inset: -22px -18px;
  }
}

/* Hero entrance: the text resolves out of a soft blur while fading + rising in */
@keyframes hda-hero-ignite {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}
.hda-hero__title {
  animation: hda-hero-ignite 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hda-hero__desc {
  animation: hda-hero-ignite 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.22s both;
}
.hda-hero__actions {
  animation: hda-hero-ignite 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.42s both;
}
@media (prefers-reduced-motion: reduce) {
  .hda-hero__title,
  .hda-hero__desc,
  .hda-hero__actions {
    animation: none;
  }
}

/* Bottom fade teases the dark scroll section below the hero */
.hda-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(
    to bottom,
    rgba(11, 17, 32, 0) 0%,
    rgba(11, 17, 32, 0.2) 30%,
    rgba(11, 17, 32, 0.55) 50%,
    rgba(11, 17, 32, 0.85) 70%,
    #0b1120 100%
  );
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 640px) and (orientation: landscape) {
  .hda-hero__title {
    font-size: 3rem;
    text-shadow: 0 0 18px rgba(75, 120, 145, 0.95), 0 3px 38px rgba(75, 120, 145, 0.8);
  }
  .hda-hero__desc {
    font-size: 0.9rem;
    max-width: 440px;
    line-height: 1.6;
    margin-top: 16px;
  }
  .hda-hero__actions {
    flex-direction: row;
    width: auto;
    gap: 12px;
  }
}
@media (min-width: 1024px) and (orientation: landscape) {
  .hda-hero__title {
    font-size: 3.4rem;
    text-shadow: 0 0 22px rgba(75, 120, 145, 0.95), 0 4px 48px rgba(75, 120, 145, 0.8);
  }
  .hda-hero__desc {
    font-size: 0.95rem;
    max-width: 520px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 0 16px rgba(75, 120, 145, 0.95), 0 3px 34px rgba(75, 120, 145, 0.78);
  }
  .hda-hero__actions {
    gap: 14px;
  }
}

/* Portrait banner: blue glow tuned to wrap the text */
@media (orientation: portrait) {
  .hda-hero__title {
    text-shadow: 0 0 16px rgba(75, 120, 145, 0.98), 0 0 38px rgba(75, 120, 145, 0.88);
  }
  .hda-hero__desc {
    text-shadow: 0 0 12px rgba(75, 120, 145, 0.98), 0 0 28px rgba(75, 120, 145, 0.85);
  }
}
@media (max-width: 639px), (orientation: portrait) {
  .hda-hero__title {
    font-size: 2.85rem;
  }
  .hda-hero__desc {
    font-weight: 600;
  }
  .hda-hero__actions {
    width: 210px;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   Buttons — "Get Model" animated blue gradient + "Try Now" white glass
   ──────────────────────────────────────────────────────────────────────── */
@keyframes get-model-flow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 300% 50%;
  }
}
.btn-funky-primary {
  --btn-grad: linear-gradient(
    120deg,
    #2647d9 0%,
    #335fff 25%,
    #5c7cff 50%,
    #335fff 75%,
    #2647d9 100%
  );
  position: relative;
  z-index: 1;
  color: #fff;
  border: none;
  background-image: var(--btn-grad);
  background-size: 300% 100%;
  animation: get-model-flow 9s linear infinite;
  transition: transform 300ms ease;
}
.btn-funky-primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background-image: var(--btn-grad);
  background-size: 300% 100%;
  filter: blur(16px);
  opacity: 0.3;
  animation: get-model-flow 9s linear infinite;
  transition: opacity 0.3s ease;
}
.btn-funky-primary:hover {
  transform: translateY(-2px);
}
.btn-funky-primary:hover::before {
  opacity: 0.85;
}
.btn-funky-green {
  --btn-grad: linear-gradient(
    120deg,
    #4f9d5a 0%,
    #6fc47a 25%,
    #96db85 50%,
    #6fc47a 75%,
    #4f9d5a 100%
  );
}
.btn-funky-secondary {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
  color: #335fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: border-color 400ms ease, box-shadow 300ms ease, transform 300ms ease;
}
.btn-funky-secondary::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(232, 242, 255, 0.65) 50%,
    transparent 77%
  );
  filter: blur(16px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-funky-secondary:hover {
  border-color: rgba(92, 124, 255, 0.85);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-funky-secondary:hover::before {
  opacity: 1;
}
.hda-hero__actions .btn-funky-primary:hover::before {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .btn-funky-primary,
  .btn-funky-primary::before {
    animation: none;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   Stats band — count-up numbers with green glow
   ──────────────────────────────────────────────────────────────────────── */
.hda-stats {
  background: var(--dark);
  padding: 68px 28px 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hda-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 16px;
  max-width: 340px;
  margin: 0 auto;
}
.hda-stat {
  text-align: center;
  filter: drop-shadow(0 0 8px rgba(var(--land-glow-rgb, 85, 145, 70), 0.5))
    drop-shadow(0 0 20px rgba(var(--land-glow-rgb, 85, 145, 70), 0.3));
}
.hda-stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--land-num, rgb(133, 189, 120));
}
.hda-stat__label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.74);
  margin-top: 6px;
}

/* Small linked footnote under a stat, like "Since 2017" */
a.hda-stat__sub,
div.hda-stat__sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 5px;
  text-decoration: none;
}

a.hda-stat__sub:hover {
  color: #ffffff;
  text-decoration: underline;
}
@media (min-width: 640px) {
  .hda-stats {
    padding: 80px 56px 48px;
  }
  .hda-stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 24px;
    max-width: 470px;
  }
  .hda-stat__num {
    font-size: 42px;
  }
  .hda-stat__label {
    font-size: 12px;
    margin-top: 7px;
  }
}
@media (min-width: 1024px) {
  .hda-stats {
    padding: 104px 80px 56px;
  }
  .hda-stats__grid {
    max-width: 1180px;
    gap: 0;
  }
  .hda-stat {
    padding: 0 20px;
  }
  .hda-stat__num {
    font-size: 62px;
  }
  .hda-stat__label {
    font-size: 14px;
    margin-top: 10px;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   Features
   ──────────────────────────────────────────────────────────────────────── */
.hda-features {
  background: var(--dark);
  padding: 48px 20px 56px;
}
.hda-features__eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(var(--land-accent-rgb, 150, 219, 133), 0.1);
  border: 1px solid rgba(var(--land-accent-rgb, 150, 219, 133), 0.22);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--land-accent, var(--g));
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.hda-features__head {
  text-align: center;
  margin-bottom: 30px;
}
.hda-features__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 52px;
  max-width: 460px;
  margin: 0 auto;
}
.hda-feature {
  display: flex;
  flex-direction: column;
  text-align: center;
  flex: 0 1 100%;
  min-width: 0;
  position: relative;
  isolation: isolate;
}
.hda-feature__index {
  position: absolute;
  top: -1.45rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 6rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}
.hda-feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.hda-feature__body {
  font-family: var(--font-sans);
  font-size: 0.875rem; /* keep in step with .hda-hero__desc at each tier */
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
  max-width: 560px;
  margin: 10px auto 0;
}
.hda-feature__body .mono {
  font-family: monospace;
  color: var(--bt);
  font-weight: 700;
}
.hda-feature__body .hl {
  color: var(--g);
  font-weight: 700;
}
.hda-feature__body .hl-blue {
  color: var(--bt);
  font-weight: 700;
}
.hda-feature__body .hl-purple {
  color: #c4b5fd;
  font-weight: 700;
}
.hda-feature__media {
  margin-top: 22px;
  position: relative;
  width: 100%;
  aspect-ratio: 1320 / 780;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(150, 219, 133, 0.18);
  box-shadow: 0 0 0 1px rgba(150, 219, 133, 0.06), 0 26px 64px rgba(0, 0, 0, 0.55), 0 0 48px
    rgba(85, 145, 70, 0.15);
  background: #0a0f1a;
  line-height: 0;
}
.hda-feature__media video,
.hda-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hda-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, transparent 26%);
}
@media (min-width: 640px) {
  .hda-features {
    padding: 60px 56px 64px;
  }
  .hda-features__grid {
    gap: 50px 36px;
    max-width: 760px;
  }
  .hda-feature {
    flex-basis: calc(50% - 18px);
  }
  .hda-feature__title {
    font-size: 1.4rem;
    min-height: 2.28em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .hda-feature__body {
    font-size: 0.9rem;
    max-width: 34ch;
    margin-top: 8px;
    margin-bottom: 20px;
  }
  .hda-feature__media {
    margin-top: auto;
  }
}
@media (min-width: 1024px) {
  .hda-features {
    padding: 64px 80px 80px;
  }
  .hda-features__grid {
    gap: 56px 44px;
    max-width: 1180px;
  }
  .hda-feature {
    flex-basis: calc(33.333% - 29.33px);
  }
  .hda-feature__title {
    font-size: 1.55rem;
  }
  .hda-feature__body {
    font-size: 0.95rem;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   Closing CTA
   ──────────────────────────────────────────────────────────────────────── */
.hda-cta {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  text-align: center;
  padding: 40px 24px 92px;
}
.hda-cta__glow {
  position: absolute;
  left: 50%;
  top: 56%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.hda-cta__glow--a {
  width: 560px;
  height: 440px;
  background: radial-gradient(
    ellipse at center,
    rgba(92, 124, 255, 0.15) 0%,
    rgba(51, 95, 255, 0.05) 40%,
    transparent 70%
  );
  animation: cta-glow-a 9s ease-in-out infinite;
}
.hda-cta__glow--b {
  top: 53%;
  width: 360px;
  height: 300px;
  mix-blend-mode: screen;
  background: radial-gradient(
    ellipse at center,
    rgba(125, 151, 255, 0.13) 0%,
    rgba(92, 124, 255, 0.05) 45%,
    transparent 72%
  );
  animation: cta-glow-b 7s ease-in-out infinite;
}
@keyframes cta-glow-a {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(-28px, 10px) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) translate(28px, -14px) scale(1.16);
    opacity: 0.72;
  }
}
@keyframes cta-glow-b {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(34px, -12px) scale(1.05);
    opacity: 0.35;
  }
  50% {
    transform: translate(-50%, -50%) translate(-30px, 16px) scale(0.9);
    opacity: 0.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hda-cta__glow {
    animation: none !important;
  }
}

.hda-cta__inner {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
}
.hda-cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  font-size: clamp(1.5rem, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 24px 0 0;
}
.hda-cta__sub {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 2.4vw, 19px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 16px auto 0;
}
.hda-cta__btn-wrap {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
@media (max-width: 639px), (orientation: portrait) {
  .hda-cta__btn-wrap {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hda-cta__btn-wrap .hda-btn {
    width: 210px;
  }
}
@media (min-width: 480px) {
  .hda-cta__sub {
    white-space: nowrap;
  }
}
@media (min-width: 640px) {
  .hda-cta {
    padding: 56px 56px 124px;
  }
  .hda-cta__glow--a {
    width: 1080px;
    height: 680px;
  }
  .hda-cta__glow--b {
    width: 620px;
    height: 440px;
  }
  .hda-cta__title {
    margin-top: 36px;
  }
  .hda-cta__sub {
    margin-top: 20px;
  }
  .hda-cta__btn-wrap {
    margin-top: 46px;
  }
}
@media (min-width: 1024px) {
  .hda-cta {
    padding: 76px 80px 168px;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   Scroll-reveal — sections fade/slide up on first view
   ──────────────────────────────────────────────────────────────────────── */
.hda-page .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s
    cubic-bezier(0.16, 1, 0.3, 1);
}
.hda-page .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .hda-page .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   Linked project boxes (the nanoblox landing's Highlight Projects) — a
   feature card that is itself a link, boxed with its accent colour instead
   of carrying media. --accent is the same "r, g, b" triplet the feature
   cards already set
   ──────────────────────────────────────────────────────────────────────── */
.hda-feature--link {
  text-decoration: none;
  padding: 36px 26px 28px;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent), 0.18);
  background: #0a0f1a;
  box-shadow: 0 0 0 1px rgba(var(--accent), 0.06), 0 26px 64px rgba(0, 0, 0, 0.55), 0 0 48px
    rgba(var(--accent), 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.hda-feature--link:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent), 0.45);
  box-shadow: 0 0 0 1px rgba(var(--accent), 0.12), 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 64px
    rgba(var(--accent), 0.22);
}
.hda-feature--link,
.hda-feature--link:hover {
  color: inherit;
}
/* keep the ghost number inside the box instead of poking above the border */
.hda-feature--link .hda-feature__index {
  top: 8px;
}
.hda-feature__more {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgb(var(--accent));
  transition: transform 0.3s ease;
}
.hda-feature--link:hover .hda-feature__more {
  transform: translateX(4px);
}
@media (min-width: 640px) {
  /* the boxed variant has no media frame, so the body doesn't need to feed
     the frame-alignment margins the video cards use */
  .hda-feature--link .hda-feature__body {
    margin-bottom: 0;
  }
}
