/* ==========================================================================
   NEXLYRA STUDIO | 21ST.DEV & MODERN TACTILE DESIGN SYSTEM
   Automatic Native OS System Preference Engine (Zero manual buttons)
   ========================================================================== */
:root {
  --bg: #f5f7fb;
  --bg-subtle: #ebf0f7;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-hover: #f1f5fa;
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-border: #d9e1ee;
  --ink: #0b0f19;
  --ink-secondary: #48546c;
  --ink-muted: #526079;
  --ink-faint: #64748b;
  --line: #d9e1ee;
  --line-subtle: #e7ecf5;
  --pri: #2554f6;
  --pri-hover: #1944da;
  --pri-subtle: #ecf2ff;
  --pri-glow: rgba(37, 84, 246, 0.18);
  --on-pri: #ffffff;
  --navy: #090e1a;
  --navy-surface: #101728;
  --navy-line: #1c2740;
  --emerald: #0d824d;
  --emerald-subtle: #e6f7ef;
  --amber: #b86200;
  --amber-subtle: #fff4dc;
  --rose: #cf222e;
  --rose-subtle: #ffebe9;
  --card-border-glow: rgba(37, 84, 246, 0.12);
  --shadow-sm: 0 1px 3px rgba(11, 15, 25, 0.04);
  --shadow-md: 0 4px 18px -2px rgba(11, 15, 25, 0.07);
  --shadow-lg: 0 18px 42px -6px rgba(11, 15, 25, 0.1);
  --shadow-3d: 0 20px 48px -12px rgba(11, 15, 25, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --font-sans: 'Schibsted Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  /* 21st.dev NX Chromatic Shader Hero Tokens */
  --nx-canvas: #F6F7FB;
  --nx-border: #E3E6F0;
  --nx-ink: #0C1020;
  --nx-blue: #2F54EB;
  --nx-body: #4A5470;
  --nx-glow: rgba(99, 102, 241, 0.10);
  --nx-btn-bg: #2F54EB;
  --nx-btn-bg-hover: #2646CC;
  --nx-btn-shadow: rgba(47, 84, 235, 0.6);
  --nx-sec-bg: #ffffff;
  --nx-sec-border: #E1E4EF;
  --nx-sec-border-hover: #C7CDE3;
  --nx-focus: #0C1020;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060a12;
    --bg-subtle: #0b111e;
    --surface: #0f1625;
    --surface-alt: #131c2e;
    --surface-hover: #172238;
    --header-bg: rgba(6, 10, 18, 0.85);
    --header-border: #192336;
    --ink: #f0f3fa;
    --ink-secondary: #9cb0d1;
    --ink-muted: #94a3b8;
    --ink-faint: #8ca3c8;
    --line: #192336;
    --line-subtle: #131b2b;
    --pri: #527bff;
    --pri-hover: #6d90ff;
    --pri-subtle: #111a33;
    --pri-glow: rgba(82, 123, 255, 0.25);
    --on-pri: #ffffff;
    --navy: #04070d;
    --navy-surface: #090e1a;
    --navy-line: #141c2c;
    --emerald: #26c278;
    --emerald-subtle: #0d2a1c;
    --amber: #ffaa2c;
    --amber-subtle: #332007;
    --rose: #ff6b7b;
    --rose-subtle: #301015;
    --card-border-glow: rgba(82, 123, 255, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 6px 22px -2px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 56px -8px rgba(0, 0, 0, 0.65);
    --shadow-3d: 0 24px 56px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    /* 21st.dev NX Chromatic Shader Hero Tokens (Dark) */
    --nx-canvas: #0A0E1D;
    --nx-border: #1B2240;
    --nx-ink: #F5F7FF;
    --nx-blue: #7A97FF;
    --nx-body: #A9B2CE;
    --nx-glow: rgba(99, 102, 241, 0.22);
    --nx-btn-bg: #2F54EB;
    --nx-btn-bg-hover: #4262F0;
    --nx-btn-shadow: rgba(47, 84, 235, 0.55);
    --nx-sec-bg: rgba(255, 255, 255, 0.05);
    --nx-sec-border: #2A3359;
    --nx-sec-border-hover: #3E4B80;
    --nx-focus: #F5F7FF;
    color-scheme: dark;
  }
}

:root[data-theme="dark"], :root.dark {
  --nx-canvas: #0A0E1D;
  --nx-border: #1B2240;
  --nx-ink: #F5F7FF;
  --nx-blue: #7A97FF;
  --nx-body: #A9B2CE;
  --nx-glow: rgba(99, 102, 241, 0.22);
  --nx-btn-bg: #2F54EB;
  --nx-btn-bg-hover: #4262F0;
  --nx-btn-shadow: rgba(47, 84, 235, 0.55);
  --nx-sec-bg: rgba(255, 255, 255, 0.05);
  --nx-sec-border: #2A3359;
  --nx-sec-border-hover: #3E4B80;
  --nx-focus: #F5F7FF;
}

/* Base Reset & Core */
*, *::before, *::after { box-sizing: border-box; }

/* Invisible Scrollbars - Full native scrolling preserved without visual bar clutter */
html,
body,
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  background: linear-gradient(to bottom, var(--bg) 50%, var(--navy) 50%) no-repeat;
  background-attachment: fixed;
}
section[id] {
  scroll-margin-top: 100px;
}
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: clip;
}

main,
#main-content {
  flex: 1 0 auto;
}

/* 21st.dev Ambient Glow Layer */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 600px;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, var(--pri-glow), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   NEXLYRA STUDIO | 21ST.DEV CHROMATIC WEBGL SHADER HERO
   Ultra-fluid, high-performance viewport entrance with staged motion choreography
   ========================================================================== */
