/* ==========================================================================
   Aevy homepage
   Self-contained: every rule is namespaced under .ax, so nothing here can leak
   into other pages (and nothing in style.css can restyle the homepage).
   Uses the site tokens (--bg, --surface, --text, --accent ...) so light and
   dark themes both work. Animations are transform/opacity only and are all
   switched off for visitors who prefer reduced motion.
   ========================================================================== */

#homeRoot.home-social {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.ax {
  --ax-violet: #8b5cf6;
  --ax-cyan: #22d3ee;
  --ax-w: 1200px;
  --ax-ease: cubic-bezier(.16, 1, .3, 1);
  position: relative;
  color: var(--text);
  overflow-x: clip;
  isolation: isolate;
}
.ax *, .ax *::before, .ax *::after { box-sizing: border-box; }
.ax a { text-decoration: none; }
.ax-in { width: min(var(--ax-w), calc(100% - 56px)); margin-inline: auto; }

/* ---------- Scroll reveal (only active once home-fx.js has booted) ---------- */
.ax.fx [data-r] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ax-ease), transform .8s var(--ax-ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.ax.fx [data-r].in { opacity: 1; transform: none; }

/* ---------- Shared type ---------- */
.ax-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
  font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text);
}
.ax-eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7;
}
.ax h2 {
  margin: 14px 0 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08;
  letter-spacing: -.045em; font-weight: 700;
}
.ax-sub { margin: 0; max-width: 520px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.ax-grad {
  background: linear-gradient(100deg, var(--accent-hi), var(--ax-violet) 55%, var(--ax-cyan));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: axShift 8s ease-in-out infinite alternate;
}
@keyframes axShift { to { background-position: 100% 0; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.ax-hero {
  position: relative; text-align: center;
  padding: clamp(56px, 9vw, 112px) 0 0;
}
.ax-bg { position: absolute; inset: 0 0 auto 0; height: 880px; z-index: -1; pointer-events: none; overflow: hidden; }
.ax-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 65% at 50% 28%, #000 10%, transparent 75%);
          mask-image: radial-gradient(60% 65% at 50% 28%, #000 10%, transparent 75%);
}
.ax-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.ax-orb.o1 { width: 520px; height: 520px; left: 8%;  top: -140px; background: var(--accent);   animation: axDrift1 22s ease-in-out infinite alternate; }
.ax-orb.o2 { width: 460px; height: 460px; right: 6%; top: -90px;  background: var(--ax-violet); animation: axDrift2 26s ease-in-out infinite alternate; }
.ax-orb.o3 { width: 380px; height: 380px; left: 40%; top: 220px;  background: var(--ax-cyan);   opacity: .26; animation: axDrift3 30s ease-in-out infinite alternate; }
[data-theme="light"] .ax-orb { opacity: .28; }
[data-theme="light"] .ax-orb.o3 { opacity: .18; }
@keyframes axDrift1 { to { transform: translate3d(120px, 70px, 0) scale(1.15); } }
@keyframes axDrift2 { to { transform: translate3d(-130px, 90px, 0) scale(.9); } }
@keyframes axDrift3 { to { transform: translate3d(-90px, -50px, 0) scale(1.2); } }

.ax-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line2); background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text2); font-size: 13px; font-weight: 500;
  transition: border-color .25s, transform .25s var(--ax-ease);
}
.ax-badge:hover { border-color: var(--accent); transform: translateY(-1px); }
.ax-badge b { color: var(--accent-text); font-weight: 600; transition: transform .25s var(--ax-ease); }
.ax-badge:hover b { transform: translateX(3px); }
.ax-pulse {
  position: relative; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent);
}
.ax-pulse::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ax-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--ok); animation: axPing 2.2s var(--ax-ease) infinite;
}
@keyframes axPing { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

.ax-hero h1 {
  margin: 26px auto 0; max-width: 940px;
  font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -.055em; font-weight: 700;
  text-wrap: balance;
}
.ax-line { display: block; }
.ax-rot { display: inline-grid; vertical-align: top; text-align: center; }
.ax-rot > span {
  grid-area: 1 / 1; display: block;
  background: linear-gradient(100deg, var(--accent-hi), var(--ax-violet) 55%, var(--ax-cyan)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .12em; white-space: nowrap;
  opacity: 0; transform: translateY(.45em); filter: blur(10px);
  transition: opacity .6s var(--ax-ease), transform .7s var(--ax-ease), filter .6s var(--ax-ease);
}
.ax-rot > span.on { opacity: 1; transform: none; filter: none; }
.ax-rot > span.off { transform: translateY(-.45em); }

.ax-lede { max-width: 580px; margin: 24px auto 0; color: var(--text2); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; }

.ax-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 34px; }
.ax .btn { position: relative; overflow: hidden; transition: transform .25s var(--ax-ease), box-shadow .25s, border-color .25s, background .25s; }
.ax .btn:hover { transform: translateY(-2px); }
.ax .btn-primary { box-shadow: 0 8px 28px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.ax .btn-primary:hover { box-shadow: 0 14px 36px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.ax .btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ax-ease);
}
.ax .btn-primary:hover::after { left: 130%; }
.ax-ghost {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--line2); border-radius: var(--r-lg); color: var(--text);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 15px; font-weight: 600;
  transition: transform .25s var(--ax-ease), border-color .25s;
}
.ax-ghost:hover { border-color: var(--text2); transform: translateY(-2px); }

