/* 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:
    radial-gradient(120% 300% at 50% 140%, rgba(var(--hd-tint), 0.32), transparent 62%),
    rgba(10, 18, 36, 0.42);
}

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:
    radial-gradient(120% 300% at 50% 140%, rgba(var(--hd-tint), 0.32), transparent 62%),
    rgba(10, 18, 36, 0.42);
  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 drawer slides in under the bar, so while it is open the bar and the
   banner above it go solid whatever the scroll says, the same chrome the
   drawer sits under on every other page */
#__drawer:checked ~ .md-header::before,
#__drawer:checked ~ [data-md-component="announce"] .md-banner::before {
  opacity: 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);
}

/* Outfit has no Cyrillic, so a Russian page sets its display type in
   Manrope rather than mixing two faces inside one word */
:lang(ru) .hda-page {
  --font-display: "Manrope", sans-serif;
}

/* 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;
}

/* A button can lead with a Remix Icon, or be the icon alone. The icon-only
   family links sit square, level with the text buttons, and in one row even
   where those stack */
.hda-btn svg {
  flex: none;
  width: 22px;
  height: 22px;
}
.hda-btn--lead {
  gap: 10px;
  padding-left: 32px;
}
.hda-btn-group {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hda-btn--icon {
  padding: 16px;
}

/* ────────────────────────────────────────────────────────────────────────
   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 gradient of its own sky and grass, sampled from the
     artwork. It paints with the stylesheet, so the first frames are a clean sky
     over grass rather than a blurry preview of the photo, and the characters
     simply arrive on top once the file lands. JS sizes and positions every
     layer together, so the gradient's horizon tracks the artwork's */
  background-image: url("../assets/landing/banner-portrait.webp"),
    linear-gradient(
      to bottom,
      #51a3d9 0%,
      #6ab3da 15%,
      #88c2da 30%,
      #a7ceda 44%,
      #b6d2db 50.5%,
      #82afa1 51.2%,
      #72a46f 57%,
      #6db46c 72%,
      #6aae66 100%
    );
  /* Per layer: the artwork covers and takes the framing shift, while the
     gradient stays pinned to the full element. Sharing one value shifted the
     gradient too, which uncovered a strip of the green background-color down
     the left edge until the script re-sized the layers */
  background-size: cover, 100% 100%;
  background-position: 50% 50%, 0 0;
}
@media (orientation: landscape) {
  .hda-hero {
    background-image: url("../assets/landing/banner-landscape.webp"),
      linear-gradient(
        to bottom,
        #58a9d9 0%,
        #6ab3da 12%,
        #80c0dc 25%,
        #a8cdda 46%,
        #b5d1da 52.9%,
        #6b9f83 53.4%,
        #6aab6e 60%,
        #6ab469 76%,
        #68b262 100%
      );
    /* 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, 0 0;
  }
}

/* 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;
}
/* Held at their first frame (invisible) until the hero fonts are in, so the
   entrance always plays with real glyphs. home.html sets and clears the class */
html.hda-hold-hero .hda-hero__title,
html.hda-hold-hero .hda-hero__desc,
html.hda-hold-hero .hda-hero__actions {
  animation-play-state: paused;
}
@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;
  }
  /* With the icon buttons under Get Started, the column is exactly three of
     them plus their gaps (22px icon, 16px padding a side, 1px border), and
     the row spreads edge to edge, so the outer two line up with the button
     above them. The nanoblox landing has no icon row and keeps the 210px */
  .hda-hero__actions:has(.hda-btn-group),
  .hda-cta__btn-wrap .hda-btn:not(.hda-btn--icon),
  .hda-cta__btn-wrap .hda-btn-group {
    width: calc(3 * 56px + 2 * 14px);
  }
  .hda-btn-group {
    gap: 14px;
    justify-content: space-between;
  }
  /* The column has no room for the full side padding once an icon leads
     the label */
  .hda-btn--lead {
    padding-left: 20px;
    padding-right: 24px;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   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;
}

/* Linked subs underline at rest so they read as clickable */
a.hda-stat__sub {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

a.hda-stat__sub:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

@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.82rem; /* a touch under .hda-hero__desc so the titles lead */
  /* A light cut of the variable font so the bold highlights stand out more */
  font-weight: 350;
  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;
  /* No overflow: hidden here on purpose. Chrome rebuilds a parent's rounded
     clip mask while scrolling and paints the clipped video black for a few
     frames, so the video and overlay round their own corners instead */
  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);
  /* The inline style carries the card's poster, so a dropped video frame
     mid-scroll shows the artwork rather than this fallback colour */
  background-color: #0a0f1a;
  background-size: cover;
  background-position: center;
  line-height: 0;
}
.hda-feature__media video,
.hda-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}
.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%);
  border-radius: 16px;
}
@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.85rem;
    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.9rem;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   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;
  /* The floor sits below where any real phone lands, so the 6vw sizing keeps
     scaling down and the single line always fits. At 1.5rem the font stopped
     shrinking around 400px wide and pushed past the screen edge */
  font-size: clamp(1rem, 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__sub a {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}
.hda-cta__sub a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}
.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;
  }
  /* Sized with the hero column above, see the hero block */
}
@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;
  }
}
