/* ============================================================
   SILKERN — homepage v2 („the arsenal")
   Built on styles.css (tokens, nav, buttons, fields, footer,
   chat). Everything here is scoped to body.hx, so the inner
   pages stay untouched. Headlines go heavy sans (Inter 800);
   Prata survives as the gold accent word.
   ============================================================ */

.hx {
  --hx-bg: #070709;
  --hx-surface: #0e0e12;
  --hx-surface-2: #14141a;
  --hx-line: rgba(239, 234, 227, 0.09);
  --hx-line-2: rgba(239, 234, 227, 0.18);
  --hx-gold: #e9c77e;
  --hx-gold-deep: #c8a96e;
  --hx-gold-grad: linear-gradient(100deg, #fff4d6 0%, #f2d38f 22%, #d6ae63 48%, #a9813f 70%, #f2d38f 88%, #fff4d6 100%);
  --hx-violet: #8b5cf6;
  --hx-cyan: #35d3f2;
  --hx-green: #3ddc97;
  --hx-amber: #f5b84a;
  --hx-radius: 22px;
  --hx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--hx-bg);
  overflow-x: clip;
}

.hx ::selection {
  background: var(--hx-gold);
  color: #16130c;
}

/* -- shared type ------------------------------------------------ */
.hx-h1,
.hx-h2 {
  font-family: var(--font-ui);
  font-weight: 800;
  color: var(--ink);
}

.hx-h1 {
  font-size: clamp(2.75rem, 6.1vw, 6.1rem);
  line-height: 0.97;
  letter-spacing: -0.045em;
  margin-top: 1.6rem;
}

.hx-h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hx-h2-xl {
  font-size: clamp(2.5rem, 5.6vw, 5.2rem);
}

.hx-line {
  display: block;
}

.hx-serif {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: var(--hx-gold-grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hx-sheen 7s linear infinite;
  padding-right: 0.04em;
}

/* split words (home.js) carry their own gradient — a transformed child
   would punch a hole in the parent's background-clip text */
.hx-serif.is-split {
  background: none;
  color: inherit;
  animation: none;
}

.hx-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hx-wi {
  display: inline-block;
  will-change: transform;
}

.hx-serif.is-split .hx-wi {
  background: var(--hx-gold-grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hx-sheen 7s linear infinite;
}

@keyframes hx-sheen {
  to { background-position: -220% 0; }
}

.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hx-gold);
  margin-bottom: 1.25rem;
}

.hx-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hx-gold));
}

.hx-head-center .hx-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--hx-gold), transparent);
}

.hx-sub {
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 40em;
  margin-top: 1.4rem;
}

.hx-head {
  max-width: 980px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hx-head-center {
  text-align: center;
  margin-inline: auto;
}

.hx-head-center .hx-sub {
  margin-inline: auto;
}

.hx-section {
  position: relative;
  padding-block: clamp(5rem, 12vh, 8.5rem);
}

/* -- buttons: louder on the homepage ---------------------------- */
.hx .btn-primary {
  background: linear-gradient(180deg, #f6dc9f 0%, #e3bf76 45%, #c8a96e 100%);
  color: #16130c;
  box-shadow: 0 14px 40px -12px rgba(233, 199, 126, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hx .btn-primary:hover {
  box-shadow: 0 18px 54px -10px rgba(233, 199, 126, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hx .btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-xl {
  padding: 1.15em 2.1em;
  font-size: 1rem;
}

.btn-xl .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--hx-ease);
}

.btn-xl:hover .icon {
  transform: translateX(4px);
}

.hx .nav .btn-primary {
  box-shadow: 0 8px 24px -10px rgba(233, 199, 126, 0.6);
}

/* -- live dot --------------------------------------------------- */
.hx-live-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hx-green);
  box-shadow: 0 0 10px var(--hx-green);
}

.hx-live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--hx-green);
  animation: hx-ping 2.2s var(--hx-ease) infinite;
}

@keyframes hx-ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* -- cursor spotlight (any [data-spot]) ------------------------- */
[data-spot] {
  --px: 50%;
  --py: 50%;
}

.hx-spotlight::after,
.hx-stat::after,
.hx-tile::after,
.hx-price::after,
.hx-ai-item::after,
.hx-case::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--px) var(--py), rgba(233, 199, 126, 0.13), transparent 42%);
  opacity: 0;
  transition: opacity 0.5s var(--hx-ease);
  pointer-events: none;
  z-index: 1;
}

