 * { margin: 0; padding: 0; box-sizing: border-box; }
body{
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: #000000;
  overflow-x: hidden;
}

/* =========================
   LIGHT THEME BASE (micro-dots)
   Works when body.dark-mode is NOT present
========================= */
body:not(.dark-mode){
  color: #0b0b0b;
  /* soft off-white + micro dots like your example */
  background:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.085) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(#f3f3f3, #f3f3f3);
}

/* Animated Background */
.animated-bg{
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1; background: #000000; overflow: hidden;
}

/* Light theme background layer */
body:not(.dark-mode) .animated-bg{
  background: transparent;
}

/* Grid overlay */
.grid-overlay{
  position: absolute; width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove{ 0%{transform:translate(0,0)} 100%{transform:translate(50px,50px)} }

/* Light theme grid lines */
body:not(.dark-mode) .grid-overlay{
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
}

/* Orbs */
.gradient-orb{ position:absolute; border-radius:50%; filter:blur(80px); opacity:.3; animation: float 20s ease-in-out infinite; }
.orb-1{ width:500px; height:500px; background: radial-gradient(circle, #ffffff 0%, transparent 70%); top:-200px; left:-200px; animation-delay:0s; }
.orb-2{ width:400px; height:400px; background: radial-gradient(circle, #ffffff 0%, transparent 70%); bottom:-150px; right:-150px; animation-delay:5s; }
.orb-3{ width:300px; height:300px; background: radial-gradient(circle, #ffffff 0%, transparent 70%); top:50%; left:50%; animation-delay:10s; }

body:not(.dark-mode) .orb-1,
body:not(.dark-mode) .orb-2,
body:not(.dark-mode) .orb-3{
  opacity: .22;
  filter: blur(90px);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.14) 0%, transparent 72%);
}

@keyframes float{
  0%,100%{ transform: translate(0,0) scale(1); }
  33%{ transform: translate(50px,-50px) scale(1.1); }
  66%{ transform: translate(-50px,50px) scale(0.9); }
}

/* Particles */
.particle{
  position:absolute; width:2px; height:2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius:50%;
  animation: particleFloat 15s linear infinite;
}
body:not(.dark-mode) .particle{
  background: rgba(0, 0, 0, 0.30);
}

@keyframes particleFloat{
  0%{ transform: translateY(100vh) translateX(0); opacity:0; }
  10%{ opacity:1; }
  90%{ opacity:1; }
  100%{ transform: translateY(-100vh) translateX(100px); opacity:0; }
}

/* Header & Navigation */
header{
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s;
}
header.scrolled{
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 5px 30px rgba(255, 255, 255, 0.1);
}

/* Light header */
body:not(.dark-mode) header{
  background: rgba(243, 243, 243, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  color: #0b0b0b;
}
body:not(.dark-mode) header.scrolled{
  background: rgba(243, 243, 243, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

.nav-container{
  max-width: 1400px;
  margin: 0 auto;
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 0 2rem;
}

.logo{
  font-size:1.8rem;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:.5rem;
  letter-spacing:-1px;
  transition: transform .3s;
  user-select: none;
  cursor: pointer;
}
.logo:hover{ transform: scale(1.05); }
.logo i{ animation: pulse 2s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }

nav ul{ display:flex; list-style:none; gap:2.5rem; }
nav a{
  color: rgba(255, 255, 255, 0.8);
  text-decoration:none;
  font-weight:500;
  transition: all .3s;
  position:relative;
  padding:.5rem 0;
}
nav a::after{
  content:'';
  position:absolute;
  bottom:0; left:0;
  width:0; height:2px;
  background:white;
  transition: width .3s;
}
nav a:hover{ color:white; }
nav a:hover::after{ width:100%; }

/* Light nav links */
body:not(.dark-mode) nav a{
  color: rgba(0, 0, 0, 0.70);
}
body:not(.dark-mode) nav a::after{
  background: #000;
}
body:not(.dark-mode) nav a:hover{
  color: rgba(0, 0, 0, 0.96);
}

.mobile-menu{
  display:none;
  font-size:1.5rem;
  cursor:pointer;
  width: 44px; height: 44px;
  align-items:center; justify-content:center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.mobile-menu:hover{ border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }

body:not(.dark-mode) .mobile-menu{
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
}
body:not(.dark-mode) .mobile-menu:hover{
  border-color: rgba(0, 0, 0, 0.20);
  background: rgba(0, 0, 0, 0.05);
}

/* ========= SUB-NAV FIX ========= */
:root{ --header-h: 78px; }

/* ========= TOOLS SUB-NAV ========= */
.tools-subnav{
  position: fixed;
  left: 0; right: 0; width: 100%;
  top: var(--header-h);
  z-index: 999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
}
body.tools-open .tools-subnav{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.tools-subnav-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: .65rem 2rem;
  display: flex;
  gap: .75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tools-subnav-inner::-webkit-scrollbar{ height: 6px; }
.tools-subnav-inner::-webkit-scrollbar-thumb{ background: rgba(255, 255, 255, 0.15); border-radius: 10px; }

.tools-pill{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  text-decoration:none;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: all .25s ease;
}
.tools-pill:hover{
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.tools-pill.primary{
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
}
.tools-pill .tag{
  font-size: .75rem;
  padding: .12rem .45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
}

/* Light subnav */
body:not(.dark-mode) .tools-subnav{
  background: rgba(243, 243, 243, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}
body:not(.dark-mode) .tools-subnav-inner::-webkit-scrollbar-thumb{
  background: rgba(0, 0, 0, 0.15);
}
body:not(.dark-mode) .tools-pill{
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.80);
}
body:not(.dark-mode) .tools-pill:hover{
  color: rgba(0, 0, 0, 0.95);
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.05);
}
body:not(.dark-mode) .tools-pill.primary{
  border-color: rgba(0, 0, 0, 0.20);
  background: rgba(0, 0, 0, 0.05);
}
body:not(.dark-mode) .tools-pill .tag{
  border: 1px solid rgba(0, 0, 0, 0.16);
  color: rgba(0, 0, 0, 0.60);
}

/* ========= NEWS SUB-NAV ========= */
.news-subnav{
  position: fixed;
  left: 0; right: 0; width: 100%;
  top: var(--header-h);
  z-index: 999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
}
body.news-open .news-subnav{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.news-subnav-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: .65rem 2rem;
  display: flex;
  gap: .75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.news-subnav-inner::-webkit-scrollbar{ height: 6px; }
.news-subnav-inner::-webkit-scrollbar-thumb{ background: rgba(255, 255, 255, 0.15); border-radius: 10px; }

.news-pill{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  text-decoration:none;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: all .25s ease;
}
.news-pill:hover{
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.news-pill.primary{
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
}

body:not(.dark-mode) .news-subnav{
  background: rgba(243, 243, 243, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}
body:not(.dark-mode) .news-subnav-inner::-webkit-scrollbar-thumb{
  background: rgba(0, 0, 0, 0.15);
}
body:not(.dark-mode) .news-pill{
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.80);
}
body:not(.dark-mode) .news-pill:hover{
  color: rgba(0, 0, 0, 0.95);
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.05);
}
body:not(.dark-mode) .news-pill.primary{
  border-color: rgba(0, 0, 0, 0.20);
  background: rgba(0, 0, 0, 0.05);
}

/* ========= LEARN SUB-NAV ========= */
.learn-subnav{
  position: fixed;
  left: 0; right: 0; width: 100%;
  top: var(--header-h);
  z-index: 999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
}
body.learn-open .learn-subnav{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.learn-subnav-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: .65rem 2rem;
  display: flex;
  gap: .75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.learn-subnav-inner::-webkit-scrollbar{ height: 6px; }
.learn-subnav-inner::-webkit-scrollbar-thumb{ background: rgba(255, 255, 255, 0.15); border-radius: 10px; }

.learn-pill{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  text-decoration:none;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: all .25s ease;
  cursor: pointer;
}
.learn-pill:hover{
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.learn-pill.active{
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.learn-detail-subnav{
  position: fixed;
  left: 0; right: 0; width: 100%;
  top: calc(var(--header-h) + 54px);
  z-index: 998;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
}
body.learn-detail-open .learn-detail-subnav{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.learn-detail-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: .55rem 2rem;
  display: flex;
  gap: .75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.learn-detail-inner::-webkit-scrollbar{ height: 6px; }
.learn-detail-inner::-webkit-scrollbar-thumb{ background: rgba(255, 255, 255, 0.15); border-radius: 10px; }

.learn-detail-pill{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  text-decoration:none;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: all .25s ease;
}
.learn-detail-pill:hover{
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.learn-caption{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.70);
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
}

/* Light learn */
body:not(.dark-mode) .learn-subnav,
body:not(.dark-mode) .learn-detail-subnav{
  background: rgba(243, 243, 243, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}
body:not(.dark-mode) .learn-subnav-inner::-webkit-scrollbar-thumb,
body:not(.dark-mode) .learn-detail-inner::-webkit-scrollbar-thumb{
  background: rgba(0, 0, 0, 0.15);
}
body:not(.dark-mode) .learn-pill,
body:not(.dark-mode) .learn-detail-pill{
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.80);
}
body:not(.dark-mode) .learn-pill:hover,
body:not(.dark-mode) .learn-detail-pill:hover{
  color: rgba(0, 0, 0, 0.95);
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.05);
}
body:not(.dark-mode) .learn-pill.active{
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.95);
}
body:not(.dark-mode) .learn-caption{
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
  color: rgba(0, 0, 0, 0.60);
}

/* ========= HOME SUB-NAV ========= */
.home-subnav{
  position: fixed;
  left: 0; right: 0; width: 100%;
  top: var(--header-h);
  z-index: 999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
}
body.home-open .home-subnav{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.home-subnav-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: .65rem 2rem;
  display: flex;
  gap: .75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.home-subnav-inner::-webkit-scrollbar{ height: 6px; }
.home-subnav-inner::-webkit-scrollbar-thumb{ background: rgba(255, 255, 255, 0.15); border-radius: 10px; }

.home-pill{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  text-decoration:none;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: all .25s ease;
  cursor: pointer;
}
.home-pill:hover{
  color:#fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.home-pill.primary{
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
}
.home-caption{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.70);
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
}

.home-detail-subnav{
  position: fixed;
  left: 0; right: 0; width: 100%;
  top: calc(var(--header-h) + 54px);
  z-index: 998;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
}
body.home-detail-open .home-detail-subnav{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.home-detail-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: .55rem 2rem;
  display: flex;
  gap: .75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.home-detail-inner::-webkit-scrollbar{ height: 6px; }
.home-detail-inner::-webkit-scrollbar-thumb{ background: rgba(255, 255, 255, 0.15); border-radius: 10px; }

.home-detail-pill{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  text-decoration:none;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: all .25s ease;
}
.home-detail-pill:hover{
  color:#fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* Light home */
body:not(.dark-mode) .home-subnav,
body:not(.dark-mode) .home-detail-subnav{
  background: rgba(243, 243, 243, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}
body:not(.dark-mode) .home-subnav-inner::-webkit-scrollbar-thumb,
body:not(.dark-mode) .home-detail-inner::-webkit-scrollbar-thumb{
  background: rgba(0, 0, 0, 0.15);
}
body:not(.dark-mode) .home-pill,
body:not(.dark-mode) .home-detail-pill{
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.80);
}
body:not(.dark-mode) .home-pill:hover,
body:not(.dark-mode) .home-detail-pill:hover{
  color: rgba(0, 0, 0, 0.95);
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.05);
}
body:not(.dark-mode) .home-pill.primary{
  border-color: rgba(0, 0, 0, 0.20);
  background: rgba(0, 0, 0, 0.05);
}
body:not(.dark-mode) .home-caption{
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
  color: rgba(0, 0, 0, 0.60);
}

/* ========= MOBILE DRAWER MENU (FIX) ========= */
.mobile-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.mobile-drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  z-index: 1500;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateX(102%);
  transition: transform .25s ease;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
body.mobile-menu-open .mobile-overlay{
  opacity: 1;
  pointer-events: auto;
}
body.mobile-menu-open .mobile-drawer{
  transform: translateX(0);
}

/* Light drawer */
body:not(.dark-mode) .mobile-overlay{
  background: rgba(0, 0, 0, 0.30);
}
body:not(.dark-mode) .mobile-drawer{
  background: rgba(243, 243, 243, 0.92);
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.92);
}

.mobile-drawer-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: .35rem .25rem;
}
.mobile-title{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-weight: 900;
  letter-spacing:-0.5px;
}
.mobile-close{
  width: 44px; height: 44px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.mobile-close:hover{ border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }

body:not(.dark-mode) .mobile-close{
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.75);
}
body:not(.dark-mode) .mobile-close:hover{
  border-color: rgba(0, 0, 0, 0.20);
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.95);
}

.mobile-list{
  display:flex;
  flex-direction: column;
  gap: .75rem;
  padding: .25rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.m-accordion{
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
body:not(.dark-mode) .m-accordion{
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
}

.m-acc-btn{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 1rem 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}
body:not(.dark-mode) .m-acc-btn{
  color: rgba(0, 0, 0, 0.92);
}
.m-acc-btn .left{
  display:flex;
  align-items:center;
  gap: .8rem;
}
.m-acc-btn i{ opacity: .9; }

.m-acc-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
body:not(.dark-mode) .m-acc-panel{
  border-top: 1px solid rgba(0, 0, 0, 0.10);
}
.m-accordion.open > .m-acc-panel{
  max-height: 1200px;
}
.m-acc-btn:focus-visible{
  outline: 3px solid currentColor;
  outline-offset: -4px;
  border-radius: 8px;
}
.m-links{
  display:flex;
  flex-direction: column;
  padding: .6rem;
  gap: .45rem;
}
.m-link{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem .9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.88);
  text-decoration:none;
  font-weight: 700;
}
.m-link:hover{ border-color: rgba(255, 255, 255, 0.20); background: rgba(0, 0, 0, 0.45); color:#fff; }

body:not(.dark-mode) .m-link{
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(0, 0, 0, 0.84);
}
body:not(.dark-mode) .m-link:hover{
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.80);
  color: rgba(0, 0, 0, 0.95);
}

.m-link .left{
  display:flex;
  align-items:center;
  gap: .75rem;
  min-width: 0;
}
.m-link .left span{
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-single{
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
body:not(.dark-mode) .m-single{
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
}
.m-single a{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 1rem 1rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration:none;
  font-weight: 800;
  font-size: 1.05rem;
}
body:not(.dark-mode) .m-single a{
  color: rgba(0, 0, 0, 0.92);
}
.m-single a .left{ display:flex; align-items:center; gap: .8rem; }

/* Hero Section */
.hero{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:2rem;
  position:relative;
}
.hero-content{ max-width: 900px; z-index: 1; }

.hero h1{
  font-size:5rem;
  margin-bottom:1.5rem;
  font-weight:900;
  letter-spacing:-3px;
  line-height:1.1;
  animation: fadeInUp 1s;
  background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

/* Light hero title like your example (black/gray) */
body:not(.dark-mode) .hero h1{
  background: linear-gradient(135deg, #000000 0%, #6c6c6c 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.hero p{
  font-size:1.4rem;
  margin-bottom:3rem;
  opacity:.7;
  animation: fadeInUp 1s .2s backwards;
  line-height:1.8;
}
body:not(.dark-mode) .hero p{
  color: rgba(0, 0, 0, 0.62);
  opacity: 1;
}

.cta-buttons{
  display:flex;
  gap:1.5rem;
  justify-content:center;
  flex-wrap:wrap;
  animation: fadeInUp 1s .4s backwards;
}

.btn{
  padding:1.2rem 3rem;
  border:none;
  border-radius:50px;
  font-size:1.1rem;
  font-weight:700;
  cursor:pointer;
  transition:all .3s;
  text-decoration:none;
  display:inline-block;
  position:relative;
  overflow:hidden;
}
.btn::before{
  content:'';
  position:absolute;
  top:50%; left:50%;
  width:0; height:0;
  border-radius:50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%,-50%);
  transition: width .6s, height .6s;
}
.btn:hover::before{ width:300px; height:300px; }
.btn span{ position:relative; z-index:1; }

.btn-primary{
  background:white;
  color:#000;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}
.btn-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.4);
}
.btn-secondary{
  background: transparent;
  color: white;
  border: 2px solid white;
}
.btn-secondary:hover{
  background:white;
  color:#000;
  transform: translateY(-3px);
}

/* Light buttons */
body:not(.dark-mode) .btn-primary{
  background: #0b0b0b;
  color: #f3f3f3;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}
body:not(.dark-mode) .btn-primary:hover{
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}
body:not(.dark-mode) .btn-secondary{
  color: #0b0b0b;
  border: 2px solid rgba(0, 0, 0, 0.85);
}
body:not(.dark-mode) .btn::before{
  background: rgba(0, 0, 0, 0.10);
}

/* Features Section */
.features{
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.section-title{
  text-align:center;
  font-size:3.5rem;
  margin-bottom:4rem;
  font-weight:900;
  letter-spacing:-2px;
  animation: fadeInUp 1s;
}
body:not(.dark-mode) .section-title{
  color: rgba(0, 0, 0, 0.92);
}

.feature-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap:2rem;
}

.feature-card{
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding:3rem;
  border-radius:20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all .4s;
  text-align:center;
  position:relative;
  overflow:hidden;
}
body:not(.dark-mode) .feature-card{
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.10);
}
.feature-card::before{
  content:'';
  position:absolute;
  top:0; left:-100%;
  width:100%; height:100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left .5s;
}
body:not(.dark-mode) .feature-card::before{
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}
.feature-card:hover::before{ left:100%; }
.feature-card:hover{
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
}
body:not(.dark-mode) .feature-card:hover{
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.12);
}
.feature-icon{ font-size:3.5rem; margin-bottom:1.5rem; animation: float 3s ease-in-out infinite; }
body:not(.dark-mode) .feature-icon{ color: rgba(0, 0, 0, 0.85); }
.feature-card h3{ font-size:1.8rem; margin-bottom:1rem; font-weight:700; }
body:not(.dark-mode) .feature-card h3{ color: rgba(0, 0, 0, 0.92); }
.feature-card p{ color: rgba(255, 255, 255, 0.6); line-height:1.8; font-size:1.05rem; }
body:not(.dark-mode) .feature-card p{ color: rgba(0, 0, 0, 0.62); }

/* Learning Section */
.learning-section{
  background: rgba(255, 255, 255, 0.02);
  padding: 8rem 2rem;
  position: relative;
}
body:not(.dark-mode) .learning-section{
  background: rgba(0, 0, 0, 0.02);
}
.learning-section::before{
  content:'';
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100px 100px;
  pointer-events:none;
}
body:not(.dark-mode) .learning-section::before{
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}
.learning-container{
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.course-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap:2.5rem;
  margin-top:3rem;
}

.course-card{
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius:20px;
  overflow:hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all .4s;
}
body:not(.dark-mode) .course-card{
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(0, 0, 0, 0.10);
}
.course-card:hover{
  transform: scale(1.03) translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.15);
}
body:not(.dark-mode) .course-card:hover{
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.12);
}

.course-image{
  height:250px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:5rem;
  position:relative;
  overflow:hidden;
}
body:not(.dark-mode) .course-image{
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.02) 100%);
}
.course-image::before{
  content:'';
  position:absolute;
  width:200%;
  height:200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}
body:not(.dark-mode) .course-image::before{
  background: linear-gradient(45deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}
@keyframes shimmer{
  0%{ transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100%{ transform: translateX(100%) translateY(100%) rotate(45deg); }
}
.course-image i{ position:relative; z-index:1; animation: float 3s ease-in-out infinite; }

.course-content{ padding:2rem; }
.course-content h3{ font-size:1.8rem; margin-bottom:1rem; font-weight:700; }
body:not(.dark-mode) .course-content h3{ color: rgba(0, 0, 0, 0.92); }

.course-badge{
  display:inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color:white;
  padding:.4rem 1rem;
  border-radius:20px;
  font-size:.85rem;
  font-weight:600;
  margin-bottom:1rem;
  text-transform: uppercase;
  letter-spacing:1px;
}
body:not(.dark-mode) .course-badge{
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: rgba(0, 0, 0, 0.75);
}

.course-content p{ color: rgba(255, 255, 255, 0.6); line-height:1.8; margin-bottom:1.5rem; }
body:not(.dark-mode) .course-content p{ color: rgba(0, 0, 0, 0.62); }

/* Tools Section */
.tools-section{
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.tools-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:2rem;
}
.tool-item{
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color:white;
  padding:3rem 2rem;
  border-radius:15px;
  text-align:center;
  cursor:pointer;
  transition: all .4s;
  position:relative;
  overflow:hidden;
}
body:not(.dark-mode) .tool-item{
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: rgba(0, 0, 0, 0.90);
}
.tool-item::after{
  content:'';
  position:absolute;
  top:50%; left:50%;
  width:0; height:0;
  background: rgba(255, 255, 255, 0.1);
  border-radius:50%;
  transform: translate(-50%,-50%);
  transition: width .6s, height .6s;
}
body:not(.dark-mode) .tool-item::after{
  background: rgba(0, 0, 0, 0.05);
}
.tool-item:hover::after{ width:500px; height:500px; }
.tool-item:hover{
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.15);
}
body:not(.dark-mode) .tool-item:hover{
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.12);
}
.tool-item i{
  font-size:3rem;
  margin-bottom:1rem;
  position:relative;
  z-index:1;
  animation: float 3s ease-in-out infinite;
}
body:not(.dark-mode) .tool-item i{ color: rgba(0, 0, 0, 0.85); }
.tool-item h3{
  position:relative;
  z-index:1;
  font-size:1.3rem;
  font-weight:600;
}

/* Footer */
footer{
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color:white;
  padding:4rem 2rem 2rem;
}
body:not(.dark-mode) footer{
  background: rgba(243, 243, 243, 0.92);
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  color: rgba(0, 0, 0, 0.90);
}

.footer-container{
  max-width:1400px;
  margin:0 auto;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap:3rem;
}
.footer-section h3{ margin-bottom:1.5rem; font-size:1.3rem; font-weight:700; }
.footer-section ul{ list-style:none; }
.footer-section a{
  color: rgba(255, 255, 255, 0.6);
  text-decoration:none;
  display:block;
  padding:.5rem 0;
  transition: all .3s;
  position:relative;
  padding-left:0;
}
.footer-section a::before{
  content:'';
  position:absolute;
  left:0; top:50%;
  width:0; height:1px;
  background:white;
  transition: width .3s;
  transform: translateY(-50%);
}
.footer-section a:hover{ color:white; padding-left:20px; }
.footer-section a:hover::before{ width:15px; }

body:not(.dark-mode) .footer-section a{
  color: rgba(0, 0, 0, 0.60);
}
body:not(.dark-mode) .footer-section a::before{
  background: rgba(0, 0, 0, 0.92);
}
body:not(.dark-mode) .footer-section a:hover{
  color: rgba(0, 0, 0, 0.92);
}

.copyright{
  text-align:center;
  padding-top:3rem;
  margin-top:3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size:.95rem;
}
body:not(.dark-mode) .copyright{
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  color: rgba(0, 0, 0, 0.45);
}

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

/* Scroll Indicator */
.scroll-indicator{
  position:absolute;
  bottom:30px;
  left:50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}
.scroll-indicator i{ font-size:2rem; opacity:.5; }
body:not(.dark-mode) .scroll-indicator i{ color: rgba(0, 0, 0, 0.55); opacity: 1; }

@keyframes bounce{
  0%,20%,50%,80%,100%{ transform: translateX(-50%) translateY(0); }
  40%{ transform: translateX(-50%) translateY(-20px); }
  60%{ transform: translateX(-50%) translateY(-10px); }
}

/* ========= FYNX FLOATING DOWNLOAD QR (NEW) ========= */
.fynx-download{
  position: fixed;
  right: 22px;
  left: auto;
  bottom: 22px;
  z-index: 9999;
  text-decoration: none;
  color: inherit;
  transform: translateZ(0);
  opacity: 1;
  transform: translateY(0) translateZ(0);
  transition: opacity .22s ease, transform .22s ease;
}
.fynx-download.is-hidden{
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) translateZ(0);
}
.fynx-card{
  width: 300px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.fynx-download:hover .fynx-card{
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 22px 72px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

/* Light download widget */
body:not(.dark-mode) .fynx-card{
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}
body:not(.dark-mode) .fynx-download:hover .fynx-card{
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.fynx-aura{
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 52%),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.10), transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.12), transparent 55%);
  filter: blur(18px);
  opacity: .85;
  animation: fynxAura 5.2s ease-in-out infinite;
  pointer-events: none;
}
body:not(.dark-mode) .fynx-aura{
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.10), transparent 52%),
    radial-gradient(circle at 80% 60%, rgba(0, 0, 0, 0.06), transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(0, 0, 0, 0.08), transparent 55%);
  opacity: .65;
}

@keyframes fynxAura{
  0%{ transform: translate3d(-6px,-4px,0) scale(1); }
  50%{ transform: translate3d(10px,8px,0) scale(1.03); }
  100%{ transform: translate3d(-6px,-4px,0) scale(1); }
}
.fynx-scan{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  opacity: .35;
  transform: translateY(-120%);
  animation: fynxScan 3.3s linear infinite;
  pointer-events: none;
}
body:not(.dark-mode) .fynx-scan{
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.06), transparent);
  opacity: .25;
}
@keyframes fynxScan{
  0%{ transform: translateY(-120%); }
  100%{ transform: translateY(120%); }
}

.fynx-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}
.fynx-badge{
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  user-select: none;
}
body:not(.dark-mode) .fynx-badge{
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: rgba(0, 0, 0, 0.75);
}

.fynx-close{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.fynx-close:hover{
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
}
body:not(.dark-mode) .fynx-close{
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.70);
}
body:not(.dark-mode) .fynx-close:hover{
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.18);
  color: rgba(0, 0, 0, 0.92);
}

.fynx-content{
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.fynx-qr{
  width: 88px;
  height: 88px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  overflow: hidden;
}
body:not(.dark-mode) .fynx-qr{
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.fynx-title{
  font-size: 16px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
}
.fynx-sub{
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: 10px;
}
.fynx-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
}

body:not(.dark-mode) .fynx-title{
  color: rgba(0, 0, 0, 0.92);
}
body:not(.dark-mode) .fynx-sub{
  color: rgba(0, 0, 0, 0.62);
}
body:not(.dark-mode) .fynx-pill{
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.85);
}

@media (max-width: 480px){
  .fynx-card{ width: 100%; }
  .fynx-content{ grid-template-columns: 86px 1fr; }
  .fynx-qr{ width: 86px; height: 86px; }
}
@media (max-width: 768px){
  .fynx-download{
    left: 12px;
    right: 12px;
    bottom: 14px;
  }
  .fynx-card{
    width: 100%;
    border-radius: 20px;
  }
}

/* Responsive */
@media (max-width: 768px){
  nav ul{ display:none; }
  .mobile-menu{
    display:flex;
    color: #ffffff !important;
  }
  .mobile-menu i,
  .mobile-menu svg,
  .mobile-menu svg *{
    color:#ffffff !important;
    stroke:#ffffff !important;
  }
  .nav-container{ padding: 0 1rem; }
  .hero h1{ font-size:2.5rem; letter-spacing:-1px; }
  .hero p{ font-size:1.1rem; }
  .section-title{ font-size:2.5rem; }
  .cta-buttons{ flex-direction:column; }
  .cta-buttons .btn{ width:100%; justify-content:center; }
  .feature-grid, .course-grid, .tools-grid{ grid-template-columns:1fr; }
  .tools-subnav-inner{ padding: .65rem 1rem; }
  .news-subnav-inner{ padding: .65rem 1rem; }
  .learn-subnav-inner{ padding: .65rem 1rem; }
  .learn-detail-inner{ padding: .55rem 1rem; }
  .home-subnav-inner{ padding: .65rem 1rem; }
  .home-detail-inner{ padding: .55rem 1rem; }
}

/* ==============================================
   FAQs Section - Dark minimalist accordion
============================================== */
.faq-section {
  padding: 80px 20px;
  background: #0a0a0a;
  color: #ffffff;
}
body:not(.dark-mode) .faq-section{
  background: rgba(0, 0, 0, 0.02);
  color: rgba(0, 0, 0, 0.92);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-accordion {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 16px;
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}
body:not(.dark-mode) .faq-item{
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.70);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}
body:not(.dark-mode) .faq-question{
  color: rgba(0, 0, 0, 0.92);
}

.faq-question:hover {
  background: #1a1a1a;
}
body:not(.dark-mode) .faq-question:hover{
  background: rgba(0, 0, 0, 0.04);
}

.faq-icon {
  transition: transform 0.4s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  background: #0f0f0f;
  transition: max-height 0.6s ease-out, padding 0.6s ease-out;
}
body:not(.dark-mode) .faq-answer{
  background: rgba(255, 255, 255, 0.55);
  color: rgba(0, 0, 0, 0.70);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 24px;
}

/* ==============================================
   FYNX Premium Fintech UI Polish
   Frontend-only refinements for the public site.
============================================== */
:root{
  --fynx-ink:#f8fafc;
  --fynx-muted:rgba(226,232,240,.72);
  --fynx-line:rgba(148,163,184,.18);
  --fynx-panel:rgba(15,23,42,.58);
  --fynx-panel-strong:rgba(2,6,23,.78);
  --fynx-accent:#22d3ee;
  --fynx-accent-2:#34d399;
  --fynx-warn:#f59e0b;
  --fynx-shadow:0 24px 80px rgba(0,0,0,.36);
  --fynx-radius:24px;
}

body{
  font-feature-settings:"cv02","cv03","cv04","cv11";
  letter-spacing:-.01em;
  background:
    radial-gradient(circle at 15% 0%, rgba(34,211,238,.16), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(52,211,153,.12), transparent 30%),
    linear-gradient(180deg, #020617 0%, #030712 48%, #020617 100%);
}
body:not(.dark-mode){
  background:
    radial-gradient(circle at 15% 0%, rgba(14,165,233,.12), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(16,185,129,.10), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 48%, #f8fafc 100%);
}

.animated-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(34,211,238,.08) 58.1% 58.45%, transparent 58.55%),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(148,163,184,.045) 59px 60px),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(148,163,184,.045) 59px 60px);
  mask-image:linear-gradient(180deg, #000, transparent 82%);
}
.grid-overlay{ background-size:42px 42px; opacity:.75; }
.orb-1{ background:radial-gradient(circle, rgba(34,211,238,.45) 0%, transparent 68%); }
.orb-2{ background:radial-gradient(circle, rgba(52,211,153,.34) 0%, transparent 70%); }
.orb-3{ background:radial-gradient(circle, rgba(245,158,11,.18) 0%, transparent 72%); }

