/*
 * Auctionyx — landing page stylesheet.
 *
 * The palette is the template's own (src/app/globals.css): brand blue #2563eb to
 * violet #7c3aed, the gold of the gavel in the logo mark, and the same success /
 * danger colours the bidding panel uses for "leading" and "outbid".
 *
 * Headings use Sora, the template's own display face, loaded from ./assets/fonts —
 * the same file the template ships. Same origin; nothing is fetched from a third party.
 *
 * Theme: `data-ax-theme` on <body> is the resolved theme ("light" or "dark");
 * `data-ax-theme-choice` records what the visitor picked, which may be "auto".
 * script.js owns both. prefers-color-scheme is read here only as the fallback for
 * the moment before script.js runs (or when it never does).
 */
@font-face {
  font-family: 'Sora';
  src: url('./assets/fonts/sora-variable.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ax-bg: #f7f8fc;
  --ax-surface: #ffffff;
  --ax-surface-2: #f1f3f9;
  --ax-glass: rgba(255, 255, 255, 0.74);
  --ax-text: #1b2233;
  --ax-heading: #0b0f1a;
  --ax-muted: #556079;
  --ax-border: rgba(20, 32, 80, 0.11);
  --ax-border-strong: rgba(20, 32, 80, 0.2);

  --ax-blue: #2563eb;
  --ax-violet: #7c3aed;
  --ax-gold: #f59e0b;
  --ax-gold-deep: #b45309;
  --ax-green: #16a34a;
  --ax-green-text: #15803d;
  --ax-green-tint: #e8f7ee;
  --ax-red: #dc2626;
  --ax-red-text: #b91c1c;
  --ax-red-tint: #fdecec;
  --ax-link: #1d4ed8;
  --ax-accent-text: #2563eb;
  --ax-icon-blue: #2563eb;
  --ax-icon-violet: #7c3aed;

  --ax-grad: linear-gradient(120deg, #2563eb 0%, #7c3aed 100%);
  --ax-shadow: 0 30px 80px -20px rgba(22, 30, 80, 0.25);
  --ax-shadow-soft: 0 14px 40px -12px rgba(22, 30, 80, 0.16);

  --ax-radius: 20px;
  --ax-container: 1200px;
  --ax-display: 'Sora', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ax-body:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ax-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* The dark token set, shared by the explicit theme and the no-JS system fallback. */
.ax-page[data-ax-theme='dark'] {
  --ax-bg: #070a12;
  --ax-surface: #0f1320;
  --ax-surface-2: #151a2a;
  --ax-glass: rgba(15, 19, 32, 0.74);
  --ax-text: #dfe4f0;
  --ax-heading: #f6f7fb;
  --ax-muted: #9aa4bb;
  --ax-border: rgba(150, 165, 215, 0.14);
  --ax-border-strong: rgba(150, 165, 215, 0.26);
  --ax-green-text: #4ade80;
  --ax-green-tint: rgba(34, 197, 94, 0.14);
  --ax-red-text: #fca5a5;
  --ax-red-tint: rgba(239, 68, 68, 0.16);
  --ax-link: #93b4ff;
  --ax-accent-text: #8fb0ff;
  --ax-icon-blue: #8fb0ff;
  --ax-icon-violet: #c4a8ff;
  --ax-gold-deep: #fbbf24;
  --ax-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --ax-shadow-soft: 0 14px 40px -12px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  .ax-page:not([data-ax-theme]) {
    --ax-bg: #070a12;
    --ax-surface: #0f1320;
    --ax-surface-2: #151a2a;
    --ax-glass: rgba(15, 19, 32, 0.74);
    --ax-text: #dfe4f0;
    --ax-heading: #f6f7fb;
    --ax-muted: #9aa4bb;
    --ax-border: rgba(150, 165, 215, 0.14);
    --ax-border-strong: rgba(150, 165, 215, 0.26);
    --ax-green-text: #4ade80;
    --ax-green-tint: rgba(34, 197, 94, 0.14);
    --ax-red-text: #fca5a5;
    --ax-red-tint: rgba(239, 68, 68, 0.16);
    --ax-link: #93b4ff;
    --ax-accent-text: #8fb0ff;
    --ax-icon-blue: #8fb0ff;
    --ax-icon-violet: #c4a8ff;
    --ax-gold-deep: #fbbf24;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

.ax-page {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ax-bg);
  color: var(--ax-text);
  font-family: var(--ax-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.ax-page a {
  color: inherit;
  text-decoration: none;
}

.ax-page img,
.ax-page svg {
  display: block;
  max-width: 100%;
}

/* The width/height attributes reserve space; CSS decides the rendered height. */
.ax-page img {
  height: auto;
}

.ax-page :focus-visible {
  outline: 3px solid var(--ax-blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.ax-page code {
  font-family: var(--ax-mono);
  font-size: max(12px, 0.88em);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--ax-surface-2);
  border: 1px solid var(--ax-border);
  overflow-wrap: anywhere;
}

.ax-svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ax-container {
  width: min(calc(100% - 48px), var(--ax-container));
  margin-inline: auto;
}

.ax-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 60;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  background: var(--ax-blue);
  font-weight: 700;
  transition: top 0.2s ease;
}

.ax-skip:focus {
  top: 16px;
}

.ax-gradient-text {
  background: var(--ax-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ax-page[data-ax-theme='dark'] .ax-gradient-text {
  background: linear-gradient(120deg, #7ea6ff 0%, #b793ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.ax-live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex: 0 0 auto;
}

.ax-live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  opacity: 0;
  animation: ax-ping 1.8s ease-out infinite;
}

@keyframes ax-ping {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ------------------------------------------------------------------ header */

.ax-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ax-bg) 80%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--ax-border);
}

.ax-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.ax-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
}

/* The template's own wordmark (public/brand/): one file per background, toggled by theme. */
.ax-brand img {
  display: block;
  width: auto;
  height: 34px;
}

.ax-logo-dark {
  display: none !important;
}

.ax-page[data-ax-theme='dark'] .ax-logo-light {
  display: none !important;
}

.ax-page[data-ax-theme='dark'] .ax-logo-dark {
  display: block !important;
}

@media (prefers-color-scheme: dark) {
  .ax-page:not([data-ax-theme]) .ax-logo-light {
    display: none !important;
  }

  .ax-page:not([data-ax-theme]) .ax-logo-dark {
    display: block !important;
  }
}

.ax-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
}

.ax-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.ax-nav a:hover {
  color: var(--ax-heading);
  background: var(--ax-surface-2);
}

.ax-nav a.is-active {
  color: var(--ax-accent-text);
  background: color-mix(in srgb, var(--ax-blue) 11%, transparent);
}

.ax-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ax-icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ax-border);
  border-radius: 999px;
  background: var(--ax-surface);
  color: var(--ax-heading);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.ax-icon-button:hover {
  border-color: var(--ax-border-strong);
  transform: translateY(-1px);
}

.ax-icon-button svg {
  width: 20px;
  height: 20px;
}

.ax-menu-toggle {
  display: none;
}

.ax-mobile-nav {
  border-top: 1px solid var(--ax-border);
  background: var(--ax-bg);
}

.ax-mobile-nav[hidden] {
  display: none;
}

.ax-mobile-nav ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 12px 0 20px;
  list-style: none;
}

.ax-mobile-nav a:not(.ax-button) {
  display: block;
  padding: 13px 4px;
  font-weight: 600;
  color: var(--ax-heading);
  border-bottom: 1px solid var(--ax-border);
}

.ax-mobile-nav .ax-button {
  width: 100%;
  margin-top: 14px;
}

/* ----------------------------------------------------------------- buttons */

.ax-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    background-color 0.2s ease,
    background-position 0.4s ease,
    border-color 0.2s ease;
}

.ax-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.ax-button-lg {
  min-height: 52px;
  padding: 13px 26px;
  font-size: 16px;
}

.ax-page .ax-button-primary {
  color: #fff;
  background: var(--ax-grad);
  background-size: 160% 100%;
  background-position: 0% 0;
  box-shadow: 0 12px 30px -10px rgba(79, 70, 229, 0.65);
}

.ax-page .ax-button-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 18px 38px -12px rgba(79, 70, 229, 0.8);
}