.hx-stat:hover::after,
.hx-tile:hover::after,
.hx-price:hover::after,
.hx-ai-item:hover::after,
.hx-case:hover::after {
  opacity: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hx-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: clamp(6.5rem, 13vh, 8.5rem);
  padding-bottom: 2rem;
  isolation: isolate;
  overflow: hidden;
}

.hx-silk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hx-hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(233, 199, 126, 0.13), transparent 70%),
    radial-gradient(45% 50% at 10% 95%, rgba(139, 92, 246, 0.16), transparent 70%),
    linear-gradient(90deg, rgba(7, 7, 9, 0.92) 0%, rgba(7, 7, 9, 0.55) 42%, rgba(7, 7, 9, 0) 70%),
    linear-gradient(180deg, rgba(7, 7, 9, 0) 70%, var(--hx-bg) 100%);
}

.hx-hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}

.hx-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.55em 1.1em 0.55em 0.95em;
  border: 1px solid var(--hx-line-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
}

.hx-lead {
  font-size: clamp(1.04rem, 1.25vw, 1.22rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 34em;
  margin-top: 1.6rem;
}

.hx-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hx-ctas-center {
  justify-content: center;
  margin-top: 2.2rem;
}

.hx-checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.hx-checks li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.hx-checks li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316130c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat,
    linear-gradient(180deg, #f6dc9f, #c8a96e);
}

/* -- the device stack ----------------------------------------- */
.hx-stack-wrap {
  perspective: 1600px;
  min-width: 0;
}

.hx-stack {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.86;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.9s var(--hx-ease);
}

.hx-stack > * {
  --d: 0;
  position: absolute;
  transform: translateZ(calc(var(--d) * 1px));
}

/* paint order backs up the 3D depth (flattened while GSAP animates) */
.hx-frame-back { z-index: 1; }
.hx-frame-main { z-index: 2; }
.hx-phone { z-index: 3; }
.hx-float { z-index: 4; }

.hx-frame {
  border-radius: 14px;
  overflow: hidden;
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.hx-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9.4;
  object-fit: cover;
  object-position: 50% 0;
}

.hx-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hx-frame-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.hx-frame-bar i:nth-child(1) { background: #e0675e; }
.hx-frame-bar i:nth-child(2) { background: #d9b14d; }
.hx-frame-bar i:nth-child(3) { background: #4fb867; }

.hx-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
  padding: 3px 14px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  transform: translateX(-20px);
}

.hx-url svg {
  width: 10px;
  height: 10px;
  color: var(--hx-green);
}

.hx-frame-main {
  width: 84%;
  left: 0;
  top: 17%;
}

.hx-frame-back {
  width: 66%;
  right: 0;
  top: 0;
  filter: brightness(0.62) saturate(0.9);
}

.hx-phone {
  width: 25%;
  right: 3%;
  bottom: 1%;
  aspect-ratio: 9 / 19;
  border-radius: 26px;
  overflow: hidden;
  border: 4px solid #1b1b20;
  background: #000;
  box-shadow: 0 40px 70px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hx-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.12);
}

/* a real phone screenshot fills the frame as it is */
.hx-phone-shot img {
  object-position: 50% 0;
  transform: none;
}

.hx-float {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 250px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(18, 18, 24, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.85);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
  animation: hx-bob 6s ease-in-out infinite;
}

.hx-float b {
  display: block;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 2px;
}

.hx-float-av,
.hx-float-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--hx-violet), var(--hx-cyan));
}

.hx-float-ic {
  color: #16130c;
  background: linear-gradient(180deg, #f6dc9f, #c8a96e);
}

.hx-float-ic svg {
  width: 15px;
  height: 15px;
}

.hx-float-ai {
  left: -5%;
  bottom: 9%;
}

.hx-float-lead {
  left: 46%;
  top: 6%;
  animation-delay: -3s;
}

@keyframes hx-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* -- proof strip -------------------------------------------------- */
.hx-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 2rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hx-line);
}

.hx-proof-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hx-proof-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.2rem;
}

.hx-proof-list li {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(239, 234, 227, 0.5);
  transition: color 0.4s var(--hx-ease);
}

.hx-proof-list li:hover {
  color: var(--ink);
}

/* ============================================================
   STATS
   ============================================================ */
.hx-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.3vw, 1.25rem);
  padding-top: clamp(1rem, 3vh, 2rem);
}

.hx-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.25rem, 2vw, 1.8rem);
  border-radius: var(--hx-radius);
  border: 1px solid var(--hx-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  overflow: hidden;
}

