/* ============================================================
   XpertSiM Platform — academy.css  v4.0 · 2026
   Built for PERLUXI Academy

   Aesthetic:
     · Deep XpertSiM Navy base (#000032) — clean, technical, premium
     · Blue (#0F67CF) as the PRIMARY interactive accent
     · Yellow (#CFA20E) used sparingly as a spark accent only
     · Sky (#85B7E8) soft secondary highlight
     · Subtle line-art "S" watermark + faint diamond lattice — no gold auras
     · Clean borders over heavy glows
     · Funnel Display (headlines) + Lexend (body/buttons)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@400;500;600;700&family=Lexend:wght@300;400;500;600;700&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* XpertSiM Navy base */
  --bg:          #000032;
  --bg-2:        #04043f;
  --surface:     #0a0a47;
  --surface-2:   #0f1056;
  --surface-3:   #161a6b;
  --border:      rgba(255,255,255,0.10);
  --border-glow: rgba(15,103,207,0.45);
  --border-blue: rgba(133,183,232,0.30);

  --text:        #f2f2f2;
  --text-muted:  rgba(242,242,242,0.66);
  --text-faint:  rgba(242,242,242,0.40);

  /* Blue palette — PRIMARY accent (replaces gold) */
  --gold:        #0F67CF;
  --gold-light:  #85B7E8;
  --gold-bright: #aaccf2;
  --gold-dim:    rgba(15,103,207,0.16);
  --gold-glow:   rgba(15,103,207,0.32);

  /* Explicit brand tokens */
  --blue:        #0F67CF;
  --blue-light:  #85B7E8;
  --blue-dim:    rgba(15,103,207,0.16);
  --blue-glow:   rgba(15,103,207,0.30);
  --sky:         #85B7E8;

  /* Yellow — sparing SPARK accent only (underline bars, tiny highlights) */
  --spark:       #CFA20E;
  --spark-dim:   rgba(207,162,14,0.16);

  --font:         'Lexend', system-ui, sans-serif;
  --font-display: 'Funnel Display', 'Lexend', system-ui, sans-serif;

  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 14px;

  --shadow-tile:  0 8px 32px rgba(0,0,0,0.55);
  --shadow-hover: 0 20px 56px rgba(0,0,0,0.70), 0 0 0 1px var(--border-glow);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════════════════════
   CINEMATIC BACKGROUND
   Layer 1: deep obsidian base
   Layer 2: gold aura orb (top-right) + blue orb (left) — animated
   Layer 3: perspective grid — strong fade from bottom
   ═══════════════════════════════════════════════════════════ */

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

/* ── Gold + Blue aura orbs ───────────────────────────────── */
/* We use two separate child divs for independent animation */
.bg-stage .aura-gold {
  position: absolute;
  width: 72vw;
  height: 72vw;
  top: -20vw;
  right: -18vw;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(15,103,207,0.22) 0%,
    rgba(15,103,207,0.08) 35%,
    transparent 68%
  );
  animation: aura-float-gold 22s ease-in-out infinite alternate;
  filter: blur(2px);
}

.bg-stage .aura-blue {
  position: absolute;
  width: 80vw;
  height: 80vw;
  bottom: -25vw;
  left: -22vw;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(15,103,207,0.30) 0%,
    rgba(15,103,207,0.14) 38%,
    transparent 68%
  );
  animation: aura-float-blue 28s ease-in-out infinite alternate;
  filter: blur(4px);
}

/* A subtle third micro-orb for depth */
.bg-stage .aura-mid {
  position: absolute;
  width: 40vw;
  height: 40vw;
  top: 40%;
  left: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(15,103,207,0.18) 0%,
    transparent 60%
  );
  animation: aura-float-mid 35s ease-in-out infinite alternate;
}

@keyframes aura-float-gold {
  0%   { transform: translate(0,    0)    scale(1);    opacity: 0.85; }
  30%  { transform: translate(-6vw, 4vw)  scale(1.08); opacity: 1;    }
  60%  { transform: translate(4vw,  8vw)  scale(0.94); opacity: 0.75; }
  100% { transform: translate(-10vw,2vw)  scale(1.12); opacity: 0.95; }
}

@keyframes aura-float-blue {
  0%   { transform: translate(0,    0)    scale(1);    opacity: 0.80; }
  25%  { transform: translate(8vw, -5vw)  scale(1.10); opacity: 1;    }
  55%  { transform: translate(-4vw, 6vw)  scale(0.92); opacity: 0.70; }
  100% { transform: translate(12vw,-8vw)  scale(1.06); opacity: 0.90; }
}

