/*! axe.css v1.0 — AXE Design System */

/* ══════════════════════════════════════
   1. Reset & Variables
   ══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand */
  --axe-navy:        #1A0610;
  --axe-navy-light:  #220A16;
  --axe-navy-mid:    #2A0E1C;
  --axe-accent:      #E3FF66;
  --axe-accent-dim:  #c8e050;
  --axe-accent-glow: rgba(227, 255, 102, 0.15);

  /* Text */
  --axe-white:       #f0f2f5;
  --axe-gray:        #9a7080;
  --axe-gray-light:  #c0909f;

  /* Semantic */
  --axe-green:       #4ade80;
  --axe-red:         #f87171;
  --axe-border:      rgba(255, 255, 255, 0.1);

  /* Typography */
  --axe-font-heading: 'Clash Display', 'Inter', sans-serif;
  --axe-font-body:    'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --axe-font-size:    1.05rem;
  --axe-line-height:  1.7;

  /* Spacing */
  --axe-radius-sm:  6px;
  --axe-radius:     10px;
  --axe-radius-lg:  12px;
  --axe-space-xs:   0.5rem;
  --axe-space-sm:   1rem;
  --axe-space-md:   1.5rem;
  --axe-space-lg:   2rem;
  --axe-space-xl:   4rem;
  --axe-space-2xl:  5rem;

  /* Layout */
  --axe-max-width:  1100px;
}


/* ══════════════════════════════════════
   2. Base
   ══════════════════════════════════════ */
html { scroll-behavior: smooth; }

body {
  font-family: var(--axe-font-body);
  font-size: var(--axe-font-size);
  line-height: var(--axe-line-height);
  background: var(--axe-navy);
  color: var(--axe-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--axe-font-heading);
  font-weight: 400;
  line-height: 1.3;
}

a { color: var(--axe-accent); text-decoration: none; }
a:hover { color: var(--axe-accent-dim); }


/* ══════════════════════════════════════
   3. Typography Utilities
   ══════════════════════════════════════ */
.axe-heading     { font-family: var(--axe-font-heading); }
.axe-text-accent { color: var(--axe-accent); }
.axe-text-white  { color: var(--axe-white); }
.axe-text-gray   { color: var(--axe-gray); }
.axe-text-light  { color: var(--axe-gray-light); }
.axe-text-green  { color: var(--axe-green); }
.axe-text-red    { color: var(--axe-red); }

.axe-text-xs  { font-size: 0.7rem; }
.axe-text-sm  { font-size: 0.82rem; }
.axe-text-md  { font-size: 0.92rem; }
.axe-text-base { font-size: 1.05rem; }
.axe-text-lg  { font-size: 1.1rem; }
.axe-text-xl  { font-size: 1.6rem; }
.axe-text-2xl { font-size: 1.8rem; }
.axe-text-3xl { font-size: 2.2rem; }
.axe-text-4xl { font-size: 2.5rem; }
.axe-text-hero { font-size: clamp(2.5rem, 6vw, 5rem); }

.axe-font-light    { font-weight: 200; }
.axe-font-normal   { font-weight: 400; }
.axe-font-medium   { font-weight: 500; }
.axe-font-semibold { font-weight: 600; }
.axe-font-bold     { font-weight: 700; }

.axe-uppercase { text-transform: uppercase; }
.axe-nowrap    { white-space: nowrap; }
.axe-center    { text-align: center; }
.axe-right     { text-align: right; }
.axe-left      { text-align: left; }


/* ══════════════════════════════════════
   4. Layout
   ══════════════════════════════════════ */
.axe-container {
  max-width: var(--axe-max-width);
  margin: 0 auto;
  padding: 0 var(--axe-space-xl);
}

.axe-section {
  padding: var(--axe-space-2xl) var(--axe-space-xl);
  max-width: var(--axe-max-width);
  margin: 0 auto;
}

.axe-sep { border-top: 1px solid var(--axe-border); }