.hx-stat-num {
  font-weight: 800;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  background: var(--hx-gold-grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hx-sheen 9s linear infinite;
  font-variant-numeric: tabular-nums;
}

.hx-stat-num small {
  font-size: 0.5em;
  letter-spacing: -0.02em;
}

.hx-stat-label {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.hx-marquee {
  --hx-skew: 0deg;
  margin-top: clamp(4rem, 9vh, 6rem);
  padding-block: clamp(1.4rem, 3vw, 2.4rem);
  border-block: 1px solid var(--hx-line);
  overflow: hidden;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.05), rgba(53, 211, 242, 0.04), rgba(233, 199, 126, 0.06));
  user-select: none;
}

.hx-marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hx-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.6vw, 2.4rem);
  width: max-content;
  padding-right: clamp(1.2rem, 2.6vw, 2.4rem);
  white-space: nowrap;
  animation: hx-marq 46s linear infinite;
  transform: skewX(var(--hx-skew));
}

.hx-marquee-track span {
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hx-marquee-track i {
  font-style: normal;
  font-size: clamp(1.2rem, 2.6vw, 2.2rem);
  color: var(--hx-gold);
}

.hx-marquee-rev .hx-marquee-track {
  animation-direction: reverse;
  animation-duration: 54s;
}

.hx-marquee-rev .hx-marquee-track span {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 234, 227, 0.32);
}

@keyframes hx-marq {
  to { translate: -50% 0; }
}

/* ============================================================
   WORK
   ============================================================ */
.hx-work {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(250px, 23vw, 340px);
  gap: clamp(0.85rem, 1.3vw, 1.25rem);
}

.hx-case {
  position: relative;
  grid-column: span 3;
  display: flex;
  align-items: flex-end;
  border-radius: var(--hx-radius);
  overflow: hidden;
  isolation: isolate;
  background: #0d0d11;
  border: 1px solid var(--hx-line);
  transition: transform 0.8s var(--hx-ease), border-color 0.8s var(--hx-ease), box-shadow 0.8s var(--hx-ease);
}

.hx-case:hover {
  transform: translateY(-5px);
  border-color: rgba(233, 199, 126, 0.35);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(233, 199, 126, 0.08);
}

.hx-case-xl {
  grid-column: span 4;
  grid-row: span 2;
}

.hx-case-tall {
  grid-column: span 2;
  grid-row: span 2;
}

.hx-case-wide {
  grid-column: span 6;
}

/* wide desktop card: the screenshot lives on the right, the copy gets clean
   dark ground on the left (below 1081px it is an ordinary card) */
@media (min-width: 1081px) {
  .hx-case-wide .hx-case-media {
    left: 40%;
    overflow: hidden;
  }

  .hx-case-wide .hx-case-media img {
    object-position: 50% 78%;
  }

  .hx-case.hx-case-wide.hx-case-light .hx-case-media img {
    filter: brightness(0.85) saturate(0.95);
  }

  .hx-case.hx-case-wide .hx-case-media::after {
    background: linear-gradient(90deg, #0d0d11 0%, rgba(13, 13, 17, 0.6) 18%, rgba(13, 13, 17, 0) 45%);
  }

  .hx-case-wide .hx-case-body {
    align-self: center;
    max-width: min(520px, 38%);
  }
}

.hx-case-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hx-case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.6s var(--hx-ease);
}

.hx-case:hover .hx-case-media img {
  transform: scale(1.11);
}

/* top scrim keeps the status pill and arrow off the site's own logo/nav;
   bottom scrim carries the copy */
.hx-case-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.7) 0%, rgba(5, 5, 7, 0) 20%, rgba(5, 5, 7, 0) 30%, rgba(5, 5, 7, 0.76) 56%, rgba(5, 5, 7, 0.97) 100%);
}

/* light screenshots (cream sites) need a heavier hand under the copy */
.hx-case-light .hx-case-media img {
  filter: brightness(0.55) saturate(0.85);
}

.hx-case-light .hx-case-media::after {
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.65) 0%, rgba(5, 5, 7, 0.2) 22%, rgba(5, 5, 7, 0.82) 50%, rgba(5, 5, 7, 0.98) 100%);
}

.hx-case-body {
  position: relative;
  z-index: 2;
  padding: clamp(1.25rem, 2.2vw, 2.1rem);
  max-width: 600px;
}

.hx-case-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hx-gold);
  margin-bottom: 0.5rem;
}

