:root {
  --bg: #020617;
  --bg-soft: #050816;
  --text-color: #e5e7eb;
  --label-color: #9ca3af;
  --accent: #00d2ff;
  --accent-strong: #3b82f6;
  --accent-soft: rgba(56, 189, 248, 0.2);
  --danger: #ef4444;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-strong: 0 24px 80px rgba(15, 23, 42, 0.9);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #020617 0%, #050c17 60%, #030915 100%);
  color: var(--text-color);
  animation: fadeInPage 0.55s ease-out;
}

::selection {
  background-color: rgba(0, 210, 255, 0.22);
  color: #ffffff;
  text-shadow: 0 0 9px #00d2ff, 0 0 16px #00d2ff;
  -webkit-text-fill-color: #ffffff;
}

::-moz-selection {
  background-color: rgba(0, 210, 255, 0.22);
  color: #ffffff;
  text-shadow: 0 0 9px #00d2ff, 0 0 16px #00d2ff;
}

.chrome-text {
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #e5e5e5 40%,
    #a8a8a8 52%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0px rgba(0, 0, 0, 0.45));
  font-weight: 800;
}

.copy-toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  transform: translate(0, 0);
  background: linear-gradient(135deg, #00d2ff, #22c55e);
  color: #0b1220;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 14px 40px rgba(0, 210, 255, 0.32);
  z-index: 10000;
  animation: toastIn 0.35s ease, toastOut 0.35s ease 1.8s forwards;
  letter-spacing: 0.01em;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(10px, 14px); }
  to { opacity: 1; transform: translate(0, 0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translate(6px, 8px); }
}

body.light-theme {
  --text-color: #0f172a;
  --label-color: #475569;
  --accent-soft: rgba(59, 130, 246, 0.18);
  background: linear-gradient(180deg, #f6f8fc 0%, #e8f0ff 55%, #e0e7f5 100%);
  color: #0f172a;
}
body.light-theme::before { opacity: 0.06; }

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.06; /* more material on "pro" displays */
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  filter: contrast(180%) brightness(105%);
  mix-blend-mode: soft-light;
}

.light-theme .noise-overlay {
  opacity: 0.04;
  mix-blend-mode: multiply;
  filter: contrast(150%) brightness(106%);
}

.aurora-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #050505;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.light-theme .aurora-bg { background-color: #f4f7ff; }

.aurora-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: soft-light;
}
.light-theme .aurora-noise {
  opacity: 0.08;
  mix-blend-mode: multiply;
}

.aurora-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 18% 28%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 32% 12%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 58% 18%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 74% 32%, rgba(255,255,255,0.65), transparent 60%),
    radial-gradient(1px 1px at 82% 64%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1px 1px at 64% 78%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 36% 70%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 26% 54%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 12% 68%, rgba(255,255,255,0.48), transparent 60%),
    radial-gradient(1px 1px at 46% 46%, rgba(255,255,255,0.62), transparent 60%);
  background-size: 100% 100%;
  opacity: 0.6;
  mix-blend-mode: screen;
  filter: blur(0.25px);
  animation: twinkle 8s ease-in-out infinite alternate;
}
.light-theme .aurora-stars {
  opacity: 0.4;
  filter: blur(0.2px);
}

.blob {
  position: absolute;
  filter: blur(120px);
  opacity: 0.22;
  animation: float 26s ease-in-out infinite alternate;
  will-change: transform;
}
.light-theme .blob {
  filter: blur(140px);
  opacity: 0.18;
}