@keyframes aura-float-mid {
  0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.6; }
  50%  { transform: translate(-44%, -56%) scale(1.15); opacity: 1;   }
  100% { transform: translate(-56%, -44%) scale(0.88); opacity: 0.5; }
}

/* ── Grid: flat, centered, radial fade from centre ──────── */
.bg-stage .grid-layer {
  position: absolute;
  /* Centred square, large enough to fill any screen */
  width: 140vmax;
  height: 140vmax;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* No perspective — completely flat */

  background-image:
    linear-gradient(rgba(133,183,232,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133,183,232,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  background-position: center center;

  /* Radial mask: fully visible at centre, fades to transparent at edges */
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 50%,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.40) 40%,
    transparent 72%
  );
  mask-image: radial-gradient(ellipse 55% 55% at 50% 50%,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.40) 40%,
    transparent 72%
  );
  /* Completely static — no animation */
  opacity: 0.85;
}

/* ── Shell ───────────────────────────────────────────────── */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Brand bar ───────────────────────────────────────────── */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,11,16,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
/* Brand bar logo — perluxi-white.png / perluxi-color.png now contain the
   PERLUXI Academy wordmark. Height-locked so the natural aspect ratio is
   preserved (no max-width, which would squash the wider wordmark). */
.brand__logo {
  height: 26px;
  width: auto;
  max-width: none;
  object-fit: contain;
}
.brand__logo--light { display: none; }
.brand__logo--dark  { display: block; }

/* The wordmark already reads "PERLUXI ACADEMY" — hide the redundant sub-label. */
.brand .brand__name { display: none; }

/* ── XpertSiM brand lockup (shared across all pages) ─────── */
.brand__xlogo { height: 24px; width: auto; display: block; }
.brand__built {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  padding-left: 13px;
  margin-left: 2px;
  border-left: 1px solid rgba(255,255,255,0.16);
}
.brand__built b {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand__built small {
  font-size: 8.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--sky, #85B7E8);
  margin-top: 2px;
}
@media (max-width: 560px) { .brand__built small { display: none; } }

.brand__name {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}
.brand__sub {
  color: var(--gold);
  font-weight: 400;
}

.brand-bar__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

/* ── Log-out button ───────────────────────────────────────────
   Sits at the far right of the brand bar. Brand gold by default for
   clear visibility; brightens with a soft glow + icon nudge on hover. */
.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 11px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #0F67CF);
  background: var(--gold-dim, rgba(15,103,207,0.14));
  border: 1px solid rgba(15,103,207,0.50);
  border-radius: 8px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
  line-height: 1;
}
.logout-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}
.logout-btn:hover {
  color: var(--gold-light, #85B7E8);
  background: rgba(15,103,207,0.22);
  border-color: var(--gold-light, #85B7E8);
  box-shadow: 0 4px 16px rgba(15,103,207,0.30);
}
.logout-btn:hover svg { transform: translateX(3px); }
.logout-btn:active { transform: translateY(1px); }
.logout-btn__label { display: inline-block; }
@media (max-width: 560px) {
  .logout-btn__label { display: none; }
  .logout-btn { padding: 7px 10px; }
}
.brand-bar__meta .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(15,103,207,0.70), 0 0 20px rgba(15,103,207,0.35);
  animation: dot-pulse 2.6s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);    box-shadow: 0 0 10px rgba(15,103,207,0.70), 0 0 20px rgba(15,103,207,0.35); }
  50%       { opacity: 0.4; transform: scale(0.70); box-shadow: 0 0 4px  rgba(15,103,207,0.30); }
}