.ax-page .ax-button-secondary {
  color: var(--ax-heading);
  background: var(--ax-surface);
  border-color: var(--ax-border-strong);
}

.ax-page .ax-button-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--ax-blue);
  box-shadow: var(--ax-shadow-soft);
}

.ax-page .ax-button-light {
  color: #1e1b4b;
  background: #fff;
}

.ax-page .ax-button-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45);
}

.ax-page .ax-button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.ax-page .ax-button-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

/* Links that leave the page (the live demo) carry a small arrow. */
.ax-button .ax-ext {
  width: 15px;
  height: 15px;
  margin-left: -3px;
  opacity: 0.7;
}

.ax-header-demo {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.ax-page .ax-inline-link {
  font-weight: 600;
  color: var(--ax-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ax-page .ax-inline-link:hover {
  text-decoration-thickness: 2px;
}

/* -------------------------------------------------------------------- hero */

.ax-hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
  isolation: isolate;
}

.ax-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: ax-drift 18s ease-in-out infinite alternate;
}

.ax-orb-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -60px;
  background: #7c3aed;
  opacity: 0.26;
}

.ax-orb-2 {
  width: 440px;
  height: 440px;
  top: 120px;
  left: -200px;
  background: #2563eb;
  opacity: 0.2;
  animation-delay: -6s;
}

.ax-orb-3 {
  width: 260px;
  height: 260px;
  top: 300px;
  right: 30%;
  background: #f59e0b;
  opacity: 0.14;
  animation-delay: -11s;
}

.ax-page[data-ax-theme='dark'] .ax-orb-1 {
  opacity: 0.34;
}

.ax-page[data-ax-theme='dark'] .ax-orb-2 {
  opacity: 0.3;
}

@keyframes ax-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(40px, 30px, 0) scale(1.12);
  }
}

.ax-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ax-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--ax-border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.6;
}

.ax-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.ax-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 16px 7px 13px;
  border: 1px solid var(--ax-border);
  border-radius: 999px;
  background: var(--ax-glass);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
}

.ax-hero h1 {
  margin: 0;
  font-family: var(--ax-display);
  font-size: clamp(2.3rem, 5.2vw, 4.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ax-heading);
  text-wrap: balance;
}

.ax-hero h1 .ax-gradient-text {
  display: block;
  padding-bottom: 0.08em;
}

.ax-hero-text {
  max-width: 560px;
  margin: 22px 0 30px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ax-muted);
}

.ax-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ax-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.ax-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ax-trust-list svg {
  width: 18px;
  height: 18px;
  color: var(--ax-green);
}

/* --- the live lot card --------------------------------------------------- */

.ax-stage {
  position: relative;
  padding: 26px 34px 34px 0;
}

.ax-lot {
  position: relative;
  margin: 0 0 0 auto;
  max-width: 470px;
  border: 1px solid var(--ax-border);
  border-radius: 24px;
  background: var(--ax-surface);
  box-shadow: var(--ax-shadow);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s ease;
}

.ax-stage:hover .ax-lot {
  transform: perspective(1400px) rotateY(0) rotateX(0);
}

.ax-lot-media {
  position: relative;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
}

.ax-lot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ax-kenburns 22s ease-in-out infinite alternate;
}

@keyframes ax-kenburns {
  0% {
    transform: scale(1.02) translate(0, 0);
  }
  100% {
    transform: scale(1.12) translate(-2%, -2%);
  }
}

.ax-lot-badge,
.ax-lot-clock {
  position: absolute;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.ax-lot-badge {
  left: 14px;
  color: #065f46;
  background: rgba(236, 253, 245, 0.94);
}

.ax-lot-clock {
  right: 14px;
  color: #fff;
  background: rgba(11, 15, 26, 0.74);
  font-variant-numeric: tabular-nums;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.ax-lot-clock svg {
  width: 15px;
  height: 15px;
}

.ax-lot-clock.is-urgent {
  background: rgba(185, 28, 28, 0.92);
}

.ax-lot-clock.is-extended {
  background: rgba(245, 158, 11, 0.96);
  color: #1c1204;
  transform: scale(1.08);
}

.ax-lot-body {
  padding: 18px 22px 20px;
}

.ax-lot-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ax-accent-text);
}