.nx-hero, .nx-hero * { box-sizing: border-box; }
.nx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--nx-canvas);
  font-family: 'Inter', var(--font-sans), ui-sans-serif, system-ui, sans-serif;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.nx-shader {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
}
.nx-shader-in {
  position: absolute;
  inset: 0;
}
.nx-shader canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.nx-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60rem 16rem at 50% 0%, var(--nx-glow), transparent 70%);
  pointer-events: none;
}
.nx-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6.5rem;
  position: relative;
  z-index: 1;
}
.nx-title {
  margin: 0;
  max-width: 52rem;
  color: var(--nx-ink);
  font-size: clamp(2.5rem, 5.8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.nx-line {
  display: block;
  overflow: hidden;
  padding: 0.08em 0 0.16em;
  margin: -0.08em 0 -0.16em;
}
.nx-in {
  display: block;
}
.nx-accent {
  color: var(--nx-blue);
}
.nx-lead {
  margin: 1.8rem 0 0;
  max-width: 44rem;
  color: var(--nx-body);
  font-size: 1.125rem;
  line-height: 1.68;
}
.nx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 0.75rem;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.nx-btn-primary {
  background: var(--nx-btn-bg);
  color: #ffffff;
  box-shadow: 0 10px 24px -10px var(--nx-btn-shadow);
}
.nx-btn-primary:hover {
  background: var(--nx-btn-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px var(--nx-btn-shadow);
}
.nx-btn-secondary {
  background: var(--nx-sec-bg);
  color: var(--nx-ink);
  border: 1px solid var(--nx-sec-border);
}
.nx-btn-secondary:hover {
  border-color: var(--nx-sec-border-hover);
  transform: translateY(-2px);
}
.nx-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}
.nx-btn-secondary:hover svg {
  transform: translateX(3px);
}
.nx-btn:focus-visible {
  outline: 3px solid var(--nx-focus);
  outline-offset: 4px;
}

/* Scroll indicator pill at bottom of hero */
.nx-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  animation: nx-fade 1.5s ease-out 1.3s backwards;
}
.nx-scroll-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 9999px;
  background: var(--nx-sec-bg);
  border: 1px solid var(--nx-sec-border);
  color: var(--nx-body);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.nx-scroll-pill:hover {
  color: var(--nx-ink);
  border-color: var(--nx-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--pri-glow);
}
.nx-scroll-pill svg {
  width: 14px;
  height: 14px;
  color: var(--nx-blue);
  animation: nx-bounce 2s infinite ease-in-out;
}
@keyframes nx-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (min-width: 640px) {
  .nx-wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .nx-lead {
    font-size: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .nx-wrap {
    padding-top: 5.5rem;
    padding-bottom: 7rem;
  }
  .nx-shader {
    left: 28%;
    opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000000 45%);
    mask-image: linear-gradient(90deg, transparent 0%, #000000 45%);
  }
}

/* Staged load-in choreography */
@keyframes nx-focus { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: none; } }
@keyframes nx-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes nx-rise  { from { transform: translateY(112%); } to { transform: none; } }
@keyframes nx-float { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes nx-lift  { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes nx-cast  { from { box-shadow: 0 0 0 0 transparent; } to { box-shadow: 0 10px 24px -10px var(--nx-btn-shadow); } }
@keyframes nx-draw  { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.nx-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--nx-border);
  transform-origin: left center;
  animation: nx-draw 1.6s cubic-bezier(.65, 0, .35, 1) 0.2s backwards;
}
.nx-shader-in { animation: nx-focus 2.4s cubic-bezier(.16, 1, .3, 1) backwards; }
.nx-glow { animation: nx-fade 2s ease-out 0.1s backwards; }
.nx-in { animation: nx-rise 1.15s cubic-bezier(.16, 1, .3, 1) 0.25s backwards; }
.nx-line + .nx-line .nx-in { animation-delay: 0.4s; }
.nx-lead { animation: nx-float 1.1s cubic-bezier(.16, 1, .3, 1) 0.8s backwards; }
.nx-btn-primary { animation: nx-lift 0.9s cubic-bezier(.16, 1, .3, 1) 1s backwards, nx-cast 1.5s ease-out 1s backwards; }
.nx-btn-secondary { animation: nx-lift 0.9s cubic-bezier(.16, 1, .3, 1) 1.12s backwards; }

/* Hold motion until fonts are initialized, avoiding typeface flash */
html[data-nx="js"] .nx-hero:not(.nx-go) *,
html[data-nx="js"] .nx-hero:not(.nx-go)::after {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .nx-btn, .nx-btn svg { transition: none; }
  .nx-hero *, .nx-hero::after { animation: none !important; }
}
.sec {
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .sec {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* Modern Web Guidance: Core Web Vitals & Rendering Performance */
.nx-hero ~ .sec,
.sec + .sec,
.flagship-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}
.notched-grid,
.divisions-grid,
.rounds-grid,
.packages-grid {
  contain: layout style;
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.75rem, 5.8vw, 4.6rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.lead {
  font-size: clamp(1.1rem, 1.9vw, 1.28rem);
  color: var(--ink-secondary);
  line-height: 1.6;
  max-width: 44rem;
}
.eyebrow {
  display: none !important;
}

/* Buttons & Links (Tactile 3D Depth) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.btn:hover {
  background: var(--surface-hover);
  border-color: var(--ink-muted);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--pri);
  color: var(--on-pri);
  border-color: var(--pri);
  box-shadow: 0 4px 18px var(--pri-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  background: var(--pri-hover);
  border-color: var(--pri-hover);
  box-shadow: 0 8px 26px var(--pri-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}
.btn-emerald {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
  box-shadow: 0 4px 14px rgba(13, 130, 77, 0.25);
}
.btn-emerald:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 9px;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.15s ease, transform 0.15s ease;
}
.text-link:hover {
  color: var(--pri);
  transform: translateX(2px);
}

/* Header & Navigation */
header.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(45, 91, 255, 0.28));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-group:hover .brand-logo {
  transform: scale(1.06);
}
.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.brand-title span {
  font-weight: 500;
  color: var(--ink-secondary);
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--ink-muted);
  display: block;
  letter-spacing: 0.02em;
}
nav.primary-nav,
nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
nav.primary-nav a,
nav.desktop-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 0;
}
nav.primary-nav a:hover, nav.primary-nav a.active,
nav.desktop-nav a:hover, nav.desktop-nav a.active {
  color: var(--ink);
}
nav.primary-nav a.active::after,
nav.desktop-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pri);
  border-radius: 2px;
}
.nav-actions,
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.burger-btn,
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
#mobile-menu {
  display: none;
  border-top: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 20px 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}
#mobile-menu.open {
  display: block !important;
  animation: mobileMenuSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes mobileMenuSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#mobile-menu a.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-subtle);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
#mobile-menu a.m-link:active {
  color: var(--pri);
  padding-left: 6px;
}
@media (max-width: 960px) {
  nav.primary-nav, nav.desktop-nav, .header-cta { display: none; }
  .burger-btn, .mobile-toggle { display: inline-flex; }
  #mobile-menu.open { display: block !important; }
}

/* 21st.dev Bento Grid & Tactile 3D Cards */
.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-3d);
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-glow);
  box-shadow: 0 28px 64px -12px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Pricing Packages Section (₹500 / ₹1,000) */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 920px;
  margin: 48px auto 0;
}
@media (max-width: 760px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
}
.pkg-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.pkg-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-glow);
  box-shadow: 0 20px 48px -10px var(--pri-glow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.pkg-card.featured {
  border-color: var(--pri);
  box-shadow: 0 20px 48px -10px var(--pri-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pkg-card.featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 64px -12px var(--pri-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.pkg-tag {
  display: none !important;
}
.pkg-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 10px;
}
.pkg-amount {
  font-size: 3.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--ink);
  line-height: 1;
}
.pkg-feature-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 14px;
  flex: 1;
  font-size: 0.94rem;
}
.pkg-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-secondary);
}
.pkg-feature-list li svg {
  flex-shrink: 0;
  color: var(--emerald);
  margin-top: 3px;
}