.blob-1 {
  top: 12%;
  left: 8%;
  width: 520px;
  height: 520px;
  background: #09d6ff;
  animation-delay: -2s;
}
.light-theme .blob-1 { background: #7ed8ff; }

.blob-2 {
  bottom: 8%;
  right: 6%;
  width: 620px;
  height: 620px;
  background: #0bf5a7;
  animation-delay: -7s;
}
.light-theme .blob-2 { background: #7df5c4; }

.signal { display: none; }

.veil {
  position: absolute;
  width: 160%;
  height: 110%;
  left: -30%;
  background: linear-gradient(90deg,
    transparent 15%,
    rgba(16, 185, 129, 0.34) 38%,
    rgba(59, 130, 246, 0.36) 55%,
    transparent 82%);
  filter: blur(72px);
  opacity: 0.46;
  mix-blend-mode: screen;
  animation: auroraWave 22s ease-in-out infinite alternate;
  pointer-events: none;
  transform-origin: center;
}
.light-theme .veil {
  filter: blur(80px);
  opacity: 0.38;
  background: linear-gradient(90deg,
    transparent 15%,
    rgba(104, 196, 255, 0.32) 42%,
    rgba(129, 230, 217, 0.34) 58%,
    transparent 80%);
}

.veil-1 {
  top: -10%;
  transform: rotate(-6deg);
  animation-delay: -4s;
}

.veil-2 {
  bottom: -8%;
  transform: rotate(9deg);
  animation-duration: 28s;
  animation-delay: -11s;
}

.veil-3 {
  top: 6%;
  left: -20%;
  width: 180%;
  height: 120%;
  background: linear-gradient(105deg,
    transparent 18%,
    rgba(34, 211, 238, 0.34) 40%,
    rgba(76, 201, 240, 0.3) 60%,
    transparent 82%);
  filter: blur(78px);
  transform: rotate(-2deg);
  animation-duration: 30s;
  animation-delay: -15s;
}
.light-theme .veil-3 {
  background: linear-gradient(105deg,
    transparent 18%,
    rgba(99, 179, 237, 0.3) 42%,
    rgba(142, 236, 245, 0.28) 60%,
    transparent 82%);
}

@keyframes auroraWave {
  0%   { transform: translateX(-6%) translateY(0) scale(1) rotate(var(--angle, -8deg)); opacity: 0.38; }
  50%  { transform: translateX(5%) translateY(-6%) scale(1.08) rotate(var(--angle, -4deg)); opacity: 0.52; }
  100% { transform: translateX(10%) translateY(8%) scale(0.94) rotate(var(--angle, -11deg)); opacity: 0.34; }
}

@keyframes twinkle {
  0%   { opacity: 0.32; filter: blur(0.3px); }
  50%  { opacity: 0.46; filter: blur(0.45px); }
  100% { opacity: 0.3; filter: blur(0.25px); }
}

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, 50px) scale(1.07); }
  100% { transform: translate(-24px, -28px) scale(0.94); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .noise-overlay,
  .aurora-noise {
    mix-blend-mode: normal;
    opacity: 0.04;
  }

  .aurora-stars {
    opacity: 0.35;
    animation: none;
  }

  .blob,
  .veil {
    animation: none;
    filter: blur(80px);
    opacity: 0.18;
    mix-blend-mode: normal;
  }

  .glow-card::after,
  .glow-card:hover::after {
    opacity: 0 !important;
  }

  .hero-card,
  .feature-card,
  .course-card,
  .membership-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(#ffffff15 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

body.light-theme {
  background: radial-gradient(circle at top, #e5e7eb 0, #f9fafb 55%);
  color: #0f172a;
}
body.light-theme::before {
  opacity: 0.08;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

.page-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 16px 60px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #22c55e, #3b82f6);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
  font-size: 0.9rem;
  font-weight: 700;
  color: #0b1220;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--label-color);
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-right .cta-button.hero-cta-primary,
.header-right .ghost-button {
  padding: 8px 14px;
  min-width: 120px;
  justify-content: center;
}

.chip-btn {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.22s ease;
  backdrop-filter: blur(10px);
}

/* Premium unified auth buttons (Register / Log in) */
.authGroup{
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0,0,0,.26);
}

.authBtn{
  height:38px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.90);
  font-weight:850;
  font-size:13px;
  letter-spacing:.01em;
  cursor:pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease, filter .14s ease;
  outline:none;
  white-space:nowrap;
}

.authBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.045);
}
.authBtn:active{ transform: translateY(0); }

.authBtn.primary{
  border: none;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #f9fafb;
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.55);
}
.authBtn.primary:hover{
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.65);
}

.authBtn.ghost{
  background: transparent;
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.84);
  box-shadow: none;
}
.authBtn.ghost:hover{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.035);
}

.authBtn.danger{
  border-color: rgba(255,92,116,.32);
  color: rgba(255,255,255,.88);
}
.authBtn.danger:hover{
  border-color: rgba(255,92,116,.48);
  background: rgba(255,92,116,.08);
}

[hidden]{
  display: none !important;
}