.hx-case h3 {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hx-case-xl h3 {
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
}

.hx-case-body > p:last-child {
  margin-top: 0.6rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}

.hx-status {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0.85em;
  border-radius: var(--r-pill);
  background: rgba(7, 7, 9, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.hx-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hx-green);
  box-shadow: 0 0 8px var(--hx-green);
}

.hx-status-demo::before {
  background: var(--hx-amber);
  box-shadow: 0 0 8px var(--hx-amber);
}

.hx-case-go {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(7, 7, 9, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.5s var(--hx-ease), transform 0.5s var(--hx-ease), color 0.5s var(--hx-ease);
}

.hx-case-go svg {
  width: 18px;
  height: 18px;
}

.hx-case:hover .hx-case-go {
  background: var(--hx-gold);
  color: #16130c;
  transform: rotate(45deg);
}

.hx-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ============================================================
   AI
   ============================================================ */
.hx-ai {
  position: relative;
  padding-block: clamp(6rem, 14vh, 10rem);
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--hx-line);
}

.hx-ai-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 40% at 18% 30%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(40% 45% at 85% 70%, rgba(53, 211, 242, 0.15), transparent 70%),
    #08080c;
}

.hx-ai-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%);
}

.hx-ai .hx-serif:not(.is-split),
.hx-ai .hx-serif.is-split .hx-wi {
  background-image: linear-gradient(100deg, #c7b5ff 0%, #8fe8ff 35%, #f2d38f 70%, #c7b5ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

.hx-ai .hx-eyebrow {
  color: #a8e9ff;
}

.hx-ai .hx-eyebrow::before {
  background: linear-gradient(90deg, transparent, #a8e9ff);
}

.hx-ai .hx-eyebrow::after {
  background: linear-gradient(90deg, #a8e9ff, transparent);
}

.hx-ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
}

.hx-chat {
  position: relative;
  border-radius: 26px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.7), rgba(53, 211, 242, 0.45) 45%, rgba(233, 199, 126, 0.4));
  box-shadow: 0 50px 100px -40px rgba(139, 92, 246, 0.55);
}

.hx-chat > * {
  background: rgba(12, 12, 17, 0.96);
}

.hx-chat-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.3rem;
  border-radius: 25px 25px 0 0;
  border-bottom: 1px solid var(--hx-line);
}

.hx-chat-head b {
  display: block;
  font-size: 0.95rem;
}

/* the subtitle line only — a bare `span` here would also hit the AI avatar
   and the tag and knock the avatar's letters off centre */
.hx-chat-head div > span {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  color: var(--ink-3);
}

.hx-chat-head .hx-live-dot {
  width: 7px;
  height: 7px;
}

.hx-chat-av {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--hx-violet), var(--hx-cyan));
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.6);
}

.hx-chat-head .hx-chat-tag {
  margin-left: auto;
  padding: 0.35em 0.8em;
  border-radius: var(--r-pill);
  border: 1px solid var(--hx-line-2);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.hx-chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 360px;
  padding: 1.4rem 1.3rem;
}

.hx-msg {
  max-width: 84%;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.5;
  transition: opacity 0.5s var(--hx-ease), transform 0.5s var(--hx-ease);
}

.hx-msg-me {
  align-self: flex-end;
  background: rgba(239, 234, 227, 0.1);
  border-bottom-right-radius: 6px;
}

.hx-msg-ai {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(53, 211, 242, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-bottom-left-radius: 6px;
}

.hx-msg.is-pending {
  opacity: 0;
  transform: translateY(12px);
}

.hx-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  background: rgba(139, 92, 246, 0.16);
}

.hx-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-2);
  animation: hx-dot 1s ease-in-out infinite;
}

.hx-typing i:nth-child(2) { animation-delay: 0.15s; }
.hx-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes hx-dot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.hx-chat-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 0.9rem 1.3rem;
  border-top: 1px solid var(--hx-line);
  border-radius: 0 0 25px 25px;
  font-size: 0.76rem;
  color: var(--ink-3);
}

.hx-chat-foot span:last-child {
  color: var(--hx-green);
}

.hx-ai-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.hx-ai-item {
  position: relative;
  padding: 1.4rem 1.35rem;
  border-radius: 20px;
  border: 1px solid var(--hx-line);
  background: rgba(14, 14, 20, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 0.6s var(--hx-ease), transform 0.6s var(--hx-ease);
}

.hx-ai-item:hover {
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-3px);
}

.hx-ai-item svg {
  width: 28px;
  height: 28px;
  color: #a8e9ff;
  margin-bottom: 0.9rem;
}

