/* ============================================================
   A2Z DEVCENTER — FUTURISTIC HOMEPAGE (v2)
   Dark · animated · AI-forward · dev + marketing fused.
   All scoped under .hpx so nothing leaks to navbar/footer/site.
   Animations use ONLY transform/opacity (GPU) + IntersectionObserver
   reveals → Core Web Vitals safe (no layout shift, no main-thread jank).
   ============================================================ */

.hpx {
  --bg-0:    #08031c;
  --bg-1:    #0c0626;
  --bg-2:    #120a33;
  --panel:   rgba(255,255,255,0.035);
  --panel-2: rgba(255,255,255,0.055);
  --stroke:  rgba(255,255,255,0.10);
  --stroke-2:rgba(255,255,255,0.16);

  --violet:  #7c5cff;
  --violet-2:#9d86ff;
  --indigo:  #4f3ef5;
  --orange:  #ff7a1a;
  --orange-2:#ffa257;
  --cyan:    #34e3ff;
  --green:   #34e39b;

  --ink:     #ffffff;
  --soft:    rgba(255,255,255,0.66);
  --faint:   rgba(255,255,255,0.42);

  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --disp: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  position: relative;
  background: var(--bg-0);
  color: var(--soft);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: clip;
  isolation: isolate;
}
.hpx *, .hpx *::before, .hpx *::after { box-sizing: border-box; margin: 0; padding: 0; }
.hpx ::selection { background: rgba(255,122,26,0.3); color: #fff; }
.hpx-wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 2; }

/* ---------- shared section ---------- */
.hpx-sec { padding: 110px 0; position: relative; }
.hpx-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--violet-2);
  padding: 7px 14px; border-radius: 100px;
  background: rgba(124,92,255,0.1); border: 1px solid rgba(124,92,255,0.25);
}
.hpx-eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(52,227,255,0.6); animation: hpxPulse 2s infinite; }
@keyframes hpxPulse { 0%{box-shadow:0 0 0 0 rgba(52,227,255,0.5);} 70%{box-shadow:0 0 0 8px rgba(52,227,255,0);} 100%{box-shadow:0 0 0 0 rgba(52,227,255,0);} }
.hpx-eyebrow.orange { color: var(--orange-2); background: rgba(255,122,26,0.1); border-color: rgba(255,122,26,0.28); }