.ax-lot-title {
  margin: 4px 0 14px;
  font-family: var(--ax-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ax-heading);
}

.ax-lot-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ax-lot-label {
  margin: 0;
  font-size: 13px;
  color: var(--ax-muted);
}

.ax-lot-price {
  margin: 0;
  font-family: var(--ax-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ax-heading);
  font-variant-numeric: tabular-nums;
}

.ax-lot-price.is-bumped {
  animation: ax-bump 0.7s ease;
}

@keyframes ax-bump {
  30% {
    transform: translateY(-4px);
    color: var(--ax-blue);
  }
}

.ax-standing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.ax-standing svg {
  width: 15px;
  height: 15px;
}

.ax-standing[data-state='leading'] {
  color: var(--ax-green-text);
  background: var(--ax-green-tint);
}

.ax-standing[data-state='outbid'] {
  color: var(--ax-red-text);
  background: var(--ax-red-tint);
}

.ax-lot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ax-muted);
}

.ax-lot-meta b {
  color: var(--ax-heading);
  font-variant-numeric: tabular-nums;
}

.ax-page .ax-lot-meta .ax-ok {
  color: var(--ax-green-text);
}

.ax-max-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px dashed var(--ax-border-strong);
  background: var(--ax-surface-2);
  font-size: 13px;
  color: var(--ax-muted);
}

.ax-max-chip svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--ax-icon-violet);
}

.ax-max-chip b {
  color: var(--ax-heading);
}

.ax-feed {
  display: grid;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.ax-feed li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px;
  border-top: 1px solid var(--ax-border);
  color: var(--ax-muted);
}

.ax-feed li b {
  color: var(--ax-heading);
  font-variant-numeric: tabular-nums;
}

.ax-feed li i {
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--ax-surface-2);
  font-size: 12px;
  font-style: normal;
}

.ax-feed li.is-new {
  animation: ax-feed-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--ax-blue) 11%, transparent),
    transparent
  );
}

@keyframes ax-feed-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- toasts + floating chip ---------------------------------------------- */

.ax-toast {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 290px;
  margin: 0;
  padding: 11px 15px;
  border: 1px solid var(--ax-border);
  border-radius: 16px;
  background: var(--ax-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--ax-shadow-soft);
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.ax-toast b {
  display: block;
  color: var(--ax-heading);
}

.ax-toast svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.ax-toast.is-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ax-toast-snipe {
  top: 40%;
  left: -18px;
}

.ax-toast-snipe svg {
  color: #92400e;
  background: #fef3c7;
}

.ax-toast-outbid {
  bottom: 70px;
  right: -8px;
}

.ax-toast-outbid svg {
  color: #b91c1c;
  background: #fee2e2;
}

.ax-float {
  position: absolute;
  z-index: 2;
  padding: 12px 16px;
  border: 1px solid var(--ax-border);
  border-radius: 16px;
  background: var(--ax-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--ax-shadow-soft);
  animation: ax-bob 6s ease-in-out infinite;
}

.ax-float-kpi {
  top: 0;
  right: 0;
  width: 170px;
}

.ax-float-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ax-muted);
}

.ax-float-value {
  display: block;
  font-family: var(--ax-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ax-accent-text);
}

.ax-spark {
  width: 100%;
  height: 26px;
  margin-top: 4px;
}

.ax-spark path {
  fill: none;
  stroke: var(--ax-icon-violet);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: ax-draw 3s ease forwards 0.6s;
}

@keyframes ax-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ax-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* --- lot marquee --------------------------------------------------------- */

.ax-marquee {
  display: flex;
  gap: 16px;
  margin-top: 64px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ax-marquee-track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 0 0 auto;
  animation: ax-marquee 60s linear infinite;
}

.ax-marquee:hover .ax-marquee-track {
  animation-play-state: paused;
}

.ax-marquee li {
  position: relative;
  width: 210px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 auto;
}

.ax-marquee img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ax-marquee span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(11, 15, 26, 0.7);
  backdrop-filter: blur(8px);
}

@keyframes ax-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 16px));
  }
}

/* ---------------------------------------------------------------- sections */

.ax-section {
  position: relative;
  padding: 104px 0;
}

.ax-section-tight {
  padding: 48px 0;
}

.ax-section-alt {
  background: var(--ax-surface-2);
  border-block: 1px solid var(--ax-border);
}

.ax-page[data-ax-theme='dark'] .ax-section-alt {
  background: #0b0e18;
}

.ax-section-heading {
  max-width: 740px;
  margin: 0 auto 56px;
  text-align: center;
}

.ax-section-heading h2,
.ax-fit-head h2,
.ax-start-copy h2 {
  margin: 0;
  font-family: var(--ax-display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ax-heading);
  text-wrap: balance;
}

.ax-section-heading > p:last-child {
  margin: 18px 0 0;
  font-size: 1.08rem;
  color: var(--ax-muted);
}

.ax-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ax-accent-text);
}

.ax-kicker svg {
  width: 16px;
  height: 16px;
}

.ax-ticks {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ax-ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
}

.ax-ticks svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--ax-icon-blue);
}

/* ----------------------------------------------------------------- who for */

.ax-fit {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: 40px;
  padding: 40px;
  border: 1px solid var(--ax-border);
  border-radius: 28px;
  background: var(--ax-surface);
  box-shadow: var(--ax-shadow-soft);
}

.ax-page .ax-fit-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.ax-fit-head p:last-child {
  margin: 14px 0 0;
  color: var(--ax-muted);
}

.ax-fit-head strong,
.ax-fit-col strong {
  color: var(--ax-heading);
}

.ax-fit-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ax-fit-col {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--ax-border);
}

.ax-fit-yes {
  background: color-mix(in srgb, var(--ax-green) 6%, var(--ax-surface));
}

.ax-fit-no {
  background: color-mix(in srgb, var(--ax-gold) 8%, var(--ax-surface));
}

.ax-fit-col h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--ax-heading);
}