.hx-ai-item h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.hx-ai-item p {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.hx-ai-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.hx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55em 1.1em;
  border-radius: var(--r-pill);
  border: 1px solid var(--hx-line-2);
  background: rgba(255, 255, 255, 0.03);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.4s var(--hx-ease), background 0.4s var(--hx-ease);
}

.hx-chip:hover,
.hx-chip:focus-visible {
  border-color: var(--hx-gold);
  background: rgba(233, 199, 126, 0.08);
}

/* ============================================================
   SERVICES BENTO
   ============================================================ */
.hx-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(230px, auto);
  gap: clamp(0.85rem, 1.3vw, 1.25rem);
}

.hx-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 2rem);
  border-radius: var(--hx-radius);
  border: 1px solid var(--hx-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: border-color 0.6s var(--hx-ease), transform 0.6s var(--hx-ease);
}

.hx-tile:hover {
  border-color: rgba(233, 199, 126, 0.32);
  transform: translateY(-4px);
}

.hx-tile-price {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 0.4em 0.9em;
  border-radius: var(--r-pill);
  background: rgba(233, 199, 126, 0.1);
  border: 1px solid rgba(233, 199, 126, 0.28);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hx-gold);
}

.hx-tile h3 {
  margin-top: 2.2rem;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  letter-spacing: -0.03em;
}

.hx-tile p {
  margin-top: 0.5rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}

.hx-tile-hero {
  grid-column: span 2;
  grid-row: span 2;
  background:
    radial-gradient(80% 70% at 80% 0%, rgba(233, 199, 126, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.hx-tile-hero h3 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  letter-spacing: -0.04em;
}

.hx-tile-hero p {
  font-size: 1.04rem;
}

.hx-tile-art {
  position: absolute;
  inset: 8% 4% auto auto;
  width: min(62%, 460px);
  opacity: 0.9;
  pointer-events: none;
}

.hx-tile-link {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hx-gold);
}

.hx-tile-ai {
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(139, 92, 246, 0.25), transparent 70%),
    radial-gradient(70% 70% at 0% 100%, rgba(53, 211, 242, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.02);
  border-color: rgba(139, 92, 246, 0.3);
}

/* ============================================================
   COMPARE
   ============================================================ */
.hx-compare {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.15fr);
  grid-template-rows: repeat(8, auto);
  border-radius: 26px;
  border: 1px solid var(--hx-line);
  background: rgba(255, 255, 255, 0.015);
}

.hx-cmp-col {
  display: grid;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
}

.hx-cmp-col > span {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 1.05rem 1.3rem;
  border-bottom: 1px solid var(--hx-line);
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.hx-cmp-col > span:last-child {
  border-bottom: 0;
}

.hx-cmp-keys > span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hx-cmp-col > .hx-cmp-h {
  padding-block: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.hx-cmp-col .is-bad {
  color: var(--ink-3);
}

.hx-cmp-col .is-bad::before,
.hx-cmp-col .is-good::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.hx-cmp-col .is-bad::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0675e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 10px no-repeat,
    rgba(224, 103, 94, 0.14);
}

.hx-cmp-col .is-good::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316130c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat,
    linear-gradient(180deg, #f6dc9f, #c8a96e);
}

.hx-cmp-us {
  position: relative;
  margin: -14px 0;
  padding-block: 14px;
  border-radius: 22px;
  background:
    radial-gradient(120% 50% at 50% 0%, rgba(233, 199, 126, 0.18), transparent 70%),
    #121014;
  border: 1px solid rgba(233, 199, 126, 0.55);
  box-shadow: 0 40px 90px -30px rgba(233, 199, 126, 0.35), 0 0 0 6px rgba(233, 199, 126, 0.05);
}

.hx-cmp-us > span {
  color: var(--ink);
  border-bottom-color: rgba(233, 199, 126, 0.14);
}

.hx-cmp-us > .hx-cmp-h {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hx-gold);
}

.hx-cmp-crown {
  font-size: 1.1rem;
  color: var(--hx-gold);
}

/* ============================================================
   PRICING
   ============================================================ */
.hx-prices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.3vw, 1.25rem);
  align-items: stretch;
}

.hx-price {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2vw, 1.9rem);
  border-radius: var(--hx-radius);
  border: 1px solid var(--hx-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: border-color 0.6s var(--hx-ease), transform 0.6s var(--hx-ease);
}

.hx-price:hover {
  transform: translateY(-4px);
  border-color: var(--hx-line-2);
}