/* Divisions & Rounds Grid (3 Columns) */
.divisions-grid,
.rounds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .divisions-grid,
  .rounds-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Steps Grid (4 Columns) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 580px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  position: relative;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-glow);
  box-shadow: 0 16px 36px -8px var(--pri-glow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--pri);
  background: var(--pri-subtle);
  border: 1px solid rgba(37, 84, 246, 0.2);
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 0;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.step-card:hover .step-num {
  border-color: var(--pri);
  transform: scale(1.02);
}
.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step-desc {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* 5 Courses Grid Layout */
.courses-grid-5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1080px) {
  .courses-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .courses-grid-5 {
    grid-template-columns: 1fr;
  }
}
.courses-grid-5 .course-body {
  padding: 24px;
}
.courses-grid-5 .course-body h3 {
  font-size: 1.32rem;
}

/* Course Showcase Cards */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
@media (max-width: 880px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}
.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-3d);
}
.course-card:hover {
  transform: translateY(-5px);
  border-color: var(--pri);
  box-shadow: var(--shadow-lg);
}
.course-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080d1a;
  border-bottom: 1px solid var(--line);
}
.course-thumb-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.course-card:hover .course-thumb-box img {
  transform: scale(1.04);
}
.course-thumb-tag {
  display: none !important;
}
.course-body {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-body h3 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.course-body p.course-desc {
  color: var(--ink-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}
.course-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}
.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  border: 1px solid var(--line-subtle);
}
.course-footer {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fee-block {
  display: flex;
  flex-direction: column;
}
.fee-block small {
  font-size: 0.74rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.fee-block .base-amount {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--font-mono);
}
.fee-block .sub-scholarship {
  font-size: 0.82rem;
  color: var(--emerald);
  font-weight: 600;
}

/* Slabs Table */
.slabs-table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-3d);
}
table.slabs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
table.slabs-table th, table.slabs-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
table.slabs-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.slabs-table tr:last-child td {
  border-bottom: 0;
}
table.slabs-table tr:hover td {
  background: var(--surface-hover);
}

/* Forms & Authentication */
.auth-shell {
  max-width: 500px;
  margin: 64px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 44px 38px;
  box-shadow: var(--shadow-3d);
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.auth-tab-btn.active {
  color: var(--pri);
  border-color: var(--pri);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--pri);
  box-shadow: 0 0 0 3px var(--pri-glow);
}

/* Dashboard UI (Student & Admin) */
.dash-layout {
  padding-top: 48px;
  padding-bottom: 96px;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-emerald { background: var(--emerald-subtle); color: var(--emerald); border: 1px solid var(--emerald); }
.badge-amber { background: var(--amber-subtle); color: var(--amber); border: 1px solid var(--amber); }
.badge-pri { background: var(--pri-subtle); color: var(--pri); border: 1px solid var(--pri); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .stat-grid { grid-template-columns: 1fr; }
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-3d);
}
.stat-card small {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-card .stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1.1;
  margin-top: 6px;
  color: var(--ink);
}

/* Admit Card Box (Student Portal) */
.admit-card-box {
  background: var(--surface);
  border: 2px dashed var(--pri);
  border-radius: 18px;
  padding: 38px;
  box-shadow: var(--shadow-3d);
  position: relative;
  margin-top: 24px;
}
.admit-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 680px) {
  .admit-grid { grid-template-columns: 1fr; }
}
.admit-info-list {
  display: grid;
  gap: 16px;
}
.admit-info-item small {
  font-size: 0.74rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.admit-info-item span {
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
}
.admit-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}

/* Status Banner */
.status-banner {
  padding: 20px 26px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.status-banner.amber {
  background: var(--amber-subtle);
  border-color: var(--amber);
  color: var(--ink);
}
.status-banner.emerald {
  background: var(--emerald-subtle);
  border-color: var(--emerald);
  color: var(--ink);
}
.status-banner.pri {
  background: var(--pri-subtle);
  border-color: var(--pri);
  color: var(--ink);
}

/* ==========================================================================
   Flagship Wordmark Footer (1:1 Exact Match with Nexlyra_Studio_Footer.html)
   ========================================================================== */
footer.site-footer,
footer.flagship-footer {
  position: relative;
  overflow: hidden;
  background-color: #031C26 !important;
  color: #EAF9FF !important;
  border-top: none !important;
  margin-top: auto;
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.has-mobile-tabbar footer.site-footer,
body.has-mobile-tabbar footer.flagship-footer {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
}

footer.site-footer a:focus-visible,
footer.site-footer summary:focus-visible,
footer.flagship-footer a:focus-visible,
footer.flagship-footer summary:focus-visible {
  outline: 2px solid #5AD2F4;
  outline-offset: 2px;
  border-radius: 6px;
}

/* 1. Main Content Grid (12-column layout matching Tailwind) */
.footer-grid-container {
  margin-left: auto;
  margin-right: auto;
  display: grid;
  width: 100%;
  max-width: 1200px;
  gap: 3rem; /* gap-12 */
  padding-left: 1.5rem; /* px-6 */
  padding-right: 1.5rem;
  padding-top: 4rem; /* pt-16 */
  padding-bottom: 2.5rem; /* pb-10 */
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .footer-grid-container {
    grid-template-columns: repeat(12, minmax(0, 1fr)); /* md:grid-cols-12 */
    padding-left: 2.5rem; /* md:px-10 */
    padding-right: 2.5rem;
  }
}
@media (max-width: 767px) {
  .footer-grid-container {
    gap: 1.5rem; /* max-md:gap-6 */
    padding-top: 3rem; /* max-md:pt-12 */
    padding-bottom: 1.5rem; /* max-md:pb-6 */
  }
}

/* Brand Column (md:col-span-5) */
.footer-brand-col {
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .footer-brand-col {
    grid-column: span 5 / span 5;
  }
}
.footer-brand-title {
  display: block;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 380;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #EAF9FF;
}
.footer-brand-desc {
  margin-top: 1rem;
  max-width: 300px;
  font-size: 14px;
  line-height: 22px;
  color: #9DBBC9;
}

/* Desktop Navigation (md:col-span-6 md:col-start-7 lg:grid-cols-3) */
.footer-desktop-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem; /* gap-8 */
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .footer-desktop-nav {
    display: none !important; /* max-md:hidden */
  }
}
@media (min-width: 768px) {
  .footer-desktop-nav {
    grid-column: 7 / span 6; /* md:col-span-6 md:col-start-7 */
  }
}
@media (min-width: 1024px) {
  .footer-desktop-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* lg:grid-cols-3 */
  }
}