.ax-fit-col h3 svg {
  width: 20px;
  height: 20px;
}

.ax-fit-yes h3 svg {
  color: var(--ax-green);
}

.ax-fit-no h3 svg {
  color: var(--ax-gold-deep);
}

.ax-fit-col ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
}

/* -------------------------------------------------------------------- tabs */

.ax-tablist {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 36px;
  padding: 6px;
  border: 1px solid var(--ax-border);
  border-radius: 999px;
  background: var(--ax-surface);
  box-shadow: var(--ax-shadow-soft);
}

/* Without JavaScript the tabs cannot switch anything, so they are not shown. */
.ax-tabs:not(.is-ready) .ax-tablist {
  display: none;
}

.ax-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ax-muted);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.25s ease;
}

.ax-tab svg {
  width: 18px;
  height: 18px;
}

.ax-tab:hover {
  color: var(--ax-heading);
}

.ax-tab[aria-selected='true'] {
  color: #fff;
  background: var(--ax-grad);
  box-shadow: 0 10px 24px -10px rgba(79, 70, 229, 0.7);
}

.ax-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 48px;
}

.ax-panel[hidden] {
  display: none;
}

.ax-tabs.is-ready .ax-panel:not([hidden]) {
  animation: ax-panel-in 0.5s ease;
}

@keyframes ax-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ax-tabs:not(.is-ready) .ax-panel + .ax-panel {
  margin-top: 64px;
}

.ax-panel-copy h3 {
  margin: 0;
  font-family: var(--ax-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  color: var(--ax-heading);
}

.ax-panel-copy > p {
  margin: 10px 0 22px;
  color: var(--ax-muted);
}

.ax-browser {
  border: 1px solid var(--ax-border);
  border-radius: 18px;
  background: var(--ax-surface);
  box-shadow: var(--ax-shadow);
  overflow: hidden;
}

.ax-browser-bar,
.ax-code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--ax-border);
  background: var(--ax-surface-2);
}

.ax-browser-bar i,
.ax-code-bar i {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f87171;
}

.ax-browser-bar i:nth-child(2),
.ax-code-bar i:nth-child(2) {
  background: #fbbf24;
}

.ax-browser-bar i:nth-child(3),
.ax-code-bar i:nth-child(3) {
  background: #34d399;
}

.ax-browser-bar span,
.ax-code-bar span {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--ax-surface);
  font-size: 12px;
  color: var(--ax-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ax-browser-view {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ax-surface-2);
}

/*
 * The full homepage is 4.85 of its own widths tall and the view is 0.625, so
 * moving the image up by 87% of its height brings its footer to the bottom.
 */
.ax-scroller img {
  width: 100%;
  height: auto;
  animation: ax-scroll-page 46s ease-in-out infinite alternate;
}

@keyframes ax-scroll-page {
  0%,
  6% {
    transform: translateY(0);
  }
  94%,
  100% {
    transform: translateY(-87%);
  }
}

.ax-scroller:hover img {
  animation-play-state: paused;
}

.ax-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.9s ease,
    transform 6s ease;
}

/* Without JavaScript the first slide shows; with it, `is-active` decides. */
.ax-slides:not(.is-ready) img:first-child,
.ax-slides img.is-active {
  opacity: 1;
  transform: scale(1);
}

/* ------------------------------------------------------------ dark section */

.ax-section-dark {
  --ax-heading: #f6f7fb;
  --ax-text: #d7dcea;
  --ax-muted: #a9b2c8;
  --ax-border: rgba(160, 175, 225, 0.16);
  --ax-accent-text: #93b4ff;
  background: #080b16;
  color: var(--ax-text);
  overflow: hidden;
  isolation: isolate;
}

.ax-section-dark code {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e9f5;
}

.ax-dark-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 40% at 15% 10%, rgba(37, 99, 235, 0.35), transparent 70%),
    radial-gradient(ellipse 45% 40% at 90% 30%, rgba(124, 58, 237, 0.32), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(245, 158, 11, 0.12), transparent 70%);
}

.ax-duel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.ax-duel-board {
  padding: 30px;
  border: 1px solid var(--ax-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

.ax-duel-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ax-muted);
}

.ax-duel-price {
  margin: 2px 0 6px;
  font-family: var(--ax-display);
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.ax-duel-price.is-bumped {
  animation: ax-bump-gold 0.7s ease;
}

@keyframes ax-bump-gold {
  30% {
    transform: translateY(-4px);
    color: #fbbf24;
  }
}

.ax-duel-note {
  min-height: 3.2em;
  margin: 0 0 26px;
  font-size: 15px;
}

.ax-scale {
  position: relative;
  display: grid;
  gap: 16px;
  padding-top: 6px;
}

.ax-scale-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  transition: opacity 0.4s ease;
}

.ax-scale-row.is-waiting {
  opacity: 0.3;
}

.ax-scale-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.ax-scale-row.is-leader .ax-scale-name::after {
  content: ' \2605';
  color: #fbbf24;
}

.ax-scale-track {
  position: relative;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.ax-scale-max {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--max, 0%);
  border-radius: 10px;
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-who='ana'] .ax-scale-max {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.25), rgba(37, 99, 235, 0.8));
}

[data-who='ben'] .ax-scale-max {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.25), rgba(124, 58, 237, 0.85));
}

.ax-scale-max i {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* The price line spans both tracks, starting after the 52px name column + gap. */
.ax-scale-price {
  position: absolute;
  top: 0;
  bottom: 26px;
  left: calc(64px + (100% - 64px) * var(--at-n, 0.55));
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: #fbbf24;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.9);
  transition: left 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ax-scale-axis {
  display: flex;
  justify-content: space-between;
  margin-left: 64px;
  font-size: 12px;
  color: var(--ax-muted);
}

.ax-duel-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ax-duel-steps li {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--ax-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
}

.ax-duel.is-ready .ax-duel-steps li {
  opacity: 0.55;
}

.ax-duel.is-ready .ax-duel-steps li.is-current {
  opacity: 1;
  border-color: rgba(147, 180, 255, 0.5);
  background: rgba(99, 102, 241, 0.14);
  transform: translateX(6px);
}

.ax-duel-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ax-grad);
  font-weight: 800;
  color: #fff;
}