/* --- Light theme readability polish --- */
body.light-theme .hero-pill{
  color: #0f172a;
}
body.light-theme .hero-gradient-text{
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.light-theme .hero-subtitle,
body.light-theme .section-subtitle,
body.light-theme .feature-card p,
body.light-theme .course-card p,
body.light-theme .course-meta,
body.light-theme .faq-item p,
body.light-theme .membership-left p,
body.light-theme .membership-list li{
  color: #334155;
}
body.light-theme .hero-card-title,
body.light-theme .hero-card-caption,
body.light-theme .hero-card-list li,
body.light-theme .price-chip-large,
body.light-theme .membership-price-note{
  color: #0f172a;
}
body.light-theme .ghost-button,
body.light-theme .authBtn.ghost{
  color: #0f172a;
  border-color: #cbd5e1;
  background: rgba(255,255,255,0.65);
}
body.light-theme .ghost-button:hover,
body.light-theme .authBtn.ghost:hover{
  background: rgba(226,232,240,0.9);
  border-color: #94a3b8;
}
body.light-theme .authGroup{
  border-color: rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.7);
}
body.light-theme .feature-card,
body.light-theme .course-card,
body.light-theme .faq-item,
body.light-theme .hero-card,
body.light-theme .membership-price-block{
  border-color: #d1d5db;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

#logoutBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(135deg, rgba(248,113,113,0.95), rgba(239,68,68,0.9));
  color: #fff7f7;
  border: 1px solid rgba(248,113,113,0.9);
  box-shadow: 0 12px 28px rgba(239,68,68,0.35);
  cursor: pointer;
  transition: 0.2s ease;
}

#logoutBtn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(239,68,68,0.4);
}

#logoutBtn.ghost-button {
  background: transparent;
  color: var(--text-color);
  border: 1px solid rgba(148, 163, 184, 0.8);
  box-shadow: none;
}

#logoutBtn.ghost-button:hover {
  transform: translateY(-1px);
  background: rgba(148, 163, 184, 0.16);
  box-shadow: none;
}

.chip-btn.tertiary,
#soundToggle{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.78);
}
.chip-btn.tertiary:hover,
#soundToggle:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.035);
}

.light-theme #logoutBtn.ghost-button {
  color: #0f172a;
  border-color: #cbd5f5;
}

.light-theme #logoutBtn {
  background: linear-gradient(135deg, rgba(248,113,113,0.92), rgba(254,202,202,0.9));
  color: #7f1d1d;
  border-color: rgba(239,68,68,0.7);
}
.light-theme #logoutBtn:hover {
  box-shadow: 0 12px 28px rgba(239,68,68,0.35);
  filter: brightness(1.08);
}

body.light-theme .chip-btn {
  color: #0f172a;
  border-color: #cbd5f5;
}

.chip-btn:hover {
  background: rgba(148, 163, 184, 0.22);
  transform: translateY(-1px);
}

.chip-btn.primary {
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.65);
}

.chip-btn.primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 42px rgba(22, 163, 74, 0.75);
}

.chip-btn.danger {
  border: none;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fef2f2;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(185, 28, 28, 0.6);
}

.theme-toggle {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.6), transparent 55%),
              rgba(15, 23, 42, 0.96);
  position: relative;
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
}

.theme-toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 10%, #fde68a, #f97316);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.8);
  transform: translateX(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

body.light-theme .theme-toggle {
  background: #e5e7eb;
}

body.light-theme .theme-toggle-thumb {
  transform: translateX(18px);
  background: radial-gradient(circle at 40% 10%, #0ea5e9, #1d4ed8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.55);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

body.light-theme .cta-button {
  color: #0f172a;
}

.cta-button:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.65);
  filter: brightness(1.05);
}

.cta-button:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.85);
}

.glow-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --glow-size: 180px;
  transform-style: preserve-3d;
}

.glow-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    circle var(--glow-size) at var(--mouse-x) var(--mouse-y),
    rgba(56, 189, 248, 0.35),
    rgba(34, 197, 94, 0.22),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  filter: blur(4px);
  mix-blend-mode: screen;
  z-index: 1;
}

.glow-card:hover::after {
  opacity: 1;
}

.glow-card > * {
  position: relative;
  z-index: 2;
}

.tilt-card {
  will-change: transform;
  transition:
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s ease;
}

.tilt-card.tilt-active {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .tilt-card {
    transition: none;
    transform: none !important;
  }
}

.btn-glow {
  --mag-x: 0px;
  --mag-y: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.9);
  background: radial-gradient(circle at 0% 0%,
              rgba(56, 189, 248, 0.4),
              transparent 55%),
              linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #020617;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.6);
  transition: transform 0.23s ease, box-shadow 0.23s ease;
  border-width: 1px;
  transform: translate(var(--mag-x), var(--mag-y));
}