.axe-grid {
  display: grid;
  gap: var(--axe-space-md);
}
.axe-grid-2 { grid-template-columns: repeat(2, 1fr); }
.axe-grid-3 { grid-template-columns: repeat(3, 1fr); }
.axe-grid-4 { grid-template-columns: repeat(4, 1fr); }
.axe-grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.axe-grid-auto-lg {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.axe-flex       { display: flex; }
.axe-flex-col   { flex-direction: column; }
.axe-flex-wrap  { flex-wrap: wrap; }
.axe-items-center   { align-items: center; }
.axe-justify-between { justify-content: space-between; }
.axe-justify-center  { justify-content: center; }
.axe-gap-sm { gap: var(--axe-space-sm); }
.axe-gap-md { gap: var(--axe-space-md); }
.axe-gap-lg { gap: var(--axe-space-lg); }


/* ══════════════════════════════════════
   5. Components
   ══════════════════════════════════════ */

/* ── Nav ── */
.axe-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: var(--axe-space-sm) var(--axe-space-xl);
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(26, 6, 16, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--axe-border);
}

.axe-logo {
  font-family: var(--axe-font-heading);
  font-size: 1.1rem; font-weight: 400;
  color: var(--axe-accent);
  text-decoration: none; white-space: nowrap;
}

.axe-nav-link {
  color: var(--axe-gray); font-size: 0.82rem;
  text-decoration: none; text-transform: uppercase;
  transition: color 0.3s;
}
.axe-nav-link:hover, .axe-nav-link.active { color: var(--axe-accent); }

/* ── Block Title ── */
.axe-block-title {
  font-family: var(--axe-font-heading);
  font-size: 1.1rem; font-weight: 400;
  color: var(--axe-accent);
  margin-bottom: var(--axe-space-md);
  letter-spacing: 0.02em;
}

/* ── Section Heading & Desc ── */
.axe-section-heading {
  font-size: 2.4rem; font-weight: 400;
  margin-bottom: var(--axe-space-md);
  line-height: 1.3;
}

.axe-section-desc {
  font-size: var(--axe-font-size);
  color: var(--axe-gray);
  line-height: 1.9;
  max-width: 620px;
}

/* ── Section Alt Background ── */
.axe-section-alt {
  background: var(--axe-navy-light);
}

/* ── Nav Title ── */
.axe-nav-title {
  font-family: var(--axe-font-heading);
  font-size: 1.1rem; font-weight: 400;
  color: var(--axe-white);
}

/* ── Stat Box ── */
.axe-stat-box {
  background: var(--axe-navy-mid);
  border: 1px solid var(--axe-border);
  border-radius: var(--axe-radius);
  padding: 1.2rem 1.5rem;
}

.axe-stat-label {
  font-size: 0.88rem; color: var(--axe-white);
  line-height: 1.2;
}

.axe-stat-value {
  font-family: var(--axe-font-heading);
  font-size: 1.6rem; font-weight: 400;
  color: var(--axe-accent);
  line-height: 1.3;
}

.axe-stat-change {
  font-size: 0.78rem; color: var(--axe-green);
  line-height: 1.3;
}

/* ── Card ── */
.axe-card {
  background: var(--axe-navy-mid);
  border: 1px solid var(--axe-border);
  border-radius: var(--axe-radius);
  padding: 1.2rem 1.5rem;
  transition: all 0.4s ease;
}

.axe-card:hover {
  border-color: rgba(227, 255, 102, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.axe-card-title {
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 0.5rem;
}

.axe-card-body {
  font-size: 0.95rem; color: var(--axe-gray);
  line-height: 1.8;
}

/* ── Card Icon ── */
.axe-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--axe-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--axe-space-md);
  font-size: 1.4rem;
  background: var(--axe-accent-glow);
  color: var(--axe-accent);
}

.axe-card-icon-center {
  margin: 0 auto var(--axe-space-md);
}

/* ── Tag / Badge ── */
.axe-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase;
  color: var(--axe-accent);
  background: var(--axe-accent-glow);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* ── Table ── */
.axe-table-wrap {
  overflow-x: auto;
  border-radius: var(--axe-radius-lg);
  border: 1px solid var(--axe-border);
}

.axe-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.92rem;
}

.axe-table thead th {
  background: var(--axe-navy-mid);
  color: var(--axe-accent);
  font-weight: 400; font-size: 0.92rem;
  padding: 0.9rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--axe-border);
  white-space: nowrap;
}
.axe-table thead th:first-child { text-align: left; }