.hpx-h2 {
  font-family: var(--disp); font-size: clamp(30px, 4.2vw, 50px); font-weight: 700;
  letter-spacing: -1.4px; line-height: 1.08; color: var(--ink); margin: 20px 0 0; text-wrap: balance;
}
.hpx-h2 .g { background: linear-gradient(100deg, var(--violet-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hpx-h2 .o { background: linear-gradient(100deg, var(--orange), var(--orange-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hpx-lead { font-size: 18px; color: var(--soft); line-height: 1.65; margin-top: 18px; max-width: 640px; }
.hpx-center { text-align: center; }
.hpx-center .hpx-lead { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.hpx-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-size: 15px; font-weight: 700; text-decoration: none;
  padding: 15px 28px; border-radius: 12px; cursor: pointer; border: none; white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s;
}
.hpx-btn svg { width: 16px; height: 16px; }
.hpx-btn-primary { position: relative; color: #fff; background: linear-gradient(100deg, var(--orange), #ff9340); box-shadow: 0 10px 30px -6px rgba(255,122,26,0.55); }
.hpx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -6px rgba(255,122,26,0.7); }
.hpx-btn-glass { color: #fff; background: var(--panel-2); border: 1px solid var(--stroke-2); backdrop-filter: blur(8px); }
.hpx-btn-glass:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }

/* ============================================================
   GLOBAL ANIMATED BACKDROP
   ============================================================ */
.hpx-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hpx-aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.hpx-aurora.a1 { width: 620px; height: 620px; top: -200px; left: -120px; background: radial-gradient(circle, #4f3ef5, transparent 70%); animation: hpxDrift1 22s ease-in-out infinite; }
.hpx-aurora.a2 { width: 540px; height: 540px; top: 200px; right: -160px; background: radial-gradient(circle, #ff7a1a, transparent 70%); opacity: 0.32; animation: hpxDrift2 26s ease-in-out infinite; }
.hpx-aurora.a3 { width: 480px; height: 480px; bottom: -160px; left: 30%; background: radial-gradient(circle, #34e3ff, transparent 70%); opacity: 0.25; animation: hpxDrift3 30s ease-in-out infinite; }
@keyframes hpxDrift1 { 0%,100%{transform:translate(0,0);} 50%{transform:translate(80px,60px);} }
@keyframes hpxDrift2 { 0%,100%{transform:translate(0,0);} 50%{transform:translate(-70px,40px);} }
@keyframes hpxDrift3 { 0%,100%{transform:translate(0,0);} 50%{transform:translate(50px,-50px);} }
.hpx-grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
}

/* ============================================================
   HERO
   ============================================================ */
.hpx-hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.hpx-hero-inner { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 52px; align-items: center; }
.hpx-hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  font-family: var(--mono); font-size: 12.5px; color: var(--soft);
  padding: 8px 16px 8px 10px; border-radius: 100px;
  background: var(--panel); border: 1px solid var(--stroke);
}
.hpx-hero-badge .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: #fff; background: linear-gradient(100deg, var(--violet), var(--indigo)); padding: 3px 9px; border-radius: 100px; }
.hpx-hero h1 {
  font-family: var(--disp); font-size: clamp(38px, 5.6vw, 70px); font-weight: 700;
  letter-spacing: -2.4px; line-height: 1.02; color: var(--ink); margin-bottom: 24px;
}
.hpx-hero h1 .grad { background: linear-gradient(100deg, #ff7a1a 0%, #ff9340 40%, #9d86ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hpx-hero h1 .line { display: block; }
.hpx-hero p.lead { font-size: 19.5px; line-height: 1.6; color: var(--soft); max-width: 560px; margin-bottom: 34px; }
.hpx-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.hpx-hero-metrics { display: flex; gap: 30px; flex-wrap: wrap; }
.hpx-hero-metrics .m .n { font-family: var(--disp); font-size: 30px; font-weight: 700; letter-spacing: -1px; color: #fff; line-height: 1; }
.hpx-hero-metrics .m .n .u { color: var(--orange-2); }
.hpx-hero-metrics .m .l { font-size: 12.5px; color: var(--faint); margin-top: 7px; font-family: var(--mono); letter-spacing: 0.3px; }
.hpx-hero-metrics .vline { width: 1px; background: var(--stroke); }

/* hero visual: stacked glass console */
.hpx-hero-visual { position: relative; min-height: 460px; }
.hpx-console {
  position: relative; z-index: 3; border-radius: 18px; overflow: hidden;
  background: linear-gradient(170deg, rgba(28,18,66,0.9), rgba(14,8,38,0.92));
  border: 1px solid var(--stroke-2); backdrop-filter: blur(10px);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.06);
}
.hpx-console-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--stroke); background: rgba(255,255,255,0.02); }
.hpx-console-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.hpx-console-bar .dot.r { background: #ff5f57; } .hpx-console-bar .dot.y { background: #febc2e; } .hpx-console-bar .dot.g { background: #28c840; }
.hpx-console-bar .file { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.hpx-console-bar .live { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--green); display: flex; align-items: center; gap: 6px; }
.hpx-console-bar .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.hpx-console-body { padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.9; }
.hpx-code .ln { display: block; white-space: pre; color: var(--soft); }
.hpx-code .c { color: var(--faint); }
.hpx-code .k { color: var(--violet-2); }
.hpx-code .s { color: var(--orange-2); }
.hpx-code .f { color: var(--cyan); }
.hpx-code .cursor { display: inline-block; width: 8px; height: 15px; background: var(--orange); vertical-align: -2px; animation: hpxBlink 1.1s steps(1) infinite; }
@keyframes hpxBlink { 50% { opacity: 0; } }

.hpx-console-foot { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--stroke); }
.hpx-console-foot .cell { padding: 14px 16px; border-right: 1px solid var(--stroke); }
.hpx-console-foot .cell:last-child { border-right: none; }
.hpx-console-foot .cv { font-family: var(--disp); font-size: 20px; font-weight: 700; color: #fff; }
.hpx-console-foot .cv.green { color: var(--green); }
.hpx-console-foot .cl { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 0.5px; margin-top: 2px; }

/* floating chips around console */
.hpx-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: 13px; backdrop-filter: blur(12px);
  background: rgba(20,12,48,0.82); border: 1px solid var(--stroke-2);
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.7); will-change: transform;
}
.hpx-chip .ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.hpx-chip .big { font-family: var(--disp); font-weight: 700; font-size: 17px; color: #fff; line-height: 1; }
.hpx-chip .sm { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 3px; }
.hpx-chip-a { top: -6px; left: -34px; animation: hpxFloat 5.5s ease-in-out infinite; }
.hpx-chip-a .ic { background: linear-gradient(135deg, var(--orange), var(--orange-2)); }
.hpx-chip-b { bottom: 40px; right: -38px; animation: hpxFloat 6.5s ease-in-out infinite reverse; }
.hpx-chip-b .ic { background: linear-gradient(135deg, var(--violet), var(--indigo)); }
@keyframes hpxFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-14px);} }

/* ============================================================
   MARQUEE (tech + channels)
   ============================================================ */
.hpx-marquee { border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); padding: 26px 0; background: rgba(255,255,255,0.015); overflow: hidden; position: relative; }
.hpx-marquee::before, .hpx-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
.hpx-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-0), transparent); }
.hpx-marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-0), transparent); }
.hpx-marquee-track { display: flex; gap: 56px; width: max-content; animation: hpxScroll 36s linear infinite; }
.hpx-marquee:hover .hpx-marquee-track { animation-play-state: paused; }
@keyframes hpxScroll { to { transform: translateX(-50%); } }
.hpx-marquee-track .item { font-family: var(--disp); font-size: 20px; font-weight: 600; color: rgba(255,255,255,0.4); white-space: nowrap; display: flex; align-items: center; gap: 10px; transition: color 0.2s; }
.hpx-marquee-track .item:hover { color: #fff; }
.hpx-marquee-track .item .d { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

/* ============================================================
   FUSION: DEV + MARKETING + AI
   ============================================================ */
.hpx-fusion-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; margin-top: 60px; align-items: stretch; }
.hpx-fcard { position: relative; border-radius: 22px; padding: 34px; background: var(--panel); border: 1px solid var(--stroke); overflow: hidden; }
.hpx-fcard::before { content: ''; position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.hpx-fcard.dev::before { background: radial-gradient(120% 80% at 0% 0%, rgba(124,92,255,0.14), transparent 60%); }
.hpx-fcard.mkt::before { background: radial-gradient(120% 80% at 100% 0%, rgba(255,122,26,0.14), transparent 60%); }
.hpx-fcard .ftag { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.hpx-fcard.dev .ftag { color: var(--violet-2); }
.hpx-fcard.mkt .ftag { color: var(--orange-2); }
.hpx-fcard h3 { font-family: var(--disp); font-size: 25px; font-weight: 700; color: #fff; letter-spacing: -0.6px; margin: 12px 0 8px; }
.hpx-fcard > p { font-size: 14.5px; color: var(--soft); line-height: 1.6; margin-bottom: 22px; }
.hpx-flist { display: flex; flex-direction: column; gap: 12px; }
.hpx-flist .row { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--soft); }
.hpx-flist .row .ck { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.hpx-fcard.dev .ck { background: rgba(124,92,255,0.18); color: var(--violet-2); }
.hpx-fcard.mkt .ck { background: rgba(255,122,26,0.18); color: var(--orange-2); }

/* center AI core */
.hpx-core { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 6px; }
.hpx-core-orb { position: relative; width: 130px; height: 130px; display: flex; align-items: center; justify-content: center; }
.hpx-core-orb .ball { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--orange) 45%, #c2410c 100%); box-shadow: 0 0 40px rgba(255,122,26,0.7), 0 0 80px rgba(124,92,255,0.4); z-index: 2; animation: hpxBreathe 4s ease-in-out infinite; }
@keyframes hpxBreathe { 0%,100%{transform:scale(1);} 50%{transform:scale(1.08);} }
.hpx-core-orb .ring { position: absolute; border-radius: 50%; border: 1px solid; inset: 0; }
.hpx-core-orb .ring.r1 { border-color: rgba(124,92,255,0.5); animation: hpxSpin 8s linear infinite; }
.hpx-core-orb .ring.r2 { inset: 16px; border-color: rgba(52,227,255,0.4); border-style: dashed; animation: hpxSpin 12s linear infinite reverse; }
.hpx-core-orb .ring.r3 { inset: -16px; border-color: rgba(255,122,26,0.3); animation: hpxSpin 16s linear infinite; }
@keyframes hpxSpin { to { transform: rotate(360deg); } }
.hpx-core .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--cyan); text-align: center; }
.hpx-core .lbl b { display: block; font-family: var(--disp); font-size: 16px; color: #fff; letter-spacing: 0; margin-top: 4px; }

/* ============================================================
   BENTO CAPABILITIES
   ============================================================ */
.hpx-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 18px; margin-top: 56px; }
.hpx-tile { position: relative; border-radius: 20px; padding: 26px; background: var(--panel); border: 1px solid var(--stroke); overflow: hidden; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.hpx-tile:hover { transform: translateY(-4px); border-color: var(--stroke-2); background: var(--panel-2); }
.hpx-tile .tic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: rgba(255,255,255,0.05); border: 1px solid var(--stroke); margin-bottom: 16px; }
.hpx-tile h3 { font-family: var(--disp); font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -0.4px; margin-bottom: 8px; }
.hpx-tile p { font-size: 13.5px; color: var(--soft); line-height: 1.55; }
.hpx-tile.span2 { grid-column: span 2; }
.hpx-tile.tall { grid-row: span 2; }
.hpx-tile .glow { position: absolute; width: 200px; height: 200px; border-radius: 50%; filter: blur(60px); opacity: 0.35; pointer-events: none; right: -60px; bottom: -60px; }
.hpx-tile.v .glow { background: var(--violet); }
.hpx-tile.o .glow { background: var(--orange); }
.hpx-tile.c .glow { background: var(--cyan); }

/* feature tile: animated bar mini */
.hpx-mini-bars { display: flex; align-items: flex-end; gap: 7px; height: 70px; margin-top: 18px; }
.hpx-mini-bars span { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--violet-2), var(--indigo)); transform-origin: bottom; animation: hpxGrow 1.4s ease forwards; transform: scaleY(0); }
.hpx-tile.o .hpx-mini-bars span { background: linear-gradient(180deg, var(--orange-2), var(--orange)); }
@keyframes hpxGrow { to { transform: scaleY(1); } }