.ax-duel-steps h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #fff;
}

.ax-duel-steps p {
  margin: 0;
  font-size: 14.5px;
}

.ax-duel-steps b {
  color: #fbbf24;
}

.ax-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.ax-rule {
  padding: 24px;
  border: 1px solid var(--ax-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.ax-rule:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 180, 255, 0.4);
}

.ax-rule-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--ax-grad);
  color: #fff;
}

.ax-rule-icon svg {
  width: 22px;
  height: 22px;
}

.ax-rule h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #fff;
}

.ax-rule p {
  margin: 0;
  font-size: 14.5px;
}

.ax-dark-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 820px;
  margin: 36px auto 0;
  padding: 16px 20px;
  border: 1px dashed rgba(160, 175, 225, 0.3);
  border-radius: 16px;
  font-size: 14.5px;
}

.ax-dark-note svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: #fbbf24;
}

/* ------------------------------------------------------------------- bento */

.ax-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ax-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius);
  background: var(--ax-surface);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* A soft light that follows the pointer; script.js writes --mx / --my. */
.ax-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 0%),
    rgba(99, 102, 241, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.ax-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ax-blue) 35%, transparent);
  box-shadow: var(--ax-shadow-soft);
}

.ax-card:hover::before {
  opacity: 1;
}

.ax-card-wide {
  grid-column: span 2;
  background:
    radial-gradient(
      120% 120% at 100% 0%,
      color-mix(in srgb, var(--ax-violet) 11%, transparent),
      transparent 55%
    ),
    var(--ax-surface);
}

.ax-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--ax-icon-blue);
  background: color-mix(in srgb, var(--ax-blue) 12%, transparent);
}

.ax-card-icon svg {
  width: 23px;
  height: 23px;
}

.ax-page .ax-tone-violet {
  color: var(--ax-icon-violet);
  background: color-mix(in srgb, var(--ax-violet) 13%, transparent);
}

.ax-page .ax-tone-gold {
  color: var(--ax-gold-deep);
  background: color-mix(in srgb, var(--ax-gold) 16%, transparent);
}

.ax-page .ax-tone-green {
  color: var(--ax-green-text);
  background: color-mix(in srgb, var(--ax-green) 13%, transparent);
}

.ax-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--ax-heading);
}

.ax-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ax-muted);
}

/* ------------------------------------------------------------ backend flow */

.ax-flow-wrap {
  display: grid;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--ax-border);
  border-radius: 28px;
  background: var(--ax-surface);
  box-shadow: var(--ax-shadow-soft);
}

.ax-switch {
  display: inline-flex;
  justify-self: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--ax-border);
  border-radius: 999px;
  background: var(--ax-surface-2);
}

.ax-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ax-muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.ax-switch-btn svg {
  width: 17px;
  height: 17px;
}

.ax-switch-btn[aria-pressed='true'] {
  color: #fff;
  background: var(--ax-grad);
}

.ax-flow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ax-node {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 170px;
  flex: 0 0 auto;
  padding: 18px 14px;
  border: 1px solid var(--ax-border);
  border-radius: 18px;
  background: var(--ax-surface);
  text-align: center;
  transition:
    opacity 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s ease;
}

.ax-node strong {
  font-size: 15px;
  line-height: 1.3;
  color: var(--ax-heading);
}

.ax-node small {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ax-muted);
}

.ax-node-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  border-radius: 13px;
  color: var(--ax-icon-blue);
  background: color-mix(in srgb, var(--ax-blue) 12%, transparent);
}

.ax-node-icon svg {
  width: 21px;
  height: 21px;
}

.ax-node-core {
  border-color: color-mix(in srgb, var(--ax-violet) 45%, transparent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ax-violet) 10%, transparent);
}

.ax-pipe {
  position: relative;
  flex: 1 1 20px;
  min-width: 20px;
  max-width: 96px;
  height: 2px;
  background: var(--ax-border-strong);
  overflow: hidden;
}

.ax-pipe i,
.ax-fork i::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--ax-blue), var(--ax-violet));
  animation: ax-packet 1.6s linear infinite;
}

@keyframes ax-packet {
  from {
    transform: translateX(-30px);
  }
  to {
    transform: translateX(260px);
  }
}

@keyframes ax-packet-down {
  from {
    transform: translateY(-24px);
  }
  to {
    transform: translateY(40px);
  }
}

.ax-fork {
  position: relative;
  width: 46px;
  height: 150px;
  flex: 0 0 auto;
}

.ax-fork i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ax-border-strong);
  transform-origin: left center;
  overflow: hidden;
}

.ax-fork-a {
  transform: rotate(-45deg) scaleX(1.35);
}

.ax-fork-b {
  transform: rotate(45deg) scaleX(1.35);
}

.ax-fork i::after {
  content: '';
  display: none;
}

.ax-flow[data-mode='mock'] .ax-fork-a::after,
.ax-flow[data-mode='live'] .ax-fork-b::after {
  display: block;
}

.ax-targets {
  display: grid;
  gap: 14px;
}

.ax-target {
  width: 200px;
}

.ax-flow[data-mode='mock'] .ax-target[data-target='live'],
.ax-flow[data-mode='live'] .ax-target[data-target='mock'] {
  border-style: dashed;
  background: var(--ax-surface-2);
  box-shadow: none;
  transform: scale(0.96);
}

/* The inactive target is marked by its dashed outline, not by fading its text. */
.ax-flow[data-mode='mock'] .ax-target[data-target='live'] .ax-node-icon,
.ax-flow[data-mode='live'] .ax-target[data-target='mock'] .ax-node-icon {
  filter: grayscale(1);
  opacity: 0.6;
}

.ax-flow[data-mode='mock'] .ax-target[data-target='mock'],
.ax-flow[data-mode='live'] .ax-target[data-target='live'] {
  border-color: var(--ax-blue);
  box-shadow: 0 16px 36px -14px rgba(37, 99, 235, 0.5);
}