.footer-nav-heading {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(157, 187, 201, 0.8);
  margin: 0 0 1rem;
}
.footer-link-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.625rem; /* gap-2.5 */
}
.footer-link-list a {
  font-size: 14px;
  color: #9DBBC9;
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-block;
}
.footer-link-list a:hover {
  color: #EAF9FF;
}

/* Mobile Foldable Navigation (<details>) */
.footer-mobile-nav {
  display: none;
}
@media (max-width: 767px) {
  .footer-mobile-nav {
    display: grid;
    gap: 0.25rem; /* gap-1 */
    margin-left: -1rem; /* -mx-4 */
    margin-right: -1rem;
  }
}
.footer-mobile-details {
  border-radius: 1rem; /* rounded-2xl */
}
.footer-mobile-details[open] {
  background-color: rgba(234, 249, 255, 0.03); /* open:bg-foreground/[0.03] */
}
.footer-mobile-summary {
  display: flex;
  height: 3.5rem; /* h-14 */
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  padding-left: 1rem; /* px-4 */
  padding-right: 1rem;
  user-select: none;
}
.footer-mobile-summary::-webkit-details-marker {
  display: none;
}
.footer-mobile-summary span {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #9DBBC9;
  text-transform: uppercase;
}
.footer-mobile-icon {
  width: 1rem;
  height: 1rem;
  color: rgba(157, 187, 201, 0.8);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.footer-mobile-details[open] .footer-mobile-icon {
  transform: rotate(45deg);
}
.footer-mobile-list {
  padding-left: 1rem; /* px-4 */
  padding-right: 1rem;
  padding-bottom: 0.75rem; /* pb-3 */
  margin: 0;
  list-style: none;
}
.footer-mobile-list li a {
  display: block;
  padding-top: 0.75rem; /* py-3 */
  padding-bottom: 0.75rem;
  font-size: 15px;
  color: #9DBBC9;
  text-decoration: none;
}

/* 3. Bottom Bar (Strictly NO border-top!) */
.footer-bottom-container {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: 100%;
  max-width: 1200px;
  flex-direction: column;
  gap: 0.5rem; /* gap-2 */
  padding-left: 1.5rem; /* px-6 */
  padding-right: 1.5rem;
  padding-bottom: 1.5rem; /* pb-6 */
  font-size: 13px;
  color: rgba(157, 187, 201, 0.8);
  border-top: none !important;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .footer-bottom-container {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem; /* sm:gap-6 */
  }
}
@media (min-width: 768px) {
  .footer-bottom-container {
    padding-left: 2.5rem; /* md:px-10 */
    padding-right: 2.5rem;
  }
}
.footer-bottom-copy {
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-variant-numeric: tabular-nums;
}
.footer-bottom-affiliate {
  color: rgba(157, 187, 201, 0.8);
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
}
@media (min-width: 640px) {
  .footer-bottom-affiliate {
    margin-left: auto; /* sm:ml-auto */
  }
}
.footer-bottom-affiliate:hover {
  color: #EAF9FF;
}

/* 4. Large Rising Wordmark (Full Width direct child of footer) */
#wordmark.footer-wordmark-full {
  pointer-events: none;
  margin-bottom: -0.1em;
  margin-top: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 340;
  font-size: clamp(96px, 24vw, 360px);
  line-height: 1.2;
  user-select: none;
  width: 100%;
  text-align: center;
}
@media (max-width: 767px) {
  #wordmark.footer-wordmark-full {
    font-size: 27vw;
  }
}

.wm-letter {
  letter-spacing: 0;
  margin-right: 0;
  color: transparent;
  background-image: linear-gradient(to bottom, color-mix(in oklab, #5AD2F4 34%, transparent), color-mix(in oklab, #5AD2F4 12%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  will-change: transform, opacity;
}
/* Optical kerning to balance inter-letter spacing across each and every character */
.wm-n,
#wordmark > span:first-child,
#wordmark > span:nth-child(1) {
  margin-right: -0.086em; /* Pulls 'e' in to match 15.5px visual cadence with N */
}
.wm-x,
#wordmark > span:nth-child(3) {
  margin-right: 0.035em; /* Balances x and l to match 15.5px visual cadence */
}
.wm-l,
#wordmark > span:nth-child(4) {
  margin-right: -0.022em; /* Balances l and y to match 15.5px visual cadence */
}
.wm-y,
#wordmark > span:nth-child(5) {
  margin-right: 0.052em; /* Balances y and r to match 15.5px visual cadence */
}
.js .wm-letter {
  opacity: 0;
  transform: translateY(60%);
}
.js #wordmark.is-in .wm-letter {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms),
              transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .js .wm-letter,
  .js #wordmark.is-in .wm-letter {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Print Styles for Admit Card */
@media print {
  body { background: #fff !important; color: #000 !important; }
  header, footer, .btn, .no-print { display: none !important; }
  .admit-card-box { border: 2px solid #000 !important; box-shadow: none !important; margin: 0 !important; padding: 20px !important; }
}

/* ==========================================================================
   MOBILE PHONE APP UI & NATIVE SHELL
   ========================================================================== */
@media (max-width: 768px) {
  body.has-mobile-tabbar {
    padding-bottom: 0 !important;
  }
  body.has-mobile-tabbar footer.site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 20px)) !important;
  }
  .burger-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

#mobile-app-shell-root,
.mobile-tabbar,
.mobile-sheet-overlay,
.mobile-sheet {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  #mobile-app-shell-root {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
  }

  .mobile-tabbar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--surface);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-bottom: env(safe-area-inset-bottom, 8px);
    padding-top: 6px;
    height: calc(62px + env(safe-area-inset-bottom, 8px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }

  .mobile-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--ink-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 4px 0;
    transition: color 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-tab-item:active {
    transform: scale(0.92);
  }

  .mobile-tab-item.active {
    color: var(--pri);
  }

  .mobile-tab-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
  }

  .mobile-tab-item.active svg {
    stroke-width: 2.5;
  }

  /* Mobile More Drawer Sheet */
  .mobile-sheet-overlay {
    display: none !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .mobile-sheet-overlay.active {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-sheet {
    display: block !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-radius: 24px 24px 0 0;
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 14px));
    z-index: 1001;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.35);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.3s;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-sheet.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--line);
    border-radius: 4px;
    margin: 0 auto 16px;
  }

  .mobile-sheet-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--ink);
  }

  .mobile-sheet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .mobile-sheet-card {
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.15s ease;
  }

  .mobile-sheet-card:active {
    background: var(--surface-hover);
  }

  .mobile-sheet-card small {
    font-size: 0.74rem;
    font-weight: 400;
    color: var(--ink-secondary);
  }

  .mobile-sheet-card svg {
    color: var(--pri);
    margin-bottom: 2px;
  }

  .mobile-install-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    background: var(--pri);
    color: var(--on-pri);
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--pri-glow);
  }

  .mobile-install-btn:active {
    transform: scale(0.98);
  }
}