header{
  padding:.78rem 0;
  background:rgba(2,6,23,.72);
  border-bottom:1px solid var(--fynx-line);
  box-shadow:0 10px 40px rgba(0,0,0,.18);
}
header.scrolled{
  background:rgba(2,6,23,.88);
  box-shadow:0 18px 50px rgba(0,0,0,.30);
}
body:not(.dark-mode) header{
  background:rgba(248,250,252,.82);
  border-bottom:1px solid rgba(15,23,42,.10);
}
.nav-container{ max-width:1480px; }
.logo{
  padding:.45rem .7rem;
  border:1px solid var(--fynx-line);
  border-radius:16px;
  background:linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.logo i{ color:var(--fynx-accent-2); filter:drop-shadow(0 0 12px rgba(52,211,153,.42)); }
nav ul{ gap:.45rem; align-items:center; }
nav a{
  padding:.72rem .95rem;
  border-radius:999px;
  font-size:.94rem;
  font-weight:750;
  letter-spacing:.01em;
}
nav a::after{ display:none; }
nav a:hover{
  background:rgba(255,255,255,.075);
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
}
body:not(.dark-mode) nav a:hover{ background:rgba(15,23,42,.06); color:#0f172a; }
.fynx-menu-btn,.fynx-network-btn,.fynx-network-theme,.mobile-resources-btn{
  border-radius:999px !important;
  box-shadow:0 10px 28px rgba(0,0,0,.16);
}

.hero{
  min-height:calc(100vh - var(--header-h));
  align-items:center;
  text-align:left;
  padding:clamp(5rem, 9vw, 8rem) 2rem 4rem;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:9% max(2rem, calc((100vw - 1320px)/2)) auto auto;
  width:min(520px, 42vw);
  height:min(520px, 42vw);
  border:1px solid rgba(148,163,184,.16);
  border-radius:32px;
  background:
    linear-gradient(135deg, rgba(15,23,42,.72), rgba(15,23,42,.28)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(148,163,184,.08) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(148,163,184,.08) 39px 40px);
  box-shadow:var(--fynx-shadow), inset 0 1px 0 rgba(255,255,255,.08);
  transform:perspective(900px) rotateY(-10deg) rotateX(4deg);
  opacity:.92;
}
.hero::after{
  content:"BTC +2.8%   SPY +0.4%   EUR/USD 1.0842   VIX -3.1%";
  position:absolute;
  right:max(2rem, calc((100vw - 1320px)/2 + 36px));
  top:calc(50% + 165px);
  width:min(450px, 36vw);
  padding:1rem 1.1rem;
  border:1px solid rgba(52,211,153,.24);
  border-radius:18px;
  color:rgba(209,250,229,.92);
  background:rgba(2,6,23,.72);
  box-shadow:0 20px 60px rgba(0,0,0,.24);
  font-size:.82rem;
  font-weight:850;
  letter-spacing:.08em;
  white-space:normal;
}
.hero-content{
  width:min(720px, 100%);
  max-width:none;
  margin:0 auto 0 max(0px, calc((100vw - 1320px)/2));
  position:relative;
  z-index:2;
}
.hero-content::before{
  content:"FINTECH TRADING WORKSPACE";
  display:inline-flex;
  margin-bottom:1.2rem;
  padding:.48rem .8rem;
  border:1px solid rgba(34,211,238,.26);
  border-radius:999px;
  background:rgba(8,47,73,.34);
  color:#a5f3fc;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.16em;
}
.hero h1{
  font-size:clamp(3.2rem, 7vw, 6.7rem);
  line-height:.94;
  letter-spacing:-.065em;
  margin-bottom:1.35rem;
  background:linear-gradient(135deg, #fff 0%, #dbeafe 38%, #67e8f9 70%, #86efac 100%);
  -webkit-background-clip:text;
  background-clip:text;
}
.hero p{
  max-width:650px;
  font-size:clamp(1.08rem, 1.6vw, 1.35rem);
  color:var(--fynx-muted);
  opacity:1;
  margin-bottom:2.2rem;
}
body:not(.dark-mode) .hero-content::before{ background:rgba(236,254,255,.82); color:#0369a1; border-color:rgba(14,165,233,.22); }
body:not(.dark-mode) .hero h1{ background:linear-gradient(135deg, #020617 0%, #0f172a 48%, #0284c7 78%, #059669 100%); -webkit-background-clip:text; background-clip:text; }
body:not(.dark-mode) .hero::before{ background:linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.46)), repeating-linear-gradient(0deg, transparent 0 38px, rgba(15,23,42,.07) 39px 40px), repeating-linear-gradient(90deg, transparent 0 38px, rgba(15,23,42,.07) 39px 40px); }
body:not(.dark-mode) .hero::after{ background:rgba(255,255,255,.80); color:#047857; border-color:rgba(16,185,129,.22); }

.btn,.fynx-grow__cta,.home-pill,.tools-pill,.news-pill,.learn-pill,.learn-detail-pill,.home-detail-pill{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  border-radius:999px;
  transform:translateZ(0);
}
.btn{ padding:1rem 1.7rem; border:1px solid transparent; }
.btn-primary{
  background:linear-gradient(135deg, #f8fafc, #cbd5e1);
  color:#020617;
  box-shadow:0 16px 38px rgba(34,211,238,.16), 0 0 0 1px rgba(255,255,255,.20) inset;
}
.btn-secondary{
  color:#e2e8f0;
  border:1px solid rgba(148,163,184,.28);
  background:rgba(15,23,42,.42);
  backdrop-filter:blur(14px);
}
.btn:hover{ transform:translateY(-3px); }
.btn-secondary:hover{ background:rgba(255,255,255,.10); color:#fff; border-color:rgba(34,211,238,.34); }
body:not(.dark-mode) .btn-primary{ background:linear-gradient(135deg, #0f172a, #020617); color:#fff; }
body:not(.dark-mode) .btn-secondary{ background:rgba(255,255,255,.62); color:#0f172a; border-color:rgba(15,23,42,.16); }

.features,.tools-section,.learning-section,.fynx-faq{ padding-block:clamp(5rem, 9vw, 8.5rem); }
.section-title,.fynx-faq__title{
  font-size:clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing:-.055em;
  line-height:.96;
}
.section-title::after{
  content:"";
  display:block;
  width:90px;
  height:3px;
  margin:1.1rem auto 0;
  border-radius:999px;
  background:linear-gradient(90deg, transparent, var(--fynx-accent), var(--fynx-accent-2), transparent);
}
.feature-grid,.course-grid,.tools-grid{ gap:clamp(1rem, 2vw, 1.6rem); }
.feature-card,.course-card,.tool-item,.faq-item,.fynx-faq__item,.fynx-grow__card{
  border-radius:var(--fynx-radius);
  border:1px solid var(--fynx-line);
  background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.028));
  box-shadow:0 18px 55px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.08);
}
.feature-card,.tool-item{ text-align:left; padding:clamp(1.5rem, 3vw, 2.35rem); }
.feature-card::after,.course-card::after,.tool-item::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 18% 0%, rgba(34,211,238,.12), transparent 36%);
}
.feature-icon,.tool-item i,.course-image i{ color:#67e8f9; text-shadow:0 0 24px rgba(34,211,238,.28); }
.feature-card h3,.tool-item h3,.course-content h3{ letter-spacing:-.035em; }
.feature-card:hover,.course-card:hover,.tool-item:hover{
  transform:translateY(-8px);
  border-color:rgba(34,211,238,.28);
  box-shadow:0 28px 90px rgba(2,6,23,.32), 0 0 0 1px rgba(34,211,238,.06) inset;
}
body:not(.dark-mode) .feature-card,
body:not(.dark-mode) .course-card,
body:not(.dark-mode) .tool-item,
body:not(.dark-mode) .faq-item,
body:not(.dark-mode) .fynx-faq__item{
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.58));
  border-color:rgba(15,23,42,.10);
  box-shadow:0 18px 55px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.9);
}

.fynx-grow{
  position:relative;
  padding:clamp(5rem, 9vw, 8rem) 2rem;
  background:linear-gradient(180deg, rgba(15,23,42,.16), rgba(2,6,23,.04));
  overflow:hidden;
}
.fynx-grow::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, transparent, rgba(34,211,238,.08), transparent);
  opacity:.7;
}
.fynx-grow__wrap{ max-width:1320px; margin:0 auto; position:relative; z-index:1; }
.fynx-grow__title{ letter-spacing:-.055em; }
.fynx-grow__card img{ filter:saturate(1.08) contrast(1.02); }

footer{
  position:relative;
  background:linear-gradient(180deg, rgba(2,6,23,.86), rgba(2,6,23,.96));
  border-top:1px solid rgba(34,211,238,.14);
}
footer::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(34,211,238,.72), rgba(52,211,153,.52), transparent);
}
.footer-container{ gap:clamp(1.5rem, 4vw, 4rem); }
.footer-section h3{ letter-spacing:-.025em; color:#f8fafc; }
.footer-section a{ border-radius:10px; padding:.38rem .2rem; }
body:not(.dark-mode) footer{ background:linear-gradient(180deg, rgba(248,250,252,.92), rgba(241,245,249,.98)); }
body:not(.dark-mode) .footer-section h3{ color:#0f172a; }

@media (max-width: 1020px){
  .hero{ text-align:center; padding-top:5rem; }
  .hero-content{ margin-inline:auto; }
  .hero p{ margin-inline:auto; }
  .hero::before{ position:relative; display:block; inset:auto; width:min(680px, 88vw); height:260px; margin:3rem auto 0; transform:none; order:2; }
  .hero::after{ display:none; }
  .cta-buttons{ justify-content:center; }
}
@media (max-width: 768px){
  header{ padding:.62rem 0; }
  .logo{ font-size:1.35rem; }
  .hero{ min-height:auto; padding:4.4rem 1rem 3rem; }
  .hero::before{ height:210px; border-radius:24px; }
  .hero h1{ font-size:clamp(2.65rem, 14vw, 4.15rem); }
  .cta-buttons{ flex-direction:column; gap:.8rem; }
  .cta-buttons .btn{ width:100%; }
  .features,.tools-section,.learning-section,.fynx-faq,.fynx-grow{ padding:4.5rem 1rem; }
  .feature-card,.tool-item{ text-align:center; }
  .footer-container{ grid-template-columns:1fr; }
}

/* Waitlist mode polish */
.launch-status-badge{
  display:inline-flex;align-items:center;gap:.5rem;margin-bottom:1.1rem;padding:.55rem .8rem;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:rgba(255,255,255,.86);font-size:.78rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 14px 35px rgba(0,0,0,.18);
}
body:not(.dark-mode) .launch-status-badge{background:rgba(0,0,0,.06);border-color:rgba(0,0,0,.12);color:rgba(0,0,0,.72)}
.hero::before{content:"Private beta preview\A Market workspace • Risk tools • Journal analytics";white-space:pre-line;display:grid;place-items:center;text-align:center;font-weight:900;line-height:1.45;color:rgba(255,255,255,.86)}
body:not(.dark-mode) .hero::before{color:rgba(0,0,0,.76)}
.owner-mode .admin-only{display:initial!important}
.locked-note{font-size:.88rem;color:rgba(255,255,255,.6);margin-top:.7rem}
.owner-dev-links{display:none;align-items:center;gap:8px}.owner-mode .owner-dev-links{display:flex!important}.owner-dev-links .fynx-network-btn{height:34px;font-size:12px;padding:0 10px}

/* Menus fit their content without stacked horizontal scrollbars. */
:is(.tools-subnav-inner,.news-subnav-inner,.learn-subnav-inner,.home-subnav-inner,.home-detail-inner,.learn-detail-inner){flex-wrap:wrap;overflow-x:visible;gap:8px;padding:12px 5%;}
:is(.tools-subnav,.news-subnav,.learn-subnav,.home-subnav){max-height:55vh;overflow-y:auto;}
.home-detail-subnav{top:calc(var(--header-h) + var(--home-menu-height,54px));max-height:35vh;overflow-y:auto;}
.learn-detail-subnav{top:calc(var(--header-h) + var(--learn-menu-height,54px));max-height:35vh;overflow-y:auto;}
:is(.tools-subnav,.news-subnav,.learn-subnav,.home-subnav,.home-detail-subnav,.learn-detail-subnav)[aria-hidden="true"]{visibility:hidden;}

#header .nav-container > [data-theme-control]{display:inline-flex!important;flex-shrink:0;}
@media(max-width:768px){#header .nav-container{gap:10px;}#header .nav-container > [data-theme-control]{margin-left:auto;width:40px;height:40px}.mobile-header-actions{margin-left:0!important;}}

/* [site-qa] iPhone: fully hide the closed slide-out menu (so Safari can't pan sideways into it) and size it to the visible screen above Safari's toolbar. */
.mobile-drawer{ visibility:hidden; height:100dvh; transition:transform .25s ease, visibility 0s linear .25s; padding-bottom:max(1rem, env(safe-area-inset-bottom)); }
body.mobile-menu-open .mobile-drawer{ visibility:visible; transition:transform .25s ease, visibility 0s; }
