/* AX Arena cinematic landing — scoped to body.ax-landing-cinematic */
/* Inter font (template) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;650;700;850;950&display=swap");
@import url("landing-cinematic-portals.css");

:root {
  --ax-bg: #0A0A0B;
  --ax-bg-deep: #030405;
  --ax-surface: #14161A;
  --ax-surface-2: #1D2128;
  --ax-accent: #3BA7FF;
  --ax-text: #F5F7FA;
  --ax-muted: #8A94A6;
  --ax-border: rgba(255, 255, 255, 0.09);
  --ax-border-strong: rgba(255, 255, 255, 0.16);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ax-bg);
}

body.ax-landing-cinematic {
  min-height: 100vh;
  color: var(--ax-text);
  background:
    radial-gradient(circle at 50% -18%, rgba(59, 167, 255, 0.34), transparent 33%),
    radial-gradient(circle at 14% 12%, rgba(128, 190, 255, 0.12), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.08), transparent 25%),
    radial-gradient(circle at 50% 62%, rgba(59, 167, 255, 0.08), transparent 40%),
    linear-gradient(180deg, #030405 0%, #0A0A0B 42%, #050607 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.ax-landing-cinematic::before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 167, 255, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 70%, rgba(59, 167, 255, 0.13) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 82%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px);
  background-size: 220px 220px, 280px 280px, 240px 240px, 320px 320px;
  opacity: 0.72;
  animation: starDrift 52s linear infinite;
}

body.ax-landing-cinematic::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(59, 167, 255, 0.08) 38%, transparent 44%),
    linear-gradient(245deg, transparent 0 48%, rgba(255, 255, 255, 0.055) 53%, transparent 58%);
  filter: blur(20px);
  opacity: 0.6;
  animation: auroraSweep 18s ease-in-out infinite alternate;
}

@keyframes starDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(120px, 80px, 0);
  }
}

@keyframes auroraSweep {
  from {
    opacity: 0.35;
    transform: translateX(-4%) rotate(-1deg);
  }
  to {
    opacity: 0.75;
    transform: translateX(4%) rotate(1deg);
  }
}

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

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

.ax-skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--ax-accent);
  outline-offset: 3px;
}

.portal-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.75;
}

.portal-cursor-light {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(59, 167, 255, 0.16), transparent 64%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 220ms ease;
  mix-blend-mode: screen;
}

body.ax-landing-cinematic.portal-active .portal-cursor-light {
  opacity: 1;
}

.page {
  width: min(1260px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.cinematic-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at center, transparent 26%, rgba(0, 0, 0, 0.22) 63%, rgba(0, 0, 0, 0.82) 100%);
}

.grid-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.055;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
}

.arena-light {
  position: fixed;
  top: -24%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background:
    conic-gradient(
      from 180deg,
      transparent 0deg,
      rgba(59, 167, 255, 0.15) 35deg,
      transparent 70deg,
      transparent 145deg,
      rgba(255, 255, 255, 0.09) 180deg,
      transparent 230deg,
      rgba(59, 167, 255, 0.13) 300deg,
      transparent 360deg
    );
  filter: blur(36px);
  opacity: 0.58;
  pointer-events: none;
  z-index: 0;
  animation: slowRotate 36s linear infinite;
}

.nexus-mist {
  position: fixed;
  left: 50%;
  bottom: -12%;
  width: 120vw;
  height: 34vh;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(59, 167, 255, 0.14), transparent 64%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.055));
  filter: blur(28px);
  opacity: 0.72;
  animation: mistBreathe 8s ease-in-out infinite alternate;
}

@keyframes mistBreathe {
  from {
    opacity: 0.42;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 0.78;
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes slowRotate {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-mini:focus-visible {
  outline: 2px solid var(--ax-accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.brand-wordmark {
  height: 42px;
  width: auto;
  max-width: min(200px, 42vw);
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
  transition: opacity 180ms ease, filter 180ms ease;
}

.brand-mini:hover .brand-wordmark {
  opacity: 0.92;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(59, 167, 255, 0.22));
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ax-muted);
  font-size: 0.92rem;
  font-weight: 650;
}

nav a {
  transition: color 180ms ease;
}

nav a:hover {
  color: var(--ax-text);
}

.nav-pill {
  border: 1px solid var(--ax-border);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ax-text);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.035);
}

.hero {
  min-height: calc(100vh - 84px);
  padding: 34px 0 70px;
  display: grid;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-inner {
  display: grid;
  gap: 28px;
  position: relative;
}

.logo-stage {
  width: min(520px, 88vw);
  margin: 0 auto;
  position: relative;
  filter:
    drop-shadow(0 30px 46px rgba(0, 0, 0, 0.78))
    drop-shadow(0 0 38px rgba(59, 167, 255, 0.28));
  animation: logoRise 950ms ease both;
}

.logo-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 78%;
  background: radial-gradient(ellipse at center, rgba(59, 167, 255, 0.23), transparent 65%);
  filter: blur(18px);
  z-index: -2;
  animation: sigilPulse 4.2s ease-in-out infinite alternate;
}

.logo-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  width: 82%;
  height: 54px;
  background: radial-gradient(ellipse, rgba(59, 167, 255, 0.34), transparent 70%);
  filter: blur(12px);
  z-index: -1;
}

.main-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@keyframes logoRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sigilPulse {
  from {
    opacity: 0.38;
    transform: translate(-50%, -50%) scale(0.96);
  }
  to {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.hero-copy {
  text-align: center;
  width: min(890px, 100%);
  margin: 0 auto;
  animation: fadeUp 900ms ease 120ms both;
}

.kicker {
  color: var(--ax-accent);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 950;
  margin-bottom: 16px;
}

.hero-copy > .kicker {
  margin-bottom: 22px;
}

.hero-copy p {
  color: var(--ax-muted);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  line-height: 1.68;
  max-width: 810px;
  margin: 0 auto;
}

.hero-copy strong {
  color: var(--ax-text);
  font-weight: 850;
}

.btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ax-border);
  font-weight: 850;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ax-accent);
  color: #06111c;
  border-color: rgba(59, 167, 255, 0.65);
  box-shadow: 0 0 44px rgba(59, 167, 255, 0.34);
}

.btn-secondary {
  color: var(--ax-text);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.025);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nexus-label {
  text-align: center;
  margin: 28px auto 0;
  animation: fadeUp 900ms ease 260ms both;
}

.nexus-label span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ax-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 850;
}

.nexus-label span::before,
.nexus-label span::after {
  content: "";
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 167, 255, 0.8));
}

.nexus-label span::after {
  background: linear-gradient(90deg, rgba(59, 167, 255, 0.8), transparent);
}