.hx-price h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.hx-price-for {
  margin-top: 0.4rem;
  min-height: 3em;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.hx-price-num {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1.3rem;
}

.hx-price-num b {
  font-weight: 800;
  font-size: clamp(2.3rem, 3.2vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hx-price-num small,
.hx-price-num span {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.hx-price-after {
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: var(--hx-gold);
}

.hx-price ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 1.4rem 0 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--hx-line);
}

.hx-price li {
  display: flex;
  gap: 0.6em;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.hx-price li::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9c77e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hx-price .btn {
  margin-top: auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hx-price-hot {
  border-color: rgba(233, 199, 126, 0.6);
  background:
    radial-gradient(110% 60% at 50% 0%, rgba(233, 199, 126, 0.16), transparent 70%),
    #121014;
  box-shadow: 0 40px 90px -36px rgba(233, 199, 126, 0.4);
}

.hx-price-hot:hover {
  border-color: rgba(233, 199, 126, 0.85);
}

.hx-price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35em 1em;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #f6dc9f, #c8a96e);
  color: #16130c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}

.hx-price-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: clamp(0.85rem, 1.3vw, 1.25rem);
  padding: clamp(1.25rem, 2vw, 1.6rem) clamp(1.4rem, 2.4vw, 2.2rem);
  border-radius: var(--hx-radius);
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.12), rgba(53, 211, 242, 0.06));
}

.hx-price-strip p {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 46em;
}

.hx-price-strip b {
  color: var(--ink);
}

/* ============================================================
   GUARANTEES
   ============================================================ */
.hx-guard {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4.5vw, 4.5rem);
  border-radius: 30px;
  border: 1px solid rgba(233, 199, 126, 0.28);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(233, 199, 126, 0.12), transparent 70%),
    linear-gradient(180deg, #111014, #0b0b0e);
}

.hx-guard-head .hx-h2 {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
}

.hx-guard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem) clamp(1.25rem, 2.4vw, 2.2rem);
}

.hx-guard-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--hx-gold);
  background: rgba(233, 199, 126, 0.1);
  border: 1px solid rgba(233, 199, 126, 0.25);
  margin-bottom: 1rem;
}

.hx-guard-ic svg {
  width: 22px;
  height: 22px;
}

.hx-guard-item h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.hx-guard-item p {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ============================================================
   PROCESS
   ============================================================ */
.hx-steps {
  --hx-line-p: 1;
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2.2rem);
}

.hx-steps::before,
.hx-steps::after {
  content: '';
  position: absolute;
  top: 27px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
}

.hx-steps::before {
  background: var(--hx-line);
}

.hx-steps::after {
  background: linear-gradient(90deg, var(--hx-violet), var(--hx-cyan), var(--hx-gold));
  transform-origin: left center;
  transform: scaleX(var(--hx-line-p));
  box-shadow: 0 0 18px rgba(53, 211, 242, 0.5);
}

.hx-step {
  position: relative;
  z-index: 1;
}

.hx-step-n {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hx-bg);
  border: 1px solid rgba(233, 199, 126, 0.55);
  box-shadow: 0 0 0 6px var(--hx-bg), 0 0 30px rgba(233, 199, 126, 0.2);
  font-weight: 800;
  font-size: 1rem;
  color: var(--hx-gold);
  margin-bottom: 1.4rem;
}

.hx-step h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.hx-step p {
  margin-top: 0.5rem;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ============================================================
   FAQ
   ============================================================ */
.hx-faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.hx-faq {
  border-top: 1px solid var(--hx-line);
}

.hx-faq details {
  border-bottom: 1px solid var(--hx-line);
}

.hx-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s var(--hx-ease);
}

.hx-faq summary::-webkit-details-marker {
  display: none;
}

.hx-faq summary::after {
  content: '';
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hx-line-2);
  background:
    linear-gradient(var(--hx-gold), var(--hx-gold)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--hx-gold), var(--hx-gold)) center / 1.5px 12px no-repeat;
  transition: transform 0.5s var(--hx-ease), background-color 0.5s var(--hx-ease);
}

.hx-faq details[open] summary::after {
  transform: rotate(135deg);
  background-color: rgba(233, 199, 126, 0.1);
}

.hx-faq summary:hover {
  color: var(--hx-gold);
}

.hx-faq details p {
  padding: 0 3.5rem 1.5rem 0;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--ink-2);
  animation: hx-faq-in 0.5s var(--hx-ease);
}

@keyframes hx-faq-in {
  from { opacity: 0; transform: translateY(-6px); }
}

/* ============================================================
   FINAL CTA + FORM
   ============================================================ */