/* ==========================================================================
   Nexlyra Ecosystem & Career Pipeline Styles
   ========================================================================== */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
}

/* ServiceCard Component Styles (CVA Variants & Framer Motion Parity) */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .service-card-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.service-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.14), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

.service-card-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 68%;
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}

.service-card-desc {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-action {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.service-card:hover .service-card-action {
  text-decoration: underline;
}

.service-card-action .action-arrow {
  margin-left: 6px;
  display: inline-flex;
  transition: transform 0.3s ease-in-out;
}

.service-card:hover .service-card-action .action-arrow {
  transform: translateX(5px);
}

.service-card-img {
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 144px;
  height: 144px;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.service-card:hover .service-card-img {
  transform: scale(1.1) rotate(3deg) translateX(10px);
  opacity: 1;
}

/* ServiceCard Variants */
.service-card.variant-default {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.service-card.variant-default .service-card-title {
  color: var(--ink);
}
.service-card.variant-default .service-card-desc {
  color: var(--ink-secondary);
}
.service-card.variant-default .service-card-action {
  color: var(--pri);
}

.service-card.variant-blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(29, 78, 216, 0.95) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.service-card.variant-blue .service-card-title,
.service-card.variant-blue .service-card-desc,
.service-card.variant-blue .service-card-action {
  color: #ffffff;
}

.service-card.variant-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.service-card.variant-red .service-card-title,
.service-card.variant-red .service-card-desc,
.service-card.variant-red .service-card-action {
  color: #ffffff;
}

.service-card.variant-gray {
  background: var(--surface-subtle);
  color: var(--ink);
  border: 1px solid var(--line);
}
.service-card.variant-gray .service-card-title {
  color: var(--ink);
}
.service-card.variant-gray .service-card-desc {
  color: var(--ink-secondary);
}
.service-card.variant-gray .service-card-action {
  color: var(--ink);
}

.ecosystem-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}
.ecosystem-card:hover {
  transform: translateY(-4px);
  border-color: var(--pri);
  box-shadow: var(--shadow-md);
}
.ecosystem-card h3 {
  font-size: 1.28rem;
  margin: 16px 0 10px;
  color: var(--ink);
}
.ecosystem-card p {
  color: var(--ink-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ecosystem-card.eco-featured {
  border-color: var(--pri);
  background: linear-gradient(180deg, var(--pri-subtle) 0%, var(--surface) 100%);
  box-shadow: 0 14px 34px -8px var(--pri-glow);
}

.eco-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pri-subtle);
  color: var(--pri);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ==========================================================================
   NOTCHED OLYMPIAD DISCIPLINE CARDS (21ST.DEV COMPONENT INTEGRATION)
   ========================================================================== */
.notched-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: 100%;
}
@media (min-width: 680px) and (max-width: 1023px) {
  .notched-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .notched-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .notched-grid {
    gap: 20px;
  }
}
.notched-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 20px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  padding: 10px;
  outline: none;
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
/* 5th Discipline Card: Dragged in length to fill out remaining space */
@media (min-width: 680px) and (max-width: 1023px) {
  .notched-card.notched-card-wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }
  .notched-card.notched-card-wide .notched-cover-wrap {
    width: 44%;
    min-width: 260px;
    aspect-ratio: auto;
    height: 100%;
    min-height: 260px;
    flex-shrink: 0;
  }
  .notched-card.notched-card-wide .notched-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px;
  }
  .notched-card.notched-card-wide .notched-title {
    font-size: 1.35rem;
  }
  .notched-card.notched-card-wide .notched-desc {
    font-size: 0.92rem;
    line-height: 1.65;
  }
}
@media (min-width: 1024px) {
  .notched-card.notched-card-wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: stretch;
  }
  .notched-card.notched-card-wide .notched-cover-wrap {
    width: 48%;
    min-width: 320px;
    aspect-ratio: auto;
    height: 100%;
    min-height: 280px;
    flex-shrink: 0;
  }
  .notched-card.notched-card-wide .notched-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 28px;
  }
  .notched-card.notched-card-wide .notched-title {
    font-size: 1.45rem;
  }
  .notched-card.notched-card-wide .notched-desc {
    font-size: 0.95rem;
    line-height: 1.65;
  }
  .notched-card.notched-card-wide .notched-tags {
    margin-top: 20px;
  }
}
.notched-card.notched-card-wide .notched-cover-wrap {
  background: #0779fd;
}
.notched-card.notched-card-wide .notched-cover-img {
  object-fit: contain;
  object-position: center;
}
.notched-card:hover {
  transform: none;
  box-shadow: 0 12px 32px -8px var(--pri-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: var(--card-border-glow);
}
.notched-card:focus-visible {
  outline: 2px solid var(--pri) !important;
  outline-offset: 4px !important;
}
.notched-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.notched-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: none;
}
.notched-card:hover .notched-cover-img {
  transform: none;
}
.notched-blue-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.08) 0%, rgba(6, 10, 18, 0.62) 100%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.notched-card:hover .notched-blue-wash {
  opacity: 0.85;
}
.notched-watermark {
  position: absolute;
  left: 14px;
  bottom: 4px;
  display: flex;
  align-items: baseline;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  color: rgba(255, 255, 255, 0.16);
  transition: transform 0.4s ease, color 0.4s ease;
}
.notched-card:hover .notched-watermark {
  transform: translateX(4px);
  color: rgba(255, 255, 255, 0.28);
}
.notched-watermark-letter {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 5.2vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}
.notched-watermark-num {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(147, 197, 253, 0.6);
  margin-left: 4px;
  letter-spacing: 0.05em;
}
.notched-top-badges {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  pointer-events: none;
  z-index: 2;
}
.notched-badge-pill {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.notched-sub-pill {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  font-size: 0.64rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.notched-cutout-block {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 74px;
  height: 74px;
  border-top-left-radius: 45px;
  background: var(--surface);
  pointer-events: none;
  z-index: 2;
}
.notched-fillet-top {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at top left, transparent 23.5px, var(--surface) 24px);
  pointer-events: none;
  z-index: 2;
}
.notched-fillet-left {
  position: absolute;
  bottom: 0;
  right: 74px;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at top left, transparent 23.5px, var(--surface) 24px);
  pointer-events: none;
  z-index: 2;
}
.notched-action-disc {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--pri);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 84, 246, 0.3);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 3;
}
.notched-card:hover .notched-action-disc {
  transform: scale(1.08);
  background: var(--pri-hover);
  box-shadow: 0 8px 24px rgba(37, 84, 246, 0.45);
}
.notched-action-disc svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}
.notched-card:hover .notched-action-disc svg {
  transform: translate(2px, -2px);
}
.notched-body {
  padding: 16px 8px 8px;
}
.notched-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}
.notched-card:hover .notched-title {
  color: var(--pri);
}
.notched-desc {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}
.notched-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  list-style: none;
  padding: 0;
}
.notched-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 5px 12px 5px 10px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  cursor: default;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.notched-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pri);
  opacity: 0.7;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.notched-tag:hover {
  background: var(--pri-subtle);
  color: var(--pri);
  border-color: var(--pri);
  box-shadow: 0 4px 14px var(--pri-glow);
}
.notched-tag:nth-child(odd):hover {
  transform: translateY(-2.5px) rotate(-1.5deg) scale(1.05);
}
.notched-tag:nth-child(even):hover {
  transform: translateY(-2.5px) rotate(1.5deg) scale(1.05);
}
.notched-tag:active {
  transform: scale(0.96);
}
.notched-tag:hover::before {
  transform: scale(1.4);
  opacity: 1;
  box-shadow: 0 0 8px var(--pri);
}
.eco-featured-icon {
  background: var(--pri);
  color: #fff;
  border: none;
}