/* tags inside a wide tile */
.hpx-stack-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hpx-stack-tags span { font-family: var(--mono); font-size: 11.5px; color: var(--soft); padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--stroke); }

/* ============================================================
   SERVICES — BUILD / GROW TRACKS
   ============================================================ */
.hpx-svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 56px; }
.hpx-track { position: relative; border-radius: 24px; padding: 32px; background: var(--panel); border: 1px solid var(--stroke); overflow: hidden; }
.hpx-track::before { content: ''; position: absolute; inset: 0; opacity: 0.55; pointer-events: none; }
.hpx-track.build::before { background: radial-gradient(120% 70% at 0% 0%, rgba(124,92,255,0.16), transparent 58%); }
.hpx-track.grow::before { background: radial-gradient(120% 70% at 100% 0%, rgba(255,122,26,0.16), transparent 58%); }
.hpx-track > * { position: relative; z-index: 2; }
.hpx-track-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--stroke); }
.hpx-track-badge { width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 23px; }
.hpx-track.build .hpx-track-badge { background: linear-gradient(135deg, var(--violet), var(--indigo)); box-shadow: 0 8px 24px -6px rgba(124,92,255,0.6); }
.hpx-track.grow .hpx-track-badge { background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: 0 8px 24px -6px rgba(255,122,26,0.6); }
.hpx-track-head .tt { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.hpx-track.build .tt { color: var(--violet-2); }
.hpx-track.grow .tt { color: var(--orange-2); }
.hpx-track-head h3 { font-family: var(--disp); font-size: 23px; font-weight: 700; color: #fff; letter-spacing: -0.5px; margin-top: 3px; }
.hpx-svc-items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hpx-svc-item { display: flex; gap: 13px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,0.025); border: 1px solid var(--stroke); transition: transform 0.16s, border-color 0.16s, background 0.16s; }
.hpx-svc-item:hover { transform: translateY(-3px); background: rgba(255,255,255,0.05); }
.hpx-track.build .hpx-svc-item:hover { border-color: rgba(124,92,255,0.4); }
.hpx-track.grow .hpx-svc-item:hover { border-color: rgba(255,122,26,0.4); }
.hpx-svc-item .si { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; background: rgba(255,255,255,0.05); border: 1px solid var(--stroke); }
.hpx-svc-item .nm { font-family: var(--disp); font-size: 14.5px; font-weight: 600; color: #fff; line-height: 1.2; }
.hpx-svc-item .ds { font-size: 12px; color: var(--faint); margin-top: 3px; line-height: 1.4; }
.hpx-track-foot { margin-top: 20px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: gap 0.16s; }
.hpx-track.build .hpx-track-foot { color: var(--violet-2); }
.hpx-track.grow .hpx-track-foot { color: var(--orange-2); }
.hpx-track-foot:hover { gap: 12px; }
@media (max-width: 1024px) { .hpx-svc-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hpx-svc-items { grid-template-columns: 1fr; } }

/* ============================================================
   FEATURED BLOG
   ============================================================ */
.hpx-blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hpx-blog-head .hpx-lead { margin-top: 14px; }
.hpx-blog-alllink { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--violet-2); text-decoration: none; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--stroke-2); background: var(--panel); transition: gap 0.16s, background 0.16s; white-space: nowrap; }
.hpx-blog-alllink:hover { gap: 12px; background: var(--panel-2); }
.hpx-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.hpx-bcard { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--stroke); text-decoration: none; transition: transform 0.2s, border-color 0.2s; }
.hpx-bcard:hover { transform: translateY(-6px); border-color: var(--stroke-2); }
.hpx-bthumb { position: relative; aspect-ratio: 16/10; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hpx-bthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hpx-bthumb::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px); background-size: 20px 20px; opacity: 0.6; }
.hpx-bthumb.t1 { background: linear-gradient(135deg, #2d1b8a, #4f3ef5); }
.hpx-bthumb.t2 { background: linear-gradient(135deg, #7c2d12, #ff7a1a); }
.hpx-bthumb.t3 { background: linear-gradient(135deg, #0e2a6b, #34e3ff); }
.hpx-bthumb.t4 { background: linear-gradient(135deg, #1a0550, #7c5cff); }
.hpx-bthumb .glyph { position: relative; z-index: 2; font-size: 46px; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.4)); }
.hpx-bcat { position: absolute; top: 14px; left: 14px; z-index: 3; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: #fff; background: rgba(8,3,28,0.7); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(6px); padding: 5px 11px; border-radius: 100px; }
.hpx-bbody { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.hpx-bcard h3 { font-family: var(--disp); font-size: 17.5px; font-weight: 600; color: #fff; line-height: 1.28; letter-spacing: -0.3px; margin-bottom: 10px; }
.hpx-bcard p { font-size: 13.5px; color: var(--soft); line-height: 1.6; margin-bottom: 18px; }
.hpx-bmeta { margin-top: auto; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.hpx-bmeta .read { display: inline-flex; align-items: center; gap: 6px; }
.hpx-bmeta .arrow { margin-left: auto; color: var(--orange-2); font-weight: 600; transition: transform 0.16s; }
.hpx-bcard:hover .hpx-bmeta .arrow { transform: translateX(4px); }
@media (max-width: 1024px) { .hpx-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .hpx-blog-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; } }

/* ============================================================
   FAQ
   ============================================================ */
.hpx-faq-list { max-width: 840px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.hpx-faq-item { border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--stroke); transition: border-color 0.2s, background 0.2s; }
.hpx-faq-item.open { border-color: rgba(124,92,255,0.4); background: var(--panel-2); }
.hpx-faq-q { width: 100%; background: none; border: none; cursor: pointer; font-family: var(--disp); font-size: 17px; font-weight: 600; color: #fff; padding: 22px 24px; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hpx-faq-q .chev { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border: 1px solid var(--stroke); color: var(--violet-2); transition: transform 0.25s, background 0.2s, color 0.2s; }
.hpx-faq-q .chev svg { width: 15px; height: 15px; }
.hpx-faq-item.open .hpx-faq-q .chev { transform: rotate(180deg); background: rgba(255,122,26,0.14); border-color: rgba(255,122,26,0.3); color: var(--orange-2); }
.hpx-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.hpx-faq-a-inner { padding: 0 24px 22px; font-size: 15px; line-height: 1.7; color: var(--soft); }
.hpx-faq-a-inner strong { color: #fff; font-weight: 600; }

/* ============================================================
   VALUES GRID — "Why teams choose us"
   ============================================================ */
.hpx-val-grid { margin-top: 52px; border-radius: 22px; overflow: hidden; border: 1px solid var(--stroke); background: var(--panel); display: grid; grid-template-columns: repeat(3, 1fr); }
.hpx-val { padding: 38px 30px; text-align: center; position: relative; border-right: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); transition: background 0.2s; }
.hpx-val:hover { background: var(--panel-2); }
.hpx-val:nth-child(3n) { border-right: none; }
.hpx-val:nth-last-child(-n+3) { border-bottom: none; }
.hpx-val-ic { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; background: rgba(255,255,255,0.04); border: 1px solid var(--stroke); position: relative; }
.hpx-val-ic::after { content: ''; position: absolute; inset: -1px; border-radius: 16px; padding: 1px; background: linear-gradient(135deg, var(--violet), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.7; }
.hpx-val:nth-child(even) .hpx-val-ic::after { background: linear-gradient(135deg, var(--orange), transparent 60%); }
.hpx-val h3 { font-family: var(--disp); font-size: 18px; font-weight: 600; color: #fff; letter-spacing: -0.3px; margin-bottom: 10px; line-height: 1.25; }
.hpx-val p { font-size: 13.5px; color: var(--soft); line-height: 1.6; max-width: 300px; margin: 0 auto; }
@media (max-width: 880px) {
  .hpx-val-grid { grid-template-columns: 1fr 1fr; }
  .hpx-val:nth-child(3n) { border-right: 1px solid var(--stroke); }
  .hpx-val:nth-child(even) { border-right: none; }
  .hpx-val:nth-last-child(-n+3) { border-bottom: 1px solid var(--stroke); }
  .hpx-val:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 540px) {
  .hpx-val-grid { grid-template-columns: 1fr; }
  .hpx-val { border-right: none !important; border-bottom: 1px solid var(--stroke) !important; }
  .hpx-val:last-child { border-bottom: none !important; }
}

/* ============================================================
   COMPARISON — "won't do" vs "different"
   ============================================================ */
.hpx-vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px; }
.hpx-vs-card { border-radius: 22px; overflow: hidden; border: 1px solid var(--stroke); background: var(--panel); }
.hpx-vs-head { padding: 22px 28px; display: flex; align-items: center; gap: 13px; }
.hpx-vs-card.no .hpx-vs-head { background: linear-gradient(100deg, rgba(255,90,90,0.16), rgba(255,90,90,0.05)); border-bottom: 1px solid rgba(255,90,90,0.2); }
.hpx-vs-card.yes .hpx-vs-head { background: linear-gradient(100deg, rgba(52,227,155,0.16), rgba(52,227,155,0.05)); border-bottom: 1px solid rgba(52,227,155,0.2); }
.hpx-vs-head .hic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.hpx-vs-card.no .hic { background: rgba(255,90,90,0.18); }
.hpx-vs-card.yes .hic { background: rgba(52,227,155,0.18); }
.hpx-vs-head h3 { font-family: var(--disp); font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.4px; }
.hpx-vs-body { padding: 8px 28px 20px; }
.hpx-vs-row { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--stroke); }
.hpx-vs-row:last-child { border-bottom: none; }
.hpx-vs-row .mark { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.hpx-vs-card.no .mark { background: rgba(255,90,90,0.16); color: #ff6b6b; }
.hpx-vs-card.yes .mark { background: rgba(52,227,155,0.16); color: var(--green); }
.hpx-vs-row h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.hpx-vs-row p { font-size: 13.5px; color: var(--soft); line-height: 1.55; }
@media (max-width: 860px) { .hpx-vs-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PIPELINE / PROCESS
   ============================================================ */
.hpx-pipe { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 56px; }
.hpx-pnode { position: relative; padding: 28px 24px; border-radius: 18px; background: var(--panel); border: 1px solid var(--stroke); }
.hpx-pnum { font-family: var(--mono); font-size: 12px; color: var(--orange-2); letter-spacing: 1px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.hpx-pnum::before { content: ''; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,122,26,0.12); border: 1px solid rgba(255,122,26,0.3); display: flex; }
.hpx-pnode h3 { font-family: var(--disp); font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: -0.3px; }
.hpx-pnode p { font-size: 13.5px; color: var(--soft); line-height: 1.55; }
.hpx-pnode .conn { position: absolute; top: 42px; right: -12px; width: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--stroke-2) 0 5px, transparent 5px 10px); z-index: 3; }

/* ============================================================
   CORE WEB VITALS / PERFORMANCE
   ============================================================ */
.hpx-cwv-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.hpx-gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hpx-gauge { text-align: center; padding: 26px 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--stroke); }
.hpx-ring { position: relative; width: 96px; height: 96px; margin: 0 auto 14px; }
.hpx-ring svg { transform: rotate(-90deg); width: 96px; height: 96px; }
.hpx-ring .track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 8; }
.hpx-ring .bar { fill: none; stroke-width: 8; stroke-linecap: round; stroke: url(#hpxGrad); }
.hpx-ring .val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--disp); font-size: 22px; font-weight: 700; color: #fff; }
.hpx-gauge .gl { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--faint); text-transform: uppercase; }
.hpx-gauge .gm { font-size: 12.5px; color: var(--green); font-weight: 600; margin-top: 4px; }
.hpx-cwv-feats { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.hpx-cwv-feats .row { display: flex; gap: 14px; align-items: flex-start; }
.hpx-cwv-feats .row .ic { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; background: rgba(52,227,255,0.1); border: 1px solid rgba(52,227,255,0.25); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.hpx-cwv-feats .row h4 { font-size: 15.5px; color: #fff; font-weight: 700; margin-bottom: 3px; }
.hpx-cwv-feats .row p { font-size: 13.5px; color: var(--soft); line-height: 1.5; }

/* ============================================================
   RESULTS COUNTERS
   ============================================================ */
.hpx-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-top: 56px; }
.hpx-stat { padding: 30px 26px; border-radius: 18px; background: var(--panel); border: 1px solid var(--stroke); position: relative; overflow: hidden; }
.hpx-stat .n { font-family: var(--disp); font-size: clamp(34px, 4vw, 46px); font-weight: 700; letter-spacing: -1.5px; line-height: 1; background: linear-gradient(120deg, #fff, var(--violet-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hpx-stat .n .u { color: var(--orange-2); -webkit-text-fill-color: var(--orange-2); }
.hpx-stat .l { font-size: 14px; color: var(--soft); margin-top: 12px; line-height: 1.5; }
.hpx-stat::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--orange), transparent); opacity: 0.6; }

/* ============================================================
   TESTIMONIAL STRIP
   ============================================================ */
.hpx-quote-wrap { margin-top: 50px; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.hpx-quote { padding: 28px; border-radius: 18px; background: var(--panel); border: 1px solid var(--stroke); display: flex; flex-direction: column; }
.hpx-quote .stars { color: var(--orange); letter-spacing: 2px; font-size: 14px; margin-bottom: 14px; }
.hpx-quote p { font-size: 15px; color: rgba(255,255,255,0.86); line-height: 1.66; flex: 1; }
.hpx-quote .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--stroke); }
.hpx-quote .av { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--disp); font-weight: 700; color: #fff; font-size: 15px; background: linear-gradient(135deg, var(--violet), var(--orange)); }
.hpx-quote .nm { font-size: 14px; font-weight: 700; color: #fff; }
.hpx-quote .rl { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.hpx-cta { padding: 40px 0 120px; }
.hpx-cta-box { position: relative; border-radius: 28px; overflow: hidden; text-align: center; padding: 76px 48px; border: 1px solid var(--stroke-2); background: linear-gradient(165deg, rgba(36,22,80,0.7), rgba(12,6,38,0.7)); }
.hpx-cta-box .glow1 { position: absolute; width: 600px; height: 360px; top: -160px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,122,26,0.3), transparent 60%); pointer-events: none; }
.hpx-cta-box .glow2 { position: absolute; width: 400px; height: 300px; bottom: -140px; left: 20%; background: radial-gradient(circle, rgba(124,92,255,0.3), transparent 60%); pointer-events: none; }
.hpx-cta-box > * { position: relative; z-index: 2; }
.hpx-cta-box h2 { font-family: var(--disp); font-size: clamp(30px, 4vw, 52px); font-weight: 700; letter-spacing: -1.6px; line-height: 1.06; color: #fff; margin-bottom: 18px; text-wrap: balance; }
.hpx-cta-box h2 .grad { background: linear-gradient(100deg, var(--orange), var(--violet-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hpx-cta-box p { font-size: 18px; color: var(--soft); max-width: 580px; margin: 0 auto 32px; }
.hpx-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hpx-cta-note { margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

/* ============================================================
   FINAL CONTACT — two-column form
   ============================================================ */
.hpx-contact { padding: 40px 0 120px; }
.hpx-contact-box { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--stroke-2); background: linear-gradient(165deg, rgba(36,22,80,0.7), rgba(12,6,38,0.75)); display: grid; grid-template-columns: 1fr 1fr; }
.hpx-contact-box .glow1 { position: absolute; width: 520px; height: 320px; top: -150px; right: -60px; background: radial-gradient(circle, rgba(255,122,26,0.28), transparent 62%); pointer-events: none; }
.hpx-contact-box .glow2 { position: absolute; width: 420px; height: 320px; bottom: -150px; left: -60px; background: radial-gradient(circle, rgba(124,92,255,0.3), transparent 62%); pointer-events: none; }
.hpx-contact-left { position: relative; z-index: 2; padding: 50px 46px; }
.hpx-contact-left .hpx-eyebrow { margin-bottom: 22px; }
.hpx-contact-left h2 { font-family: var(--disp); font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -1.3px; line-height: 1.08; color: #fff; margin-bottom: 16px; text-wrap: balance; }
.hpx-contact-left h2 .grad { background: linear-gradient(100deg, var(--orange), var(--violet-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hpx-contact-left p { font-size: 16px; color: var(--soft); line-height: 1.6; margin-bottom: 26px; max-width: 420px; }
.hpx-contact-points { display: flex; flex-direction: column; gap: 13px; }
.hpx-contact-points li { list-style: none; display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: rgba(255,255,255,0.82); }
.hpx-contact-points li .ck { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--orange-2); background: rgba(255,122,26,0.14); border: 1px solid rgba(255,122,26,0.3); }
.hpx-contact-form { position: relative; z-index: 2; padding: 46px; background: rgba(255,255,255,0.03); border-left: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 16px; }
.hpx-field { display: flex; flex-direction: column; gap: 7px; }
.hpx-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hpx-field label { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.4px; color: var(--soft); text-transform: uppercase; }
.hpx-field input, .hpx-field textarea { font-family: var(--body); font-size: 14.5px; color: #fff; background: rgba(255,255,255,0.05); border: 1px solid var(--stroke-2); border-radius: 11px; padding: 13px 15px; transition: border-color 0.15s, background 0.15s; resize: vertical; width: 100%; }
.hpx-field input::placeholder, .hpx-field textarea::placeholder { color: rgba(255,255,255,0.34); }
.hpx-field input:focus, .hpx-field textarea:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,0.08); }
.hpx-form-btn { margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--body); font-size: 15.5px; font-weight: 700; color: #fff; background: linear-gradient(100deg, var(--orange), #ff9340); border: none; border-radius: 12px; padding: 15px; cursor: pointer; box-shadow: 0 10px 30px -6px rgba(255,122,26,0.55); transition: transform 0.16s, box-shadow 0.16s; }
.hpx-form-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -6px rgba(255,122,26,0.7); }
.hpx-form-btn svg { width: 16px; height: 16px; }
.hpx-form-success { display: none; font-family: var(--mono); font-size: 13px; color: var(--green); text-align: center; padding-top: 4px; }
.hpx-form-success.show { display: block; }
.hpx-form-note { font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-align: center; }
@media (max-width: 860px) {
  .hpx-contact-box { grid-template-columns: 1fr; }
  .hpx-contact-form { border-left: none; border-top: 1px solid var(--stroke); }
  .hpx-contact-left { padding: 44px 30px 10px; }
}
@media (max-width: 480px) {
  .hpx-contact-form { padding: 30px 24px; }
  .hpx-field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL REVEAL (GPU-only, no layout shift)
   ============================================================ */
.hpx-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.hpx-reveal.in { opacity: 1; transform: none; }
.hpx-reveal.d1 { transition-delay: 0.08s; } .hpx-reveal.d2 { transition-delay: 0.16s; } .hpx-reveal.d3 { transition-delay: 0.24s; } .hpx-reveal.d4 { transition-delay: 0.32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hpx-bento { grid-template-columns: repeat(2,1fr); grid-auto-rows: 190px; }
  .hpx-tile.span2 { grid-column: span 2; }
  .hpx-tile.tall { grid-row: span 1; }
  .hpx-pipe, .hpx-stats { grid-template-columns: repeat(2,1fr); }
  .hpx-pnode .conn { display: none; }
  .hpx-cwv-inner { grid-template-columns: 1fr; gap: 40px; }
  .hpx-quote-wrap { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 900px) {
  .hpx-hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hpx-hero-visual { max-width: 460px; }
  .hpx-fusion-grid { grid-template-columns: 1fr; }
  .hpx-core { flex-direction: row; padding: 8px 0; }
  .hpx-core-orb { width: 96px; height: 96px; }
  .hpx-core-orb .ball { width: 48px; height: 48px; }
}
@media (max-width: 760px) {
  .hpx-wrap { padding: 0 22px; }
  .hpx-sec { padding: 76px 0; }
  .hpx-hero { padding: 52px 0 64px; }
  .hpx-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .hpx-tile.span2 { grid-column: span 1; }
  .hpx-tile { min-height: 180px; }
  .hpx-pipe, .hpx-stats { grid-template-columns: 1fr; }
  .hpx-gauges { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .hpx-chip-a { left: -10px; } .hpx-chip-b { right: -10px; }
  .hpx-hero h1 { letter-spacing: -1.4px; }
}
@media (max-width: 480px) {
  .hpx-gauges { grid-template-columns: 1fr; max-width: 220px; margin: 0 auto; }
  .hpx-hero-cta .hpx-btn, .hpx-cta-btns .hpx-btn { width: 100%; justify-content: center; }
  .hpx-hero-metrics { gap: 18px; }
}

/* service items as links — remove default anchor styling */
a.hpx-svc-item { text-decoration: none; color: inherit; display: flex; }
a.hpx-svc-item .nm { color: #fff; }
a.hpx-svc-item .ds { color: var(--faint); }

/* blog thumb — when real image present, suppress dot grid overlay */
.hpx-bthumb.has-img::after { opacity: 0.15; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hpx * { animation: none !important; }
  .hpx-reveal { opacity: 1 !important; transform: none !important; }
  .hpx-mini-bars span { transform: scaleY(1) !important; }
}