.btn-glow:hover {
  transform: translate(var(--mag-x), var(--mag-y)) translateY(-2px) scale(1.03);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.8);
}

.btn-glow:active {
  transform: translate(var(--mag-x), var(--mag-y)) translateY(0) scale(0.98);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.9);
}

/* Animated border beam for primary CTAs */
#subscribeBtn,
#heroMiniSubscribe,
#membershipSubscribe {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ghost-button {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: 0.25s ease;
}

body.light-theme .ghost-button {
  color: #0f172a;
  border-color: #cbd5f5;
}

.ghost-button:hover {
  background: rgba(148, 163, 184, 0.16);
  transform: translateY(-1px);
}

/* Magnetic target shared style */
.magnetic-target {
  --mag-x: 0px;
  --mag-y: 0px;
  transform: translate(var(--mag-x), var(--mag-y));
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.magnetic-target:active {
  transform: translate(var(--mag-x), var(--mag-y)) translateY(1px) scale(0.99);
}

.landing-root {
  margin-top: 26px;
}

.landing-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 4px 0;
}

.landing-root h1,
.landing-root h2,
.landing-root h3,
.landing-root p {
  text-align: left;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

.hero-left {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.6);
  backdrop-filter: blur(18px);
}
.light-theme .hero-pill {
  background: rgba(255, 255, 255, 0.9);
  border-color: #d6e0ff;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.hero-greeting {
  font-size: 1rem;
  color: var(--label-color);
  margin: 10px 0 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.light-theme .hero-greeting {
  color: #0f172a;
  opacity: 0.8;
}

.hero-heading {
  font-size: clamp(2.4rem, 5vw, 3.3rem);
  line-height: 1.1;
  margin: 18px 0 10px;
  text-wrap: balance;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #3b82f6, #22c55e, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 100%;
  animation: heroShimmer 4s ease-in-out infinite;
  text-shadow:
    0 0 14px rgba(59, 130, 246, 0.35),
    0 0 22px rgba(34, 197, 94, 0.28),
    0 0 28px rgba(168, 85, 247, 0.28);
  filter: brightness(1.05) saturate(1.1);
}

.hero-subtitle {
  max-width: 520px;
  font-size: 1rem;
  color: var(--label-color);
  margin-bottom: 20px;
  line-height: 1.65;
  text-wrap: balance;
}
.light-theme .hero-subtitle { color: #4b5563; }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  justify-content: flex-start;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
}

.stat {
  min-width: 90px;
}

.stat-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--label-color);
}
.light-theme .stat-label { color: #475569; }

.hero-right {
  position: relative;
  min-height: 260px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  align-self: start;
}

.hero-orb {
  position: absolute;
  inset: -40px -40px auto auto;
  background: radial-gradient(circle at 30% 30%, #22d3ee, #1d4ed8, #0f172a);
  filter: blur(8px);
  opacity: 0.7;
  border-radius: 999px;
  transform: translate3d(0, 0, 0);
}

.hero-card {
  position: relative;
  border-radius: 20px;
  padding: 18px 18px 16px;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.35), transparent 60%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.45);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-strong);
  transform: translateZ(0);
}

body.light-theme .hero-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.15);
}
.holo-tilt {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  transition:
    transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.25s ease,
    filter 0.25s ease;
  perspective: 900px;
}
.holo-tilt::after {
  /* Glow on hover disabled (kept selector to avoid layout shift) */
  content: none;
}
.holo-tilt:hover {
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  filter: none;
}
.holo-tilt:hover::after {
  opacity: 1;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #e5f3ff;
}

.hero-card-title {
  font-size: 0.98rem;
  font-weight: 600;
}

.hero-card-caption {
  font-size: 0.8rem;
  color: var(--label-color);
}

.hero-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-tag {
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
}

.hero-tag-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.6);
}
.light-theme .hero-tag {
  background: rgba(59, 130, 246, 0.12);
  color: #0f172a;
}
.light-theme .hero-tag-outline {
  border-color: #cbd5f5;
  color: #0f172a;
}

.hero-card-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 0.86rem;
  color: var(--label-color);
}

.hero-card-list li + li {
  margin-top: 4px;
}

.hero-card-price-row {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-price-label {
  font-size: 0.78rem;
  color: var(--label-color);
}

.hero-price {
  font-size: 1.3rem;
  font-weight: 700;
}
.section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 6px;
  text-wrap: balance;
}

.section-subtitle {
  max-width: 600px;
  font-size: 0.95rem;
  color: var(--label-color);
  line-height: 1.6;
  text-wrap: balance;
  margin-left: 0;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.feature-card {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: radial-gradient(circle at top left,
              rgba(59, 130, 246, 0.32), transparent 55%),
              rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.9);
  transition: 0.3s ease;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top,
              rgba(59, 130, 246, 0.4),
              transparent 55%);
  opacity: 0;
  transition: 0.35s ease;
  pointer-events: none;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-bottom: 6px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
}
.light-theme .feature-pill {
  background: rgba(59, 130, 246, 0.12);
  border-color: #d6e0ff;
  color: #0f172a;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--label-color);
}

body.light-theme .feature-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.course-card {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(12px);
  transition: 0.35s ease;
  cursor: pointer;
  overflow: hidden;
  font-size: 0.9rem;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, #22c55e, #a855f7);
  -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.35s ease;
  pointer-events: none;
}

.course-card:hover::before {
  opacity: 1;
}

.course-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

body.light-theme .course-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.course-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.25);
  backdrop-filter: blur(6px);
}

.course-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 600;
}

.course-card p {
  color: var(--label-color);
  font-size: 0.9rem;
  margin: 0 0 10px;
  max-width: 90%;
}

.course-meta {
  font-size: 0.8rem;
  color: rgba(200, 200, 200, 0.7);
}
.light-theme .course-meta { color: #475569; }

.price-chip-large {
  border-radius: 16px;
  padding: 10px 14px;
  text-align: right;
  background: rgba(0, 0, 0, 0.35);
}

.price-chip-large span {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

.price-chip-large small {
  font-size: 0.8rem;
  color: var(--label-color);
}

body.light-theme .price-chip-large {
  background: #eef2ff;
}

.membership-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  padding: 20px 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.2), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(74, 222, 128, 0.6);
}

body.light-theme .membership-card {
  background: #ecfdf3;
  border-color: #4ade80;
}

.membership-left h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.membership-left p {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--label-color);
}
.light-theme .membership-left p { color: #4b5563; }

.membership-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.membership-list li + li {
  margin-top: 4px;
}
.light-theme .membership-list li { color: #4b5563; }

.membership-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.membership-price-block {
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

body.light-theme .membership-price-block {
  background: #ffffff;
  border-color: #e5e7eb;
}

.membership-price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.membership-price-number {
  font-size: 1.6rem;
  font-weight: 700;
}

.membership-price-period {
  font-size: 0.9rem;
}

.membership-price-note {
  font-size: 0.8rem;
  color: var(--label-color);
  margin: 4px 0 10px;
}

.membership-cta {
  width: 100%;
  margin: 0 0 6px;
}

.membership-secure {
  font-size: 0.8rem;
  color: var(--label-color);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.faq-item {
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.88rem;
}

body.light-theme .faq-item {
  background: #ffffff;
  border-color: #e5e7eb;
}

.faq-item h3 {
  font-size: 0.95rem;
  margin: 0 0 6px;
}

.faq-item p {
  margin: 0;
  color: var(--label-color);
}
.light-theme .faq-item p { color: #475569; }

.site-footer {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--label-color);
  text-align: center;
}

.hero-entrance [data-hero-anim] {
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  filter: blur(8px);
}

.hero-entrance.is-visible [data-hero-anim] {
  animation: heroEntrance 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-entrance.is-visible [data-hero-anim].delay-1 { animation-delay: 0.08s; }
.hero-entrance.is-visible [data-hero-anim].delay-2 { animation-delay: 0.16s; }
.hero-entrance.is-visible [data-hero-anim].delay-3 { animation-delay: 0.24s; }
.hero-entrance.is-visible [data-hero-anim].delay-4 { animation-delay: 0.32s; }
.hero-entrance.is-visible [data-hero-anim].delay-5 { animation-delay: 0.4s; }

@keyframes heroEntrance {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================= SKELETON ================= */
.skeleton-shell {
  max-width: 1160px;
  margin: 32px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
.skeleton-card {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 36px rgba(0,0,0,0.35);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.hero-skel {
  grid-column: span 2;
}
.sk-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.14), rgba(255,255,255,0.08));
  background-size: 200% 100%;
  animation: skPulse 1.4s ease-in-out infinite;
  margin-bottom: 10px;
}
.sk-title { height: 22px; width: 80%; }
.sk-subtitle { height: 14px; width: 90%; opacity: 0.8; }
.sk-pill { width: 42%; height: 18px; }
.sk-cta { width: 36%; height: 18px; }
.card-skel { height: 140px; }

@keyframes skPulse {
  0% { background-position: 200% 0; opacity: 0.6; }
  50% { opacity: 0.8; }
  100% { background-position: -200% 0; opacity: 0.6; }
}

.light-theme .skeleton-card {
  background: linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
  border-color: rgba(0,0,0,0.05);
}

[data-reveal-state] {
  transform-origin: 50% 50%;
}

[data-reveal-state="pending"] {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  filter: blur(8px);
}

[data-reveal-state="visible"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.75s ease;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal-state] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .hero-entrance [data-hero-anim] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .page-shell {
    padding-inline: 12px;
  }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
  }
  .hero-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-right {
    order: -1;
  }
  .membership-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .membership-right {
    justify-content: flex-start;
  }
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .landing-container {
    padding-inline: 0;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .course-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* --- PERFORMANCE OPTIMIZATION (TUNED) --- */
[class*="blob-"] {
  filter: blur(100px) !important;
  opacity: 0.3;
}

.hero-section,
.glass-card {
  will-change: transform;
  transform: translateZ(0);
}

/* --- Left alignment polish for section copy --- */
.section-title,
.section-subtitle {
  text-align: left;
}

.section-subtitle {
  margin-left: 0;
  margin-right: auto;
}

.section-header-row > div {
  text-align: left;
}
  
/* Remove default link underline across marketing page */
.page-shell a{
  text-decoration: none;
}
.page-shell a:hover{
  text-decoration: none;
}

/* --- Waitlist form --- */
.waitlist-form{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.waitlist-form input{
  min-width: 240px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-color);
  outline: none;
}
body.light-theme .waitlist-form input{
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}
.waitlist-form button{
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}
body.light-theme .waitlist-form button{
  border-color: rgba(34, 197, 94, 0.55);
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: #ffffff;
}
.waitlist-msg{
  width: 100%;
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--label-color);
}

/* --- Light theme contrast fix (extra) --- */
body.light-theme .hero-card,
body.light-theme .feature-card,
body.light-theme .course-card,
body.light-theme .faq-item,
body.light-theme .membership-card{
  background: #ffffff;
  border-color: #d1d5db;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

body.light-theme .hero-card-title,
body.light-theme .hero-card-caption,
body.light-theme .hero-card-list li,
body.light-theme .hero-price-label,
body.light-theme .hero-price,
body.light-theme .feature-card h3,
body.light-theme .course-card h3,
body.light-theme .section-title{
  color: #0f172a;
}

body.light-theme .feature-card p,
body.light-theme .course-card p,
body.light-theme .hero-subtitle,
body.light-theme .section-subtitle,
body.light-theme .course-meta,
body.light-theme .membership-left p,
body.light-theme .membership-list li,
body.light-theme .faq-item p{
  color: #334155;
}

body.light-theme .hero-tag{
  background: #e0e7ff;
  color: #0f172a;
}
body.light-theme .hero-tag-outline{
  background: transparent;
  border-color: #c7d2fe;
  color: #0f172a;
}

body.light-theme .feature-pill{
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

body.light-theme .course-badge{
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

body.light-theme .price-chip-large{
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}
body.light-theme .price-chip-large small{
  color: #475569;
}

/* Light theme: make sound toggle + CTA more visible */
body.light-theme #soundToggle,
body.light-theme .chip-btn.tertiary{
  background: rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
  color: #0f172a;
}
body.light-theme #soundToggle:hover,
body.light-theme .chip-btn.tertiary:hover{
  background: rgba(15, 23, 42, 0.14);
  border-color: #94a3b8;
}

body.light-theme .cta-button{
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  color: #0b1220;
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.28);
}
body.light-theme .cta-button:hover{
  box-shadow: 0 18px 46px rgba(14, 165, 233, 0.35);
}

/* Light theme: CTA buttons (Activate access / Start membership) -> emerald/teal */
body.light-theme .btn-glow{
  border-color: rgba(34, 197, 94, 0.55);
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: #0b1220;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
}
body.light-theme .btn-glow:hover{
  box-shadow: 0 18px 42px rgba(34, 197, 94, 0.45);
}

body.light-theme #subscribeBtn,
body.light-theme #heroMiniSubscribe,
body.light-theme #membershipSubscribe {
  color: #ffffff;
}
