@import url("tokens.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ax-landing {
  margin: 0;
  font-family: Inter, "Inter Tight", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

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

.ax-skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.ax-skip-link:focus {
  outline: none;
}

.ax-skip-link:focus-visible {
  transform: translateY(0);
  box-shadow: 0 0 0 3px rgba(59, 167, 255, 0.45);
}

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

.ax-landing a:focus-visible,
.ax-landing .ax-btn-ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.ax-landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(12px);
}

.ax-landing-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ax-landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

.ax-landing-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.ax-landing-brand-text {
  color: var(--text);
}

.ax-landing-header-cta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 167, 255, 0.45);
  background: rgba(59, 167, 255, 0.08);
}

.ax-landing-header-cta:hover {
  background: rgba(59, 167, 255, 0.14);
}

/* Cinematic backdrop */
.ax-landing-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(59, 167, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 40%, rgba(59, 167, 255, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 60%, rgba(59, 167, 255, 0.05), transparent 45%),
    var(--background);
}

.ax-landing-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 10, 11, 0.4) 35%,
    rgba(10, 10, 11, 0.92) 100%
  );
}

@keyframes axLandingAmbient {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.78;
  }
}

.ax-landing-backdrop-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 55%;
  background: radial-gradient(closest-side, rgba(59, 167, 255, 0.12), transparent 100%);
  animation: axLandingAmbient 14s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ax-landing-backdrop-glow {
    animation: none;
  }
}

.ax-landing-main {
  position: relative;
  z-index: 1;
}

.ax-landing-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.ax-landing-section {
  padding: 2.5rem 0;
}

.ax-landing-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ax-landing-section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ax-landing-sub {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42rem;
}

/* Hero */
.ax-landing-hero {
  padding: 1.25rem 0 2.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .ax-landing-hero {
    padding: 2rem 0 3rem;
  }
}

.ax-landing-hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.ax-landing-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 10vw, 4.25rem);
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.ax-landing-hero-tagline {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--text);
  font-weight: 500;
}

.ax-landing-hero-support {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.ax-landing-hero-optional {
  margin: 0.5rem auto 0;
  max-width: 32rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.ax-landing-hero-ctas {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.ax-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--background);
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(59, 167, 255, 0.25),
    0 12px 40px rgba(59, 167, 255, 0.2);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.ax-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(59, 167, 255, 0.4),
    0 16px 48px rgba(59, 167, 255, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .ax-btn-primary:hover {
    transform: none;
  }
}

.ax-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(20, 22, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.ax-btn-ghost:hover {
  border-color: rgba(59, 167, 255, 0.35);
  background: rgba(29, 33, 40, 0.85);
}

/* Sport portals */
.ax-landing-portal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .ax-landing-portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ax-landing-portal {
  position: relative;
  border-radius: 20px;
  padding: 1.35rem 1.25rem 1.25rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background:
    linear-gradient(155deg, rgba(59, 167, 255, 0.1) 0%, rgba(20, 22, 26, 0.95) 42%, var(--surface) 100%);
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.ax-landing-portal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 20% 0%, rgba(59, 167, 255, 0.18), transparent 55%);
  opacity: 0.65;
  pointer-events: none;
}

.ax-landing-portal:hover {
  border-color: rgba(59, 167, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(59, 167, 255, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .ax-landing-portal:hover {
    transform: none;
  }
}

.ax-landing-portal-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ax-landing-portal-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ax-landing-portal-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 600;
}

.ax-landing-portal-copy {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

.ax-landing-portal-badge {
  margin-top: 1rem;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(10, 10, 11, 0.35);
}

.ax-landing-portal-badge.is-phase1 {
  color: #89c7ff;
  border-color: rgba(59, 167, 255, 0.45);
}

.ax-landing-portal-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ax-landing-portal-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(59, 167, 255, 0.35);
  background: rgba(59, 167, 255, 0.1);
  color: var(--text);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.ax-landing-portal-link:hover {
  background: rgba(59, 167, 255, 0.18);
  border-color: rgba(59, 167, 255, 0.55);
}

.ax-landing-portal-future {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* Promise cards */
.ax-landing-promise-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ax-landing-promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .ax-landing-promise-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ax-landing-promise-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.15rem 1.1rem;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.ax-landing-promise-card:hover {
  border-color: rgba(59, 167, 255, 0.22);
  background: var(--surface-elevated);
}

.ax-landing-promise-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 650;
}

.ax-landing-promise-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.ax-landing-promise-card.is-subtle {
  opacity: 0.92;
}

.ax-landing-promise-card.is-subtle h3 {
  font-size: 0.92rem;
  color: var(--muted);
}

.ax-landing-promise-card.is-subtle p {
  font-size: 0.82rem;
}

/* Roadmap */
.ax-landing-roadmap {
  display: grid;
  gap: 0;
}

.ax-landing-road-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}

.ax-landing-road-item:last-child {
  border-bottom: none;
}

.ax-landing-road-dot {
  width: 12px;
  height: 12px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(59, 167, 255, 0.5);
}

.ax-landing-road-phase {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.ax-landing-road-title {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 650;
}

.ax-landing-road-copy {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Identity graph */
.ax-landing-graph-panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem 1rem;
}

.ax-landing-graph-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
  margin-bottom: 1rem;
}

.ax-landing-graph-row:last-child {
  margin-bottom: 0;
}

.ax-landing-graph-label {
  flex: 0 0 100%;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

@media (min-width: 560px) {
  .ax-landing-graph-label {
    flex: 0 0 8.5rem;
    margin-bottom: 0;
  }
}

.ax-landing-graph-nodes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.ax-landing-graph-node {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}

.ax-landing-graph-arrow {
  color: var(--muted);
  font-size: 0.75rem;
  user-select: none;
}

/* Final CTA band */
.ax-landing-final {
  text-align: center;
  padding: 2.75rem 1rem;
  margin: 1rem 0 0;
  border-radius: 20px;
  border: 1px solid rgba(59, 167, 255, 0.2);
  background: linear-gradient(180deg, rgba(59, 167, 255, 0.08), rgba(20, 22, 26, 0.92));
}

.ax-landing-final h2 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.ax-landing-final > p:first-of-type {
  margin: 0.65rem auto 0;
  max-width: 34rem;
  color: var(--text);
  font-size: 1rem;
}

.ax-landing-final .ax-landing-final-tagline {
  max-width: 36rem;
  margin: 0.5rem auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.ax-landing-final .ax-landing-hero-ctas {
  margin-top: 1.35rem;
}

/* Footer */
.ax-landing-footer {
  margin-top: 2.5rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.ax-landing-footer-brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
}

.ax-landing-footer-lines {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.ax-landing-footer-lines p {
  margin: 0.2rem 0;
}

.ax-landing-footer-axiom {
  margin: 0.85rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  opacity: 0.85;
}