.ax-code,
.ax-terminal {
  border-radius: 16px;
  overflow: hidden;
  background: #0b0f1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ax-code .ax-code-bar,
.ax-terminal .ax-code-bar {
  background: #121829;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.ax-code .ax-code-bar span,
.ax-terminal .ax-code-bar span {
  background: #0b0f1a;
  color: #a9b2c8;
}

.ax-code pre,
.ax-terminal pre {
  margin: 0;
  padding: 18px 22px;
  overflow-x: auto;
  font-family: var(--ax-mono);
  font-size: 14px;
  line-height: 1.75;
  color: #e5e9f5;
}

.ax-code pre[hidden] {
  display: none;
}

.ax-page .ax-code code,
.ax-page .ax-terminal code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  overflow-wrap: normal;
}

.ax-code .c {
  color: #8a96b0;
}

.ax-code .k {
  color: #93b4ff;
}

.ax-code .s {
  color: #fcd34d;
}

.ax-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.ax-points li {
  display: flex;
  gap: 14px;
}

.ax-points svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--ax-icon-violet);
}

.ax-points h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--ax-heading);
}

.ax-points p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ax-muted);
}

/* ----------------------------------------------------------------- gallery */

.ax-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ax-shot {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--ax-border);
  border-radius: 18px;
  background: var(--ax-surface);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.ax-shot:hover {
  transform: translateY(-5px);
  box-shadow: var(--ax-shadow);
}

.ax-shot-lg {
  grid-column: span 2;
  grid-row: span 2;
}

.ax-shot-media {
  overflow: hidden;
}

.ax-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}

.ax-shot-lg img {
  flex: 1;
  aspect-ratio: auto;
  min-height: 0;
}

.ax-shot:hover img {
  transform: scale(1.03);
}

.ax-shot figcaption {
  position: relative;
  padding: 14px 18px;
  border-top: 1px solid var(--ax-border);
  background: var(--ax-surface);
  font-size: 14px;
  color: var(--ax-muted);
}

.ax-shot figcaption strong {
  margin-right: 6px;
  color: var(--ax-heading);
}

/* --- mobile showcase ----------------------------------------------------- */

.ax-mobile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  margin-top: 88px;
  padding: 48px;
  border-radius: 32px;
  background:
    radial-gradient(80% 90% at 90% 20%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(70% 80% at 10% 90%, rgba(37, 99, 235, 0.12), transparent 60%), var(--ax-surface);
  border: 1px solid var(--ax-border);
  overflow: hidden;
}

.ax-mobile-copy h3 {
  margin: 0;
  font-family: var(--ax-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ax-heading);
}

.ax-mobile-copy > p:not(.ax-kicker) {
  margin: 12px 0 22px;
  color: var(--ax-muted);
}

.ax-phones {
  position: relative;
  height: 440px;
}

.ax-phone {
  position: absolute;
  left: 50%;
  width: 190px;
  padding: 8px;
  border-radius: 32px;
  background: #0b0f1a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -30px rgba(15, 20, 50, 0.6);
  animation: ax-bob-tilt 7s ease-in-out infinite;
}

.ax-phone img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 520 / 1125;
  object-fit: cover;
  object-position: top;
}

.ax-phone-back {
  --r: -7deg;
  top: 34px;
  margin-left: -186px;
  transform: rotate(-7deg);
}

.ax-phone-front {
  --r: 5deg;
  top: 0;
  margin-left: -10px;
  transform: rotate(5deg);
  animation-delay: -3.5s;
}

@keyframes ax-bob-tilt {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-12px) rotate(var(--r, 0deg));
  }
}

/* ------------------------------------------------------------------- stack */

.ax-stack-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.ax-stack-chips li {
  display: grid;
  gap: 1px;
  padding: 14px 16px;
  border: 1px solid var(--ax-border);
  border-radius: 16px;
  background: var(--ax-surface);
  text-align: center;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.ax-stack-chips li:hover {
  transform: translateY(-3px);
  border-color: var(--ax-blue);
}

.ax-stack-chips b {
  font-size: 15.5px;
  color: var(--ax-heading);
}

.ax-stack-chips span {
  font-size: 13px;
  color: var(--ax-muted);
}

.ax-quality {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ax-quality-item {
  padding: 26px;
  border: 1px solid var(--ax-border);
  border-radius: 20px;
  background: var(--ax-surface);
}

.ax-quality-item svg {
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  color: var(--ax-gold-deep);
}

.ax-quality-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--ax-heading);
}

.ax-quality-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ax-muted);
}

/* ------------------------------------------------------------- quick start */

.ax-start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
}

.ax-start-copy > p:not(.ax-kicker) {
  margin: 16px 0 26px;
  color: var(--ax-muted);
}

.ax-start-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 28px 0 0;
}

.ax-start-demo p {
  flex: 1 1 220px;
  margin: 0;
  font-size: 14px;
  color: var(--ax-muted);
}

.ax-logins {
  margin: 0;
  border: 1px solid var(--ax-border);
  border-radius: 16px;
  background: var(--ax-surface);
  overflow: hidden;
}

.ax-logins div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
}

.ax-logins div + div {
  border-top: 1px solid var(--ax-border);
}

.ax-logins dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--ax-heading);
}

.ax-logins dd {
  margin: 0;
  font-size: 14px;
}

.ax-req {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ax-muted);
}

.ax-req svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--ax-icon-violet);
}

.ax-terminal {
  border-radius: 18px;
  box-shadow: var(--ax-shadow);
}

.ax-terminal pre {
  min-height: 210px;
  font-size: 14.5px;
}

.ax-terminal .p {
  color: #b79bff;
}

.ax-t-out {
  color: #a9b2c8;
}

.ax-t-out u {
  color: #93b4ff;
  text-decoration: none;
}

.ax-t-ok {
  color: #4ade80;
}

.ax-terminal.is-typing .ax-t-line {
  visibility: hidden;
}

.ax-terminal.is-typing .ax-t-line.is-on {
  visibility: visible;
}

.ax-caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: #e5e9f5;
  animation: ax-blink 1s steps(1) infinite;
}

@keyframes ax-blink {
  50% {
    opacity: 0;
  }
}

/* ----------------------------------------------------------------- licence */

.ax-licence {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
}