.eco-banner {
  margin-top: 48px;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .eco-banner {
    padding: 24px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 992px) {
  #pipeline-steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  #pipeline-steps-grid {
    grid-template-columns: 1fr !important;
  }
}

.clean-policy-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.clean-policy-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}
.clean-policy-list li svg {
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   ENHANCED MOBILE RESPONSIVENESS & AUTOMATIC SCREEN-SIZE ADAPTATION
   ========================================================================== */
html, body {
  overflow-x: clip !important;
  max-width: 100vw !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  .shell {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: clamp(14px, 4vw, 20px) !important;
    padding-right: clamp(14px, 4vw, 20px) !important;
    box-sizing: border-box !important;
  }
  .sec {
    padding-top: clamp(40px, 8vw, 64px) !important;
    padding-bottom: clamp(40px, 8vw, 64px) !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
  }
  .header-inner {
    height: 64px !important;
    gap: 12px !important;
  }
  .brand-title {
    font-size: 1.05rem !important;
  }

  /* Hero Section Responsiveness */
  .nx-wrap {
    padding: clamp(2.2rem, 6vw, 3.8rem) 1rem clamp(2.8rem, 7vw, 4.5rem) !important;
    box-sizing: border-box !important;
  }
  .nx-title {
    font-size: clamp(1.85rem, 7vw, 2.85rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em !important;
  }
  .nx-lead {
    font-size: clamp(0.92rem, 3.5vw, 1.05rem) !important;
    line-height: 1.6 !important;
    margin-top: 1.25rem !important;
  }
  .nx-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 1.8rem !important;
  }
  .nx-actions .nx-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 0.95rem !important;
  }

  /* Disciplines Notched Grid & Cards */
  .notched-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
  }
  .notched-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }
  .notched-card.notched-card-wide {
    grid-column: auto !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .notched-card.notched-card-wide .notched-cover-wrap {
    width: 100% !important;
    min-width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    min-height: auto !important;
  }
  .notched-card.notched-card-wide .notched-body {
    padding: 16px 8px 8px !important;
  }

  /* Divisions & Rounds Grids */
  .divisions-grid,
  .rounds-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .bento-card,
  .step-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 22px 18px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  /* Registration Packages Grid & Pricing Cards */
  .packages-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 28px !important;
  }
  .pkg-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 24px 18px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }
  .pkg-card h3 {
    font-size: 1.35rem !important;
  }
  .pkg-amount {
    font-size: clamp(2.3rem, 7.5vw, 3rem) !important;
  }
  .pkg-feature-list {
    margin: 20px 0 !important;
    gap: 12px !important;
    font-size: 0.88rem !important;
  }
  .pkg-feature-list li {
    min-width: 0 !important;
    word-break: break-word !important;
  }
  .pkg-feature-list li span {
    min-width: 0 !important;
    flex: 1 !important;
  }
  .pkg-card .btn {
    width: 100% !important;
    min-height: 48px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* ServiceCard Grid & Components */
  .service-card-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .service-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: auto !important;
    padding: 20px 18px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }
  .service-card-content {
    max-width: calc(100% - 84px) !important;
  }
  .service-card-title {
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
  }
  .service-card-desc {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    margin-top: 6px !important;
    -webkit-line-clamp: 4 !important;
  }
  .service-card-action {
    padding-top: 14px !important;
    font-size: 0.72rem !important;
  }
  .service-card-img {
    width: 90px !important;
    height: 90px !important;
    right: -8px !important;
    bottom: -8px !important;
    opacity: 0.88 !important;
    border-radius: 10px !important;
  }

  /* Steps Grid */
  .steps-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
  }

  /* Course Card Footers & Buttons */
  .course-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  .course-footer .btn {
    width: 100% !important;
    text-align: center !important;
    padding: 12px !important;
  }

  /* Tables & Responsive Wrappers */
  .slabs-table-wrap {
    margin-top: 20px !important;
    border-radius: 12px !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }
  table.slabs-table th, table.slabs-table td {
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
  }

  /* Footer Adaptation */
  .footer-grid-container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    padding-top: 2.5rem !important;
    gap: 1.5rem !important;
  }
  #wordmark.footer-wordmark-full {
    font-size: 24vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  /* Buttons & CTAs across all components */
  .btn, .hero-buttons .btn {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
  }
  .hero-buttons {
    flex-direction: column !important;
    width: 100% !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   ACCESSIBILITY & MOBILE VIEWPORT SUITE (WCAG 2.1 AA & SECTION 508 COMPLIANT)
   ========================================================================== */

/* 1. Skip-to-Content Link for Screen Readers & Keyboard Navigation */
.skip-link {
  position: absolute;
  top: -999px;
  left: 16px;
  z-index: 99999;
  padding: 12px 20px;
  background: var(--pri);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(37, 84, 246, 0.4);
  text-decoration: none;
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 3px solid #ffffff !important;
  outline-offset: 3px !important;
}

/* 2. Universal Keyboard Focus-Visible Rings */
:focus-visible {
  outline: 2px solid var(--pri);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.tab-btn:focus-visible,
.burger-btn:focus-visible,
.auth-tab-btn:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--pri) !important;
  outline-offset: 2px !important;
}

/* 3. Motion Accessibility: Prefers-Reduced-Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 4. Touch Ergonomics: WCAG 2.5.5 / 2.5.8 Minimum Touch Target (44x44px) */
@media (pointer: coarse) {
  .btn,
  .btn-sm,
  .burger-btn,
  .mobile-toggle,
  .tab-btn,
  .auth-tab-btn,
  .m-link,
  .dash-badge {
    min-height: 44px;
    min-width: 44px;
  }
}

/* 5. Mobile Viewport Layout Containment & Horizontal Overflow Protection */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* 6. Form Control High Contrast States */
.form-control::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

