/* ==========================================================================
   Home — modern landing page inside a full-screen section with its own scroller.
   Scroll-driven effects are fed by core/scroll-fx.js (--p) and pages/home.js (--hero-p on the hero).
   ========================================================================== */
.page-home {
  --hx-bg: var(--surface, #0a0c1e);
  --hx-line: rgba(255, 255, 255, 0.09);
  --hx-text: #eef0fb;
  --hx-dim: #a4a9c6;
  --hx-radius: 20px;
  --hero-p: 0;
  background: #06070f;
  color: var(--hx-text);
}
.home-scroll {
  position: absolute; inset: 0;
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(var(--accent-rgb, 94, 168, 255), 0.4) transparent;
  -webkit-overflow-scrolling: touch;
}
.home-scroll::-webkit-scrollbar { width: 8px; }
.home-scroll::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb, 94, 168, 255), 0.35); border-radius: 8px; }
.hx-container { width: min(1180px, 100% - clamp(32px, 8vw, 120px)); margin-inline: auto; }

/* Reveal primitives ------------------------------------------------------ */
.page-home [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.page-home [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
.page-home [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
.page-home [data-reveal="scale"] { transform: scale(0.94); }
.page-home [data-reveal].is-visible { opacity: 1; transform: none; }
.no-reveal .page-home [data-reveal] { opacity: 1; transform: none; transition: none; }

.page-home [data-anim] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }
.page-home.is-entered [data-anim] { opacity: 1; transform: none; }
.page-home.is-entered .hx-hero__copy > :nth-child(2) { transition-delay: 0.07s; }
.page-home.is-entered .hx-hero__copy > :nth-child(3) { transition-delay: 0.14s; }
.page-home.is-entered .hx-hero__copy > :nth-child(4) { transition-delay: 0.21s; }
.page-home.is-entered .hx-hero__copy > :nth-child(5) { transition-delay: 0.28s; }
.page-home.is-entered .hx-hero__copy > :nth-child(6) { transition-delay: 0.35s; }
.page-home.is-entered .hx-deploy { transition-delay: 0.4s; }
.page-home.is-entered .hx-stats { transition-delay: 0.48s; }

/* Buttons ---------------------------------------------------------------- */
.hx-btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 800; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s, background 0.3s, color 0.3s;
}
.hx-btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease-out); }
.hx-btn:hover svg { transform: translate(3px, -1px); }
.hx-btn:active { transform: scale(0.97); }
.hx-btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent, #5ea8ff), var(--accent-2, #b59bff));
  box-shadow: 0 10px 30px rgba(var(--accent-rgb, 94, 168, 255), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.hx-btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, var(--accent-2, #b59bff), var(--accent, #5ea8ff));
  opacity: 0; transition: opacity 0.35s;
}
.hx-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(var(--accent-rgb, 94, 168, 255), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.hx-btn--primary:hover::before { opacity: 1; }
.hx-btn--ghost { color: var(--hx-text); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); backdrop-filter: blur(8px); }
.hx-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.hx-btn--light { color: #0b0d1c; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.hx-btn--light:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }

/* Hero --------------------------------------------------------------------- */
.hx-hero {
  position: relative; isolation: isolate;
  min-height: calc(100 * var(--vh));
  display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 48px);
  padding: calc(var(--header-top) + var(--header-h) + clamp(28px, 6vh, 72px)) 0 clamp(80px, 12vh, 120px);
  overflow: hidden;
}
.hx-hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--hx-bg); }
.hx-hero__kv-wrap { position: absolute; inset: -4%; will-change: transform; }
.hx-hero__kv {
  width: 100%; height: 100%; object-fit: cover; object-position: 66% 42%;
  transform: scale(calc(1.04 + var(--hero-p) * 0.1)) translate3d(0, calc(var(--hero-p) * 6%), 0);
}
/* "Breathing" light without animating filter (which repaints the full-bleed image every frame):
   a dark overlay's opacity is animated instead — compositor-only. */
.hx-hero__kv-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: #04050d; opacity: 0.1;
  animation: kv-breathe 16s ease-in-out infinite alternate;
}
.no-parallax .hx-hero__kv { transform: none; }
@keyframes kv-breathe { from { opacity: 0.12; } to { opacity: 0; } }
.hx-hero__aurora {
  position: absolute; inset: -20% -10% auto; height: 90%;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(var(--accent-rgb, 94, 168, 255), 0.32), transparent 70%),
    radial-gradient(35% 45% at 42% 8%, rgba(var(--accent-2-rgb, 181, 155, 255), 0.28), transparent 70%);
  will-change: transform;
  animation: aurora 18s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes aurora { from { transform: translate3d(-3%, 0, 0) rotate(-2deg); } to { transform: translate3d(4%, 3%, 0) rotate(3deg); } }