/* A gradient border: the gradient sits under a slightly inset surface. */
.ax-licence-main {
  position: relative;
  padding: 36px;
  border: 2px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(var(--ax-surface), var(--ax-surface)) padding-box,
    var(--ax-grad) border-box;
  box-shadow: var(--ax-shadow);
}

.ax-plan-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ax-accent-text);
  background: color-mix(in srgb, var(--ax-blue) 11%, transparent);
}

.ax-licence-main h3 {
  margin: 0;
  font-family: var(--ax-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  color: var(--ax-heading);
}

.ax-licence-sub {
  margin: 8px 0 24px;
  color: var(--ax-muted);
}

.ax-licence-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 26px;
}

.ax-licence-cols h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ax-muted);
}

.ax-licence-cols ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ax-licence-cols li {
  display: flex;
  gap: 9px;
  font-size: 14.5px;
}

.ax-licence-cols svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--ax-green);
}

.ax-licence-cols div + div svg {
  color: #ef4444;
}

.ax-soon {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ax-gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ax-gold) 35%, transparent);
  font-size: 14.5px;
}

.ax-soon svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--ax-gold-deep);
}

.ax-soon strong {
  color: var(--ax-heading);
}

.ax-licence-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.ax-side-item {
  display: flex;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--ax-border);
  border-radius: 20px;
  background: var(--ax-surface);
}

.ax-side-item svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--ax-icon-blue);
}

.ax-side-item h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--ax-heading);
}

.ax-side-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ax-muted);
}

/* --------------------------------------------------------------------- faq */

.ax-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.ax-faq-item {
  border: 1px solid var(--ax-border);
  border-radius: 18px;
  background: var(--ax-surface);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.ax-faq-item[open] {
  border-color: color-mix(in srgb, var(--ax-blue) 40%, transparent);
  box-shadow: var(--ax-shadow-soft);
}

.ax-faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ax-heading);
  cursor: pointer;
  list-style: none;
}

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

.ax-faq-item summary svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--ax-muted);
  transition: transform 0.3s ease;
}

.ax-faq-item[open] summary svg {
  transform: rotate(180deg);
  color: var(--ax-icon-blue);
}

.ax-faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  font-size: 15px;
  color: var(--ax-muted);
}

/* --------------------------------------------------------------------- cta */

.ax-cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 64px 32px;
  border-radius: 32px;
  background: linear-gradient(130deg, #1d4ed8 0%, #4f46e5 45%, #6d28d9 100%);
  color: #eef0ff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.ax-cta-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 60% at 10% 0%, rgba(255, 255, 255, 0.25), transparent 70%),
    radial-gradient(40% 60% at 95% 100%, rgba(245, 158, 11, 0.35), transparent 70%);
  animation: ax-drift 14s ease-in-out infinite alternate;
}

.ax-cta img {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
}

.ax-cta h2 {
  margin: 0;
  font-family: var(--ax-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}

.ax-cta p {
  max-width: 560px;
  margin: 10px 0 26px;
  font-size: 1.08rem;
}

/* ------------------------------------------------------------------ footer */

.ax-footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--ax-border);
  background: var(--ax-surface);
}

.ax-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.ax-footer-brand p {
  max-width: 380px;
  margin: 16px 0 0;
  font-size: 14.5px;
  color: var(--ax-muted);
}

.ax-footer-links {
  display: grid;
  align-content: start;
  gap: 4px;
}

.ax-footer-links h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ax-muted);
}

.ax-footer-links a {
  padding: 6px 0;
  font-size: 15px;
  transition: color 0.2s ease;
}

.ax-footer-links a:hover {
  color: var(--ax-accent-text);
}

.ax-credits {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--ax-border);
  font-size: 13px;
  color: var(--ax-muted);
}

.ax-credits summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-weight: 700;
  color: var(--ax-text);
  cursor: pointer;
  list-style: none;
}

.ax-credits summary::-webkit-details-marker {
  display: none;
}

.ax-credits summary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.ax-credits[open] summary svg {
  transform: rotate(180deg);
}

.ax-credits ul {
  columns: 2;
  column-gap: 32px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.ax-credits li {
  margin-bottom: 4px;
  break-inside: avoid;
}

.ax-page .ax-credits a,
.ax-page .ax-copyright a {
  color: var(--ax-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ax-copyright {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: min(calc(100% - 48px), var(--ax-container));
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--ax-border);
  font-size: 13px;
  color: var(--ax-muted);
}

.ax-scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--ax-grad);
  box-shadow: 0 12px 30px -10px rgba(79, 70, 229, 0.7);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.ax-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ax-scroll-top svg {
  width: 20px;
  height: 20px;
}

/* -------------------------------------------------------- reveal on scroll */

[data-ax-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-ax-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------- responsive */

/* The backend diagram turns vertical before anything else needs to. */
@media (max-width: 1180px) {
  .ax-header-demo {
    display: none;
  }

  .ax-nav a {
    padding: 9px 10px;
  }

  .ax-flow {
    flex-direction: column;
  }

  .ax-node {
    width: min(100%, 340px);
  }

  .ax-pipe {
    flex: 0 0 30px;
    width: 2px;
    min-width: 0;
    height: 30px;
  }

  .ax-pipe i {
    width: 100%;
    height: 22px;
    background: linear-gradient(180deg, transparent, var(--ax-blue), var(--ax-violet));
    animation-name: ax-packet-down;
  }

  .ax-fork {
    width: 2px;
    height: 30px;
  }

  .ax-fork i {
    top: 0;
    height: 100%;
    transform: none;
  }

  .ax-fork-b {
    display: none;
  }

  .ax-fork i.ax-fork-a::after {
    display: block;
    width: 100%;
    height: 22px;
    background: linear-gradient(180deg, transparent, var(--ax-blue), var(--ax-violet));
    animation-name: ax-packet-down;
  }

  .ax-targets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 560px);
  }

  .ax-target {
    width: auto;
  }
}