/* 7. Centered Authentic FAQ Section (Card Accordions, Zero Image, Fluid Expansion) */
.faq-center-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.faq-center-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-badge {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pri, #2563eb);
  background: var(--pri-subtle, rgba(37, 99, 235, 0.08));
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 14px;
}

.faq-headline {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink, #0f172a);
  margin: 0 0 12px;
}

.faq-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-secondary, #64748b);
  max-width: 620px;
  margin: 0 auto;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion-item {
  border: 1px solid var(--line, #e2e8f0);
  background: var(--surface, #ffffff);
  border-radius: 12px;
  padding: 18px 22px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.faq-accordion-item:hover {
  border-color: var(--pri, #2563eb);
}

.faq-accordion-item.active {
  border-color: var(--pri, #2563eb);
  background: var(--surface, #ffffff);
  box-shadow: 0 4px 14px -3px rgba(37, 99, 235, 0.1);
}

.faq-question-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-question-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink, #0f172a);
  margin: 0;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.faq-accordion-item:hover .faq-question-text {
  color: var(--pri, #2563eb);
}

.faq-chevron {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  stroke: var(--ink-secondary, #64748b);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
  flex-shrink: 0;
  display: inline-block;
}

.faq-accordion-item.active .faq-chevron {
  transform: rotate(180deg);
  stroke: var(--pri, #2563eb);
}

.faq-answer-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-accordion-item.active .faq-answer-collapse {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-top: 14px;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-secondary, #64748b);
  margin: 0;
  border-top: 1px solid var(--line, #e2e8f0);
  padding-top: 14px;
}

/* ==========================================================================
   3-ROUND COMPETITION TIMELINE & LIFECYCLE STYLES
   Smooth inertial scroll tracking, glowing dots, rising typography
   ========================================================================== */
.hiw-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
  position: relative;
}

.hiw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--pri);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hiw-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.hiw-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 16ch;
}

.hiw-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-secondary);
  max-width: 680px;
  margin: 0 0 36px;
}

/* Metrics summary bar */
.hiw-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}
@media (min-width: 768px) {
  .hiw-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}
.hiw-metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hiw-metric-card:hover {
  border-color: var(--pri);
  transform: translateY(-2px);
}
.hiw-metric-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pri);
  margin-bottom: 4px;
}
.hiw-metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.hiw-metric-sub {
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.4;
}

/* Vertical Scroll-Driven Timeline */
.timeline-wrap {
  position: relative;
  padding-left: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(64px, 10vw, 120px);
}
.timeline-line {
  position: absolute;
  left: 6px;
  top: 0;
  bottom: clamp(64px, 10vw, 120px);
  width: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}
.timeline-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--pri) 0%, #3b82f6 100%);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

.timeline-row {
  position: relative;
  padding: 44px 0 64px;
}
@media (min-width: 768px) {
  .timeline-row {
    padding: 60px 0 84px;
  }
}
.timeline-rule {
  position: absolute;
  top: 0;
  right: 0;
  left: calc(clamp(28px, 4vw, 48px) * -1 + 16px);
  height: 1px;
  background: var(--line);
  transform-origin: left;
}
.timeline-dot {
  position: absolute;
  top: -6px;
  left: calc(clamp(28px, 4vw, 48px) * -1);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-row.on .timeline-dot {
  border-color: var(--pri);
  background: var(--pri);
  box-shadow: 0 0 0 7px var(--pri-glow);
}

.timeline-inner {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .timeline-inner {
    grid-template-columns: 140px minmax(0, 1fr);
    column-gap: 52px;
  }
}

.timeline-num {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--line);
  transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.timeline-row.on .timeline-num {
  color: var(--pri);
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pri);
  background: var(--pri-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.timeline-heading {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.timeline-desc {
  max-width: 720px;
  margin: 16px 0 24px;
  color: var(--ink-secondary);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.7;
}
.timeline-desc strong {
  color: var(--ink);
  font-weight: 600;
}

/* Micro-spec feature grid within each round */
.round-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 720px;
}
@media (min-width: 640px) {
  .round-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.round-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--ink);
}
.round-spec-item svg {
  color: var(--pri);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Animations for timeline */
.js [data-r] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}
.js .is-in [data-r] {
  opacity: 1;
  transform: none;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 80ms),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 80ms);
}
.js .timeline-rule {
  transform: scaleX(0);
}
.js .is-in .timeline-rule {
  transform: scaleX(1);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-r], .js .is-in [data-r] { opacity: 1; transform: none; transition: none; }
  .js .timeline-rule, .js .is-in .timeline-rule { transform: none; transition: none; }
  .timeline-dot, .timeline-num { transition: none; }
}

/* Deliverables Section */
.deliverables-sec {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 8vw, 96px) 0;
  background: var(--surface-alt);
}
.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 640px) {
  .deliverables-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .deliverables-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.deliverable-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.deliverable-card:hover {
  transform: translateY(-3px);
  border-color: var(--pri);
  box-shadow: var(--shadow-md);
}
.deliverable-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--pri-subtle);
  color: var(--pri);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.deliverable-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
.deliverable-desc {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Call to Action Box */
.hiw-cta-box {
  background: linear-gradient(135deg, var(--pri-subtle) 0%, var(--surface) 100%);
  border: 1px solid var(--card-border-glow);
  border-radius: 20px;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  text-align: center;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}
.hiw-cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, var(--pri-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hiw-cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 14px;
}
.hiw-cta-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 580px;
  margin: 0 auto 28px;
}
.hiw-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hiw-cta-guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-weight: 500;
}

/* ==========================================================================
   3-Round Competition Model Stacking Cards (GSAP + Glass Parity)
   ========================================================================== */
#stages {
  --paper: #f8f9ff;
  --ink: #0e1230;
  --slate: #4a5578;
  --g1: rgba(255,255,255,.88);
  --g2: rgba(236,241,255,.72);
  --edge: rgba(255,255,255,.8);
  --hi: rgba(255,255,255,.7);
  --chip: rgba(255,255,255,.7);
  --w: 0%;
  position: relative;
  background: var(--paper);
  padding: 4rem 0 2rem;
  box-sizing: border-box;
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #stages {
    --paper: #0a0e24;
    --ink: #eef1ff;
    --slate: #aab4dc;
    --g1: rgba(28,36,88,.82);
    --g2: rgba(18,24,64,.7);
    --edge: rgba(255,255,255,.14);
    --hi: rgba(255,255,255,.08);
    --chip: rgba(255,255,255,.07);
    --w: 45%;
  }
}
:root[data-theme="dark"] #stages {
  --paper: #0a0e24;
  --ink: #eef1ff;
  --slate: #aab4dc;
  --g1: rgba(28,36,88,.82);
  --g2: rgba(18,24,64,.7);
  --edge: rgba(255,255,255,.14);
  --hi: rgba(255,255,255,.08);
  --chip: rgba(255,255,255,.07);
  --w: 45%;
}