/* ── Category nav ────────────────────────────────────────── */
.nav {
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,11,16,0.50);
  backdrop-filter: blur(8px);
}
.nav__items {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__items::-webkit-scrollbar { display: none; }

.nav__tab {
  position: relative;
  padding: 16px 22px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.nav__tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__tab:hover { color: var(--text-muted); }
.nav__tab.active { color: var(--text); }
.nav__tab.active::after { transform: scaleX(1); }

/* ── Greeting ────────────────────────────────────────────── */
.greeting {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 6px;
  flex-wrap: wrap;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}
.greeting__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fade-up 0.55s ease 0.1s forwards;
}
.greeting__title strong {
  font-weight: 600;
  color: var(--gold-light);
  /* Subtle glow on the word */
  text-shadow: 0 0 24px rgba(15,103,207,0.40);
}
/* .greeting__hint removed */

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

/* ── Section label ───────────────────────────────────────── */
.section-label {
  padding: 20px 28px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  opacity: 0;
  animation: fade-in 0.4s ease 0.3s forwards;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   TILE GRID — constrained width, compact cards
   ═══════════════════════════════════════════════════════════ */
.tiles-wrap {
  padding: 0 28px 48px;
  /* Constrain so tiles don't balloon on huge screens */
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.tiles {
  display: grid;
  /* Course catalog: a small number of larger, premium cards.
     Two columns, each comfortably sized but not oversized, centered. */
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 24px;
  /* Center the grid in the available width */
  justify-content: center;
  /* Total opacity/animation handled per-tile via JS stagger */
}

@media (max-width: 760px) {
  .tiles { grid-template-columns: minmax(0, 340px); }
}
@media (max-width: 420px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   TILE CARD — portrait, hover reveals details
   ═══════════════════════════════════════════════════════════ */
.tile {
  position: relative;
  aspect-ratio: 3 / 4.2;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow-tile);
  transition:
    transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Entrance animation — set by JS */
  will-change: transform, opacity;
}

.tile:hover {
  transform: translateY(-8px) scale(1.025);
  /* Gold glow — uniform across all categories */
  box-shadow:
    0 20px 56px rgba(0,0,0,0.80),
    0 0 0 1px rgba(15,103,207,0.50),
    0 0 32px rgba(15,103,207,0.16),
    0 0 72px rgba(15,103,207,0.07);
  border-color: rgba(15,103,207,0.50);
  z-index: 10;
}

/* (Corner L-bracket accents removed by request — cleaner card edges.) */

/* ── Tile background fill ──────────────────────────────────── */
.tile__bg {
  position: absolute;
  inset: 0;
  background: var(--tile-bg, linear-gradient(160deg, #121f3a 0%, #08111e 100%));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  z-index: 0;
}
/* Cover-photo background — fills the card */
.tile__bg--img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tile:hover .tile__bg {
  transform: scale(1.07);
}

/* Bottom gradient scrim */
.tile__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(4, 6, 12, 0.96) 0%,
    rgba(4, 6, 12, 0.55) 42%,
    rgba(4, 6, 12, 0.12) 68%,
    transparent 80%
  );
  z-index: 1;
  transition: opacity 0.3s ease;
}
/* On hover, keep scrim subtle — glass panel handles the bottom */
.tile:hover .tile__scrim {
  background: linear-gradient(to top,
    rgba(4,6,12,0.65) 0%,
    rgba(4,6,12,0.28) 45%,
    transparent 70%
  );
}

/* ── Category badge — top left ──────────────────────────── */
.tile__badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 4;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--border-glow);
  background: rgba(15,103,207,0.10);
  color: var(--gold-light);
  border-radius: var(--r-sm);
  line-height: 1.4;
  backdrop-filter: blur(4px);
  /* Badge sits above the corner bracket, shift right */
  left: 28px;
  top: 8px;
}
.tile__badge--bkr {
  border-color: rgba(207,162,14,0.50);
  background: rgba(207,162,14,0.12);
  color: #CFA20E;
}
.tile__badge--soon {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--text-faint);
}

/* ═══════════════════════════════════════════════════════════
   TILE FOOTER — single container, all text stacked vertically.

   Structure inside .tile__footer:
     .tile__title   — always visible
     .tile__dur     — always visible
     .tile__reveal  — description + CTA, hidden below clip edge

   At rest:  footer sits at bottom, .tile__reveal is below
             the card's overflow:hidden clip edge (invisible).
   On hover: footer translates UP by the reveal height,
             pulling .tile__reveal into view from below.
             Title + duration ride along — they float up with it.
   ═══════════════════════════════════════════════════════════ */

.tile__footer {
  position: absolute;
  left: 0; right: 0;
  z-index: 3;
  padding: 0 14px 14px;
  /*
   * KEY: footer is bottom-anchored. .tile__reveal is below the card edge,
   * clipped by overflow:hidden. On hover translateY(-95) pulls it into view.
   *
   * bottom: -87px keeps the reveal hidden while leaving ~16px of breathing
   * room under the last always-visible line (duration / level) so the text
   * no longer sits flush against the card's bottom edge. The extra 8px the
   * footer was raised is absorbed by reveal padding-top (10 -> 18) so the
   * reveal stays clipped at rest and the hover travel (95px) is unchanged.
   */
  bottom: -87px;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* On hover: translate up so the reveal snaps into view and the CTA clears
   the bottom edge with matching breathing room. */
.tile:hover .tile__footer {
  transform: translateY(-95px);
}

.tile__title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--text);
  text-transform: uppercase;
  word-break: break-word;
  hyphens: auto;
}