@media (max-width: 1080px) {
  .ax-nav {
    display: none;
  }

  .ax-menu-toggle {
    display: inline-grid;
  }

  .ax-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ax-hero-copy {
    max-width: 720px;
  }

  .ax-stage {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    padding: 26px 20px 30px;
  }

  .ax-lot {
    margin: 0 auto;
  }

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

  .ax-fit {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ax-panel,
  .ax-duel,
  .ax-start,
  .ax-licence,
  .ax-mobile {
    grid-template-columns: 1fr;
  }

  .ax-panel {
    gap: 28px;
  }

  .ax-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ax-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .ax-section {
    padding: 76px 0;
  }

  .ax-section-tight {
    padding: 36px 0;
  }

  .ax-section-heading {
    margin-bottom: 40px;
  }

  /* Six stacked screenshots are too small to read and too long to scroll past:
     on tablets and phones they become one swipeable row that runs to the screen edge. */
  .ax-gallery {
    display: flex;
    gap: 14px;
    margin-inline: -24px;
    padding: 4px 24px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .ax-gallery::-webkit-scrollbar {
    display: none;
  }

  .ax-gallery .ax-shot {
    flex: 0 0 min(78%, 460px);
    scroll-snap-align: start;
  }

  .ax-gallery .ax-shot:hover {
    transform: none;
  }

  .ax-shot-lg img {
    flex: none;
    aspect-ratio: 16 / 10;
  }

  /* Cards off to the side never cross the reveal line, so show them as they are. */
  .ax-gallery [data-ax-reveal] {
    opacity: 1;
    transform: none;
  }

  .ax-points,
  .ax-quality,
  .ax-fit-cols {
    grid-template-columns: 1fr;
  }

  .ax-stack-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ax-mobile {
    margin-top: 64px;
    padding: 32px 24px 20px;
  }

  .ax-flow-wrap {
    padding: 24px 18px;
  }

  .ax-duel-board {
    padding: 24px 20px;
  }
}

@media (max-width: 620px) {
  .ax-container,
  .ax-copyright {
    width: calc(100% - 32px);
  }

  .ax-header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .ax-header-cta {
    display: none;
  }

  .ax-hero {
    padding-top: 40px;
  }

  .ax-hero .ax-actions .ax-button {
    flex: 1 1 100%;
  }

  .ax-stage {
    padding: 18px 0 22px;
  }

  .ax-lot {
    transform: none;
  }

  .ax-stage:hover .ax-lot {
    transform: none;
  }

  .ax-lot-body {
    padding: 16px 16px 18px;
  }

  .ax-lot-price {
    font-size: 27px;
  }

  .ax-float-kpi {
    display: none;
  }

  .ax-toast {
    left: 12px;
    right: 12px;
    max-width: none;
  }

  .ax-toast-snipe {
    top: 24%;
  }

  .ax-toast-outbid {
    bottom: 40px;
  }

  .ax-marquee {
    margin-top: 44px;
  }

  .ax-marquee li {
    width: 160px;
  }

  .ax-tablist {
    flex-direction: column;
    width: 100%;
    border-radius: 18px;
  }

  .ax-tab {
    justify-content: center;
    border-radius: 13px;
  }

  .ax-switch {
    width: 100%;
  }

  .ax-switch-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
  }

  .ax-rules,
  .ax-bento,
  .ax-faq-grid,
  .ax-licence-cols,
  .ax-targets {
    grid-template-columns: 1fr;
  }

  .ax-card-wide {
    grid-column: auto;
  }

  .ax-gallery {
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }

  .ax-gallery .ax-shot {
    flex-basis: 86%;
  }

  /* Feature, rule and quality cards: icon beside the text, so a list of ten reads as a list. */
  .ax-card,
  .ax-rule,
  .ax-quality-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 16px;
    padding: 20px;
  }

  .ax-card-icon,
  .ax-rule-icon,
  .ax-quality-item > svg {
    grid-row: span 2;
    margin: 0;
  }

  .ax-card-icon,
  .ax-rule-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .ax-card h3,
  .ax-rule h3,
  .ax-quality-item h3 {
    margin: 1px 0 4px;
    font-size: 16px;
  }

  .ax-card p,
  .ax-rule p,
  .ax-quality-item p {
    font-size: 14px;
  }

  .ax-rules,
  .ax-bento,
  .ax-quality {
    gap: 12px;
  }

  .ax-fit,
  .ax-licence-main {
    padding: 26px 20px;
  }

  .ax-phones {
    height: 350px;
  }

  .ax-phone {
    width: 150px;
    padding: 7px;
    border-radius: 26px;
  }

  .ax-phone img {
    border-radius: 20px;
  }

  .ax-phone-back {
    top: 26px;
    margin-left: -142px;
  }

  .ax-phone-front {
    margin-left: -8px;
  }

  /* Long commands wrap rather than hide behind a sideways scroll. */
  .ax-code pre,
  .ax-terminal pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .ax-logins div {
    flex-wrap: wrap;
    gap: 2px 12px;
  }

  .ax-code pre,
  .ax-terminal pre {
    padding: 16px;
    font-size: 13px;
  }

  .ax-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .ax-credits ul {
    columns: 1;
  }

  .ax-cta {
    padding: 48px 20px;
    border-radius: 26px;
  }

  .ax-cta .ax-actions {
    width: 100%;
  }

  .ax-cta .ax-button {
    flex: 1 1 100%;
  }

  .ax-duel-steps li {
    padding: 16px;
  }

  .ax-duel.is-ready .ax-duel-steps li.is-current {
    transform: none;
  }
}

@media (max-width: 360px) {
  .ax-brand img {
    height: 28px;
  }

  .ax-phones {
    height: 300px;
  }

  .ax-phone {
    width: 128px;
    border-radius: 22px;
  }

  .ax-phone img {
    border-radius: 17px;
  }

  .ax-phone-back {
    margin-left: -122px;
  }

  .ax-phone-front {
    margin-left: -6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ax-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .ax-marquee-track[aria-hidden='true'] {
    display: none;
  }

  .ax-scroller {
    overflow-y: auto;
  }

  .ax-scroller img {
    animation: none;
  }

  .ax-spark path {
    stroke-dashoffset: 0;
  }

  .ax-lot,
  .ax-stage:hover .ax-lot {
    transform: none;
  }
}