#stages .wrap { width: 92%; max-width: 64rem; margin-inline: auto; }
#stages header.wrap { padding: 4rem 0 1.5rem; }
#stages h2#t { margin: 0; font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
#stages header p { margin: 1rem 0 0; max-width: 44rem; font-size: 1.125rem; line-height: 1.6; color: var(--slate); }

#stages #stack { position: relative; }
#stages .glow { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; overflow: hidden; pointer-events: none; z-index: 0; }
#stages .glow i { position: absolute; border-radius: 50%; filter: blur(64px); }
#stages .glow i:first-child { right: -8rem; top: 0; width: 34rem; height: 34rem; background: radial-gradient(circle, rgba(79,107,240,.45), transparent 70%); }
#stages .glow i:last-child { left: -10rem; bottom: 0; width: 30rem; height: 30rem; background: radial-gradient(circle, rgba(142,162,255,.4), transparent 70%); }

#stages .slot { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
#stages .card { position: relative; isolation: isolate; width: 92%; max-width: 64rem; transform-origin: top center;
  --accent: color-mix(in srgb, rgb(var(--a)) calc(100% - var(--w)), #fff); }
#stages .ring { position: absolute; inset: -3px; border-radius: 27px; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(var(--a), .85) 60deg, rgba(var(--a), .55) 120deg, transparent 180deg, rgba(var(--a), .35) 240deg, transparent 360deg); }
#stages .glass { position: relative; display: flex; flex-direction: column; gap: 1.5rem; min-height: 450px; padding: 1.75rem;
  border-radius: 24px; border: 1px solid var(--edge); overflow: hidden;
  background: linear-gradient(145deg, var(--g1), var(--g2));
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 24px 60px -18px rgba(var(--a), .35), 0 4px 14px rgba(var(--a), .12), inset 0 1px 0 var(--edge), inset 0 -1px 0 rgba(var(--a), .12); box-sizing: border-box; }
#stages .glass::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 55%; pointer-events: none;
  background: linear-gradient(135deg, var(--hi) 0%, transparent 70%); }
#stages .glass::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(circle at 20% 30%, rgba(var(--a), .1) 1px, transparent 2px), radial-gradient(circle at 80% 70%, rgba(var(--a), .08) 1px, transparent 2px), radial-gradient(circle at 40% 80%, rgba(var(--a), .06) 1px, transparent 2px);
  background-size: 30px 30px, 25px 25px, 35px 35px; }
#stages .glass > * { position: relative; z-index: 1; }

#stages .num { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; flex-shrink: 0; }
#stages .num .r { font-size: 1rem; font-weight: 600; color: var(--accent); }
#stages .num .n { display: block; font-size: 6.5rem; font-weight: 700; line-height: .9; letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(var(--a), .28) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
#stages .tag { border-radius: 999px; padding: .375rem .875rem; font-size: .875rem; font-weight: 600; color: var(--accent); background: rgba(var(--a), .12); }
#stages .body h3 { margin: 0; font-size: 1.5rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
#stages .body p { margin: .75rem 0 0; max-width: 60ch; font-size: 1rem; line-height: 1.65; color: var(--slate); }
#stages .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
#stages .chips li { border: 1px solid rgba(var(--a), .24); background: var(--chip); border-radius: 999px; padding: .375rem .75rem; font-size: .875rem; font-weight: 500; color: var(--ink); }
#stages .end { height: 16vh; }

@media (min-width: 768px) {
  #stages header.wrap { padding-top: 5rem; }
  #stages .card { width: 78%; }
  #stages .wrap { width: 78%; }
  #stages .glass { flex-direction: row; align-items: center; gap: 3rem; padding: 3rem; min-height: 400px; }
  #stages .num { width: 30%; }
  #stages .num .n { font-size: 9rem; }
  #stages .body { border-left: 1px solid rgba(var(--a), .2); padding-left: 3rem; }
  #stages .body h3 { font-size: 1.875rem; }
  #stages .body p { font-size: 1.125rem; }
}

@media (max-width: 600px) {
  #stages .slot {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #stages .card {
    width: 92%;
    max-width: 24rem;
  }
  #stages .glass {
    padding: 1.25rem 1rem;
    min-height: auto;
    gap: 0.85rem;
  }
  #stages .num {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
  }
  #stages .num .r {
    font-size: 0.85rem;
  }
  #stages .num .n {
    font-size: 3rem;
    line-height: 1;
  }
  #stages .tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
  }
  #stages .body h3 {
    font-size: 1.2rem;
  }
  #stages .body p {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-top: 0.4rem;
  }
  #stages .chips {
    margin-top: 0.75rem;
    gap: 0.35rem;
  }
  #stages .chips li {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
  }
}

/* ==========================================================================
   Adaptive Participant Divisions with Fluid WebGL Shader Banners
   ========================================================================== */
.divisions-shader-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  width: 100%;
}
@media (min-width: 960px) {
  .divisions-shader-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.division-card {
  position: relative;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, rgba(37, 99, 235, 0.12));
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(20, 30, 90, 0.05), 0 18px 40px -18px rgba(37, 99, 235, 0.20);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .division-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(20, 30, 90, 0.08), 0 24px 50px -15px rgba(37, 99, 235, 0.30);
    border-color: var(--pri, #2563eb);
  }
}

.division-banner {
  position: relative;
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  display: block;
}

.division-banner canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.division-chip {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.90);
  color: #1e3a8a;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.division-body {
  padding: 4px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.division-icon {
  width: 44px;
  height: 44px;
  margin-top: 18px;
  border-radius: 12px;
  background: var(--pri, #2563eb);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.division-icon svg {
  width: 22px;
  height: 22px;
}

.division-label {
  margin: 14px 0 4px;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pri, #2563eb);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.division-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: var(--ink, #0f172a);
  line-height: 1.25;
}

.division-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--ink-secondary, #475569);
}

/* Dark Mode Adaptation */
:root[data-theme="dark"] .division-card,
:root.dark .division-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 20px 45px -18px rgba(0, 0, 0, 0.8);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .division-card {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 20px 45px -18px rgba(0, 0, 0, 0.8);
  }
}

:root[data-theme="dark"] .division-chip,
:root.dark .division-chip {
  background: rgba(15, 23, 42, 0.82);
  color: #bfdbfe;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .division-chip {
    background: rgba(15, 23, 42, 0.82);
    color: #bfdbfe;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
}

:root[data-theme="dark"] .division-title,
:root.dark .division-title {
  color: #f8fafc;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .division-title {
    color: #f8fafc;
  }
}

:root[data-theme="dark"] .division-desc,
:root.dark .division-desc {
  color: #94a3b8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .division-desc {
    color: #94a3b8;
  }
}

:root[data-theme="dark"] .division-label,
:root.dark .division-label {
  color: #60a5fa;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .division-label {
    color: #60a5fa;
  }
}




