/**
 * v73 APEX_FINAL · styles.css
 * Premium platinum brochure · cinzel serif · sapphire + muted gold + pearl.
 */
:root {
  --ink: #070A12;
  --ink-soft: #0F1626;
  --sapphire: #0E2A47;
  --sapphire-deep: #061629;
  --gold: #C9B26A;
  --gold-deep: #8C7635;
  --pearl: #F4F1EA;
  --pearl-soft: rgba(244, 241, 234, 0.62);
  --accent: #1FE0FF;
  --line: rgba(244, 241, 234, 0.14);
  --line-strong: rgba(201, 178, 106, 0.36);
  --shadow-gold: 0 0 26px rgba(201, 178, 106, 0.4);
}

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

html, body {
  background: var(--ink);
  color: var(--pearl);
  font-family: 'Inter Tight', sans-serif;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(14, 42, 71, 0.7), transparent 60%),
    radial-gradient(ellipse at 80% 92%, rgba(201, 178, 106, 0.12), transparent 60%),
    var(--ink);
}

#three-container {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}

.ax-veil {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 50%, rgba(0,0,0,0.4)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(244,241,234,0.012) 3px 4px);
}

.ax-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.6);
}
.ax-cinzel { font-family: 'Cinzel', serif; }

/* ===== Top Bar ===== */
.ax-bar {
  position: relative; z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.7);
  backdrop-filter: blur(10px);
}
.ax-bar-left, .ax-bar-right { display: flex; align-items: center; gap: 10px; }
.ax-bar-right { justify-content: flex-end; }
.ax-shine {
  font-weight: 700;
  background: linear-gradient(90deg, var(--gold), var(--pearl), var(--gold));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: axShine 3.6s linear infinite;
}
@keyframes axShine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.ax-brand {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--pearl);
  display: flex; align-items: center; gap: 14px;
}
.ax-brand i {
  font-style: italic;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 500;
}

/* ===== Stage ===== */
.ax-stage {
  position: relative; z-index: 4;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 28px 60px;
  display: flex; flex-direction: column; gap: 38px;
}

/* ===== Hero ===== */
.ax-hero {
  display: flex; flex-direction: column; gap: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.ax-hero-meta {
  display: flex; justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 8px 0;
}
.ax-stamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.ax-title {
  font-family: 'Cinzel', serif;
  line-height: 0.95;
  display: flex; flex-direction: column; gap: 8px;
}
.ax-row {
  font-size: clamp(56px, 10vw, 154px);
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--pearl);
}
.ax-row-gold {
  background: linear-gradient(180deg, var(--gold), var(--pearl) 40%, var(--gold) 80%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  text-shadow: 0 0 60px rgba(201, 178, 106, 0.18);
}
.ax-row-gold::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(201, 178, 106, 0.18));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}
.ax-italic {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-style: italic;
  text-transform: none;
  font-size: clamp(20px, 2.6vw, 36px) !important;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.ax-lede {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(244, 241, 234, 0.78);
  max-width: 760px;
}

.ax-cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.ax-cta {
  flex: 1 1 480px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border: 1px solid var(--gold);
  background: linear-gradient(90deg, rgba(14, 42, 71, 0.85), rgba(7, 10, 18, 0.7));
  color: var(--pearl);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
  cursor: pointer;
}
.ax-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(201, 178, 106, 0.34), transparent);
  transform: translateX(-100%);
  animation: axSweep 4s linear infinite;
}
@keyframes axSweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.ax-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.ax-cta-icn {
  font-size: 26px;
  color: var(--gold);
  text-shadow: var(--shadow-gold);
}
.ax-cta-text {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 18px;
  text-transform: uppercase;
}
.ax-cta-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.ax-ring-wrap {
  position: relative;
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ax-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
#ax-ring-fill {
  transition: stroke-dashoffset 0.95s linear;
  filter: drop-shadow(0 0 8px rgba(201, 178, 106, 0.7));
}
.ax-ring-label {
  position: relative;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-align: center;
  line-height: 1.1;
}

/* ===== Benefits ===== */
.ax-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ax-benefit {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 42, 71, 0.42), rgba(7, 10, 18, 0.4));
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.ax-benefit:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(14, 42, 71, 0.65), rgba(7, 10, 18, 0.6));
}
.ax-b-num {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--gold);
}
.ax-benefit h3 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.05em;
  color: var(--pearl);
  text-transform: uppercase;
}
.ax-benefit p {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(244, 241, 234, 0.7);
}

/* ===== Flag carousel ===== */
.ax-flag-carousel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.55), rgba(14, 42, 71, 0.35));
  padding: 18px 0 18px;
  overflow: hidden;
}
.ax-flag-head {
  display: flex; justify-content: space-between;
  padding: 0 22px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.ax-flag-track-wrap {
  overflow: hidden;
  position: relative;
}
.ax-flag-track-wrap::before, .ax-flag-track-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 80px; z-index: 2;
  pointer-events: none;
}
.ax-flag-track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}
.ax-flag-track-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--ink), transparent);
}
.ax-flag-track {
  display: flex;
  gap: 14px;
  padding: 4px 22px;
  animation: axMarquee 36s linear infinite;
  width: max-content;
}
@keyframes axMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ax-flag-track a {
  flex: 0 0 auto;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(14, 42, 71, 0.3);
  text-decoration: none;
  color: var(--pearl);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.ax-flag-track a:hover {
  border-color: var(--gold);
  background: rgba(201, 178, 106, 0.1);
  transform: translateY(-3px);
}
.ax-flag-track .flag {
  width: 48px; height: 32px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gold);
}

/* ===== Stats ===== */
.ax-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ax-stat {
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 22px 18px;
  background: rgba(7, 10, 18, 0.5);
  display: flex; flex-direction: column; gap: 6px;
}
.ax-stat b {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--pearl);
}
.ax-stat-sub {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  color: rgba(244, 241, 234, 0.55);
}
.ax-stat-gold {
  border-top-color: var(--accent);
  background: linear-gradient(180deg, rgba(31, 224, 255, 0.08), rgba(7, 10, 18, 0.4));
}
.ax-stat-gold b {
  background: linear-gradient(90deg, var(--gold), var(--pearl));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Foot ===== */
.ax-foot {
  display: flex; justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.ax-foot-brand {
  display: flex; align-items: baseline; gap: 16px;
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--pearl);
}
.ax-foot-mono { color: rgba(244, 241, 234, 0.45); }

.global-redirect-layer {
  position: fixed; inset: 0; z-index: 2;
  display: block;
}

@media (max-width: 980px) {
  .ax-benefits { grid-template-columns: repeat(2, 1fr); }
  .ax-stats { grid-template-columns: repeat(2, 1fr); }
  .ax-bar { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .ax-bar-right { justify-content: center; }
  .ax-foot { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 540px) {
  .ax-benefits { grid-template-columns: 1fr; }
  .ax-stats { grid-template-columns: 1fr; }
  .ax-cta-row { flex-direction: column; align-items: stretch; }
  .ax-ring-wrap { align-self: center; }
}