.hx-final {
  position: relative;
  padding-block: clamp(6rem, 14vh, 10rem);
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--hx-line);
}

.hx-final-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 20% 100%, rgba(233, 199, 126, 0.16), transparent 70%),
    radial-gradient(40% 50% at 90% 10%, rgba(139, 92, 246, 0.16), transparent 70%),
    #08080b;
}

.hx-final-bg::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140vmax;
  height: 140vmax;
  margin: -70vmax 0 0 -70vmax;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(233, 199, 126, 0.07) 40deg, transparent 90deg, rgba(139, 92, 246, 0.07) 200deg, transparent 260deg);
  animation: hx-spin 40s linear infinite;
}

@keyframes hx-spin {
  to { transform: rotate(360deg); }
}

.hx-final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hx-direct {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--hx-line);
  font-size: 1rem;
}

.hx-direct li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.6rem;
}

.hx-direct li > span {
  min-width: 6.5em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hx-linkbtn {
  background: none;
  border: 0;
  padding: 0 0 2px;
  font: inherit;
  color: var(--hx-gold);
  cursor: pointer;
}

.hx-form-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  border-radius: 28px;
  border: 1px solid rgba(233, 199, 126, 0.3);
  background: rgba(14, 14, 18, 0.86);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.hx-needs {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hx-needs legend {
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hx-needs label {
  position: relative;
  cursor: pointer;
}

.hx-needs input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.hx-needs span {
  display: inline-block;
  padding: 0.55em 1.05em;
  border-radius: var(--r-pill);
  border: 1px solid var(--hx-line-2);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.3s var(--hx-ease), color 0.3s var(--hx-ease), border-color 0.3s var(--hx-ease);
}

.hx-needs label:hover span {
  border-color: var(--hx-gold);
  color: var(--ink);
}

.hx-needs input:checked + span {
  background: linear-gradient(180deg, #f6dc9f, #c8a96e);
  border-color: transparent;
  color: #16130c;
  font-weight: 700;
}

.hx-needs input:focus-visible + span {
  outline: 2px solid var(--hx-gold);
  outline-offset: 3px;
}

.hx-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.4rem;
  margin-top: 1.8rem;
}

.hx-fields .field-full {
  grid-column: 1 / -1;
}

.hx-fields label i {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-3);
  font-weight: 400;
}

.hx-submit {
  width: 100%;
  margin-top: 1.8rem;
}

.hx-form-note {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.hx-form-success {
  text-align: center;
  padding: 2rem 0.5rem;
}

.hx-form-success h3 {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.hx-form-success p:last-child {
  margin-top: 0.7rem;
  color: var(--ink-2);
}

.hx-success-ic {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  color: #16130c;
  background: linear-gradient(180deg, #f6dc9f, #c8a96e);
  box-shadow: 0 0 40px rgba(233, 199, 126, 0.5);
}

.hx-success-ic svg {
  width: 28px;
  height: 28px;
}

.hx .form-error {
  margin-top: 0.8rem;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .hx-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.6rem;
  }
}

@media (max-width: 1080px) {
  .hx-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hx-stack-wrap {
    width: min(100%, 660px);
    margin: 1rem auto 0;
  }

  .hx-hero-glow {
    background:
      radial-gradient(70% 40% at 70% 70%, rgba(233, 199, 126, 0.12), transparent 70%),
      radial-gradient(60% 40% at 10% 100%, rgba(139, 92, 246, 0.16), transparent 70%),
      linear-gradient(180deg, rgba(7, 7, 9, 0.75) 0%, rgba(7, 7, 9, 0.35) 55%, var(--hx-bg) 100%);
  }

  .hx-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-ai-grid,
  .hx-final-grid,
  .hx-guard,
  .hx-faq-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .hx-faq-wrap .hx-head {
    margin-bottom: 0;
  }

  .hx-work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(300px, 46vw, 400px);
  }

  .hx-case,
  .hx-case-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .hx-case-xl,
  .hx-case-wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .hx-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-tile-hero {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 340px;
  }
}

@media (max-width: 860px) {
  .hx-compare {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 0;
    background: none;
  }

  .hx-cmp-col {
    display: block;
    border-radius: 22px;
    border: 1px solid var(--hx-line);
    background: rgba(255, 255, 255, 0.02);
  }

  .hx-cmp-col.hx-cmp-keys {
    display: none;
  }

  .hx-cmp-us {
    order: -1;
    margin: 0;
    padding-block: 0;
  }

  .hx-cmp-col > span[data-k] {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 0.85rem 1.2rem;
  }

  .hx-cmp-col > span[data-k]:not(.is-bad):not(.is-good) {
    grid-template-columns: minmax(0, 1fr);
  }

  .hx-cmp-col > span[data-k]::after {
    content: attr(data-k);
    grid-row: 1;
    grid-column: 1 / -1;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 0.15rem;
  }

  .hx-cmp-col > .hx-cmp-h {
    padding: 1.1rem 1.2rem;
  }

  .hx-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-left: 0;
  }

  .hx-steps::before,
  .hx-steps::after {
    top: 0;
    bottom: 0;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .hx-steps::after {
    transform-origin: center top;
    transform: scaleY(var(--hx-line-p));
  }

  .hx-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 1.2rem;
  }

  .hx-step-n {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .hx-hero {
    padding-top: 6rem;
  }

  .hx-pill {
    font-size: 0.74rem;
  }

  .hx-ctas .btn {
    width: 100%;
  }

  .hx-checks {
    gap: 0.5rem 1rem;
    font-size: 0.82rem;
  }

  .hx-float {
    max-width: 190px;
    padding: 9px 10px;
    font-size: 11px;
  }

  .hx-float-av,
  .hx-float-ic {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }

  .hx-float-ai {
    left: -2%;
    bottom: 4%;
  }

  .hx-float-lead {
    left: 38%;
    top: 2%;
  }

  .hx-frame-bar {
    height: 22px;
  }

  .hx-url {
    font-size: 9px;
  }

  .hx-proof-list {
    gap: 0.35rem 1.2rem;
  }

  .hx-proof-list li {
    font-size: 0.9rem;
  }

  .hx-stats {
    gap: 0.6rem;
  }

  .hx-stat {
    padding: 1.1rem;
  }

  .hx-stat-label {
    font-size: 0.82rem;
  }

  /* phones: the screenshot sits above the copy instead of under it, so a
     site's own headline never fights the card text */
  .hx-work {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }

  .hx-case,
  .hx-case-xl,
  .hx-case-tall,
  .hx-case-wide {
    grid-column: span 1;
    grid-row: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .hx-case-media {
    position: relative;
    inset: auto;
    flex: none;
    height: 220px;
    overflow: hidden;
  }

  .hx-case-tall .hx-case-media {
    height: 300px;
  }

  .hx-case .hx-case-media::after,
  .hx-case-light .hx-case-media::after {
    background: linear-gradient(180deg, rgba(5, 5, 7, 0.6) 0%, rgba(5, 5, 7, 0) 28%, rgba(5, 5, 7, 0) 70%, #0d0d11 100%);
  }

  .hx-case-light .hx-case-media img {
    filter: brightness(0.9);
  }

  .hx-case-body {
    padding-top: 0.6rem;
  }

  .hx-bento {
    grid-auto-rows: auto;
  }

  .hx-tile-price {
    margin-bottom: 1rem;
  }

  .hx-tile h3 {
    margin-top: 0.4rem;
  }

  .hx-bento,
  .hx-prices,
  .hx-ai-list,
  .hx-guard-grid,
  .hx-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .hx-tile-hero {
    grid-column: span 1;
  }

  .hx-tile-art {
    width: 80%;
    opacity: 0.6;
  }

  .hx-chat-log {
    min-height: 0;
  }

  .hx-msg {
    max-width: 92%;
    font-size: 0.88rem;
  }

  .hx-chat-head .hx-chat-tag {
    display: none;
  }

  .hx-faq details p {
    padding-right: 0;
  }

  .hx-price-strip .btn {
    width: 100%;
  }
}

/* phones: the bottom call bar already carries „Чат с нас" — the floating
   chat pill would only sit on top of the copy; keep the footer clear of the bar */
@media (max-width: 760px) {
  .hx .sk-chat-fab {
    display: none;
  }

  .hx .footer {
    padding-bottom: 5.5rem;
  }
}

@media (max-width: 480px) {
  .hx-pill-more {
    display: none;
  }

  /* long CTA labels wrap instead of being clipped on small phones */
  .hx .btn-xl {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding-inline: 1.2em;
  }

  .hx-final .btn-xl,
  .hx-form-card .btn-xl {
    width: 100%;
    font-size: 0.95rem;
  }
}

/* -- motion off --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hx-serif,
  .hx-serif.is-split .hx-wi,
  .hx-stat-num,
  .hx-float,
  .hx-live-dot::after,
  .hx-marquee-track,
  .hx-final-bg::before {
    animation: none;
  }

  .hx-stack {
    transition: none;
  }
}