.ax-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.ax-langs span {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  font: 500 12px var(--mono); background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.ax-langs i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); }

/* ---------- Product stage ---------- */
.ax-stage { position: relative; width: min(940px, 100%); margin: clamp(56px, 8vw, 92px) auto 0; perspective: 1400px; }
.ax-stage::before {
  content: ""; position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 40px;
  background: linear-gradient(120deg, var(--accent), var(--ax-violet), var(--ax-cyan));
  filter: blur(70px); opacity: .32; animation: axGlow 7s ease-in-out infinite alternate;
}
@keyframes axGlow { to { opacity: .5; transform: scale(1.04); } }
.ax-win {
  position: relative; text-align: left; overflow: hidden;
  border: 1px solid #2a2f3a; border-radius: 16px; background: #0d1017; color: #d6dbe6;
  box-shadow: 0 40px 100px -30px rgba(5, 8, 20, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out; will-change: transform;
}
.ax-win-top { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; border-bottom: 1px solid #1f242e; background: #10141c; }
.ax-dots { display: flex; gap: 7px; }
.ax-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.ax-dots i:nth-child(2) { background: #febc2e; }
.ax-dots i:nth-child(3) { background: #28c840; }
.ax-path { flex: 1; text-align: center; color: #7f8899; font: 12px var(--mono); }
.ax-path b { color: #e6e9f0; font-weight: 500; }
.ax-replay {
  border: 1px solid #2a303c; border-radius: 7px; background: transparent; color: #9aa3b5;
  font: 11px var(--mono); padding: 4px 10px; cursor: pointer; transition: color .2s, border-color .2s;
}
.ax-replay:hover { color: #fff; border-color: #4a5366; }
.ax-win-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 360px; }
.ax-tree { padding: 16px 12px; border-right: 1px solid #1f242e; font: 12px/1 var(--mono); color: #8590a3; display: flex; flex-direction: column; gap: 4px; }
.ax-tree small { margin: 0 8px 10px; font-size: 10px; letter-spacing: .14em; color: #586174; }
.ax-tree span { padding: 8px; border-radius: 7px; white-space: nowrap; }
.ax-tree .sel { background: color-mix(in srgb, var(--accent) 22%, transparent); color: #fff; }
.ax-ed { min-width: 0; display: flex; flex-direction: column; }
.ax-tab { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 16px; border-bottom: 1px solid #1f242e; font: 12px var(--mono); color: #e6e9f0; }
.ax-tab small { color: #6c7689; }
.ax-code {
  flex: 1; margin: 0; padding: 18px 18px 18px 0; overflow: hidden;
  font: 13px/1.85 var(--mono); color: #d6dbe6; white-space: pre; counter-reset: ln;
  min-height: calc(1.85em * 11 + 36px); /* reserve the full height so typing never shifts the page */
}
.ax-code .axl { display: block; padding-left: 52px; position: relative; min-height: 1.85em; }
.ax-code .axl::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 38px; text-align: right; color: #4b5467; }
.ax-code .k { color: #c792ea; } .ax-code .s { color: #a5e8b0; } .ax-code .c { color: #5d6980; font-style: italic; }
.ax-code .axn { color: #f6b36b; } .ax-code .f { color: #82aaff; }
.ax-caret { display: inline-block; width: 7px; height: 1.1em; vertical-align: -.18em; margin-left: 1px; background: var(--accent-hi); animation: axBlink 1s steps(1) infinite; }
@keyframes axBlink { 50% { opacity: 0; } }
.ax-out {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border-top: 1px solid #1f242e; background: #0a0d13; font: 12px var(--mono); color: #6c7689;
}
.ax-out .ok { color: #46d39a; opacity: 0; transform: translateX(-6px); transition: opacity .5s, transform .5s var(--ax-ease); }
.ax-out.done .ok { opacity: 1; transform: none; }
.ax-out > span { white-space: nowrap; }
.ax-out .axst { margin-left: auto; opacity: 0; transition: opacity .5s .2s; }
.ax-out.done .axst { opacity: 1; }

.ax-float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border: 1px solid var(--line2); border-radius: 14px; font-size: 13px; color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55); animation: axFloat 6s ease-in-out infinite alternate;
}
.ax-float b { display: block; font-size: 13px; letter-spacing: -.01em; }
.ax-float small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.ax-float .axic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.ax-float.f1 { left: -46px; bottom: 56px; }
.ax-float.f1 .axic { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.ax-float.f2 { right: -40px; top: 128px; animation-delay: -3s; }
.ax-float.f2 .axic { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
@keyframes axFloat { from { transform: translateY(-7px); } to { transform: translateY(9px); } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.ax-marq { margin-top: clamp(64px, 9vw, 110px); padding: 26px 0; border-block: 1px solid var(--line); }
.ax-marq p { margin: 0 0 18px; text-align: center; font: 600 11px var(--mono); letter-spacing: .14em; color: var(--muted); }
.ax-marq-view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ax-track { display: flex; width: max-content; animation: axMarq 38s linear infinite; }
.ax-marq-view:hover .ax-track { animation-play-state: paused; }
.ax-track span { display: inline-flex; align-items: center; gap: 12px; padding: 0 30px; color: var(--text2); font: 600 18px var(--sans); letter-spacing: -.02em; white-space: nowrap; }
.ax-track i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }
@keyframes axMarq { to { transform: translateX(-50%); } }

/* ==========================================================================
   Stats
   ========================================================================== */
.ax-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 8vw, 96px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.ax-stats > div { padding: 30px 32px; position: relative; }
.ax-stats > div + div { border-left: 1px solid var(--line); }
.ax-stats b { white-space: nowrap; display: block; font-size: clamp(34px, 4.4vw, 52px); line-height: 1; letter-spacing: -.05em; font-weight: 700; font-variant-numeric: tabular-nums; }
.ax-stats span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.ax-sec { margin-top: clamp(88px, 12vw, 150px); }
.ax-head { max-width: 640px; }

/* ---------- Feature cards (cursor spotlight) ---------- */
.ax-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.ax-card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 400px;
  padding: 28px; border: 1px solid var(--line2); border-radius: 22px; background: var(--surface);
  transition: transform .45s var(--ax-ease), border-color .3s;
}
.ax-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%);
}
@media (hover: hover) {
  .ax-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line2)); }
  .ax-card:hover::before { opacity: 1; }
}
.ax-card:active { transform: scale(.985); border-color: var(--accent); }
.ax-card:active::before { opacity: 1; }
.ax-card.touch::before { opacity: 1; }
.ax-card > * { position: relative; }
.ax-n { font: 600 11px var(--mono); letter-spacing: .14em; color: var(--muted); }
.ax-card h3 { margin: 12px 0 10px; font-size: 22px; line-height: 1.2; letter-spacing: -.03em; font-weight: 650; }
.ax-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.ax-card .go { margin-top: auto; padding-top: 22px; color: var(--accent-text); font-size: 14px; font-weight: 600; }
.ax-card .go span { display: inline-block; transition: transform .3s var(--ax-ease); }
.ax-card:hover .go span, .ax-card:active .go span { transform: translateX(5px); }
.ax-viz { height: 118px; margin: 22px 0 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: hidden; }
.ax-viz .axbar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 9px; background: var(--surface); color: var(--muted); font: 12px var(--mono); }
.ax-viz .axbar em { font-style: normal; color: var(--text); border-right: 2px solid var(--accent-hi); padding-right: 2px; animation: axBlink 1s steps(1) infinite; }
.ax-viz .axchips { display: flex; gap: 6px; }
.ax-viz .axchips span { padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font: 600 10px var(--mono); }
.ax-viz .file { display: flex; align-items: center; gap: 9px; font: 12px var(--mono); color: var(--text2); animation: axSlide 5s var(--ax-ease) infinite; animation-delay: calc(var(--i) * .25s); }
.ax-viz .file i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.ax-viz .file small { margin-left: auto; color: var(--muted); font-size: 10px; }
@keyframes axSlide { 0%, 12% { transform: translateX(-10px); opacity: 0; } 22%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
.ax-viz .axsw { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; font-size: 12px; color: var(--text2); }
.ax-viz .tg { display: block; flex: none; position: relative; width: 34px; height: 20px; border-radius: 99px; background: var(--line3); animation: axTgBg 6s ease-in-out infinite; }
.ax-viz .tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: axTgKnob 6s ease-in-out infinite; }
.ax-viz .axsw:nth-child(2) .tg, .ax-viz .axsw:nth-child(2) .tg::after { animation-delay: -3s; }
@keyframes axTgBg { 0%, 40% { background: var(--accent); } 55%, 90% { background: var(--line3); } 100% { background: var(--accent); } }
@keyframes axTgKnob { 0%, 40% { transform: translateX(14px); } 55%, 90% { transform: none; } 100% { transform: translateX(14px); } }

/* ---------- Library ---------- */
.ax-lib-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ax-all { flex: none; color: var(--accent-text); font-size: 14px; font-weight: 600; padding-bottom: 10px; }
.ax-all span { display: inline-block; transition: transform .3s var(--ax-ease); }
.ax-all:hover span { transform: translateX(4px); }
.ax-filter { display: flex; gap: 8px; margin: 28px 0 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.ax-filter::-webkit-scrollbar { display: none; }
.ax-filter button {
  flex: none; padding: 8px 15px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface);
  color: var(--text2); font: 600 13px var(--sans); cursor: pointer; transition: all .25s var(--ax-ease);
}
.ax-filter button:hover { border-color: var(--text2); transform: translateY(-1px); }
.ax-filter button.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.ax-list { display: grid; border: 1px solid var(--line2); border-radius: 20px; background: var(--surface); overflow: hidden; }
.ax-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto 20px; align-items: center; gap: 18px;
  width: 100%; padding: 18px 24px; border: 0; border-top: 1px solid var(--line); background: transparent;
  color: inherit; font: inherit; text-align: left; cursor: pointer; position: relative;
  opacity: 0; transform: translateY(12px); animation: axRow .6s var(--ax-ease) forwards; animation-delay: calc(var(--i) * 60ms);
  transition: background .25s;
}
.ax-row:first-child { border-top: 0; }
.ax-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transition: transform .3s var(--ax-ease); }
.ax-row:hover, .ax-row:active { background: var(--surface2); }
.ax-row:hover::before, .ax-row:active::before { transform: scaleY(1); }
@keyframes axRow { to { opacity: 1; transform: none; } }
.ax-fi { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); color: var(--c, var(--accent)); font: 700 13px var(--mono); }
.ax-main { min-width: 0; }
.ax-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; letter-spacing: -.02em; }
.ax-main small { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.ax-pill { padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line2); color: var(--text2); font: 600 11px var(--mono); }
.ax-date { color: var(--muted); font-size: 13px; min-width: 96px; text-align: right; }
.ax-arr { color: var(--muted); transition: transform .3s var(--ax-ease), color .2s; }
.ax-row:hover .ax-arr { transform: translate(3px, -3px); color: var(--accent-text); }
.ax-empty { padding: 56px 24px; text-align: center; }
.ax-empty h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.03em; }
.ax-empty p { margin: 0 0 20px; color: var(--muted); }

/* ---------- Closing CTA (animated gradient border) ---------- */
@property --ax-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ax-band {
  position: relative; margin: clamp(88px, 12vw, 150px) 0 clamp(56px, 8vw, 96px); padding: 1px; border-radius: 28px;
  background: conic-gradient(from var(--ax-a), var(--accent), var(--ax-violet), var(--ax-cyan), var(--accent));
  animation: axSpin 7s linear infinite;
}
@keyframes axSpin { to { --ax-a: 360deg; } }
.ax-band-in {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(32px, 5vw, 64px); border-radius: 27px; background: var(--surface);
}
.ax-band-in::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -200px; border-radius: 50%;
  background: var(--accent); opacity: .22; filter: blur(80px); pointer-events: none;
}
.ax-band h2 { margin: 12px 0 0; position: relative; }
.ax-band .btn { position: relative; flex: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .ax-float.f1 { left: 10px; bottom: -68px; }
  .ax-float.f2 { right: 10px; top: -68px; }
  .ax-stage { margin-top: 104px; }
  .ax-marq { margin-top: 110px; }
}
@media (max-width: 900px) {
  .ax-cards { grid-template-columns: 1fr; }
  .ax-card { min-height: 0; }
  .ax-win-body { grid-template-columns: 1fr; min-height: 0; }
  .ax-tree { display: none; }
}
@media (max-width: 700px) {
  .ax-in { width: calc(100% - 32px); }
  .ax-orb { filter: blur(60px); }
  .ax-bg { height: 640px; }
  .ax-grid { background-size: 44px 44px; }
  .ax-code { font-size: 11px; padding-right: 8px; }
  .ax-code .axl { padding-left: 38px; }
  .ax-code .axl::before { width: 26px; }
  .ax-float { padding: 8px 12px; gap: 9px; border-radius: 12px; }
  .ax-float small { display: none; }
  .ax-float .axic { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
  .ax-float b { font-size: 12px; }
  .ax-float.f1 { left: 4px; bottom: -52px; }
  .ax-float.f2 { right: 4px; top: -52px; }
  .ax-stage { margin-top: 84px; }
  .ax-marq { margin-top: 84px; }
  .ax-hero h1 { font-size: clamp(28px, 9.6vw, 56px); }
  .ax-lede { font-size: 15px; }
  .ax-win-top { gap: 8px; padding: 0 12px; }
  .ax-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .ax-replay { flex: none; }
  .ax-out { flex-wrap: wrap; gap: 4px 12px; padding: 10px 14px; }
  .ax-out .axst { margin-left: 0; }
  .ax-cta .btn, .ax-cta .ax-ghost { width: 100%; justify-content: center; }
  .ax-stats { grid-template-columns: 1fr; }
  .ax-stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .ax-stats > div { padding: 22px 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .ax-stats span { margin: 0; text-align: right; }
  .ax-lib-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ax-all { padding-bottom: 0; }
  .ax-row { grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 14px; padding: 15px 16px; }
  .ax-fi { width: 40px; height: 40px; }
  .ax-pill, .ax-date { display: none; }
  .ax-band-in { flex-direction: column; align-items: flex-start; }
  .ax-band .btn { width: 100%; justify-content: center; }
  #homeRoot.home-social { padding-bottom: 72px; }   /* clear the bottom tab bar */
}

@media (max-width: 380px) {
  .ax-in { width: calc(100% - 24px); }
  .ax-code { font-size: 10px; }
  .ax-code .axl { padding-left: 32px; }
  .ax-code .axl::before { width: 22px; }
  .ax-badge { font-size: 12px; }
  .ax-card { padding: 22px; }
  .ax-band-in { padding: 26px 22px; }
  .ax-langs span { padding: 5px 10px; font-size: 11px; }
}

/* ---------- Reduced motion: everything static, content always visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .ax *, .ax *::before, .ax *::after { animation: none !important; transition: none !important; }
  .ax.fx [data-r] { opacity: 1; transform: none; }
  .ax-row { opacity: 1; transform: none; }
  .ax-win { transform: none !important; }
  .ax-rot > span { display: none; }
  .ax-rot > span.on { display: inline; opacity: 1; transform: none; filter: none; }
  .ax-float { animation: none; }
}