.axe-table tbody td {
  padding: 0.7rem 1rem;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--axe-white);
  white-space: nowrap;
}
.axe-table tbody td:first-child {
  text-align: left; color: var(--axe-gray-light); font-weight: 500;
}
.axe-table tbody tr:last-child td { border-bottom: none; }
.axe-table tbody tr:hover { background: rgba(227, 255, 102, 0.02); }

/* Table helpers */
.axe-tbl-section td {
  background: rgba(227, 255, 102, 0.04);
  font-weight: 600;
  color: var(--axe-white) !important;
  border-top: 1px solid var(--axe-border);
}
.axe-tbl-indent td:first-child { padding-left: 2rem; }
.axe-tbl-total td { font-weight: 700; }
.axe-tbl-highlight { font-weight: 700; color: var(--axe-accent) !important; }
.axe-tbl-pos { color: var(--axe-green) !important; }
.axe-tbl-neg { color: var(--axe-red) !important; }
.axe-tbl-muted { color: var(--axe-gray) !important; }

/* ── Letter / Prose ── */
.axe-prose p {
  color: var(--axe-gray-light);
  line-height: 2;
  margin-bottom: 1.4rem;
}

/* ── Chart Container ── */
.axe-chart-wrap {
  background: var(--axe-navy-mid);
  border: 1px solid var(--axe-border);
  border-radius: var(--axe-radius-lg);
  padding: var(--axe-space-md);
}

/* ── Fixed Bottom Bar ── */
.axe-bottom-bar {
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 200;
  background: rgba(26, 6, 16, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--axe-border);
  padding: 0.55rem 2rem;
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--axe-gray);
}

/* ── Footnote ── */
.axe-footnote {
  font-size: 0.78rem; color: var(--axe-gray);
  margin-top: 0.8rem; line-height: 1.6;
}


/* ══════════════════════════════════════
   6. Spacing Utilities
   ══════════════════════════════════════ */
.axe-mt-0  { margin-top: 0; }
.axe-mt-xs { margin-top: var(--axe-space-xs); }
.axe-mt-sm { margin-top: var(--axe-space-sm); }
.axe-mt-md { margin-top: var(--axe-space-md); }
.axe-mt-lg { margin-top: var(--axe-space-lg); }
.axe-mt-xl { margin-top: var(--axe-space-xl); }

.axe-mb-0  { margin-bottom: 0; }
.axe-mb-xs { margin-bottom: var(--axe-space-xs); }
.axe-mb-sm { margin-bottom: var(--axe-space-sm); }
.axe-mb-md { margin-bottom: var(--axe-space-md); }
.axe-mb-lg { margin-bottom: var(--axe-space-lg); }

.axe-p-sm { padding: var(--axe-space-sm); }
.axe-p-md { padding: var(--axe-space-md); }
.axe-p-lg { padding: var(--axe-space-lg); }


/* ══════════════════════════════════════
   7. Responsive
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  .axe-nav { padding: 0.8rem 1.5rem; }
  .axe-section { padding: 3.5rem 1.5rem; }
  .axe-container { padding: 0 1.5rem; }
  .axe-grid-2, .axe-grid-3, .axe-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .axe-grid-auto-lg { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .axe-grid-2, .axe-grid-3, .axe-grid-4,
  .axe-grid-auto { grid-template-columns: 1fr; }
  .axe-stat-value { font-size: 1.3rem; }
  .axe-table { font-size: 0.8rem; }
  .axe-table thead th, .axe-table tbody td { padding: 0.5rem 0.6rem; }
}

@media print {
  body { background: #fff; color: #111; font-size: 0.9rem; }
  .axe-nav, .axe-bottom-bar { display: none; }
  .axe-section { padding: 1.5rem 1rem; }
  .axe-card, .axe-stat-box, .axe-chart-wrap { border-color: #ddd; background: #f9f9f9; }
  .axe-stat-value, .axe-block-title { color: #333; }
  .axe-table thead th { background: #eee; color: #333; }
  .axe-table tbody td { color: #333; }
}