.tile__dur {
  display: flex;            /* own line, below the level badge */
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  margin-bottom: 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tile__dur::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}

/* ── Reveal block — hidden below the card edge at rest ────── */
.tile__reveal {
  /* padding-top absorbs the 8px the footer was raised for bottom breathing
     room, keeping the reveal clipped below the card edge at rest. */
  padding-top: 18px;
  /* Invisible at rest — below the overflow:hidden clip */
}

/* Gold separator — only visible once reveal is in view */
.tile__reveal::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity 0.2s ease 0.1s;
}
.tile:hover .tile__reveal::before {
  opacity: 0.55;
}

.tile__lead {
  font-size: 0.66rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.tile__cta::after {
  content: '→';
  font-size: 0.66rem;
}

/* ── Coming-soon tiles ─────────────────────────────────────── */
.tile--soon {
  cursor: default;
  pointer-events: none;
}
/* Coming-soon cards are pushed distinctly darker than active cards so it's
   immediately obvious they aren't usable yet. */
.tile--soon .tile__bg {
  filter: saturate(0.32) brightness(0.4);
}
.tile--soon .tile__scrim {
  background: linear-gradient(to top,
    rgba(2, 4, 10, 0.98) 0%,
    rgba(2, 4, 10, 0.94) 30%,
    rgba(2, 4, 10, 0.74) 58%,
    rgba(2, 4, 10, 0.6) 80%,
    rgba(2, 4, 10, 0.5) 100%
  );
}
.tile--soon .tile__title { color: #D7DEE8; }

/* Coming-soon badge — CENTERED on the card, stacked: label over date window */
.tile__soon-tag {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 20px;
  border-radius: 10px;
  text-align: center;
  background: rgba(8, 12, 28, 0.78);
  border: 1px solid rgba(133, 183, 232, 0.55);
  box-shadow: 0 6px 22px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}
.tile__soon-main {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.tile__soon-date {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding-top: 5px;
  border-top: 1px solid rgba(133, 183, 232, 0.3);
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   LEVEL TRACK BADGE — inline in the footer, between course name & duration.
   Shows level NAME + a 2-segment meter + an "N of 2" count.
   Scales to Intermediate by filling both segments and reading "2 of 2".
   ═══════════════════════════════════════════════════════════ */
.tile__level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.tile__level-name {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.tile__level-meter {
  display: inline-flex;
  gap: 3px;
}
.tile__level-count {
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.lvl-seg {
  width: 12px; height: 3px;
  border-radius: 2px;
  background: rgba(133, 183, 232, 0.22);
}
.lvl-seg--on { background: var(--gold-light); }
.tile--soon .tile__level-name { color: var(--text-muted); }
.tile--soon .lvl-seg--on { background: var(--text-muted); }

/* ── “Built for” partner credit — above the title in the footer ── */
.tile__partner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.tile__partner small {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.tile__partner-logo {
  height: 15px;
  width: auto;
  display: block;
  opacity: 0.95;
}

/* ── Per-category tints (more vivid for the luxury look) ──── */
/* Category tints — all within the XpertSiM Navy/Blue family for cohesion.
   Subtle hue shifts distinguish tracks without leaving the brand palette. */
.tile[data-category="capstone"]       { --tile-bg: linear-gradient(155deg, #0f3a8a 0%, #00072e 100%); }
.tile[data-category="negotiation"]    { --tile-bg: linear-gradient(155deg, #102a6b 0%, #00072e 100%); }
.tile[data-category="strategy"]       { --tile-bg: linear-gradient(155deg, #14306e 0%, #02093a 100%); }
.tile[data-category="finance"]        { --tile-bg: linear-gradient(155deg, #0c2456 0%, #00062b 100%); }
.tile[data-category="communications"] { --tile-bg: linear-gradient(155deg, #1a3f86 0%, #030b3a 100%); }
.tile[data-category="leadership"]     { --tile-bg: linear-gradient(155deg, #173a7a 0%, #020838 100%); }

/* (gold hover glow consolidated into .tile:hover above) */

/* ── Subpage (simulation detail page) ─────────────────────── */
.subpage {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 28px 64px;
  width: 100%;
  opacity: 0;
  animation: fade-up 0.45s ease 0.1s forwards;
}
.subpage__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 36px;
  transition: color 0.18s ease;
}
.subpage__back:hover { color: var(--gold); }

.subpage__eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.subpage__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}
.subpage__divider {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 24px;
}
.subpage__lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 36px;
}
.subpage__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}
.subpage__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}
.subpage__card h4 {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.subpage__card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.subpage__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1.5px solid var(--border-glow);
  border-radius: var(--r-md);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.subpage__cta:hover {
  background: var(--gold-dim);
  box-shadow: 0 4px 24px rgba(15,103,207,0.28);
}

/* ── BCF Sim — token overrides ───────────────────────────── */
:root, [data-theme="dark"] {
  --bg:            #000032;
  --surface:       #0a0a47;
  --surface-2:     #0f1056;
  --surface-3:     #161a6b;
  --surface-glass: rgba(0,0,50,0.80);
  --border:        rgba(255,255,255,0.10);
  --border-soft:   rgba(255,255,255,0.06);
  --divider:       rgba(255,255,255,0.06);
  --text:          #f2f2f2;
  --muted:         rgba(242,242,242,0.66);
  --faint:         rgba(242,242,242,0.40);
  --header-glass:  rgba(0,0,50,0.85);
  --shadow-sm:     0 4px 16px rgba(0,0,0,0.55);
  --shadow-md:     0 10px 32px rgba(0,0,0,0.65);
  --shadow-lg:     0 20px 56px rgba(0,0,0,0.75);
  --shadow-cta:    0 4px 24px rgba(15,103,207,0.28);
  --perluxi-gold:       #0F67CF;
  --perluxi-gold-light: #85B7E8;
  --perluxi-gold-dim:   rgba(15,103,207,0.14);
  --accent: #CFA20E;
  --gradient-text: linear-gradient(135deg, #85B7E8 0%, #f2f2f2 55%, #0F67CF 100%);
  --gradient-cta:  linear-gradient(135deg, #0F67CF 0%, #2e84e0 100%);
}
[data-theme="light"] {
  --bg:           #F2F2F2;
  --surface:      #ffffff;
  --surface-2:    #E6E6E6;
  --header-glass: rgba(242,242,242,0.92);
  --text:         #000032;
  --muted:        #3a3a5c;
  --faint:        #6c6c85;
  --perluxi-gold:       #0F67CF;
  --perluxi-gold-light: #85B7E8;
  --perluxi-gold-dim:   rgba(15,103,207,0.14);
}

/* BCF bg-stage — same treatment */
/* (These selectors intentionally duplicate for BCF pages that only load academy.css) */
.bg-stage .aura-gold,
.bg-stage .aura-blue,
.bg-stage .aura-mid,
.bg-stage .grid-layer {
  /* Already defined above — these just ensure BCF inherits them */
}

/* Topbar overrides */
.topbar .perluxi-logo { height: 24px; display: flex; align-items: center; }
.topbar .perluxi-logo img { height: 24px; width: auto; }
.topbar .brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--perluxi-gold);
}
.ghost-btn:hover {
  border-color: var(--perluxi-gold-dim);
  color: var(--perluxi-gold-light);
  background: var(--perluxi-gold-dim);
  box-shadow: none;
}
.cta-btn {
  background: linear-gradient(135deg, #0F67CF 0%, #85B7E8 100%);
  color: #080b10;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(15,103,207,0.28);
}
.hero h1 {
  background: linear-gradient(135deg, #85B7E8 0%, #eaeaea 60%, #0F67CF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-dropdown-item:hover {
  background: var(--perluxi-gold-dim);
  color: var(--perluxi-gold-light);
}
.day-card:hover { border-color: var(--perluxi-gold-dim); }
.site-footer a, .foot a { color: var(--perluxi-gold); }

/* ── Footer ──────────────────────────────────────────────── */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  margin-top: auto;
}
.foot a { color: var(--text-faint); transition: color 0.18s ease; }
.foot a:hover { color: var(--gold); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .brand-bar    { padding: 12px 16px; }
  .nav          { padding: 0 16px; }
  .greeting     { padding: 20px 16px 4px; }
  .section-label{ padding: 16px 16px 8px; }
  .tiles-wrap   { padding: 0 16px 32px; }
  .tiles        { gap: 8px; }
  .subpage      { padding: 32px 16px 48px; }
  .foot         { padding: 14px 16px; flex-direction: column; text-align: center; gap: 6px; }
  .brand-bar__meta { display: none; }
}