.hx-hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 30% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(80% 70% at 30% 40%, #000 20%, transparent 75%);
  transform: translate3d(0, calc(var(--hero-p) * -40px), 0);
}
.hx-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 16, 0.92) 0%, rgba(5, 6, 16, 0.7) 38%, rgba(5, 6, 16, 0.15) 70%, rgba(5, 6, 16, 0.35) 100%),
    linear-gradient(180deg, rgba(5, 6, 16, 0.5) 0%, transparent 22%, transparent 70%, #06070f 100%);
}
.home-bubbles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hx-hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hx-hero__copy {
  display: grid; justify-items: start; gap: 22px;
  transform: translate3d(0, calc(var(--hero-p) * -70px), 0);
  opacity: calc(1 - var(--hero-p) * 1.3);
}
.hx-announce {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #dfe6ff;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  transition: background 0.25s, box-shadow 0.25s;
}
.hx-announce b {
  padding: 3px 10px; border-radius: 999px; font-size: 11px; letter-spacing: 0.08em; color: #fff;
  background: linear-gradient(120deg, var(--accent, #5ea8ff), var(--accent-2, #b59bff));
}
.hx-announce svg { width: 12px; height: 12px; opacity: 0.7; transition: transform 0.25s var(--ease-out); }
.hx-announce:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb, 94, 168, 255), 0.6); }
.hx-announce:hover svg { transform: translateX(3px); }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #bcd3ff; }
.hx-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #5ef0b0; box-shadow: 0 0 10px #5ef0b0; }
.hx-pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #5ef0b0; animation: pulse-ring 2.2s var(--ease-out) infinite; }
@keyframes pulse-ring { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.hx-hero__title {
  max-width: 100%;
  font-family: var(--font-sans); font-weight: 800;
  font-size: clamp(36px, min(4.9vw, 8.6vh), 72px); line-height: 1.04; letter-spacing: -0.035em;
  color: #fff; text-wrap: balance;
}
/* Three stable rows: lead · rotating word · tail. The rotating row reserves the longest word,
   so the headline height never changes while words rotate. */
.hx-hero__title > span { display: block; }
.hx-rotator {
  --rot-fit: 1;
  position: relative; display: block;
  font-size: calc(1em * var(--rot-fit)); line-height: 1.1;
  white-space: nowrap;
}
.hx-rotator__stack {
  display: inline-grid; justify-items: start; vertical-align: top;
  /* Room for descenders (p, g, y) inside the clipping box without changing the line box. */
  padding-bottom: 0.12em; margin-bottom: -0.12em;
  overflow: hidden; contain: layout paint;
}
.hx-rotator__word {
  grid-area: 1 / 1;
  background: linear-gradient(100deg, #8fd0ff 0%, var(--accent, #5ea8ff) 40%, var(--accent-2, #b59bff) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translate3d(0, 105%, 0);
  transition: opacity 0.45s var(--ease-out), transform 0.7s var(--ease-out);
}
.hx-rotator__word.is-active { opacity: 1; transform: none; }
.hx-rotator__word.is-leaving { opacity: 0; transform: translate3d(0, -105%, 0); }
.hx-hero__tail { color: #f3f4fb; }
.hx-hero__lead { max-width: 37em; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.7; color: #c3c8e2; text-wrap: pretty; }
.hx-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hx-trust { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--hx-dim); }
.hx-trust__dots { display: flex; }
.hx-trust__dots i {
  width: 26px; height: 26px; margin-left: -8px; border-radius: 50%;
  border: 2px solid #0a0c1e;
  background: linear-gradient(135deg, var(--accent, #5ea8ff), var(--accent-2, #b59bff));
}
.hx-trust__dots i:first-child { margin-left: 0; background: linear-gradient(135deg, #5ef0b0, #3fd1c7); }
.hx-trust__dots i:nth-child(3) { background: linear-gradient(135deg, #ffb86b, #ff7a59); }
.hx-trust__dots i:nth-child(4) { background: linear-gradient(135deg, #e8d7ab, #c9a65a); }

/* Glass CI/CD card */
.hx-deploy {
  justify-self: end; width: min(100%, 360px);
  padding: 16px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(20, 24, 48, 0.72), rgba(10, 12, 28, 0.6));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px) saturate(1.2);
  font-family: var(--font-mono); font-size: 12.5px; color: #cfd6f5;
  transform: translate3d(0, calc(var(--hero-p) * -30px), 0) rotate(-1.5deg);
  animation: float-card 7s ease-in-out infinite alternate;
}
@keyframes float-card { from { translate: 0 -6px; } to { translate: 0 8px; } }
.hx-deploy__bar { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--hx-line); }
.hx-deploy__bar > i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; }
.hx-deploy__bar > i:nth-child(2) { background: #ffd166; }
.hx-deploy__bar > i:nth-child(3) { background: #5ef0b0; }
.hx-deploy__bar span { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: var(--hx-dim); }
.hx-deploy__bar svg { width: 14px; height: 14px; }
.hx-deploy__log { display: grid; gap: 10px; padding: 14px 0; }
.hx-deploy__log li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; }
.hx-deploy__log b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(94, 240, 176, 0.15); color: #5ef0b0; }
.hx-deploy__log b svg { width: 12px; height: 12px; }
.hx-deploy__log em { font-style: normal; color: var(--hx-dim); }
.hx-deploy__log .is-running b { background: rgba(var(--accent-rgb, 94, 168, 255), 0.18); }
.hx-deploy__log .is-running b i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent, #5ea8ff); border-right-color: transparent; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hx-deploy__progress { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.hx-deploy__progress i { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--accent, #5ea8ff), var(--accent-2, #b59bff)); animation: deploy 3.2s var(--ease-in-out) infinite; }
@keyframes deploy { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.hx-deploy__foot { display: flex; justify-content: space-between; padding-top: 12px; color: var(--hx-dim); }
.hx-deploy__foot span { display: inline-flex; align-items: center; gap: 8px; }
.hx-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ef0b0; box-shadow: 0 0 8px #5ef0b0; }

.hx-stats {
  display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  border-radius: var(--hx-radius);
  background: rgba(10, 12, 28, 0.55); box-shadow: inset 0 0 0 1px var(--hx-line);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.hx-stat { display: flex; flex-direction: column-reverse; gap: 6px; padding: clamp(16px, 2vw, 24px) clamp(16px, 2.4vw, 28px); }
.hx-stat + .hx-stat { border-left: 1px solid var(--hx-line); }
.hx-stat dd { margin: 0; font-weight: 800; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.hx-stat dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hx-dim); }

.hx-scrollcue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; color: var(--hx-dim);
  opacity: calc(1 - var(--hero-p) * 4); transition: color 0.2s;
}
.hx-scrollcue:hover { color: #fff; }
.hx-scrollcue small { font-size: 10px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; }
.hx-scrollcue__mouse { position: relative; width: 22px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px currentColor; }
.hx-scrollcue__mouse i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: wheel 1.8s var(--ease-in-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* Sections ----------------------------------------------------------------- */
.hx-section { position: relative; padding: clamp(72px, 11vh, 128px) 0; }
.hx-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.hx-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.hx-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  background: linear-gradient(90deg, #8fd0ff, var(--accent-2, #b59bff)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hx-kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent, #5ea8ff), var(--accent-2, #b59bff)); }
.hx-title { font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.035em; color: #fff; text-wrap: balance; }
.hx-subtitle { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7; color: var(--hx-dim); text-wrap: pretty; }

/* Marquee */
.hx-marquee { padding: clamp(28px, 5vh, 48px) 0; border-block: 1px solid var(--hx-line); background: linear-gradient(180deg, #06070f, #080a17); }
.hx-marquee__title { margin-bottom: 18px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--hx-dim); }
.hx-marquee__viewport {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hx-marquee__track { display: flex; flex: none; gap: 14px; padding-right: 14px; animation: marquee 38s linear infinite; }
.hx-marquee__viewport:hover .hx-marquee__track { animation-play-state: paused; }
.hx-marquee__track li {
  padding: 10px 20px; border-radius: 999px; white-space: nowrap;
  font-weight: 800; font-size: 15px; color: #d7dbf2;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--hx-line);
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* Services */
.hx-services { background: radial-gradient(60% 40% at 50% 0%, rgba(var(--accent-rgb, 94, 168, 255), 0.12), transparent 70%), #080a17; }
.hx-grid { display: grid; gap: 18px; }
.hx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-content: start; gap: 14px;
  padding: 30px 28px 28px; border-radius: var(--hx-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 0 0 1px var(--hx-line);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.hx-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--accent-rgb, 94, 168, 255), 0.18), transparent 45%);
}
.hx-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(var(--accent-rgb, 94, 168, 255), 0.9), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.hx-card:hover { transform: translateY(-4px); }
.hx-card:hover::before, .hx-card:hover::after { opacity: 1; }
.page-home .hx-card[data-reveal].is-visible:hover { transform: translateY(-4px); }
.hx-card__index { position: absolute; top: 22px; right: 24px; font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, 0.28); }
.hx-card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, rgba(var(--accent-rgb, 94, 168, 255), 0.35), rgba(var(--accent-2-rgb, 181, 155, 255), 0.25));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.hx-card__icon svg { width: 24px; height: 24px; }
.hx-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; color: #fff; margin-top: 6px; }
.hx-card p { font-size: 15px; line-height: 1.65; color: var(--hx-dim); }
.hx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.hx-tags li { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #cdd5f5; background: rgba(255, 255, 255, 0.06); }

/* Process */
.hx-process { background: #06070f; }
.hx-steps { --p: 0; position: relative; }
.hx-steps__line { position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--hx-line); }
.hx-steps__line i {
  position: absolute; inset: 0; transform-origin: left;
  transform: scaleX(calc(min(1, max(0, (var(--p) - 0.2) * 2.4))));
  background: linear-gradient(90deg, var(--accent, #5ea8ff), var(--accent-2, #b59bff));
  box-shadow: 0 0 12px rgba(var(--accent-rgb, 94, 168, 255), 0.6);
}
.hx-steps__list { position: relative; display: grid; grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr)); gap: 22px; }
.hx-step { display: grid; align-content: start; gap: 10px; }
.hx-step__num {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 50%;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: #fff;
  background: #0d1024; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 0 6px #06070f;
  transition: background 0.5s, box-shadow 0.5s;
}
.hx-step.is-visible .hx-step__num { background: linear-gradient(135deg, var(--accent, #5ea8ff), var(--accent-2, #b59bff)); box-shadow: 0 0 0 6px #06070f, 0 0 24px rgba(var(--accent-rgb, 94, 168, 255), 0.5); transition-delay: calc(var(--d, 0ms) + 0.3s); }
.hx-step h3 { font-size: 19px; font-weight: 800; color: #fff; }
.hx-step p { font-size: 15px; line-height: 1.65; color: var(--hx-dim); }
.hx-step__time { justify-self: start; margin-top: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #bcd3ff; background: rgba(var(--accent-rgb, 94, 168, 255), 0.12); }

/* Metrics */
.hx-metrics { padding-top: 0; background: #06070f; }
.hx-metrics__panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 5vw, 64px); border-radius: 28px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(var(--accent-rgb, 94, 168, 255), 0.22), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(var(--accent-2-rgb, 181, 155, 255), 0.2), transparent 60%),
    #0b0e22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.hx-metrics__head { display: grid; gap: 14px; }
.hx-metrics__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.hx-metric { display: grid; gap: 6px; padding-left: 18px; border-left: 2px solid rgba(var(--accent-rgb, 94, 168, 255), 0.5); }
.hx-metric dd { margin: 0; font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.hx-metric dt { font-size: 14px; line-height: 1.5; color: var(--hx-dim); }

/* Testimonials */
.hx-testimonials { background: #080a17; }
.hx-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hx-quote {
  --mx: 50%; --my: 0%;
  position: relative; display: grid; align-content: space-between; gap: 22px; margin: 0;
  padding: 28px; border-radius: var(--hx-radius);
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(var(--accent-rgb, 94, 168, 255), 0.1), transparent 50%), rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--hx-line);
}
.hx-quote__mark { width: 32px; height: 32px; color: var(--accent, #5ea8ff); opacity: 0.8; }
.hx-quote blockquote { margin: 0; font-size: 16px; line-height: 1.7; color: #e4e7f7; }
.hx-quote figcaption { display: flex; align-items: center; gap: 12px; }
.hx-quote figcaption span:last-child { display: grid; gap: 2px; }
.hx-quote b { font-size: 15px; color: #fff; }
.hx-quote small { font-size: 13px; color: var(--hx-dim); }
.hx-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--accent, #5ea8ff), var(--accent-2, #b59bff)); }

/* FAQ */
.hx-faq { background: #06070f; }
.hx-faq__layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.hx-faq__intro { display: grid; justify-items: start; gap: 8px; }
.hx-faq__intro .hx-head { margin-bottom: 18px; }
.hx-accordion { display: grid; gap: 12px; }
.hx-acc { border-radius: 16px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--hx-line); transition: background 0.3s, box-shadow 0.3s; }
.hx-acc.is-open { background: rgba(255, 255, 255, 0.055); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb, 94, 168, 255), 0.45); }
.hx-acc h3 { margin: 0; }
.hx-acc__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 22px; text-align: left; font-size: 16px; font-weight: 800; color: #fff; }
.hx-acc__q i { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); transition: transform 0.4s var(--ease-out), background 0.3s; }
.hx-acc__q i svg { width: 16px; height: 16px; }
.hx-acc.is-open .hx-acc__q i { transform: rotate(180deg); background: rgba(var(--accent-rgb, 94, 168, 255), 0.3); }
.hx-acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.hx-acc.is-open .hx-acc__a { grid-template-rows: 1fr; }
.hx-acc__a > div { overflow: hidden; }
.hx-acc__a p { padding: 0 22px 22px; font-size: 15px; line-height: 1.7; color: var(--hx-dim); }

/* CTA */
.hx-cta { padding-top: 0; background: #06070f; }
.hx-cta__card {
  --p: 0;
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; justify-items: center; gap: 18px; text-align: center;
  padding: clamp(44px, 7vw, 88px) clamp(22px, 5vw, 64px); border-radius: 32px;
  background: linear-gradient(120deg, var(--accent, #5ea8ff), var(--accent-2, #b59bff));
  color: #fff;
}
.hx-cta__glow {
  position: absolute; inset: -40%; z-index: -1;
  /* Rotated via transform (compositor) instead of re-rendering a blurred gradient on every scroll. */
  background: conic-gradient(transparent 0 62%, rgba(255, 255, 255, 0.12) 72%, rgba(255, 255, 255, 0.28) 80%, rgba(255, 255, 255, 0.12) 88%, transparent 96%);
  transform: rotate(calc(var(--p, 0) * 360deg));
  will-change: transform;
}
.hx-cta__card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.hx-cta__card h2 { max-width: 16em; font-weight: 800; font-size: clamp(30px, 4vw, 54px); line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.hx-cta__card p { max-width: 36em; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.65; color: rgba(255, 255, 255, 0.88); }
.hx-cta__actions { margin-top: 6px; }
.hx-channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.hx-channels a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #fff; background: rgba(8, 10, 30, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transition: background 0.25s;
}
.hx-channels a:hover { background: rgba(8, 10, 30, 0.4); }
.hx-channels svg { width: 16px; height: 16px; }

/* Footer */
.hx-footer { padding: clamp(56px, 8vh, 88px) 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hx-line); background: #05060d; }
.hx-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.hx-footer__brand { display: grid; justify-items: start; gap: 16px; }
.hx-footer__brand .logo { font-size: 22px; }
.hx-footer__brand .logo__mark { width: 24px; height: 24px; }
.hx-footer__brand p { max-width: 30em; font-size: 14px; line-height: 1.7; color: var(--hx-dim); }
.hx-footer h3 { margin-bottom: 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
.hx-footer ul { display: grid; gap: 10px; }
.hx-footer li a, .hx-footer li > span { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--hx-dim); transition: color 0.2s; }
.hx-footer li a:hover { color: #fff; }
.hx-footer__contact svg { flex: none; width: 16px; height: 16px; }
.hx-footer__contact span { overflow-wrap: anywhere; }
.hx-footer__socials { display: flex !important; gap: 10px !important; }
.hx-footer__socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #d5daf3; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--hx-line); }
.hx-footer__socials a:hover { color: #fff; background: rgba(var(--accent-rgb, 94, 168, 255), 0.25); }
.hx-footer__socials svg { width: 17px; height: 17px; }
.hx-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hx-line); font-size: 13px; color: #7d83a6; }
.hx-footer__next { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--hx-line); transition: background 0.25s; }
.hx-footer__next:hover { background: rgba(var(--accent-rgb, 94, 168, 255), 0.3); }
.hx-footer__next svg { width: 14px; height: 14px; animation: hint-bounce 1.8s var(--ease-in-out) infinite; }
@keyframes hint-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hx-grid--3, .hx-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hx-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hx-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hx-deploy { display: none; }
  .hx-stats { --cols: 2; }
  .hx-stat:nth-child(3) { border-left: 0; }
  .hx-stat:nth-child(n + 3) { border-top: 1px solid var(--hx-line); }
  .hx-metrics__panel, .hx-faq__layout { grid-template-columns: minmax(0, 1fr); }
  .hx-steps__line { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .hx-steps__line i { transform-origin: top; transform: scaleY(calc(min(1, max(0, (var(--p) - 0.15) * 1.6)))); }
  .hx-steps__list { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hx-step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; }
  .hx-step__num { grid-row: span 3; margin-bottom: 0; }
  .hx-step > :not(.hx-step__num) { grid-column: 2; }
}
@media (max-width: 768px) {
  .hx-hero { padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 28px); justify-content: flex-start; }
  .hx-hero__shade { background: linear-gradient(180deg, rgba(5, 6, 16, 0.78) 0%, rgba(5, 6, 16, 0.65) 45%, rgba(5, 6, 16, 0.85) 80%, #06070f 100%); }
  .hx-hero__kv { object-position: 72% 40%; }
  .hx-hero__copy { gap: 18px; }
  .hx-hero__title { font-size: clamp(34px, 10vw, 48px); }
  .hx-hero__actions { width: 100%; }
  .hx-hero__actions .hx-btn { flex: 1 1 100%; }
  .hx-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .hx-card { padding: 26px 22px 24px; }
  .hx-quotes {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -4px; padding-inline: 4px;
    scrollbar-width: none;
  }
  .hx-quotes::-webkit-scrollbar { display: none; }
  .hx-quote { scroll-snap-align: center; }
  .hx-metrics__grid { gap: 22px; }
  .hx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  /* Long e-mail / address lines get the full width instead of breaking mid-word. */
  .hx-footer__col--legal { order: 1; }
  .hx-footer__col--contact { order: 2; grid-column: 1 / -1; }
  .hx-footer__contact span { overflow-wrap: break-word; }
  .hx-footer__bottom { justify-content: center; text-align: center; }
  .hx-scrollcue { display: none; }
}
@media (max-width: 420px) {
  .hx-metrics__grid { grid-template-columns: minmax(0, 1fr); }
  .hx-stat dd { font-size: 24px; }
}
/* Short desktop/laptop screens (e.g. 1366×768): keep the headline, CTAs and stats above the fold. */
@media (min-width: 769px) and (max-height: 920px) {
  .hx-trust { display: none; }
  .hx-hero { gap: 22px; padding-top: calc(var(--header-top) + var(--header-h) + 24px); padding-bottom: 56px; }
  .hx-hero__copy { gap: 16px; }
  .hx-hero__title { font-size: clamp(36px, min(4.6vw, 7.6vh), 64px); }
  .hx-hero__lead { font-size: 15.5px; line-height: 1.6; }
  .hx-hero__actions { margin-top: 2px; }
  .hx-btn { min-height: 48px; }
  .hx-stat { padding-block: 14px; }
  .hx-scrollcue { display: none; }
}
/* Touch / small screens: backdrop blur over a moving page is the most expensive effect on mobile GPUs. */
@media (max-width: 768px), (hover: none) {
  .hx-btn--ghost, .hx-announce { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, 0.09); }
  .hx-deploy { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(160deg, rgba(20, 24, 48, 0.94), rgba(10, 12, 28, 0.9)); }
  .hx-stats { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10, 12, 28, 0.86); }
  .hx-hero__aurora { mix-blend-mode: normal; opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal], .page-home [data-anim] { opacity: 1 !important; transform: none !important; }
  .hx-hero__kv-wrap::after, .hx-hero__aurora { animation: none; }
  .hx-marquee__track { animation: none; }
  .hx-hero__copy, .hx-deploy { transform: none; opacity: 1; }
}

/* Service card CTA & offline fallback ----------------------------------- */
.hx-card__cta {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--accent, #5ea8ff);
  transition: gap 0.3s var(--ease-out), color 0.2s;
}
.hx-card__cta svg { width: 15px; height: 15px; }
.hx-card__cta:hover { gap: 10px; color: #fff; }
.hx-offline { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }
