/* ============ RIGALMA — Design Engine ============ */
:root {
  --navy: #0a1128;
  --navy-2: #060a1a;
  --navy-3: #0d1533;
  --blue: #1648c6;
  --purple: #5e1b9b;
  --pink: #d51b68;
  --orange: #f07e19;
  --yellow: #f3b41b;
  --ink: #ffffff;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --card: rgba(255, 255, 255, .028);
  --card-hi: rgba(255, 255, 255, .055);
  --grad-text: linear-gradient(92deg, #5b8cff 0%, #a855f7 42%, #d51b68 72%, #f07e19 100%);
  --grad-warm: linear-gradient(92deg, #d51b68, #f07e19 55%, #f3b41b);
  --grad-btn: linear-gradient(100deg, #1648c6 0%, #5e1b9b 50%, #1648c6 100%);
  --grad-pink: linear-gradient(135deg, #d51b68 0%, #f07e19 100%);
  --font-d: 'Cabinet Grotesk', sans-serif;
  --font-b: 'Satoshi', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: auto;
  overflow-x: hidden
}

html.lenis,
html.lenis body {
  height: auto
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important
}

body {
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--pink);
  color: #fff
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit
}

::-webkit-scrollbar {
  width: 10px
}

::-webkit-scrollbar-track {
  background: var(--navy-2)
}

::-webkit-scrollbar-thumb {
  background: #263163;
  border-radius: 99px
}

/* film grain */
.noise {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {

  0%,
  100% {
    transform: translate(0, 0)
  }

  20% {
    transform: translate(-3%, 2%)
  }

  40% {
    transform: translate(2%, -3%)
  }

  60% {
    transform: translate(-2%, -2%)
  }

  80% {
    transform: translate(3%, 3%)
  }
}

/* ---------- preloader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--navy-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  transition: opacity .7s var(--ease), visibility .7s;
}

#loader.done {
  opacity: 0;
  visibility: hidden
}

#loader img {
  height: 54px;
  width: auto;
  animation: loaderPulse 1.6s ease-in-out infinite
}

.loader-bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, .1);
  border-radius: 99px;
  overflow: hidden
}

.loader-bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--grad-warm);
  border-radius: 99px;
  animation: loaderBar 1.2s var(--ease) infinite
}

@keyframes loaderPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1
  }

  50% {
    transform: scale(1.06);
    opacity: .75
  }
}

@keyframes loaderBar {
  0% {
    transform: translateX(-120%)
  }

  100% {
    transform: translateX(320%)
  }
}

/* ---------- type ---------- */
h1,
h2,
h3,
.font-d {
  font-family: var(--font-d);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.02
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted)
}

.overline::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--grad-warm)
}

/* Slightly reduced font size for .h-xl for refined, balanced typography */
.h-xl {
  font-size: clamp(2.5rem, 5.8vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.03em
}

.h-lg {
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -.03em
}

.h-md {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -.02em
}

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

.grad-warm {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

.grad-blue {
  background: linear-gradient(92deg, #38bdf8, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

.grad-purple {
  background: linear-gradient(92deg, #c084fc, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  max-width: 56ch;
  font-weight: 500
}

.mono-num {
  font-family: var(--font-d);
  font-weight: 900
}

/* masked line reveal */
.mask {
  display: block;
  overflow: hidden
}

.mask>span {
  display: block;
  transform: translateY(115%)
}

/* ---------- layout ---------- */
.wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px)
}

.section {
  padding: clamp(90px, 11vw, 170px) 0;
  position: relative;
  overflow-x: clip
}

.sec-head {
  max-width: 840px;
  margin-bottom: clamp(48px, 6vw, 84px)
}

.sec-head.center {
  margin-inline: auto;
  text-align: center
}

.sec-head.center .overline {
  justify-content: center
}

.sec-head.center .lede {
  margin-inline: auto
}

.sec-head .h-lg {
  margin: 18px 0 20px
}

/* glow orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0
}

.orb-blue {
  background: rgba(22, 72, 198, .34)
}

.orb-purple {
  background: rgba(94, 27, 155, .32)
}

.orb-pink {
  background: rgba(213, 27, 104, .26)
}

.orb-orange {
  background: rgba(240, 126, 25, .22)
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: transform .5s var(--ease), background .4s;
}

/* Fluid, width-responsive floating nav container */
.nav-inner {
  margin: 12px clamp(8px, 1.8vw, 28px) 0;
  padding: 10px clamp(12px, 1.4vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.2vw, 20px);
  background: rgba(10, 17, 40, .62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: background .4s, border-color .4s;
}

.nav.scrolled .nav-inner {
  background: rgba(6, 10, 26, .88);
  border-color: var(--line-2)
}

.nav.hidden {
  transform: translateY(-130%)
}

.nav [data-testid="nav-logo"] {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0
}

.nav-logo {
  height: clamp(34px, 2.4vw, 42px);
  width: auto;
  max-height: 44px;
  max-width: none;
  object-fit: contain;
  transition: transform .4s var(--ease)
}

.nav-logo:hover {
  transform: scale(1.05)
}

.nav a img.logo-white,
.nav a img.logo-color,
.nav [data-testid="nav-logo"] img,
.nav-inner a img {
  height: clamp(34px, 2.4vw, 42px);
  width: auto;
  max-height: 44px;
  max-width: none;
  object-fit: contain
}

.nav a:hover img.logo-white,
.nav a:hover img.logo-color,
.nav [data-testid="nav-logo"]:hover img {
  transform: scale(1.05)
}

.foot-logo,
.foot-grid img.logo-white,
.foot-grid img.logo-color,
.modal-box img.logo-white,
.modal-box img.logo-color {
  height: 42px;
  width: auto;
  max-height: 46px;
  max-width: none;
  object-fit: contain;
  margin-bottom: 18px
}

/* Keep all navigation links and words strictly on a single line according to width */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 20px);
  flex-shrink: 1
}

.nav-links a {
  font-size: clamp(11.5px, 0.88vw, 13.5px);
  font-weight: 700;
  letter-spacing: clamp(0.005em, 0.02vw, 0.035em);
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color .3s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-warm);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease)
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left
}

.nav-links a .tag-badge {
  padding: 2px 6px;
  font-size: 10px;
  margin-right: 4px;
  flex-shrink: 0
}

.nav-cta {
  display: inline-flex;
  padding: 10px clamp(12px, 1.3vw, 22px);
  font-size: clamp(12px, 0.88vw, 13.5px);
  white-space: nowrap;
  flex-shrink: 0
}

.theme-toggle {
  flex-shrink: 0
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px
}

.burger i {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .35s var(--ease)
}

.burger.open i:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.burger.open i:nth-child(2) {
  opacity: 0
}

.burger.open i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

.m-menu {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: rgba(6, 10, 26, .97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 85px 24px 36px;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: .4s var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch
}

.m-menu.open {
  opacity: 1;
  visibility: visible
}

.m-menu a {
  font-family: var(--font-d);
  font-size: clamp(1.15rem, 4.6vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(16px);
  opacity: 0;
  transition: .4s var(--ease);
  flex-shrink: 0
}

.m-menu.open a {
  transform: translateY(0);
  opacity: 1
}

.m-menu a span {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: .15em;
  font-family: var(--font-b)
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 17px 34px;
  border-radius: 99px;
  transition: transform .35s var(--ease), box-shadow .35s, background-position .5s;
  position: relative;
  white-space: nowrap
}

.btn-primary {
  background: var(--grad-btn);
  background-size: 220% auto;
  color: #fff;
  box-shadow: 0 12px 34px -10px rgba(22, 72, 198, .55)
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -10px rgba(94, 27, 155, .6)
}

.btn-ghost {
  border: 1px solid var(--line-2);
  color: #fff;
  background: rgba(255, 255, 255, .03)
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateY(-3px)
}

.btn-sm {
  padding: 12px 26px;
  font-size: 13.5px
}

.btn .arr {
  transition: transform .35s var(--ease)
}

.btn:hover .arr {
  transform: translateX(4px)
}

/* ---------- hero ---------- */
/* Reduced vertical top padding from 150px to 120px and aligned items to flex-start so content starts right below the floating navbar with balanced spacing */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 120px 0 60px;
  overflow-x: clip
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 2
}

.hero-grid>*,
.page-hero-grid>* {
  min-width: 0
}

.hero .h-xl {
  margin: 20px 0 24px
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 38px 0 52px
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap
}

.hstat {
  border-left: 2px solid;
  padding-left: 18px
}

.hstat b {
  display: block;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  letter-spacing: -.02em
}

.hstat small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted)
}

.hstat.c-blue {
  border-color: var(--blue)
}

.hstat.c-pink {
  border-color: var(--pink)
}

.hstat.c-yellow {
  border-color: var(--yellow)
}

.hero-visual,
.page-hero-visual {
  position: relative;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden
}

.hero-visual .frame {
  aspect-ratio: 1/1
}

/* Floating badges / chips: Hardware accelerated with 3D translation & backface isolation to prevent cross-browser jitter */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(13, 21, 51, .72);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .5);
  z-index: 3;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: floaty 6s ease-in-out infinite;
  pointer-events: auto
}

.chip b {
  font-size: 14px;
  font-family: var(--font-d)
}

.chip small {
  display: block;
  font-size: 11px;
  color: var(--muted)
}

.chip .dot {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px
}

@keyframes floaty {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0)
  }

  50% {
    transform: translate3d(0, -14px, 0);
    -webkit-transform: translate3d(0, -14px, 0)
  }
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  z-index: 3
}

.scroll-hint i {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--pink), transparent);
  display: block;
  animation: drip 1.8s var(--ease) infinite
}

@keyframes drip {
  0% {
    transform: scaleY(0);
    transform-origin: top
  }

  45% {
    transform: scaleY(1);
    transform-origin: top
  }

  55% {
    transform: scaleY(1);
    transform-origin: bottom
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom
  }
}

/* ---------- Hero Pillar Switcher (AcademiX AI -> Competitive Exams -> Coding -> School ERP) ---------- */
/* Keep all 4 pillar tabs on one single line without wrapping */
.hero-pillar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-pillar-nav::-webkit-scrollbar {
  display: none
}

.hero-pillar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .3s var(--ease);
  font-family: var(--font-b);
  flex-shrink: 0;
  white-space: nowrap;
}

.hero-pillar-btn:hover {
  background: rgba(255, 255, 255, .09);
  color: var(--text);
  border-color: var(--line-2)
}

.hero-pillar-btn .pillar-num {
  font-family: var(--font-d);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: var(--muted);
  font-weight: 800;
  transition: all .3s;
  flex-shrink: 0;
}

.hero-pillar-btn .pillar-title {
  white-space: nowrap;
}

.hero-pillar-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .4)
}

.hero-pillar-btn.active[data-hero-tab="0"] {
  border-color: rgba(255, 45, 120, .55);
  box-shadow: 0 8px 24px -6px rgba(255, 45, 120, .35)
}

.hero-pillar-btn.active[data-hero-tab="0"] .pillar-num {
  background: var(--pink);
  color: #fff
}

.hero-pillar-btn.active[data-hero-tab="1"] {
  border-color: rgba(245, 158, 11, .55);
  box-shadow: 0 8px 24px -6px rgba(245, 158, 11, .35)
}

.hero-pillar-btn.active[data-hero-tab="1"] .pillar-num {
  background: #f59e0b;
  color: #051329
}

.hero-pillar-btn.active[data-hero-tab="2"] {
  border-color: rgba(168, 85, 247, .55);
  box-shadow: 0 8px 24px -6px rgba(168, 85, 247, .35)
}

.hero-pillar-btn.active[data-hero-tab="2"] .pillar-num {
  background: #a855f7;
  color: #fff
}

.hero-pillar-btn.active[data-hero-tab="3"] {
  border-color: rgba(56, 189, 248, .55);
  box-shadow: 0 8px 24px -6px rgba(56, 189, 248, .35)
}

.hero-pillar-btn.active[data-hero-tab="3"] .pillar-num {
  background: #38bdf8;
  color: #051329
}

.hero-pillar-btn.active[data-hero-tab="4"] {
  border-color: rgba(16, 185, 129, .55);
  box-shadow: 0 8px 24px -6px rgba(16, 185, 129, .35)
}

.hero-pillar-btn.active[data-hero-tab="4"] .pillar-num {
  background: #10b981;
  color: #fff
}

.pillar-progress {
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: rgba(255, 255, 255, .08);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity .3s
}

.hero-pillar-btn.active .pillar-progress {
  opacity: 1
}

.pillar-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 2px
}

.hero-pillar-btn.active[data-hero-tab="0"] .pillar-bar {
  background: var(--pink);
  animation: heroFillBar 5.5s linear forwards
}

.hero-pillar-btn.active[data-hero-tab="1"] .pillar-bar {
  background: #f59e0b;
  animation: heroFillBar 5.5s linear forwards
}

.hero-pillar-btn.active[data-hero-tab="2"] .pillar-bar {
  background: #a855f7;
  animation: heroFillBar 5.5s linear forwards
}

.hero-pillar-btn.active[data-hero-tab="3"] .pillar-bar {
  background: #38bdf8;
  animation: heroFillBar 5.5s linear forwards
}

.hero-pillar-btn.active[data-hero-tab="4"] .pillar-bar {
  background: #10b981;
  animation: heroFillBar 5.5s linear forwards
}

@keyframes heroFillBar {
  from {
    width: 0%
  }

  to {
    width: 100%
  }
}

/* Hero Slide Visibility and Typewriter Animations */
.hero-slide {
  display: none;
  opacity: 0;
  transition: opacity .35s var(--ease)
}

.hero-slide.active {
  display: block;
  opacity: 1;
  transform: none
}

/* Hero Heading Typewriter Mask & Line Positioning (slightly reduced .h-xl) */
.hero .h-xl {
  margin: 24px 0 24px;
  font-size: clamp(2.15rem, 4.7vw, 4.1rem);
  line-height: 1.04
}

.hero .mask {
  display: block;
  overflow: visible
}

/* Inner page heroes require strict overflow:hidden to ensure masked line reveal animations never spill outside or overlap adjacent lines */
.page-hero .mask {
  display: block;
  overflow: hidden;
}

.hero-type-line {
  display: inline-block;
  min-height: 1.05em;
  vertical-align: top;
  position: relative;
  white-space: nowrap;
  transform: none !important;
}

/* Hero Supporting Elements Smooth Transition */
.hero-slide .lede,
.hero-slide .hero-actions,
.hero-slide .hero-stats {
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.hero-slide.is-deleting .lede,
.hero-slide.is-deleting .hero-actions,
.hero-slide.is-deleting .hero-stats {
  opacity: 0.4;
  transform: translateY(3px);
}

/* Blinking Dynamic Typewriter Cursor */
.hero-type-cursor {
  display: inline-block;
  width: 4px;
  height: 0.82em;
  margin-left: 6px;
  vertical-align: -0.04em;
  border-radius: 2px;
  background-color: var(--pink);
  box-shadow: 0 0 14px rgba(255, 45, 120, .85);
  animation: heroCursorBlink .75s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroCursorBlink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

/* Pillar-specific cursor accent colors */
.hero-slide[data-hero-slide="0"] .hero-type-cursor {
  background-color: var(--pink);
  box-shadow: 0 0 14px rgba(255, 45, 120, .85);
}

.hero-slide[data-hero-slide="1"] .hero-type-cursor {
  background-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, .85);
}

.hero-slide[data-hero-slide="2"] .hero-type-cursor {
  background-color: #c084fc;
  box-shadow: 0 0 14px rgba(192, 132, 252, .85);
}

.hero-slide[data-hero-slide="3"] .hero-type-cursor {
  background-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, .85);
}

/* Light theme cursor adaptations */
[data-theme="light"] .hero-slide[data-hero-slide="0"] .hero-type-cursor {
  background-color: var(--pink);
  box-shadow: 0 0 10px rgba(255, 45, 120, .5);
}

[data-theme="light"] .hero-slide[data-hero-slide="1"] .hero-type-cursor {
  background-color: #d97706;
  box-shadow: 0 0 10px rgba(217, 119, 6, .5);
}

[data-theme="light"] .hero-slide[data-hero-slide="2"] .hero-type-cursor {
  background-color: #9333ea;
  box-shadow: 0 0 10px rgba(147, 51, 234, .5);
}

[data-theme="light"] .hero-slide[data-hero-slide="3"] .hero-type-cursor {
  background-color: #0284c7;
  box-shadow: 0 0 10px rgba(2, 132, 199, .5);
}

@media (prefers-reduced-motion: reduce) {
  .hero-type-cursor {
    animation: none;
    opacity: 1
  }
}

/* Hero Visual Stack and Crossfade Frames: 3D preserved and GPU composited */
.hero-visual-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden
}

.hero-visual-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0) scale(.97);
  transition: opacity .65s cubic-bezier(0.16, 1, 0.3, 1), transform .65s cubic-bezier(0.16, 1, 0.3, 1), visibility .65s;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: opacity, transform;
  transform-style: preserve-3d
}

.hero-visual-frame.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto
}

.hero-visual-frame .frame {
  width: 100%;
  height: 100%
}

/* Pause heavy blur floating chips in inactive background frames to avoid GPU layer contention */
.hero-visual-frame:not(.active) .chip {
  animation-play-state: paused
}

/* Light theme support for hero pillar buttons */
[data-theme="light"] .hero-pillar-btn {
  background: rgba(0, 0, 0, .04);
  border-color: var(--line);
  color: var(--muted)
}

[data-theme="light"] .hero-pillar-btn:hover {
  background: rgba(0, 0, 0, .07);
  color: var(--heading)
}

[data-theme="light"] .hero-pillar-btn.active {
  background: #fff;
  color: var(--heading);
  box-shadow: 0 8px 24px -6px rgba(10, 17, 40, .12)
}

[data-theme="light"] .hero-pillar-btn .pillar-num {
  background: rgba(0, 0, 0, .06);
  color: var(--heading)
}

[data-theme="light"] .hero-pillar-btn.active[data-hero-tab="0"] .pillar-num {
  background: var(--pink);
  color: #fff
}

[data-theme="light"] .hero-pillar-btn.active[data-hero-tab="1"] .pillar-num {
  background: #d97706;
  color: #fff
}

[data-theme="light"] .hero-pillar-btn.active[data-hero-tab="2"] .pillar-num {
  background: #9333ea;
  color: #fff
}

[data-theme="light"] .hero-pillar-btn.active[data-hero-tab="3"] .pillar-num {
  background: #0284c7;
  color: #fff
}

[data-theme="light"] .hero-pillar-btn.active[data-hero-tab="4"] .pillar-num {
  background: #059669;
  color: #fff
}

[data-theme="light"] .pillar-progress {
  background: rgba(0, 0, 0, .08)
}

/* ---------- image frames ---------- */
.frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--navy-2);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .65);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1s var(--ease);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 26, .55));
  pointer-events: none
}

.frame:hover img:not([data-parallax]) {
  transform: scale(1.01)
}

/* Parallax images: Disable CSS transform transition to eliminate conflicting interpolation against GSAP ScrollTrigger updates */
.frame img[data-parallax],
[data-parallax] {
  transition: none !important;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.frame.wide {
  aspect-ratio: 16/10
}

.frame.tall {
  aspect-ratio: 4/5
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: mq 46s linear infinite
}

.marquee:hover .marquee-track {
  animation-play-state: paused
}

.marquee-track span {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  letter-spacing: -.01em;
  white-space: nowrap;
  padding: 0 26px;
  color: rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  gap: 52px
}

.marquee-track span em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

.marquee-track span::after {
  content: "✦";
  color: var(--pink);
  font-size: .6em;
  -webkit-text-fill-color: var(--pink)
}

@keyframes mq {
  to {
    transform: translateX(-50%)
  }
}

.marquee.reverse .marquee-track {
  animation-direction: reverse
}

/* ---------- cards / bento ---------- */
.grid {
  display: grid;
  gap: 22px
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr)
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr)
}

.bento {
  grid-template-columns: repeat(4, 1fr)
}

.card {
  --card-pad: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: var(--card-pad);
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, background .4s
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  background: var(--card-hi)
}

.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 22px
}

.card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px
}

.card p {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.7
}

/* Universal Card Media Header - Covers 100% full card width edge-to-edge across the website */
.card:not(.toolkit-hero-card) .img-top {
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 24px calc(-1 * var(--card-pad)) !important;
  width: calc(100% + (2 * var(--card-pad))) !important;
  max-width: calc(100% + (2 * var(--card-pad))) !important;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  display: block;
}

.card:not(.toolkit-hero-card) .img-top img,
.card:not(.toolkit-hero-card) .img-top video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 1s var(--ease);
}

.card:hover .img-top img,
.card:hover .img-top video {
  transform: scale(1.05)
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff
}

.card-link i {
  transition: transform .35s var(--ease);
  color: var(--pink)
}

.card:hover .card-link i {
  transform: translateX(6px)
}

.i-blue {
  background: rgba(22, 72, 198, .16);
  color: #5b8cff
}

.i-purple {
  background: rgba(94, 27, 155, .2);
  color: #b07be8
}

.i-pink {
  background: rgba(213, 27, 104, .16);
  color: #f0609c
}

.i-orange {
  background: rgba(240, 126, 25, .15);
  color: #f6a75c
}

.i-yellow {
  background: rgba(243, 180, 27, .14);
  color: #f3c94f
}

.span-2 {
  grid-column: span 2
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(213, 27, 104, .12), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none
}

.glow-card:hover::before {
  opacity: 1
}

/* ---------- stats ---------- */
.stats-band {
  position: relative;
  overflow: hidden
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
  z-index: 2
}

.stat {
  padding: 34px 26px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: left;
  transition: .4s var(--ease)
}

.stat:hover {
  background: var(--card-hi);
  transform: translateY(-4px)
}

.stat b {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  letter-spacing: -.03em;
  display: block;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

.stat b span {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
  display: inline;
  margin-top: 0;
  -webkit-text-fill-color: transparent;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text
}

.stat>span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 8px
}

.stat small {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  margin-top: 4px
}

/* ---------- chapters (manifesto) ---------- */
.chapter {
  display: grid;
  grid-template-columns: 120px 1fr 1.1fr;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
  align-items: start
}

.chapter:last-child {
  border-bottom: 1px solid var(--line)
}

.chapter .num {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1
}

.chapter h3 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 16px;
  letter-spacing: -.025em
}

.chapter p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem
}

.chapter .big-quote {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  color: #fff;
  letter-spacing: -.015em
}

/* ---------- testimonials ---------- */
.t-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 40px;
  position: relative;
  transition: .5s var(--ease)
}

.t-card:hover {
  transform: translateY(-6px);
  background: var(--card-hi);
  border-color: var(--line-2)
}

.t-card .q {
  position: absolute;
  top: 26px;
  right: 34px;
  font-family: var(--font-d);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  opacity: .1
}

.t-card p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #dbe3f4;
  font-weight: 500;
  margin-bottom: 30px;
  position: relative;
  z-index: 1
}

.t-who {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 22px
}

.t-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--grad-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1.1rem
}

.t-who b {
  display: block;
  font-size: .95rem
}

.t-who small {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700
}

/* ---------- wordmark wall ---------- */
.wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px
}

.wall span {
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  transition: .35s var(--ease);
  background: var(--card)
}

.wall span:hover {
  color: #fff;
  border-color: var(--line-2);
  transform: translateY(-3px)
}

/* ---------- comparison ---------- */
.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px
}

.vs-card {
  border-radius: 26px;
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid var(--line)
}

.vs-card.off {
  background: rgba(255, 255, 255, .015)
}

.vs-card.on {
  background: linear-gradient(160deg, rgba(22, 72, 198, .16), rgba(94, 27, 155, .14) 55%, rgba(213, 27, 104, .12));
  border-color: rgba(213, 27, 104, .35)
}

.vs-card h3 {
  margin-bottom: 26px;
  font-size: 1.4rem
}

.vs-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px
}

.vs-card li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.6
}

.vs-card.on li {
  color: #dbe3f4
}

.vs-card li i {
  margin-top: 4px;
  font-size: 13px
}

.vs-card.off li i {
  color: var(--muted-2)
}

.vs-card.on li i {
  color: #f0609c
}

/* ---------- AcademiX AI Web-Based Studio Window (100% Web Browser SaaS) ---------- */
.web-studio-window {
  background: #0a1128;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
  position: relative
}

.web-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  gap: 12px
}

.web-dots {
  display: flex;
  align-items: center;
  gap: 7px
}

.web-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block
}

.web-dots i:nth-child(1) {
  background: #ff5f57
}

.web-dots i:nth-child(2) {
  background: #febc2e
}

.web-dots i:nth-child(3) {
  background: #28c840
}

.web-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, .7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--muted);
  max-width: 380px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.web-url i {
  color: #4ade80;
  font-size: 10px
}

.web-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, .12);
  padding: 4px 10px;
  border-radius: 999px
}

.web-body {
  padding: 24px;
  min-height: 340px
}

.web-card-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line)
}

.web-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(168, 85, 247, .15);
  color: #c084fc;
  font-size: 12px;
  font-weight: 700
}

.web-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px
}

.web-field {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px
}

.web-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-2);
  display: block;
  margin-bottom: 4px;
  font-weight: 700
}

.web-field b {
  font-size: 13.5px;
  color: #fff;
  display: block
}

.web-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px
}

.web-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(30, 41, 59, .8);
  border: 1px solid var(--line);
  color: var(--muted)
}

.web-check.active {
  border-color: rgba(74, 222, 128, .5);
  color: #4ade80;
  background: rgba(74, 222, 128, .1)
}

.web-result-card {
  background: rgba(15, 23, 42, .9);
  border: 1px solid rgba(168, 85, 247, .4);
  border-radius: 14px;
  padding: 16px;
  margin-top: 12px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5)
}

.web-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap
}

/* Light mode for web studio */
[data-theme="light"] .web-studio-window {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 30px 70px -25px rgba(10, 17, 40, .12)
}

[data-theme="light"] .web-bar {
  background: #f8fafc;
  border-color: #e2e8f0
}

[data-theme="light"] .web-url {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569
}

[data-theme="light"] .web-field {
  background: #f8fafc;
  border-color: #e2e8f0
}

[data-theme="light"] .web-field b {
  color: #0f172a
}

[data-theme="light"] .web-check {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569
}

[data-theme="light"] .web-result-card {
  background: #f8fafc;
  border-color: #cbd5e1
}

/* ---------- cta band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  overflow: hidden
}

.cta-band .h-xl {
  margin: 22px 0 34px
}

.cta-band .lede {
  margin: 0 auto 42px
}

/* ---------- footer ---------- */
footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--navy-2);
  overflow: hidden
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(60px, 7vw, 100px) 0 56px;
  position: relative;
  z-index: 2
}

.foot-grid img {
  height: 44px;
  margin-bottom: 22px
}

.foot-grid p {
  color: var(--muted);
  font-size: .94rem;
  max-width: 34ch;
  line-height: 1.75
}

.foot-grid h4 {
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
  font-family: var(--font-b);
  font-weight: 700
}

.foot-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px
}

.foot-grid ul a,
.foot-grid ul li {
  color: var(--muted);
  font-size: .93rem;
  transition: color .3s;
  display: inline-flex;
  gap: 10px;
  align-items: center
}

.foot-grid ul a:hover {
  color: #fff
}

.foot-grid ul i {
  color: var(--pink);
  font-size: 12px;
  width: 16px
}

.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 13px;
  position: relative;
  z-index: 2
}

.foot-cities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.foot-cities span {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 11.5px;
  color: var(--muted)
}

/* ---------- whatsapp / floats ---------- */
.float-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 850;
  display: flex;
  flex-direction: column;
  gap: 14px
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 14px 34px -8px rgba(0, 0, 0, .55);
  transition: transform .35s var(--ease)
}

.float-btn:hover {
  transform: translateY(-5px) scale(1.06)
}

.float-btn.wa {
  background: #25d366
}

.float-btn.demo {
  background: var(--grad-btn);
  background-size: 200% auto
}

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: .45s var(--ease)
}

.modal.open {
  visibility: visible;
  opacity: 1
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 15, .8);
  backdrop-filter: blur(14px)
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--navy-2);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
  transform: translateY(30px) scale(.96);
  transition: .5s var(--ease);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .8)
}

.modal.open .modal-box {
  transform: translateY(0) scale(1)
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: .3s
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  transform: rotate(90deg)
}

.modal-box h2 {
  font-size: 1.8rem;
  margin: 6px 0 8px
}

.modal-box .sub {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 28px
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.field {
  position: relative
}

.field.full {
  grid-column: 1/-1
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 25px 18px 8px;
  color: #fff;
  font-family: var(--font-b);
  font-size: 15px;
  outline: none;
  transition: border-color .3s, background .3s;
  resize: vertical
}

.field textarea {
  min-height: 110px
}

/* Base floating label styles for fields and wrapped phone fields */
.field label,
.phone-field-wrapper label {
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
  transition: .25s var(--ease);
  z-index: 2;
}

.field input:focus,
.field textarea:focus,
.phone-field-wrapper input:focus {
  border-color: var(--pink);
  background: rgba(213, 27, 104, .05);
}

/* Floating label activation states:
   1. Standard sibling combinator for regular inputs & wrapped inputs
   2. Modern CSS :has() & :focus-within container selectors
   3. JavaScript state class fallbacks (.has-value, .is-focused) for universal browser reliability
   4. Autofill pseudo-classes
*/
.field input:focus~label,
.field input:not(:placeholder-shown)~label,
.field textarea:focus~label,
.field textarea:not(:placeholder-shown)~label,
.phone-field-wrapper input:focus~label,
.phone-field-wrapper input:not(:placeholder-shown)~label,
.phone-field-wrapper input:-webkit-autofill~label,
.phone-field-wrapper input:autofill~label,
.field input:-webkit-autofill~label,
.field input:autofill~label,
.phone-field-wrapper:focus-within+label,
.phone-field-wrapper:focus-within~label,
.phone-field-wrapper:has(input:not(:placeholder-shown))+label,
.phone-field-wrapper:has(input:not(:placeholder-shown))~label,
.phone-field-wrapper:has(input:focus)+label,
.phone-field-wrapper:has(input:focus)~label,
.field:focus-within>label,
.field:has(input:focus)>label,
.field:has(input:not(:placeholder-shown))>label,
.field:has(textarea:focus)>label,
.field:has(textarea:not(:placeholder-shown))>label,
.field.is-focused>label,
.field.is-focused label,
.field.has-value>label,
.field.has-value label,
.phone-field-wrapper.is-focused label,
.phone-field-wrapper.has-value label {
  top: 6px !important;
  font-size: 10.5px !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: #f0609c !important;
}

.form-success {
  text-align: center;
  padding: 36px 8px;
  display: none
}

.form-success .tick {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(74, 222, 128, .12);
  border: 1px solid rgba(74, 222, 128, .4);
  color: #4ade80;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: pop .6s var(--ease)
}

@keyframes pop {
  0% {
    transform: scale(0)
  }

  70% {
    transform: scale(1.15)
  }

  100% {
    transform: scale(1)
  }
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 10px
}

.form-success p {
  color: var(--muted);
  margin-bottom: 26px
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: .4s var(--ease)
}

.info-card:hover {
  background: var(--card-hi);
  transform: translateY(-3px)
}

.info-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0
}

.info-card small {
  display: block;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px
}

.info-card b {
  font-size: 1.02rem
}

a.info-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer
}

a.info-card:hover {
  border-color: rgba(255, 255, 255, .25)
}

.wa-direct-card {
  transition: all .35s var(--ease)
}

.wa-direct-card:hover {
  border-color: rgba(37, 211, 102, .45);
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .25);
  transform: translateY(-3px)
}

.wa-direct-card:hover b {
  color: #25d366
}

[data-theme="light"] a.info-card:hover {
  border-color: rgba(10, 17, 40, .22)
}

[data-theme="light"] .wa-direct-card:hover {
  border-color: rgba(37, 211, 102, .5);
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .2)
}

.form-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 3.4vw, 44px)
}

/* ---------- page hero (inner pages) ---------- */
/* Reduced vertical top padding from 190px to 120px to eliminate the large gap between the floating navigation bar and the first section's content */
.page-hero {
  padding: 120px 0 70px;
  position: relative;
  overflow-x: clip
}

.page-hero .h-xl {
  margin: 20px 0 24px;
  font-size: clamp(2.1rem, 4.1vw, 3.65rem);
  letter-spacing: -.015em;
  line-height: 1.15
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 2
}

/* reveal defaults (JS animates) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform
}

[data-reveal][data-revealed="true"],
[data-revealed="true"] {
  opacity: 1;
  transform: none
}

.no-js [data-reveal],
.reduced [data-reveal] {
  opacity: 1;
  transform: none
}

/* ---------- responsive ---------- */
/* Desktop width responsive scaling for nav so links and words stay strictly on one line */
@media(max-width:1200px) {
  .nav-inner {
    padding: 8px 14px;
    gap: 10px
  }

  .nav-links {
    gap: clamp(6px, 1vw, 14px)
  }

  .nav-links a {
    font-size: 12px;
    letter-spacing: .01em
  }

  .nav-cta {
    padding: 9px 16px;
    font-size: 12.5px
  }

  .nav-logo {
    height: 36px
  }
}

@media(max-width:1080px) {

  /* Adjust hero & page-hero padding for tablet viewports */
  .hero {
    padding: 115px 0 60px
  }

  .page-hero {
    padding: 115px 0 60px
  }

  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 56px
  }

  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
    width: 100%
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .bento {
    grid-template-columns: repeat(2, 1fr)
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr)
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr
  }

  .chapter {
    grid-template-columns: 70px 1fr;
  }

  .chapter .c-body {
    grid-column: 2
  }

  .contact-grid {
    grid-template-columns: 1fr
  }

  /* Nav compact scaling for 1080px to 920px viewports */
  .nav-inner {
    padding: 6px 12px;
    gap: 8px;
    margin: 10px 12px 0
  }

  .nav-logo {
    height: 32px
  }

  .nav-links {
    gap: 6px
  }

  .nav-links a {
    font-size: 11px;
    letter-spacing: 0
  }

  .nav-links a .tag-badge {
    padding: 1px 5px;
    font-size: 9px;
    margin-right: 3px
  }

  .nav-cta {
    padding: 7px 12px;
    font-size: 11.5px
  }

  .theme-toggle {
    width: 36px;
    height: 36px
  }
}

/* Responsive navigation drawer trigger for tablet & mobile */
@media(max-width:920px) {

  .nav-links,
  .nav .nav-cta {
    display: none
  }

  .burger {
    display: flex
  }

  .theme-toggle {
    margin-left: auto
  }

  .nav-inner {
    margin: 8px 12px 0;
    padding: 7px 14px
  }

  .nav-logo {
    height: 32px
  }
}

/* Tablet & Mobile Viewport Layout Adjustments (<=768px) */
@media(max-width:768px) {

  /* Spacing and container breathing room */
  .wrap {
    padding: 0 clamp(16px, 4vw, 24px)
  }

  .section {
    padding: clamp(60px, 9vw, 95px) 0
  }

  .sec-head {
    margin-bottom: clamp(30px, 5vw, 46px)
  }

  .hero {
    padding: 105px 0 45px;
    min-height: auto
  }

  .page-hero {
    padding: 105px 0 45px
  }

  main.section[style*="padding-top"] {
    padding-top: 100px !important
  }

  .card {
    --card-pad: 22px
  }

  /* Responsive typography: prevent text overflow while retaining punchy headlines */
  .hero-type-line {
    white-space: normal !important;
    word-break: break-word;
    display: inline
  }

  .hero .h-xl,
  .page-hero .h-xl {
    font-size: clamp(1.85rem, 6.8vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -.02em
  }

  .h-lg {
    font-size: clamp(1.65rem, 5.6vw, 2.3rem);
    line-height: 1.06
  }

  .h-md {
    font-size: clamp(1.25rem, 4.2vw, 1.6rem)
  }

  /* Column collapsing for mobile flow */
  .grid-2,
  .grid-3,
  .grid-4,
  .bento,
  .vs,
  .form-grid {
    grid-template-columns: 1fr
  }

  .span-2 {
    grid-column: span 1
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px
  }

  .stats-grid .stat:last-child {
    grid-column: 1 / -1
  }

  .chapter {
    grid-template-columns: 1fr;
    gap: 14px
  }

  .chapter .c-body {
    grid-column: 1
  }

  .foot-grid {
    grid-template-columns: 1fr
  }

  .scroll-hint {
    display: none
  }

  /* Hero Pillar Tabs: Native horizontal swipe with momentum scroll */
  .hero-pillar-nav {
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch
  }

  .hero-pillar-btn {
    scroll-snap-align: start;
    padding: 6px 12px;
    font-size: 11.5px
  }

  .hero-visual {
    max-width: 100%;
    margin: 20px auto 0
  }

  /* Floating Chips scaling for mobile screens */
  .chip {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 12px
  }

  .chip .dot {
    width: 28px;
    height: 28px;
    font-size: 13px;
    border-radius: 8px
  }

  .chip b {
    font-size: 12px
  }

  .chip small {
    font-size: 10px
  }

  /* Interactive Pill Bars (Academics X AI, Flow Simulator): App-style horizontal swipe */
  .academix-nav,
  .flow-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 10px
  }

  .academix-nav::-webkit-scrollbar,
  .flow-nav::-webkit-scrollbar {
    display: none
  }

  .tab-btn,
  .flow-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 12.5px
  }

  /* Comparison Data Tables: Horizontal swipe with sticky first column */
  .cmp-wrap,
  .comparison-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin
  }

  .cmp-table th:first-child,
  .cmp-table td:first-child,
  .comparison-table th:first-child,
  .comparison-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--navy-2);
    box-shadow: 2px 0 8px rgba(0, 0, 0, .35)
  }

  [data-theme="light"] .cmp-table th:first-child,
  [data-theme="light"] .cmp-table td:first-child,
  [data-theme="light"] .comparison-table th:first-child,
  [data-theme="light"] .comparison-table td:first-child {
    background: #ffffff;
    box-shadow: 2px 0 8px rgba(10, 17, 40, .08)
  }
}

/* Small Smartphone Viewports (<=580px) */
@media(max-width:580px) {

  /* Hero Action Buttons: Clean full-width touch targets */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin: 24px 0 32px
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14px
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px
  }

  .hero-stats .hstat:last-child {
    grid-column: 1 / -1
  }

  .hstat {
    padding-left: 12px
  }

  .hstat b {
    font-size: 1.5rem
  }

  /* Coding Playground IDE on mobile */
  .code-ide-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 14px
  }

  .ide-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none
  }

  .ide-tabs::-webkit-scrollbar {
    display: none
  }

  .ide-actions {
    width: 100%
  }

  .btn-run {
    width: 100%;
    justify-content: center;
    padding: 9px 16px
  }

  .code-editor {
    padding: 14px 16px;
    font-size: 12px;
    min-height: 150px
  }

  /* Floating Action Buttons: Scaled for thumb ergonomics */
  .float-stack {
    right: 14px;
    bottom: 16px;
    gap: 8px
  }

  .float-btn {
    width: 44px;
    height: 44px;
    font-size: 18px
  }

  /* Buttons & Modal responsiveness */
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%
  }

  .article-cta .btn {
    width: 100%;
    justify-content: center
  }

  .modal-box {
    padding: 22px 18px;
    border-radius: 20px
  }

  .modal-close {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px
  }
}

/* Extra-Compact Smartphone Viewports (<=420px) */
@media(max-width:420px) {
  .wrap {
    padding: 0 14px
  }

  .hero-pillar-btn {
    padding: 5px 9px;
    font-size: 11px
  }

  .hero-actions .btn {
    font-size: 13.5px;
    padding: 12px 16px
  }

  .btn-sm {
    padding: 10px 16px;
    font-size: 12px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important
  }

  .mask>span {
    transform: none !important
  }
}

/* ============ LIGHT THEME ============ */
[data-theme="light"] {
  --navy: #f3f6fd;
  --navy-2: #ffffff;
  --navy-3: #eaf0fc;
  --ink: #0a1128;
  --muted: #4b5a75;
  --muted-2: #7a89a6;
  --line: rgba(10, 17, 40, .1);
  --line-2: rgba(10, 17, 40, .18);
  --card: rgba(10, 17, 40, .025);
  --card-hi: rgba(10, 17, 40, .05);
}

[data-theme="light"] body {
  background: var(--navy);
  color: var(--ink)
}

[data-theme="light"] .orb {
  opacity: .45
}

[data-theme="light"] .noise {
  opacity: .035
}

[data-theme="light"] .nav-inner {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(10, 17, 40, .08);
  box-shadow: 0 10px 40px -18px rgba(10, 17, 40, .25)
}

[data-theme="light"] .nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, .94)
}

[data-theme="light"] .nav-links a {
  color: #4b5a75
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: var(--ink)
}

[data-theme="light"] .burger {
  border-color: rgba(10, 17, 40, .18)
}

[data-theme="light"] .burger i {
  background: var(--ink)
}

[data-theme="light"] .m-menu {
  background: rgba(243, 246, 253, .97)
}

[data-theme="light"] .m-menu a {
  color: var(--ink)
}

[data-theme="light"] .btn-ghost {
  color: var(--ink);
  background: rgba(10, 17, 40, .03);
  border-color: rgba(10, 17, 40, .16)
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(10, 17, 40, .07)
}

[data-theme="light"] .chip {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(10, 17, 40, .1);
  box-shadow: 0 18px 44px -14px rgba(10, 17, 40, .28)
}

[data-theme="light"] .marquee-track span {
  color: rgba(10, 17, 40, .12)
}

[data-theme="light"] .card-link {
  color: var(--ink)
}

[data-theme="light"] .t-card p {
  color: #33415c
}

[data-theme="light"] .vs-card.on {
  background: linear-gradient(160deg, rgba(22, 72, 198, .08), rgba(94, 27, 155, .07) 55%, rgba(213, 27, 104, .06));
  border-color: rgba(213, 27, 104, .3)
}

[data-theme="light"] .vs-card.on li {
  color: #33415c
}

[data-theme="light"] .chapter .big-quote {
  color: var(--ink)
}

[data-theme="light"] .foot-grid h4 {
  color: var(--ink)
}

[data-theme="light"] .field input,
[data-theme="light"] .field textarea {
  background: rgba(10, 17, 40, .035);
  color: var(--ink);
  border-color: rgba(10, 17, 40, .16)
}

[data-theme="light"] .field input:focus,
[data-theme="light"] .field textarea:focus {
  background: rgba(213, 27, 104, .04)
}

[data-theme="light"] .modal-box {
  background: #ffffff;
  box-shadow: 0 60px 120px -30px rgba(10, 17, 40, .4)
}

[data-theme="light"] .modal-bg {
  background: rgba(10, 17, 40, .45)
}

[data-theme="light"] .modal-close {
  color: #4b5a75;
  border-color: rgba(10, 17, 40, .18)
}

[data-theme="light"] .modal-close:hover {
  color: var(--ink);
  background: rgba(10, 17, 40, .05)
}

[data-theme="light"] .scroll-hint {
  color: #7a89a6
}

[data-theme="light"] .frame {
  box-shadow: 0 40px 90px -34px rgba(10, 17, 40, .45);
  border-color: rgba(10, 17, 40, .12)
}

[data-theme="light"] .stat,
[data-theme="light"] .t-card,
[data-theme="light"] .card,
[data-theme="light"] .info-card,
[data-theme="light"] .form-panel,
[data-theme="light"] .vs-card {
  background: #ffffff;
  box-shadow: 0 14px 40px -22px rgba(10, 17, 40, .18)
}

[data-theme="light"] .card:hover,
[data-theme="light"] .t-card:hover,
[data-theme="light"] .info-card:hover,
[data-theme="light"] .stat:hover {
  background: #ffffff
}

[data-theme="light"] .info-card small {
  color: #475569
}

[data-theme="light"] .stats-grid .stat small,
[data-theme="light"] .hstat small {
  color: #475569
}

[data-theme="light"] .t-card p {
  color: #1e293b
}

[data-theme="light"] .wall span {
  background: #ffffff;
  box-shadow: 0 8px 24px -14px rgba(10, 17, 40, .18)
}

[data-theme="light"] .form-success .tick {
  background: rgba(22, 163, 74, .1);
  border-color: rgba(22, 163, 74, .4);
  color: #16a34a
}

[data-theme="light"] .term-body .ok {
  color: #22c55e
}

/* ============ LIGHT THEME — HOVER CONTRAST & GRADIENTS ============ */
/* Dedicated light-mode gradient token */
[data-theme="light"] {
  --grad-hover: linear-gradient(95deg, #d51b68 0%, #f07e19 100%);
}

/* Nav links hover & active with vibrant gradient text */
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  background: linear-gradient(95deg, #d51b68 0%, #f07e19 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d51b68;
}

[data-theme="light"] .nav-links a:hover .tag-badge,
[data-theme="light"] .nav-links a.active .tag-badge {
  -webkit-text-fill-color: currentColor;
}

/* Mobile menu links on hover with gradient text */
[data-theme="light"] .m-menu a:hover {
  background: linear-gradient(95deg, #d51b68 0%, #f07e19 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d51b68;
}

/* Footer links: Fix white text on white background and apply gradient hover */
[data-theme="light"] .foot-grid ul a:hover {
  background: linear-gradient(95deg, #d51b68 0%, #f07e19 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d51b68;
}

[data-theme="light"] .foot-bottom a:hover {
  background: linear-gradient(95deg, #d51b68 0%, #f07e19 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d51b68;
}

[data-theme="light"] .foot-cities span:hover {
  color: #d51b68;
  border-color: rgba(213, 27, 104, .45);
  background: linear-gradient(135deg, rgba(213, 27, 104, .08), rgba(240, 126, 25, .08));
}

/* Wall tags / pills: Prevent text disappearance and apply warm gradient background + accent */
[data-theme="light"] .wall span:hover {
  color: #d51b68;
  border-color: rgba(213, 27, 104, .45);
  background: linear-gradient(135deg, rgba(213, 27, 104, .08), rgba(240, 126, 25, .08));
  box-shadow: 0 8px 24px -10px rgba(213, 27, 104, .25);
  transform: translateY(-3px);
}

/* Card titles, card links, and blog links on hover with gradient text */
[data-theme="light"] .card:hover h3,
[data-theme="light"] .glow-card:hover h3,
[data-theme="light"] .t-card:hover h3,
[data-theme="light"] .figure:hover h3,
[data-theme="light"] .blog-card:hover .blog-content h3 {
  background: linear-gradient(95deg, #d51b68 0%, #f07e19 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d51b68;
}

[data-theme="light"] .card-link:hover,
[data-theme="light"] .card:hover .card-link,
[data-theme="light"] .blog-link:hover,
[data-theme="light"] .blog-card:hover .blog-link {
  background: linear-gradient(95deg, #d51b68 0%, #f07e19 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d51b68;
}

/* Ghost buttons hover in light mode */
[data-theme="light"] .btn-ghost:hover {
  color: #d51b68;
  border-color: rgba(213, 27, 104, .4);
  background: linear-gradient(135deg, rgba(213, 27, 104, .07), rgba(240, 126, 25, .07));
}

[data-theme="light"] .btn-ghost:hover i {
  color: inherit;
}

/* Tab buttons & hero pillar buttons on hover */
[data-theme="light"] .tab-btn:hover {
  color: #d51b68;
  border-color: rgba(213, 27, 104, .35);
  background: linear-gradient(135deg, rgba(213, 27, 104, .06), rgba(240, 126, 25, .06));
}

[data-theme="light"] .tab-btn:hover i {
  color: inherit;
}

[data-theme="light"] .tab-btn.active {
  color: #fff;
  background: var(--grad-pink);
  border-color: transparent;
  box-shadow: 0 8px 24px -6px rgba(213, 27, 104, .45);
}

[data-theme="light"] .tab-btn.active i {
  color: inherit;
}

[data-theme="light"] .tab-btn.active:hover {
  color: #fff;
  background: var(--grad-pink);
  box-shadow: 0 12px 28px -4px rgba(213, 27, 104, .55);
}

[data-theme="light"] .tab-btn.active:hover i {
  color: inherit;
}

[data-theme="light"] .hero-pillar-btn:hover {
  background: linear-gradient(135deg, rgba(213, 27, 104, .06), rgba(240, 126, 25, .06));
  border-color: rgba(213, 27, 104, .3);
  color: #0a1128;
}

[data-theme="light"] .hero-pillar-btn:hover span:last-child {
  color: #d51b68;
}

/* Flow visualizer buttons in light mode */
[data-theme="light"] .flow-btn:hover {
  color: #d51b68;
  border-color: rgba(213, 27, 104, .4);
  background: linear-gradient(135deg, rgba(213, 27, 104, .08), rgba(240, 126, 25, .08));
}

[data-theme="light"] .flow-btn:hover i,
[data-theme="light"] .flow-btn.active:hover i {
  color: inherit;
}

/* Accordion FAQ questions on hover */
.faq-item:hover {
  border-color: rgba(213, 27, 104, .35);
}

.faq-q:hover,
.faq-item:hover .faq-q {
  color: var(--pink);
  transition: color .3s ease;
}

[data-theme="light"] .faq-q:hover,
[data-theme="light"] .faq-item:hover .faq-q,
[data-theme="light"] .faq-q:hover>span:not(.fq-icon),
[data-theme="light"] .faq-item:hover .faq-q>span:not(.fq-icon) {
  background: linear-gradient(95deg, #d51b68 0%, #f07e19 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d51b68;
}

/* Ensure FAQ accordion icon does not inherit transparent text fill */
.faq-q .fq-icon,
.faq-q:hover .fq-icon,
.faq-item:hover .faq-q .fq-icon,
[data-theme="light"] .faq-q .fq-icon,
[data-theme="light"] .faq-q:hover .fq-icon,
[data-theme="light"] .faq-item:hover .faq-q .fq-icon {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--pink) !important;
  color: var(--pink) !important;
}

/* Info card titles & contact cards */
[data-theme="light"] a.info-card:hover b {
  background: linear-gradient(95deg, #d51b68 0%, #f07e19 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d51b68;
}

/* Article breadcrumbs and share buttons */
[data-theme="light"] .article-breadcrumbs a:hover {
  background: linear-gradient(95deg, #d51b68 0%, #f07e19 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d51b68;
}

[data-theme="light"] .share-btn:hover {
  background: linear-gradient(135deg, rgba(213, 27, 104, .08), rgba(240, 126, 25, .08));
  color: #d51b68;
  border-color: rgba(213, 27, 104, .4);
}

/* ============ LOGO DISPLAY (DARK & LIGHT MODE) ============ */
/* Default / Dark Mode: Only show white logo, hide colored logo */
.logo-white,
.nav a img.logo-white,
.nav [data-testid="nav-logo"] img.logo-white,
.nav-inner a img.logo-white {
  display: block !important;
}

.logo-color,
.nav a img.logo-color,
.nav [data-testid="nav-logo"] img.logo-color,
.nav-inner a img.logo-color {
  display: none !important;
}

[data-theme="dark"] .logo-white,
[data-theme="dark"] .nav a img.logo-white,
[data-theme="dark"] .nav [data-testid="nav-logo"] img.logo-white,
[data-theme="dark"] .nav-inner a img.logo-white {
  display: block !important;
}

[data-theme="dark"] .logo-color,
[data-theme="dark"] .nav a img.logo-color,
[data-theme="dark"] .nav [data-testid="nav-logo"] img.logo-color,
[data-theme="dark"] .nav-inner a img.logo-color {
  display: none !important;
}

/* Light Mode: Only show colored logo, hide white logo */
[data-theme="light"] .logo-white,
[data-theme="light"] .nav a img.logo-white,
[data-theme="light"] .nav [data-testid="nav-logo"] img.logo-white,
[data-theme="light"] .nav-inner a img.logo-white {
  display: none !important;
}

[data-theme="light"] .logo-color,
[data-theme="light"] .nav a img.logo-color,
[data-theme="light"] .nav [data-testid="nav-logo"] img.logo-color,
[data-theme="light"] .nav-inner a img.logo-color {
  display: block !important;
}

/* ============ DUAL-THEME MEDIA & UI ASSET ARCHITECTURE ============ */
/* Default / Dark Theme: Display dark-mode screenshots, hide light-mode counterparts */
.theme-img-dark,
.img-dark {
  display: block !important;
}

.theme-img-light,
.img-light {
  display: none !important;
}

[data-theme="dark"] .theme-img-dark,
[data-theme="dark"] .img-dark {
  display: block !important;
}

[data-theme="dark"] .theme-img-light,
[data-theme="dark"] .img-light {
  display: none !important;
}

/* Light Theme: Display light-mode screenshots, hide dark-mode counterparts */
[data-theme="light"] .theme-img-dark,
[data-theme="light"] .img-dark {
  display: none !important;
}

[data-theme="light"] .theme-img-light,
[data-theme="light"] .img-light {
  display: block !important;
}


/* theme toggle */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--muted);
  transition: .35s var(--ease);
  flex-shrink: 0
}

.theme-toggle:hover {
  color: var(--ink);
  transform: translateY(-2px) rotate(15deg);
  border-color: var(--pink)
}

.theme-toggle .fa-sun {
  display: none;
  color: #f07e19
}

[data-theme="light"] .theme-toggle .fa-sun {
  display: block
}

[data-theme="light"] .theme-toggle .fa-moon {
  display: none
}

/* ============ LMS DEEP DIVE ============ */
.deep-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--line)
}

.deep-row:last-child {
  border-bottom: 1px solid var(--line)
}

.deep-row.flip .deep-media {
  order: 2
}

.deep-num {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px
}

.deep-num b {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1.05rem;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-btn);
  color: #fff
}

.deep-num span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted)
}

.deep-row h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  margin-bottom: 16px;
  letter-spacing: -.025em
}

.deep-row .lede {
  font-size: .99rem;
  margin-bottom: 14px;
  max-width: 58ch
}

.deep-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px
}

.deep-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.6
}

.deep-list li i {
  color: #f0609c;
  font-size: 12px;
  margin-top: 4px
}

.deep-media .frame {
  aspect-ratio: 16/10
}

.flow-cap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2)
}

.flow-cap i {
  color: var(--pink);
  font-size: 9px
}

@media(max-width:900px) {
  .deep-row {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .deep-row.flip .deep-media {
    order: 0
  }
}

/* ============ PRINT FIGURES ============ */
.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 44px)
}

.figure .frame {
  aspect-ratio: 16/10;
  margin-bottom: 22px
}

.figure h3 {
  font-size: 1.3rem;
  margin-bottom: 8px
}

.figure p {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.7;
  max-width: 52ch
}

@media(max-width:760px) {
  .figures {
    grid-template-columns: 1fr
  }
}

/* ============ PRODUCT TIERS & COMPARISON ============ */
.tier-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  z-index: 2
}

.tier-badge.basic {
  background: rgba(91, 140, 255, .15);
  color: #5b8cff;
  border: 1px solid rgba(91, 140, 255, .35)
}

.tier-badge.hot {
  background: var(--grad-warm);
  color: #fff;
  border: none
}

.tier-badge.top {
  background: rgba(243, 180, 27, .15);
  color: #f3c94f;
  border: 1px solid rgba(243, 180, 27, .4)
}

.cmp-wrap {
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card)
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px
}

.cmp-table th,
.cmp-table td {
  padding: 15px 20px;
  text-align: left;
  font-size: .9rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap
}

.cmp-table th {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .04)
}

.cmp-table th.hot-col {
  background: linear-gradient(120deg, rgba(213, 27, 104, .22), rgba(240, 126, 25, .18));
  color: #fff
}

.cmp-table td {
  color: var(--muted)
}

.cmp-table td.feat {
  color: var(--ink);
  font-weight: 500;
  white-space: normal
}

.cmp-table tbody tr:hover {
  background: rgba(255, 255, 255, .025)
}

.cmp-table tbody tr:last-child td {
  border-bottom: none
}

.cmp-table .yes {
  color: #4ade80;
  font-weight: 700
}

.cmp-table .no {
  color: var(--muted-2);
  opacity: .45
}

.cmp-table .mid {
  color: #f3c94f;
  font-weight: 700
}

[data-theme="light"] .cmp-wrap {
  background: #ffffff;
  box-shadow: 0 14px 40px -22px rgba(10, 17, 40, .18)
}

[data-theme="light"] .cmp-table th {
  background: rgba(10, 17, 40, .035)
}

[data-theme="light"] .cmp-table th.hot-col {
  background: linear-gradient(120deg, rgba(213, 27, 104, .12), rgba(240, 126, 25, .1));
  color: var(--ink)
}

[data-theme="light"] .cmp-table tbody tr:hover {
  background: rgba(10, 17, 40, .02)
}

[data-theme="light"] .cmp-table .yes {
  color: #16a34a
}

/* ============ LEGAL PAGES ============ */
.toc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px
}

.legal-sec {
  padding: clamp(36px, 4.5vw, 56px) 0;
  border-top: 1px solid var(--line)
}

.legal-sec:first-of-type {
  border-top: none
}

.legal-sec h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  align-items: baseline
}

.legal-sec h3 .ln {
  color: var(--pink);
  font-size: .8rem;
  font-family: var(--font-b);
  font-weight: 700;
  letter-spacing: .18em;
  white-space: nowrap
}

.legal-sec p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 12px;
  max-width: 78ch;
  font-size: .97rem
}

.legal-sec ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0
}

.legal-sec ul li {
  color: var(--muted);
  padding-left: 24px;
  position: relative;
  line-height: 1.7;
  font-size: .95rem;
  max-width: 74ch
}

.legal-sec ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad-warm)
}

.legal-sec b,
.legal-sec strong {
  color: var(--ink)
}

.legal-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pink);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 16px 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
  max-width: 78ch
}

[data-theme="light"] .legal-note {
  background: #fff;
  box-shadow: 0 10px 30px -18px rgba(10, 17, 40, .15)
}

/* ============ STORIES PAGE ============ */
.story-feature {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden
}

.story-feature .q {
  position: absolute;
  top: 14px;
  right: 40px;
  font-family: var(--font-d);
  font-size: 9rem;
  font-weight: 900;
  line-height: 1;
  opacity: .07;
  pointer-events: none
}

.story-feature .avatar-xl {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-2)
}

.story-feature .avatar-xl img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease)
}

.story-feature:hover .avatar-xl img {
  transform: scale(1.04)
}

.story-feature blockquote {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.015em;
  margin-bottom: 26px;
  position: relative;
  z-index: 1
}

.story-metric {
  display: inline-flex;
  flex-direction: column;
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line)
}

.story-metric b {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -.02em;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

.story-metric small {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px
}

.story-metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px
}

.story-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  flex-shrink: 0
}

.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

[data-theme="light"] .story-feature,
[data-theme="light"] .story-metric {
  background: #fff;
  box-shadow: 0 14px 40px -22px rgba(10, 17, 40, .18)
}

@media(max-width:900px) {
  .story-feature {
    grid-template-columns: 1fr;
    gap: 28px
  }
}

/* ============ FAQ ACCORDION ============ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .3s, background .3s
}

.faq-item.open {
  border-color: rgba(213, 27, 104, .4);
  background: var(--card-hi)
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  text-align: left;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -.01em;
  color: var(--ink)
}

.faq-q .fq-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--pink);
  flex-shrink: 0;
  transition: transform .45s var(--ease), background .3s
}

.faq-item.open .fq-icon {
  transform: rotate(45deg);
  background: rgba(213, 27, 104, .12)
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .55s var(--ease)
}

.faq-a p {
  padding: 0 28px 26px;
  color: var(--muted);
  line-height: 1.8;
  font-size: .96rem;
  max-width: 72ch
}

[data-theme="light"] .faq-item {
  background: #fff;
  box-shadow: 0 10px 30px -20px rgba(10, 17, 40, .15)
}

/* ============ LANG TOGGLE (Retained for backwards compatibility) ============ */
/* Note: Hindi toggle button has been removed from all navigation bars across the website */
.lang-toggle {
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-b);
  color: var(--muted);
  transition: .35s var(--ease);
  flex-shrink: 0
}

.lang-toggle:hover {
  color: var(--ink);
  transform: translateY(-2px);
  border-color: var(--pink)
}

/* ============ ACADEMIX AI INTERACTIVE SHOWCASE ============ */
.academix-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  transition: all .3s var(--ease)
}

.tab-btn i {
  font-size: 13px;
  color: var(--pink);
  transition: color .3s var(--ease)
}

.tab-btn:hover {
  color: var(--ink);
  border-color: var(--line-2);
  transform: translateY(-2px);
  background: var(--card-hi)
}

.tab-btn:hover i {
  color: inherit
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(22, 72, 198, .35), rgba(213, 27, 104, .35));
  border-color: var(--pink);
  box-shadow: 0 8px 24px -6px rgba(213, 27, 104, .4)
}

.tab-btn.active i {
  color: inherit
}

.tab-btn.active:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(213, 27, 104, .55)
}

.tab-btn.active:hover i {
  color: inherit
}

.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  opacity: 1;
  transform: translateY(0)
}

.academix-preview-card {
  background: var(--navy-2);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .65);
  position: relative
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--line)
}

.preview-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .05em
}

.preview-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(213, 27, 104, .2);
  color: var(--pink);
  border: 1px solid rgba(213, 27, 104, .35)
}

.preview-body {
  padding: 22px;
  position: relative
}

.interactive-ctrls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px
}

.pill-select {
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer
}

.pill-select:hover {
  border-color: var(--pink)
}

.sim-box {
  background: rgba(0, 0, 0, .45);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #dbe3f4
}

.sim-box b {
  color: #f0609c
}

.sim-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line)
}

.sim-row:last-child {
  border-bottom: none
}

.tag-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(91, 140, 255, .18);
  color: #5b8cff
}

.tag-badge.hot {
  background: rgba(213, 27, 104, .2);
  color: #f0609c
}

.tag-badge.ok {
  background: rgba(74, 222, 128, .18);
  color: #4ade80
}

.tag-badge.warm {
  background: rgba(243, 180, 27, .2);
  color: #f3b41b
}

.tag-badge.top {
  background: rgba(168, 85, 247, .2);
  color: #c084fc
}

[data-theme="light"] .tag-badge {
  background: #e0e7ff;
  color: #2563eb
}

[data-theme="light"] .tag-badge.hot {
  background: #ffe4e6;
  color: #e11d48
}

[data-theme="light"] .tag-badge.ok {
  background: #dcfce7;
  color: #15803d
}

[data-theme="light"] .tag-badge.warm {
  background: #fef3c7;
  color: #b45309
}

[data-theme="light"] .tag-badge.top {
  background: #f3e8ff;
  color: #7e22ce
}

/* ============ CODING PLAYGROUND ============ */
.code-ide {
  background: #060814;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 35px 80px -25px rgba(0, 0, 0, .7)
}

.code-ide-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--line)
}

.ide-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center
}

.ide-tab {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  transition: all .2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  user-select: none
}

.ide-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06)
}

.ide-tab.active {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3)
}

[data-theme="light"] .ide-tab {
  color: #94a3b8
}

[data-theme="light"] .ide-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .1)
}

[data-theme="light"] .ide-tab.active {
  background: rgba(255, 255, 255, .2);
  color: #ffffff
}

.ide-actions {
  display: flex;
  gap: 8px
}

.btn-run {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s
}

.btn-run:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(34, 197, 94, .4)
}

.code-editor {
  padding: 18px 22px;
  font-family: 'Courier New', monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: #c7d2fe;
  min-height: 180px;
  overflow-x: auto
}

.code-editor .kw {
  color: #f0609c;
  font-weight: 700
}

.code-editor .fn {
  color: #5b8cff
}

.code-editor .str {
  color: #4ade80
}

.code-editor .com {
  color: var(--muted-2);
  font-style: italic
}

.code-console {
  padding: 14px 20px;
  background: #020308;
  border-top: 1px solid var(--line);
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: #94a3b8;
  min-height: 90px
}

.code-console .success-log {
  color: #4ade80;
  font-weight: 700
}

/* ============ ANIMATED PULSE & SCANNER EFFECTS ============ */
.radar-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
  vertical-align: middle;
  margin-right: 6px
}

.radar-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: radarPing 1.8s cubic-bezier(0, 0, .2, 1) infinite
}

@keyframes radarPing {
  0% {
    transform: scale(0.8);
    opacity: 1
  }

  100% {
    transform: scale(2.5);
    opacity: 0
  }
}

.scanner-card {
  position: relative;
  overflow: hidden
}

.scanner-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0609c, transparent);
  box-shadow: 0 0 12px #f0609c;
  animation: scanDown 3s linear infinite;
  pointer-events: none;
  z-index: 3
}

@keyframes scanDown {
  0% {
    top: 0%;
    opacity: 0
  }

  15% {
    opacity: 1
  }

  85% {
    opacity: 1
  }

  100% {
    top: 100%;
    opacity: 0
  }
}

/* ============ BLOG & NEWSLETTER ============ */
.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  justify-content: center
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all .45s var(--ease)
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  background: var(--card-hi);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45)
}

.blog-thumb {
  aspect-ratio: 16/9.5;
  overflow: hidden;
  position: relative
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease)
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.06)
}

.blog-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(10, 17, 40, .85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff
}

.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1
}

.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 12px;
  align-items: center
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px
}

.blog-content h3 {
  font-size: 1.22rem;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--ink);
  transition: color .3s
}

.blog-card:hover .blog-content h3 {
  color: var(--pink)
}

.blog-content p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink);
  transition: gap .3s var(--ease)
}

.blog-link i {
  transition: transform .3s var(--ease)
}

.blog-card:hover .blog-link i {
  transform: translateX(5px)
}

/* Newsletter Card */
.newsletter-card {
  background: linear-gradient(135deg, rgba(22, 72, 198, .22), rgba(94, 27, 155, .24) 45%, rgba(213, 27, 104, .2));
  border: 1px solid rgba(213, 27, 104, .35);
  border-radius: 32px;
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  box-shadow: 0 30px 90px -30px rgba(94, 27, 155, .3)
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.nl-input-wrap {
  display: flex;
  gap: 10px
}

.nl-input {
  flex-grow: 1;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-2);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .3s
}

.nl-input:focus {
  border-color: var(--pink);
  background: rgba(255, 255, 255, .12)
}

.nl-select {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  cursor: pointer
}

.nl-select option {
  background: var(--navy-2);
  color: #fff
}

.nl-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(34, 197, 94, .16);
  border: 1px solid rgba(34, 197, 94, .35);
  color: #4ade80;
  font-weight: 700;
  font-size: 14px
}

/* Responsive adjustments */
@media(max-width:960px) {
  .tab-panel.active {
    grid-template-columns: 1fr
  }

  .newsletter-grid {
    grid-template-columns: 1fr
  }

  .nl-input-wrap {
    flex-direction: column
  }
}

/* Light theme overrides for new components */
[data-theme="light"] .academix-preview-card {
  background: #ffffff;
  box-shadow: 0 20px 50px -20px rgba(10, 17, 40, .15)
}

[data-theme="light"] .preview-header {
  background: rgba(10, 17, 40, .03)
}

[data-theme="light"] .sim-box {
  background: #f8fafc;
  color: #1e293b;
  border-color: #e2e8f0
}

[data-theme="light"] .code-ide {
  background: #0f172a;
  box-shadow: 0 25px 60px -20px rgba(15, 23, 42, .35)
}

[data-theme="light"] .blog-card {
  background: #ffffff;
  box-shadow: 0 12px 35px -20px rgba(10, 17, 40, .12)
}

[data-theme="light"] .newsletter-card {
  background: linear-gradient(135deg, rgba(241, 245, 249, 1), rgba(253, 242, 248, 1)) !important;
  border-color: #fbcfe8 !important;
  box-shadow: 0 20px 60px -25px rgba(213, 27, 104, .15)
}

[data-theme="light"] .nl-input {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1
}

[data-theme="light"] .nl-select {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1
}

[data-theme="light"] .nl-select option {
  background: #ffffff;
  color: #0f172a
}

[data-theme="light"] select,
[data-theme="light"] select option {
  background: #ffffff;
  color: #0f172a
}

/* Interactive Flow Visualizer */
.flow-visualizer {
  background: var(--navy-2);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 36px);
  margin-top: 36px;
  box-shadow: 0 30px 80px -25px rgba(0, 0, 0, .45);
  position: relative;
  overflow: hidden
}

.flow-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px
}

.flow-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s var(--ease)
}

.flow-btn i {
  transition: color .25s var(--ease)
}

.flow-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .05)
}

.flow-btn:hover i {
  color: inherit
}

.flow-btn.active {
  color: #fff;
  background: var(--grad-pink);
  border-color: transparent;
  box-shadow: 0 10px 25px -8px rgba(240, 96, 156, .5)
}

.flow-btn.active i {
  color: inherit
}

.flow-btn.active:hover i {
  color: inherit
}

.flow-display {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #070c1e;
  border: 1px solid var(--line);
  box-shadow: 0 15px 40px -15px rgba(0, 0, 0, .6)
}

.flow-item {
  display: none;
  width: 100%;
  animation: fadeIn .4s var(--ease)
}

.flow-item.active {
  display: block
}

.flow-item img,
.flow-item svg,
.flow-item video {
  width: 100%;
  height: auto;
  display: block
}

.flow-info {
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px
}

.flow-info p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0
}

.flow-info b {
  color: #fff
}

.flow-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(74, 222, 128, .15);
  color: #4ade80
}

/* Light mode for flow visualizer */
[data-theme="light"] .flow-visualizer {
  background: #ffffff;
  box-shadow: 0 20px 50px -20px rgba(10, 17, 40, .12);
  border-color: #e2e8f0
}

[data-theme="light"] .flow-btn {
  color: #475569;
  border-color: #cbd5e1
}

[data-theme="light"] .flow-btn:hover {
  color: #d51b68;
  background: linear-gradient(135deg, rgba(213, 27, 104, .08), rgba(240, 126, 25, .08));
  border-color: rgba(213, 27, 104, .4)
}

[data-theme="light"] .flow-btn:hover i {
  color: inherit
}

[data-theme="light"] .flow-btn.active {
  color: #fff;
  background: var(--grad-pink)
}

[data-theme="light"] .flow-btn.active i {
  color: inherit
}

[data-theme="light"] .flow-btn.active:hover i {
  color: inherit
}

[data-theme="light"] .flow-display {
  background: #070c1e;
  border-color: #cbd5e1
}

[data-theme="light"] .flow-info {
  background: #f8fafc;
  border-color: #e2e8f0
}

[data-theme="light"] .flow-info p {
  color: #475569
}

[data-theme="light"] .flow-info b {
  color: #0f172a
}

/* ============ EDITORIAL & ARTICLE PAGES ============ */
.article-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px
}

/* Reduced bottom margin on breadcrumbs so article heading sits closer to navigation */
.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 20px;
  flex-wrap: wrap
}

.article-breadcrumbs a {
  color: var(--muted);
  transition: color .2s
}

.article-breadcrumbs a:hover {
  color: var(--pink)
}

.article-breadcrumbs .sep {
  color: var(--muted-2);
  font-size: 11px
}

.article-breadcrumbs .cur {
  color: var(--ink);
  font-weight: 600
}

.article-header {
  margin-bottom: 36px
}

.article-header .blog-pill {
  position: static;
  display: inline-block;
  margin-bottom: 16px
}

.article-header h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 18px;
  color: var(--ink);
  letter-spacing: -.025em
}

.article-header .article-sub {
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 14px
}

.article-author-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pink)
}

.article-author-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px
}

.article-author-role {
  font-size: 12px;
  color: var(--muted)
}

.article-meta-details {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted-2)
}

.article-meta-details span {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.article-hero-media {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 44px;
  box-shadow: 0 25px 60px -25px rgba(0, 0, 0, .5);
  position: relative
}

.article-hero-media img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block
}

.article-hero-media figcaption {
  padding: 12px 20px;
  font-size: 12.5px;
  color: var(--muted-2);
  background: rgba(6, 10, 26, .8);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line)
}

.article-body {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--muted)
}

.article-body p {
  margin-bottom: 26px
}

.article-body h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  color: var(--ink);
  margin: 52px 0 20px;
  line-height: 1.24;
  position: relative;
  padding-bottom: 12px
}

.article-body h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--grad-warm);
  border-radius: 2px
}

.article-body h3 {
  font-size: 1.32rem;
  color: var(--ink);
  margin: 36px 0 16px;
  line-height: 1.3
}

.article-body strong {
  color: var(--ink);
  font-weight: 700
}

.article-body ul,
.article-body ol {
  margin: 0 0 28px 24px
}

.article-body li {
  margin-bottom: 10px
}

.key-takeaway-box {
  background: linear-gradient(135deg, rgba(213, 27, 104, .1), rgba(94, 27, 155, .1));
  border-left: 4px solid var(--pink);
  border-radius: 0 20px 20px 0;
  padding: 26px 30px;
  margin: 38px 0;
  border-top: 1px solid rgba(213, 27, 104, .2);
  border-right: 1px solid rgba(213, 27, 104, .2);
  border-bottom: 1px solid rgba(213, 27, 104, .2)
}

.key-takeaway-box h4 {
  font-family: var(--font-d);
  color: var(--ink);
  font-size: 1.12rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px
}

.key-takeaway-box h4 i {
  color: var(--pink);
  font-size: 1.2rem
}

.key-takeaway-box ul {
  margin-bottom: 0
}

.stat-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 36px 0
}

.stat-highlight-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  transition: border-color .3s
}

.stat-highlight-card:hover {
  border-color: var(--line-2)
}

.stat-highlight-card b {
  display: block;
  font-family: var(--font-d);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px
}

.stat-highlight-card span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  display: block
}

.article-quote {
  border-left: 4px solid var(--blue);
  padding: 24px 28px;
  margin: 40px 0;
  background: rgba(22, 72, 198, .08);
  border-radius: 0 18px 18px 0;
  font-style: italic;
  font-size: 1.18rem;
  color: var(--ink);
  line-height: 1.7
}

.article-quote cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  color: var(--pink);
  margin-top: 12px
}

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 36px 0
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left
}

.comparison-table th {
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  padding: 14px 18px;
  font-weight: 700;
  white-space: nowrap
}

.comparison-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, .02)
}

.article-author-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  margin: 52px 0 36px
}

.article-author-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pink);
  flex-shrink: 0
}

.article-author-card h4 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 4px
}

.article-author-card p {
  font-size: .92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6
}

.share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 40px 0
}

.share-bar span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink)
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all .25s var(--ease)
}

.share-btn i {
  transition: color .25s var(--ease)
}

.share-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: var(--line-2);
  transform: translateY(-2px)
}

.share-btn:hover i {
  color: inherit
}

.article-cta {
  background: linear-gradient(135deg, rgba(22, 72, 198, .24), rgba(94, 27, 155, .24) 45%, rgba(213, 27, 104, .2));
  border: 1px solid rgba(213, 27, 104, .35);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  margin: 52px 0;
  box-shadow: 0 25px 60px -25px rgba(0, 0, 0, .4)
}

.article-cta h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: var(--ink);
  margin-bottom: 12px
}

.article-cta p {
  max-width: 580px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: .96rem
}

.blog-search-wrap {
  max-width: 540px;
  margin: 0 auto 34px;
  position: relative
}

.blog-search-input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-2);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all .3s var(--ease)
}

.blog-search-input:focus {
  border-color: var(--pink);
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 4px rgba(213, 27, 104, .18)
}

.blog-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 15px
}

/* Light Theme Overrides for Articles */
[data-theme="light"] .article-breadcrumbs .cur {
  color: #0f172a
}

[data-theme="light"] .article-header h1 {
  color: #0f172a
}

[data-theme="light"] .article-header .article-sub {
  color: #475569
}

[data-theme="light"] .article-author-name {
  color: #0f172a
}

[data-theme="light"] .article-hero-media figcaption {
  background: rgba(241, 245, 249, .9);
  color: #475569;
  border-color: #e2e8f0
}

[data-theme="light"] .article-body {
  color: #334155
}

[data-theme="light"] .article-body h2,
[data-theme="light"] .article-body h3,
[data-theme="light"] .article-body strong {
  color: #0f172a
}

[data-theme="light"] .key-takeaway-box {
  background: linear-gradient(135deg, rgba(253, 242, 248, 1), rgba(250, 245, 255, 1));
  border-color: #fbcfe8
}

[data-theme="light"] .key-takeaway-box h4 {
  color: #0f172a
}

[data-theme="light"] .stat-highlight-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px -8px rgba(10, 17, 40, .08)
}

[data-theme="light"] .article-quote {
  background: #f0f7ff;
  color: #0f172a
}

[data-theme="light"] .comparison-table th {
  background: #f1f5f9;
  color: #0f172a
}

[data-theme="light"] .comparison-table td {
  border-color: #e2e8f0;
  color: #334155
}

[data-theme="light"] .article-author-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px -10px rgba(10, 17, 40, .08)
}

[data-theme="light"] .article-author-card h4 {
  color: #0f172a
}

[data-theme="light"] .share-bar span {
  color: #0f172a
}

[data-theme="light"] .share-btn {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569
}

[data-theme="light"] .share-btn:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #94a3b8
}

[data-theme="light"] .share-btn:hover i {
  color: inherit
}

[data-theme="light"] .article-cta {
  background: linear-gradient(135deg, #f0f7ff, #fdf2f8);
  border-color: #fbcfe8;
  box-shadow: 0 20px 50px -20px rgba(213, 27, 104, .15)
}

[data-theme="light"] .article-cta h3 {
  color: #0f172a
}

[data-theme="light"] .blog-search-input {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1
}

/* ============ PARTNERS SECTION (ECOSYSTEM & TECHNICAL) ============ */
.partners-section {
  position: relative;
  overflow: hidden
}

.partner-schools-block {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: 0 24px 60px -25px rgba(0, 0, 0, .5);
  position: relative
}

.partner-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line)
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(213, 27, 104, .14);
  color: var(--pink);
  border: 1px solid rgba(213, 27, 104, .3)
}

.partner-meta {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em
}

.partner-marquee-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 18px;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%)
}

.partner-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: partnerScroll 42s linear infinite
}

.partner-marquee-track:hover {
  animation-play-state: paused
}

.partner-marquee-track.reverse {
  animation: partnerScrollRev 42s linear infinite
}

.partner-marquee-track.reverse:hover {
  animation-play-state: paused
}

@keyframes partnerScroll {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

@keyframes partnerScrollRev {
  0% {
    transform: translateX(-50%)
  }

  100% {
    transform: translateX(0)
  }
}

.partner-logo-item {
  width: 160px;
  height: 86px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .18);
  transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s
}

.partner-logo-item:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--pink);
  box-shadow: 0 12px 28px -6px rgba(213, 27, 104, .28)
}

.partner-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain
}

.tech-partners-block {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: 0 24px 60px -25px rgba(0, 0, 0, .5);
  position: relative
}

.tech-marquee-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 18px;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%)
}

.tech-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: techScroll 40s linear infinite
}

.tech-marquee-track:hover {
  animation-play-state: paused
}

@keyframes techScroll {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

@media(prefers-reduced-motion:reduce) {
  .tech-marquee-track {
    animation: none;
    overflow-x: auto;
    width: 100%
  }
}

.tech-partner-card {
  width: 180px;
  min-width: 180px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .35s var(--ease), border-color .35s, background .35s, box-shadow .35s
}

.tech-partner-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  background: var(--card-hi);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .5)
}

.tech-logo-wrap {
  height: 54px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  position: relative
}

.tech-logo-wrap img {
  max-height: 46px;
  max-width: 130px;
  object-fit: contain
}

.tech-logo-wrap .logo-dark {
  display: none
}

.tech-logo-wrap .logo-light {
  display: block
}

[data-theme="dark"] .tech-logo-wrap .logo-dark {
  display: block
}

[data-theme="dark"] .tech-logo-wrap .logo-light {
  display: none
}

.tech-partner-card b {
  font-size: 13.5px;
  color: var(--ink);
  font-family: var(--font-d);
  display: block;
  line-height: 1.25
}

.tech-partner-card span {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
  display: block
}

/* Light Mode Overrides for Partners Section */
[data-theme="light"] .partner-schools-block {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 15px 45px -20px rgba(10, 17, 40, .09)
}

[data-theme="light"] .partner-subhead {
  border-color: #e2e8f0
}

[data-theme="light"] .partner-logo-item {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 14px -4px rgba(10, 17, 40, .06)
}

[data-theme="light"] .partner-logo-item:hover {
  background: #ffffff;
  border-color: rgba(213, 27, 104, .4);
  box-shadow: 0 12px 28px -6px rgba(213, 27, 104, .16)
}

[data-theme="light"] .partner-logo-item img {
  filter: none
}

[data-theme="light"] .tech-partners-block {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 15px 45px -20px rgba(10, 17, 40, .09)
}

[data-theme="light"] .tech-partner-card {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 4px 14px -4px rgba(10, 17, 40, .05)
}

[data-theme="light"] .tech-partner-card:hover {
  background: #ffffff;
  border-color: rgba(213, 27, 104, .35);
  box-shadow: 0 14px 34px -10px rgba(213, 27, 104, .12)
}

[data-theme="light"] .tech-partner-card b {
  color: #0a1128
}

[data-theme="light"] .tech-partner-card span {
  color: #4b5a75
}

/* ============ LMS TOOLKIT FULL PAGE COVERAGE STYLES ============ */
.toolkit-wide-wrap {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  width: 100%
}

/* Tool 1 Hero Showcase Card Container */
.toolkit-hero-card {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 4.5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  margin-bottom: 36px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -25px rgba(0, 0, 0, .6);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}

.toolkit-hero-card:hover {
  border-color: rgba(213, 27, 104, .35);
  box-shadow: 0 35px 90px -20px rgba(213, 27, 104, .15);
}

/* Ambient Radial Glow */
.toolkit-hero-glow {
  position: absolute;
  top: -100px;
  left: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 27, 104, .14) 0%, rgba(99, 102, 241, .08) 50%, transparent 70%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}

/* Fallback for legacy .img-top in case used */
.toolkit-hero-card .img-top {
  margin: 0;
  border-radius: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16/9;
  height: auto;
  overflow: hidden;
  border: 1px solid var(--line-2);
}

.toolkit-hero-card .img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease)
}

.toolkit-hero-card:hover .img-top img {
  transform: scale(1.03)
}

/* App Studio Mockup Frame (Left Column) */
.toolkit-mockup-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}

.toolkit-mockup-window {
  background: #090d1f;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .05);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

.toolkit-mockup-window:hover {
  transform: translateY(-3px);
  border-color: rgba(213, 27, 104, .45);
  box-shadow: 0 30px 75px -15px rgba(213, 27, 104, .2), 0 0 0 1px rgba(213, 27, 104, .3);
}

.toolkit-mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.toolkit-mockup-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.toolkit-mockup-dots span {
  width: 10.5px;
  height: 10.5px;
  border-radius: 50%;
  display: inline-block;
}

.toolkit-mockup-dots .dot-red {
  background: #ff5f57
}

.toolkit-mockup-dots .dot-yellow {
  background: #febc2e
}

.toolkit-mockup-dots .dot-green {
  background: #28c840
}

.toolkit-mockup-url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, .7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11.5px;
  color: var(--muted);
  max-width: 320px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolkit-mockup-url i {
  color: #4ade80;
  font-size: 10px;
  flex-shrink: 0
}

.toolkit-mockup-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, .12);
  border: 1px solid rgba(74, 222, 128, .25);
  padding: 3.5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pulse-indicator {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .35;
    transform: scale(.85)
  }
}

.toolkit-mockup-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #020510;
  overflow: hidden;
}

.toolkit-mockup-canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}

.toolkit-mockup-window:hover .toolkit-mockup-canvas img {
  transform: scale(1.035);
}

.toolkit-canvas-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.canvas-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5.5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}

.canvas-pill-key {
  background: rgba(10, 17, 40, .88);
  border: 1px solid rgba(74, 222, 128, .4);
  color: #4ade80;
}

.canvas-pill-sheet {
  background: rgba(10, 17, 40, .88);
  border: 1px solid rgba(213, 27, 104, .4);
  color: #f0609c;
}

/* Content Column (Right Side) */
.toolkit-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}

.toolkit-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.toolkit-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
  background: linear-gradient(135deg, rgba(213, 27, 104, .18), rgba(99, 102, 241, .18));
  border: 1px solid rgba(213, 27, 104, .35);
  color: #f0609c;
}

.toolkit-featured-badge i {
  font-size: 12px;
  color: #f0609c;
}

.toolkit-aligned-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: var(--muted);
}

.toolkit-aligned-badge i {
  color: #5b8cff;
  font-size: 11px;
}

.toolkit-headline-group {
  margin-bottom: 18px;
}

.toolkit-title {
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  font-weight: 800;
  line-height: 1.24;
  margin: 0 0 10px;
  color: var(--heading);
  letter-spacing: -.02em;
}

.toolkit-sub-title {
  display: block;
  font-size: clamp(.98rem, 1.25vw, 1.15rem);
  font-weight: 600;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0;
}

.toolkit-desc {
  font-size: .97rem;
  line-height: 1.72;
  color: var(--muted);
  margin: 0;
}

/* Benefit Matrix */
.toolkit-benefit-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 0 0 22px;
  width: 100%;
}

.toolkit-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid transparent;
  transition: all .25s var(--ease);
}

.toolkit-benefit-item:hover {
  background: rgba(255, 255, 255, .05);
  border-color: var(--line);
  transform: translateX(3px);
}

.benefit-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-icon.i-pink {
  background: rgba(213, 27, 104, .16);
  color: #f0609c
}

.benefit-icon.i-emerald {
  background: rgba(74, 222, 128, .16);
  color: #4ade80
}

.benefit-icon.i-blue {
  background: rgba(91, 140, 255, .16);
  color: #5b8cff
}

.benefit-icon.i-amber {
  background: rgba(243, 180, 27, .16);
  color: #f3b41b
}

.benefit-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}

.benefit-text strong {
  font-weight: 700;
  color: var(--heading);
  margin-right: 4px;
}

/* Hero Footer: Tags + CTA Actions */
.toolkit-hero-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.toolkit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolkit-tags .tag-badge {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  transition: all .25s var(--ease);
}

.toolkit-tags .tag-badge:hover {
  transform: translateY(-2px);
  border-color: currentColor;
}

.toolkit-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.toolkit-action-row .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Light Mode Overrides for Toolkit Hero Card */
[data-theme="light"] .toolkit-hero-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 24px 60px -20px rgba(10, 17, 40, .09);
}

[data-theme="light"] .toolkit-hero-card:hover {
  border-color: rgba(213, 27, 104, .4);
  box-shadow: 0 30px 75px -15px rgba(213, 27, 104, .14);
}

[data-theme="light"] .toolkit-hero-glow {
  background: radial-gradient(circle, rgba(213, 27, 104, .08) 0%, rgba(99, 102, 241, .04) 50%, transparent 70%);
}

[data-theme="light"] .toolkit-mockup-window {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 45px -15px rgba(10, 17, 40, .12), 0 0 0 1px rgba(10, 17, 40, .05);
}

[data-theme="light"] .toolkit-mockup-window:hover {
  border-color: rgba(213, 27, 104, .35);
  box-shadow: 0 25px 60px -12px rgba(213, 27, 104, .18), 0 0 0 1px rgba(213, 27, 104, .2);
}

[data-theme="light"] .toolkit-mockup-bar {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .toolkit-mockup-url {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .toolkit-mockup-status {
  background: rgba(22, 163, 74, .1);
  border-color: rgba(22, 163, 74, .25);
  color: #16a34a;
}

[data-theme="light"] .pulse-indicator {
  background: #16a34a;
  box-shadow: 0 0 6px #16a34a;
}

[data-theme="light"] .canvas-pill-key {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(22, 163, 74, .4);
  color: #15803d;
  box-shadow: 0 4px 14px rgba(10, 17, 40, .12);
}

[data-theme="light"] .canvas-pill-sheet {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(213, 27, 104, .4);
  color: #d51b68;
  box-shadow: 0 4px 14px rgba(10, 17, 40, .12);
}

[data-theme="light"] .toolkit-featured-badge {
  background: linear-gradient(135deg, rgba(213, 27, 104, .1), rgba(99, 102, 241, .08));
  border-color: rgba(213, 27, 104, .25);
  color: #d51b68;
}

[data-theme="light"] .toolkit-featured-badge i {
  color: #d51b68;
}

[data-theme="light"] .toolkit-aligned-badge {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .toolkit-aligned-badge i {
  color: #2563eb;
}

[data-theme="light"] .toolkit-title {
  color: #0a1128;
}

[data-theme="light"] .toolkit-sub-title {
  color: #4b5a75;
}

[data-theme="light"] .toolkit-desc {
  color: #475569;
}

[data-theme="light"] .toolkit-benefit-item {
  background: #f8fafc;
  border-color: #f1f5f9;
}

[data-theme="light"] .toolkit-benefit-item:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .benefit-icon.i-pink {
  background: rgba(213, 27, 104, .1);
  color: #d51b68
}

[data-theme="light"] .benefit-icon.i-emerald {
  background: rgba(22, 163, 74, .1);
  color: #16a34a
}

[data-theme="light"] .benefit-icon.i-blue {
  background: rgba(37, 99, 235, .1);
  color: #2563eb
}

[data-theme="light"] .benefit-icon.i-amber {
  background: rgba(217, 119, 6, .1);
  color: #b45309
}

[data-theme="light"] .benefit-text {
  color: #33415c
}

[data-theme="light"] .benefit-text strong {
  color: #0a1128
}

.toolkit-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 28px;
  width: 100%
}

.toolkit-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%
}

@media(max-width:980px) {
  .toolkit-hero-card {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: clamp(22px, 3.5vw, 36px)
  }

  .toolkit-hero-content {
    padding-left: 0
  }

  .toolkit-mockup-wrapper {
    width: 100%;
    max-width: 100%
  }

  .toolkit-canvas-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px
  }

  .toolkit-grid-2,
  .toolkit-grid-3 {
    grid-template-columns: 1fr
  }
}

@media(max-width:580px) {
  .toolkit-action-row {
    width: 100%
  }

  .toolkit-action-row .btn {
    width: 100%;
    justify-content: center
  }

  .toolkit-mockup-url {
    display: none
  }
}

/* ============ INDEPENDENT APP PLATFORM STYLES ============ */
.app-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(245, 158, 11, .14);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, .32);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em
}

.app-device-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px
}

.app-device-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  transition: all .3s var(--ease)
}

.app-device-badge:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
  background: var(--card-hi)
}

.app-device-badge i {
  font-size: 15px;
  color: var(--pink)
}

[data-theme="light"] .app-device-badge {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a
}

[data-theme="light"] .app-device-badge:hover {
  background: #ffffff;
  border-color: rgba(213, 27, 104, .4)
}

/* ============ HERO LIVE CBT SIMULATION CARD ============ */
.hero-cbt-wrap {
  width: 100%;
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

.hero-cbt-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--pink);
  margin-bottom: 12px;
  background: rgba(213, 27, 104, .1);
  border: 1px solid rgba(213, 27, 104, .25);
  padding: 5px 12px;
  border-radius: 99px;
}

.hero-cbt-badge-label .live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(213, 27, 104, .7);
  animation: heroPulseDot 2s infinite;
}

@keyframes heroPulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(213, 27, 104, .7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(213, 27, 104, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(213, 27, 104, 0);
  }
}

.hero-cbt-card {
  background: var(--navy-2);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: clamp(16px, 2.5vw, 24px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .05);
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-cbt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-cbt-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-cbt-subject {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.hero-cbt-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}

.cbt-meta-item.time {
  color: #4ade80;
  font-weight: 600;
}

.cbt-meta-item.marks {
  color: var(--muted);
  font-weight: 600;
}

.cbt-progress-tag {
  background: rgba(255, 255, 255, .07);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  font-weight: 700;
}

.hero-cbt-question {
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 16px;
  color: var(--ink);
}

.hero-cbt-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cbt-opt-btn {
  text-align: left;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--card-hi);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .2s ease;
  width: 100%;
}

.cbt-opt-btn:hover {
  border-color: rgba(213, 27, 104, .45);
  transform: translateY(-1px);
}

.hero-cbt-explanation {
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .25);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
}

[data-theme="light"] .hero-cbt-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, .08);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .03);
}

[data-theme="light"] .hero-cbt-badge-label {
  background: rgba(213, 27, 104, .08);
  border-color: rgba(213, 27, 104, .2);
}

[data-theme="light"] .cbt-opt-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .cbt-opt-btn:hover {
  background: #ffffff;
  border-color: var(--pink);
}

[data-theme="light"] .cbt-progress-tag {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

@media(max-width:768px) {
  .hero-cbt-card {
    padding: 14px;
    border-radius: 18px;
  }
  .hero-cbt-question {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  .cbt-opt-btn {
    padding: 10px 12px;
    font-size: 13px;
  }
}

.app-highlight-box {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 42px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -25px rgba(0, 0, 0, .5)
}

[data-theme="light"] .app-highlight-box {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 15px 45px -20px rgba(10, 17, 40, .08)
}

/* ============ SPEAKSX FOREIGN LANGUAGE PROGRAM STYLES ============ */
.grad-emerald {
  background: linear-gradient(92deg, #10b981, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

.c-emerald {
  color: #10b981
}

.orb-emerald {
  background: rgba(16, 185, 129, .26)
}

/* Core Philosophy Cards */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px
}

.philosophy-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  transition: all .35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px
}

.philosophy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, .45);
  background: var(--card-hi);
  box-shadow: 0 18px 40px -15px rgba(16, 185, 129, .2)
}

.philosophy-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(16, 185, 129, .14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, .28)
}

.philosophy-card h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink)
}

.philosophy-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6
}

/* Language Dynamics Matrix (Foreign vs Second vs Native) */
.dynamics-card {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  margin-top: 40px;
  box-shadow: 0 24px 60px -25px rgba(0, 0, 0, .5)
}

.dynamics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px
}

.dynamics-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden
}

.dynamics-item.featured {
  border-color: rgba(16, 185, 129, .5);
  background: linear-gradient(180deg, rgba(16, 185, 129, .08) 0%, var(--card) 100%)
}

.dynamics-item .badge-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 10px
}

.dynamics-item h5 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px
}

.dynamics-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6
}

/* Languages Offered Grid */
.speaksx-lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px
}

.speaksx-lang-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  transition: all .35s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.speaksx-lang-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, .5);
  box-shadow: 0 20px 48px -15px rgba(16, 185, 129, .25);
  background: var(--card-hi)
}

.lang-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px
}

.lang-flag {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3))
}

.lang-cert-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  color: var(--muted);
  border: 1px solid var(--line)
}

.lang-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px
}

.lang-title-row h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink)
}

.lang-native {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600
}

.lang-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px
}

.lang-greeting-box {
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto
}

.lang-greeting-text b {
  display: block;
  font-size: 15px;
  color: var(--ink)
}

.lang-greeting-text small {
  font-size: 12px;
  color: var(--muted);
  font-family: monospace
}

.pronounce-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all .25s var(--ease);
  flex-shrink: 0
}

.pronounce-btn:hover {
  background: #10b981;
  color: #fff;
  transform: scale(1.08)
}

.pronounce-btn.is-speaking {
  animation: pulseGreen .8s ease infinite;
  background: #10b981;
  color: #fff
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .6)
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0)
  }
}

/* Foundation Course Highlight Banner */
.foundation-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, .12) 0%, rgba(6, 182, 212, .08) 50%, var(--navy-2) 100%);
  border: 1px solid rgba(16, 185, 129, .35);
  border-radius: 26px;
  padding: clamp(28px, 4vw, 44px);
  margin-top: 48px;
  position: relative;
  overflow: hidden
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px
}

.foundation-item {
  background: rgba(10, 17, 40, .6);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  transition: all .3s var(--ease)
}

.foundation-item:hover {
  border-color: rgba(16, 185, 129, .4);
  transform: translateY(-3px)
}

.foundation-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(16, 185, 129, .15);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px
}

.foundation-item h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px
}

.foundation-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55
}

/* Curriculum Grade Navigation Tabs */
.curriculum-wrap {
  margin-top: 36px
}

.curriculum-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin
}

.curriculum-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: all .25s var(--ease);
  white-space: nowrap
}

.curriculum-tab-btn:hover {
  background: var(--card-hi);
  color: var(--ink);
  border-color: var(--line-2)
}

.curriculum-tab-btn.active {
  background: rgba(16, 185, 129, .15);
  border-color: rgba(16, 185, 129, .5);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(16, 185, 129, .3)
}

.curriculum-tab-btn.active .tab-icon {
  color: #10b981
}

.curriculum-panels {
  margin-top: 28px
}

.curriculum-panel {
  display: none
}

.curriculum-panel.active {
  display: block
}

.curriculum-card {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 40px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  box-shadow: 0 24px 60px -25px rgba(0, 0, 0, .5)
}

.curriculum-activities-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0
}

.curriculum-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink)
}

.curriculum-activity-item i {
  color: #10b981;
  margin-top: 4px;
  font-size: 14px;
  flex-shrink: 0
}

.curriculum-sidebar-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px
}

.curriculum-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

/* 5-Stage CEFR Progression Stepper */
.progression-stepper-wrap {
  margin-top: 36px
}

.stepper-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px
}

.stepper-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: left;
  transition: all .3s var(--ease);
  cursor: pointer
}

.stepper-step:hover {
  border-color: rgba(16, 185, 129, .4);
  background: var(--card-hi)
}

.stepper-step.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, .12);
  box-shadow: 0 8px 24px -6px rgba(16, 185, 129, .35)
}

.stepper-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, .08);
  color: var(--muted);
  margin-bottom: 8px
}

.stepper-step.active .stepper-num {
  background: #10b981;
  color: #fff
}

.stepper-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink)
}

.stepper-cefr {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600
}

.stepper-meter-track {
  height: 6px;
  background: rgba(255, 255, 255, .08);
  border-radius: 99px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden
}

.stepper-meter-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  transition: width .4s var(--ease)
}

.progression-card {
  display: none;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 24px 60px -25px rgba(0, 0, 0, .5)
}

.progression-card.active {
  display: block
}

/* Platform Tools Grid */
.tools-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 32px
}

.tool-feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column
}

.tool-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, .45);
  background: var(--card-hi);
  box-shadow: 0 18px 40px -15px rgba(16, 185, 129, .2)
}

.tool-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(16, 185, 129, .14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px
}

.tool-feature-card h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink)
}

.tool-feature-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1
}

.tool-metric-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .25);
  padding: 4px 10px;
  border-radius: 99px;
  align-self: flex-start
}

/* Task 3: Interactive Micro-Lesson Studio */
.micro-studio-card {
  background: var(--navy-2);
  border: 1px solid rgba(16, 185, 129, .35);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 30px 80px -25px rgba(0, 0, 0, .6);
  position: relative;
  overflow: hidden
}

.micro-studio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 28px
}

.selector-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.selector-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted)
}

.micro-pill-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.micro-pill-btn {
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  transition: all .25s var(--ease)
}

.micro-pill-btn:hover {
  background: var(--card-hi);
  color: var(--ink)
}

.micro-pill-btn.active {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
  box-shadow: 0 6px 18px -4px rgba(16, 185, 129, .4)
}

.micro-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.micro-step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  position: relative
}

.micro-step-card.full-width {
  grid-column: 1 / -1
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #10b981;
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .3);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 14px
}

.word-display-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0
}

.word-term {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2
}

.word-phonetic {
  font-size: 14px;
  color: #10b981;
  font-family: monospace;
  margin-top: 4px
}

.btn-listen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(16, 185, 129, .18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, .4);
  font-size: 13px;
  font-weight: 700;
  transition: all .25s var(--ease);
  cursor: pointer
}

.btn-listen:hover {
  background: #10b981;
  color: #fff
}

.btn-listen.pulse-anim {
  animation: pulseGreen .8s ease infinite
}

.sentence-native {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4
}

.sentence-translation {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px
}

.grammar-note {
  background: rgba(255, 255, 255, .03);
  border-left: 3px solid #10b981;
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5
}

/* Multiple-choice quiz buttons */
.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px
}

.quiz-opt-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--navy-3);
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  transition: all .25s var(--ease);
  cursor: pointer;
  width: 100%
}

.quiz-opt-btn:hover:not(.disabled) {
  background: rgba(255, 255, 255, .08);
  border-color: var(--line-2);
  transform: translateX(4px)
}

.quiz-opt-btn .opt-indicator {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0
}

.quiz-opt-btn .opt-icon-correct,
.quiz-opt-btn .opt-icon-wrong {
  display: none;
  margin-left: auto;
  font-size: 18px
}

.quiz-opt-btn.correct {
  background: rgba(16, 185, 129, .2);
  border-color: #10b981;
  color: #fff
}

.quiz-opt-btn.correct .opt-icon-correct {
  display: inline-block;
  color: #10b981
}

.quiz-opt-btn.correct .opt-indicator {
  background: #10b981;
  color: #fff
}

.quiz-opt-btn.incorrect {
  background: rgba(239, 68, 68, .18);
  border-color: #ef4444;
  color: #fff
}

.quiz-opt-btn.incorrect .opt-icon-wrong {
  display: inline-block;
  color: #ef4444
}

.quiz-opt-btn.incorrect .opt-indicator {
  background: #ef4444;
  color: #fff
}

.quiz-opt-btn.disabled {
  pointer-events: none
}

.micro-feedback {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  animation: fadeInUp .3s var(--ease)
}

.micro-feedback.hidden {
  display: none
}

.micro-feedback.correct-feedback {
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .3)
}

.micro-feedback.incorrect-feedback {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .3)
}

.feedback-badge {
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px
}

.feedback-badge.success {
  color: #10b981
}

.feedback-badge.error {
  color: #ef4444
}

.feedback-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55
}

/* Light Theme Adjustments for Speaksx */
[data-theme="light"] .philosophy-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px -8px rgba(10, 17, 40, .06)
}

[data-theme="light"] .dynamics-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px -15px rgba(10, 17, 40, .08)
}

[data-theme="light"] .dynamics-item {
  background: #f8fafc;
  border-color: #e2e8f0
}

[data-theme="light"] .dynamics-item.featured {
  background: linear-gradient(180deg, rgba(16, 185, 129, .08) 0%, #f8fafc 100%)
}

[data-theme="light"] .speaksx-lang-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 6px 24px -10px rgba(10, 17, 40, .06)
}

[data-theme="light"] .lang-greeting-box {
  background: #f1f5f9;
  border-color: #e2e8f0
}

[data-theme="light"] .foundation-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, .1) 0%, rgba(6, 182, 212, .06) 50%, #ffffff 100%);
  border-color: rgba(16, 185, 129, .3)
}

[data-theme="light"] .foundation-item {
  background: #ffffff;
  border-color: #e2e8f0
}

[data-theme="light"] .curriculum-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px -15px rgba(10, 17, 40, .08)
}

[data-theme="light"] .curriculum-tab-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569
}

[data-theme="light"] .curriculum-tab-btn.active {
  background: rgba(16, 185, 129, .12);
  color: #059669;
  border-color: rgba(16, 185, 129, .5)
}

[data-theme="light"] .curriculum-sidebar-box {
  background: #f8fafc;
  border-color: #e2e8f0
}

[data-theme="light"] .stepper-step {
  background: #f8fafc;
  border-color: #e2e8f0
}

[data-theme="light"] .stepper-step.active {
  background: rgba(16, 185, 129, .1);
  border-color: #10b981
}

[data-theme="light"] .progression-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px -15px rgba(10, 17, 40, .08)
}

[data-theme="light"] .tool-feature-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px -8px rgba(10, 17, 40, .06)
}

[data-theme="light"] .micro-studio-card {
  background: #ffffff;
  border-color: rgba(16, 185, 129, .35);
  box-shadow: 0 15px 45px -20px rgba(10, 17, 40, .1)
}

[data-theme="light"] .micro-step-card {
  background: #f8fafc;
  border-color: #e2e8f0
}

[data-theme="light"] .quiz-opt-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a
}

[data-theme="light"] .quiz-opt-btn:hover:not(.disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1
}

[data-theme="light"] .grammar-note {
  background: #f1f5f9;
  color: #475569
}

/* Responsive Media Queries */
@media(max-width:1120px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .speaksx-lang-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .tools-feature-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .foundation-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .curriculum-card {
    grid-template-columns: 1fr
  }
}

@media(max-width:768px) {
  .dynamics-grid {
    grid-template-columns: 1fr
  }

  .speaksx-lang-grid {
    grid-template-columns: 1fr
  }

  .tools-feature-grid {
    grid-template-columns: 1fr
  }

  .stepper-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px
  }

  .stepper-step:last-child {
    grid-column: 1 / -1
  }

  .micro-steps-grid {
    grid-template-columns: 1fr
  }

  .quiz-options-grid {
    grid-template-columns: 1fr
  }

  .foundation-grid {
    grid-template-columns: 1fr
  }
}
/* =============================================================================
   MOBILE NUMBER VALIDATION & OTP VERIFICATION WIDGET
   ============================================================================= */
.phone-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.phone-field-wrapper input {
  padding-right: 98px !important;
}

.phone-field-wrapper label {
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
  transition: .25s var(--ease);
  z-index: 2;
}

.btn-get-otp {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 13px;
  border-radius: 9px;
  background: linear-gradient(135deg, #d51b68 0%, #f0609c 100%);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 3;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(213, 27, 104, 0.35);
}

.btn-get-otp:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 4px 12px rgba(213, 27, 104, 0.45);
}

.btn-get-otp:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: translateY(-50%);
  box-shadow: none;
}

.phone-helper-text {
  font-size: 11.5px;
  margin-top: 5px;
  color: var(--muted, #94a3b8);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.phone-helper-text.error {
  color: #f87171 !important;
}

.phone-helper-text.success {
  color: #4ade80 !important;
}

/* OTP Interactive Row Container */
.otp-interactive-wrap {
  grid-column: 1 / -1;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(240, 96, 156, 0.35);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: otpSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="light"] .otp-interactive-wrap {
  background: #f8fafc;
  border-color: rgba(213, 27, 104, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

@keyframes otpSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.otp-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12.5px;
}

.otp-row-header .otp-info-title {
  color: #ffffff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}

[data-theme="light"] .otp-row-header .otp-info-title {
  color: #0f172a;
}

.otp-input-action-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.otp-code-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid var(--line-2, #334155);
  border-radius: 10px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .otp-code-input {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.otp-code-input:focus {
  border-color: var(--pink, #ec4899);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.btn-verify-otp-action {
  padding: 12px 22px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-verify-otp-action:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-verify-otp-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.otp-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted, #94a3b8);
}

.btn-resend-otp {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

[data-theme="light"] .btn-resend-otp {
  color: #0284c7;
}

.btn-resend-otp:disabled {
  color: var(--muted, #64748b);
  cursor: not-allowed;
  text-decoration: none;
}

.otp-inline-feedback {
  margin-top: 8px;
  font-size: 12px;
  display: none;
  font-weight: 500;
}

.otp-inline-feedback.error {
  display: block;
  color: #f87171;
}

.otp-inline-feedback.success {
  display: block;
  color: #4ade80;
}

/* Verified Badge when complete */
.phone-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 6px;
  animation: fadeIn 0.3s ease;
}

.btn-change-phone {
  background: none;
  border: none;
  color: #94a3b8;
  text-decoration: underline;
  font-size: 11px;
  cursor: pointer;
  margin-left: 6px;
  padding: 0;
}

.btn-change-phone:hover {
  color: #cbd5e1;
}
