/* ============================================================
   The Fin Times — v3 "Command Center" Design System
   Inspired by: Stripe / Linear / Vercel / Perplexity
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --bg: #030712;
  --surface: #080d1a;
  --card: #0d1525;
  --border: rgba(255, 255, 255, 0.07);
  --border-md: rgba(255, 255, 255, 0.12);
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --violet-dim: rgba(124, 58, 237, 0.15);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, 0.12);
  --emerald: #10b981;
  --emerald-dim: rgba(16, 185, 129, 0.12);
  --amber: #f59e0b;
  --rose: #f43f5e;
  --text-1: #f8fafc;
  --text-2: #e2e8f0;
  --text-3: #94a3b8;
  --text-4: #64748b;
  --text-5: #334155;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

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

/* ── Utilities ── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ── Gradient texts ── */
.g-text {
  background: linear-gradient(135deg, #a78bfa, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.g-text-emerald {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.g-text-live {
  background: linear-gradient(120deg, #a78bfa, #06b6d4, #10b981, #a78bfa);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 4s ease-in-out infinite;
}

/* Keep old names for backward compat */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes gradShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* ── FLOATING PILL NAVBAR ── */
.nav-pill-outer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 20px;
  pointer-events: none;
}

@media (max-width: 640px) {
  .nav-pill-outer {
    padding: 10px 12px;
  }
}

.nav-pill-outer * {
  pointer-events: auto;
}

.nav-pill {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 52px;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0 14px;
  transition: background .3s, box-shadow .3s;
}

.nav-pill.scrolled {
  background: rgba(3, 7, 18, 0.97);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 58, 237, 0.12);
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.nav-links {
  display: none; /* hidden on mobile — shown via media query below */
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
  transition: all .18s;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}

.nav-item:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.12);
}

.nav-ul {
  position: absolute;
  bottom: 3px;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a78bfa, #06b6d4);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

.nav-item-planner {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.nav-item-planner:hover {
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #6ee7b7 !important;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}

.nav-search:hover {
  border-color: rgba(124, 58, 237, 0.3);
  color: #94a3b8;
}

.nav-search kbd {
  font-size: 10.5px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: #475569;
  font-family: inherit;
}

#themeToggle {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all .2s;
  flex-shrink: 0;
}

#themeToggle:hover {
  border-color: rgba(124, 58, 237, 0.3);
  color: #a78bfa;
}

/* ── MOBILE BOTTOM DRAWER ── */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  pointer-events: none;
}

.mobile-drawer.open {
  pointer-events: auto;
}

.mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s;
}

.mobile-drawer.open .mobile-overlay {
  opacity: 1;
}

.mobile-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0a0f1e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 28px;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.mobile-drawer.open .mobile-panel {
  transform: translateY(0);
}

.mobile-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto 18px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: all .18s;
}

.mobile-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.mobile-nav-item.active {
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.1);
}

.mobile-nav-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  font-size: 14px;
}

/* ── HERO — COMMAND CENTER ── */
.hero-outer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 5% 50%, rgba(124, 58, 237, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 40%, rgba(6, 182, 212, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width:1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 8px;
  margin-bottom: 20px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.02em;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.9);
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow: 0 0 6px rgba(124, 58, 237, 0.8);
  }

  50% {
    box-shadow: 0 0 16px rgba(124, 58, 237, 1);
  }
}

.hero-heading {
  font-size: clamp(2.8rem, 4.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #f8fafc;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #475569;
  max-width: 490px;
  margin-bottom: 30px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
  border-radius: inherit;
  opacity: 0;
  transition: opacity .2s;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.55);
}

.btn-hero-primary:hover::after {
  opacity: 1;
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: all .2s;
}

.btn-hero-ghost:hover {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  background: rgba(16, 185, 129, 0.06);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  color: #334155;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-item::before {
  content: '✓';
  color: #10b981;
  font-weight: 700;
  font-size: 13px;
}

/* ── Hero Widgets ── */
.hero-widgets {
  position: relative;
  height: 460px;
}

@media (max-width:1024px) {
  .hero-widgets {
    display: none !important;
  }
}

.h-widget {
  position: absolute;
  background: rgba(13, 21, 37, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.h-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.55), transparent);
}

.hw-portfolio {
  width: 268px;
  top: 16px;
  left: 0;
  padding: 20px;
  animation: floatA 7s ease-in-out infinite;
}

.hw-ai {
  width: 230px;
  top: 70px;
  right: 0;
  padding: 16px;
  animation: floatB 9s ease-in-out infinite;
}

.hw-ticker {
  width: 196px;
  bottom: 90px;
  left: 18px;
  padding: 14px 16px;
  animation: floatC 8s ease-in-out infinite;
}

.hw-sip {
  width: 210px;
  bottom: 20px;
  right: 14px;
  padding: 16px;
  animation: floatD 10s ease-in-out infinite;
}

@keyframes floatA {

  0%,
  100% {
    transform: translateY(0) rotate(0deg)
  }

  40% {
    transform: translateY(-12px) rotate(.4deg)
  }

  70% {
    transform: translateY(6px) rotate(-.3deg)
  }
}

@keyframes floatB {

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

  35% {
    transform: translateY(10px)
  }

  70% {
    transform: translateY(-7px)
  }
}

@keyframes floatC {

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

  50% {
    transform: translateY(-9px)
  }
}

@keyframes floatD {

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

  45% {
    transform: translateY(11px)
  }
}

.hw-conn-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.9);
  animation: connPulse 2.2s ease-in-out infinite;
}

@keyframes connPulse {

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

  50% {
    opacity: 1;
    transform: scale(1.6)
  }
}

.widget-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.widget-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.widget-up {
  color: #10b981;
}

.widget-down {
  color: #f43f5e;
}

.sparkline-wrap {
  width: 100%;
  height: 44px;
  overflow: hidden;
}

.ticker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-row:last-child {
  border-bottom: none;
}

.ticker-name {
  color: #94a3b8;
  font-weight: 600;
}

/* ── BENTO CATEGORY GRID ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width:768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bento-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 18px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.4, 0, .2, 1), box-shadow .22s, border-color .22s;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.bento-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  width: 80px;
  height: 80px;
  top: -20px;
  right: -20px;
}

.bento-card:hover .bento-glow {
  opacity: 0.7;
}

.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.bento-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 3px;
  position: relative;
  z-index: 1;
}

.bento-desc {
  font-size: 11px;
  color: #334155;
  position: relative;
  z-index: 1;
}

.bento-count {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #334155;
}

.bento-arrow {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-size: 11px;
  color: #334155;
  transition: color .2s, right .2s;
  opacity: 0;
}

.bento-card:hover .bento-arrow {
  opacity: 1;
  color: #a78bfa;
  right: 12px;
}

/* ── MAGAZINE POST CARDS ── */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .22s cubic-bezier(.4, 0, .2, 1), box-shadow .22s, border-color .22s;
  position: relative;
}

.post-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  opacity: 0;
  transition: opacity .22s;
  z-index: 2;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(124, 58, 237, 0.28);
}

.post-card:hover .post-card-accent {
  opacity: 1;
}

.post-card:hover .pc-img img {
  transform: scale(1.07);
}

.pc-img {
  width: 100%;
  height: 188px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.05));
  flex-shrink: 0;
}

.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  opacity: 0.88;
}

.pc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 21, 37, 0.88) 0%, rgba(13, 21, 37, 0.25) 40%, transparent 100%);
}

.pc-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-cat {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 1;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  background: rgba(124, 58, 237, 0.85);
  color: #fff;
}

.pc-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pc-title {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.45;
  margin-bottom: 8px;
  transition: color .2s;
}

.post-card:hover .pc-title {
  color: #a78bfa;
}

.pc-excerpt {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}

.pc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #334155;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pc-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pc-readmore {
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: all .18s;
}

.post-card:hover .pc-readmore {
  color: #a78bfa;
  gap: 6px;
}

/* Featured card (horizontal) */
.post-card-lg {
  flex-direction: row;
}

.post-card-lg .pc-img {
  width: 42%;
  height: auto;
  min-height: 240px;
  flex-shrink: 0;
}

.post-card-lg .pc-body {
  padding: 24px;
}

.post-card-lg .pc-title {
  font-size: 17px;
  margin-bottom: 10px;
}

@media (max-width:640px) {
  .post-card-lg {
    flex-direction: column;
  }

  .post-card-lg .pc-img {
    width: 100%;
    height: 188px;
  }
}

/* ── SECTION LABELS ── */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7c3aed;
  margin-bottom: 8px;
}

.sec-label::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  flex-shrink: 0;
}

.sec-title {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.sec-title span {
  color: #a78bfa;
}

/* ── FILTER CHIPS ROW ── */
.filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: #475569;
  text-decoration: none;
  cursor: pointer;
  transition: all .18s;
  flex-shrink: 0;
}

.filter-chip:hover {
  border-color: rgba(124, 58, 237, 0.28);
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.06);
}

.filter-chip.active {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.4);
  color: #a78bfa;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.2);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 11px;
  background: #7c3aed;
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  transition: all .2s;
}

.btn-primary:hover {
  background: #6d28d9;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

.btn-emerald {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 11px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #0a0f1e;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
  transition: all .2s;
}

.btn-emerald:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #94a3b8;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}

.btn-outline:hover {
  border-color: rgba(124, 58, 237, 0.4);
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.06);
}

/* ── TAG CHIPS ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip-violet {
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
}

.chip-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
}

.chip-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.chip-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

.chip-rose {
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
}

.chip-default {
  background: rgba(255, 255, 255, 0.07);
  color: #475569;
}

/* old class compat */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
}

/* ── CTA SECTION ── */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 52px 44px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(135deg, rgba(13, 21, 37, 0.95), rgba(8, 13, 26, 0.98));
}

@media (max-width:640px) {
  .cta-band {
    padding: 32px 24px;
  }
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 70%);
  pointer-events: none;
}

.cta-band::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14), transparent 70%);
  pointer-events: none;
}

/* ── SUBSCRIBE ── */
.subscribe-section {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(6, 182, 212, 0.04));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #334155;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #334155;
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover {
  color: #64748b;
}

.footer-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

/* ── SCROLL-TO-TOP ── */
#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  font-size: 13px;
  transition: transform .2s, box-shadow .2s, opacity .3s;
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.6);
}

#scrollTopBtn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── SKELETON ── */
@keyframes shimmer {
  0% {
    background-position: -800px 0
  }

  100% {
    background-position: 800px 0
  }
}

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite;
  border-radius: 8px;
}

/* ── REVEAL ANIMATIONS ── */
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(22px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.reveal {
  opacity: 0;
}

.reveal.visible {
  animation: fadeUpIn .55s cubic-bezier(.4, 0, .2, 1) forwards;
}

.reveal-d1,
.reveal-delay-1 {
  animation-delay: .08s;
}

.reveal-d2,
.reveal-delay-2 {
  animation-delay: .16s;
}

.reveal-d3,
.reveal-delay-3 {
  animation-delay: .24s;
}

.reveal-d4 {
  animation-delay: .32s;
}

.reveal-d5 {
  animation-delay: .40s;
}

.reveal-d6 {
  animation-delay: .48s;
}

/* ── READING PROGRESS ── */
#reading-progress {
  height: 2px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 201;
  background: linear-gradient(90deg, #7c3aed, #06b6d4, #10b981);
  background-size: 200% 100%;
  animation: progressShift 3s linear infinite;
  width: 0%;
  transition: width .1s linear;
}

@keyframes progressShift {
  0% {
    background-position: 0%
  }

  100% {
    background-position: 200%
  }
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pg-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #64748b;
  transition: all .18s;
}

.pg-btn:hover {
  border-color: rgba(124, 58, 237, 0.3);
  color: #a78bfa;
}

.pg-btn.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.pg-btn-wide {
  width: auto;
  padding: 0 14px;
}

/* ── ARTICLE PROSE ── */
.article-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 2rem 0 .75rem;
  color: #f1f5f9;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5rem 0 .5rem;
  color: #e2e8f0;
}

.article-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 .4rem;
  color: #e2e8f0;
}

.article-content p {
  margin-bottom: 1.1rem;
  line-height: 1.85;
  color: #64748b;
}

.article-content ul,
.article-content ol {
  margin: .75rem 0 1rem 1.5rem;
}

.article-content li {
  margin-bottom: .5rem;
  color: #64748b;
  line-height: 1.75;
}

.article-content strong {
  color: #f1f5f9;
  font-weight: 700;
}

.article-content em {
  color: #e2e8f0;
  font-style: italic;
}

.article-content a {
  color: #a78bfa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: #c4b5fd;
}

.article-content blockquote {
  border-left: 3px solid #7c3aed;
  padding: .75rem 1rem;
  margin: 1.25rem 0;
  background: rgba(124, 58, 237, 0.06);
  border-radius: 0 8px 8px 0;
  color: #e2e8f0;
  font-style: italic;
}

.article-content code {
  background: rgba(255, 255, 255, 0.07);
  color: #a78bfa;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: .875em;
  font-family: 'Courier New', monospace;
}

.article-content pre {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: #94a3b8;
}

.article-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 2rem 0;
}

.article-content img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}

.article-content th {
  background: rgba(124, 58, 237, 0.1);
  padding: .6rem .75rem;
  font-weight: 700;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: .85rem;
}

.article-content td {
  padding: .6rem .75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: .875rem;
  color: #94a3b8;
}

.article-content tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* ── FAQ ── */
details summary::-webkit-details-marker {
  display: none;
}

/* ── SHARE BUTTON ── */
.share-btn {
  transition: transform .18s, box-shadow .18s;
}

.share-btn:hover {
  transform: translateY(-2px) scale(1.04);
}

/* ── OLD COMPAT CLASSES ── */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-nav {
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.glow-border {
  border: 1px solid rgba(124, 58, 237, 0.22);
}

.glow-border-emerald {
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.card-hover {
  transition: transform .22s cubic-bezier(.4, 0, .2, 1), box-shadow .22s, border-color .22s;
}

.card-hover:hover {
  transform: translateY(-5px) scale(1.006);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(124, 58, 237, 0.3) !important;
}

.section-divider {
  width: 60px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  margin: 0 auto;
}

.btn-premium {
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

/* ============================================================
   LIGHT MODE
   ============================================================ */
html.light body {
  background-color: #f0f4fa !important;
  color: #1e293b;
}

html.light .nav-pill {
  background: rgba(248, 250, 252, 0.92) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

html.light .nav-pill.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}

html.light .nav-item {
  color: #64748b;
}

html.light .nav-item:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.04);
}

html.light .nav-item.active {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.08);
}

html.light .nav-search {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  color: #94a3b8;
}

html.light .nav-search:hover {
  border-color: rgba(124, 58, 237, 0.25);
}

html.light #themeToggle {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  color: #64748b;
}

html.light #themeToggle:hover {
  border-color: rgba(124, 58, 237, 0.3);
  color: #7c3aed;
}

html.light .nav-pill span[style*="color:#f8fafc"] {
  color: #0f172a !important;
}

html.light .site-name-text {
  color: #0f172a !important;
}

html.light .hero-trust {
  color: #475569;
}

html.light .hero-outer {
  background: linear-gradient(135deg, #f8fafc 0%, #f5f3ff 40%, #e0f2fe 75%, #ecfdf5 100%) !important;
}

html.light .hero-bg-mesh {
  opacity: 0.4;
}

html.light .hero-grid {
  opacity: 0.12;
}

html.light .hero-heading {
  color: #0f172a;
}

html.light .hero-sub {
  color: #64748b;
}

html.light .hero-eyebrow {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
}

html.light .btn-hero-ghost {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
  color: #64748b;
}

html.light .btn-hero-ghost:hover {
  border-color: rgba(16, 185, 129, 0.4);
  color: #059669;
  background: rgba(16, 185, 129, 0.06);
}

html.light .hero-trust {
  color: #64748b;
}

html.light .h-widget {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

html.light .bento-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

html.light .bento-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(124, 58, 237, 0.2) !important;
}

html.light .bento-title {
  color: #0f172a;
}

html.light .bento-desc {
  color: #94a3b8;
}

html.light .bento-count {
  background: rgba(0, 0, 0, 0.04);
  color: #94a3b8;
}

html.light .post-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

html.light .post-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: rgba(124, 58, 237, 0.25) !important;
}

html.light .pc-title {
  color: #0f172a;
}

html.light .post-card:hover .pc-title {
  color: #6d28d9;
}

html.light .pc-excerpt {
  color: #94a3b8;
}

html.light .pc-meta {
  color: #94a3b8;
  border-color: rgba(0, 0, 0, 0.06);
}

html.light .pc-readmore {
  color: #7c3aed;
}

html.light .post-card:hover .pc-readmore {
  color: #6d28d9;
}

html.light .sec-title {
  color: #0f172a;
}

html.light .sec-label {
  color: #6d28d9;
}

html.light .filter-chip {
  border-color: rgba(0, 0, 0, 0.07);
  background: #ffffff;
  color: #64748b;
}

html.light .filter-chip:hover {
  border-color: rgba(124, 58, 237, 0.25);
  color: #6d28d9;
}

html.light .filter-chip.active {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.35);
  color: #6d28d9;
}

html.light .cta-band {
  background: linear-gradient(135deg, #f5f3ff, #ecfdf5) !important;
  border-color: rgba(124, 58, 237, 0.1) !important;
}

html.light .subscribe-section {
  background: linear-gradient(135deg, #f5f3ff, #ecfdf5) !important;
}

html.light #subscribe-section h2 {
  color: #0f172a !important;
}

html.light #subscribe-section p {
  color: #475569 !important;
}

html.light #subscribeForm input {
  background: #ffffff !important;
  border-color: rgba(124, 58, 237, 0.18) !important;
  color: #0f172a !important;
}

html.light #subscribeForm input:focus {
  border-color: rgba(124, 58, 237, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
}

html.light .site-footer {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.07) !important;
}

html.light .footer-bottom {
  border-color: rgba(0, 0, 0, 0.06) !important;
  color: #94a3b8;
}

html.light .footer-links a {
  color: #94a3b8;
}

html.light .footer-links a:hover {
  color: #64748b;
}

html.light .pg-btn {
  border-color: rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: #64748b;
}

html.light .pg-btn:hover {
  border-color: rgba(124, 58, 237, 0.3);
  color: #6d28d9;
}

html.light .pg-btn.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

html.light .glass-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

html.light .text-white {
  color: #0f172a !important;
}

html.light .text-dark-100 {
  color: #0f172a !important;
}

html.light .text-dark-200 {
  color: #1e293b !important;
}

html.light .text-dark-300 {
  color: #475569 !important;
}

html.light .text-dark-400 {
  color: #64748b !important;
}

html.light .text-dark-500 {
  color: #94a3b8 !important;
}

html.light .border-white\/5 {
  border-color: rgba(0, 0, 0, 0.06) !important;
}

html.light .border-white\/8 {
  border-color: rgba(0, 0, 0, 0.07) !important;
}

html.light .border-white\/10 {
  border-color: rgba(0, 0, 0, 0.09) !important;
}

html.light .gradient-text {
  background: linear-gradient(135deg, #6d28d9, #0284c7) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

html.light .gradient-text-emerald {
  background: linear-gradient(135deg, #047857, #0284c7) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

html.light .article-content h2 {
  color: #0f172a;
}

html.light .article-content h3,
.article-content h4 {
  color: #1e293b;
}

html.light .article-content p,
.article-content li {
  color: #475569;
}

html.light .article-content strong {
  color: #0f172a;
}

html.light .article-content a {
  color: #7c3aed;
}

html.light .article-content blockquote {
  color: #475569;
  background: rgba(124, 58, 237, 0.05);
}

html.light .article-content code {
  background: rgba(124, 58, 237, 0.07);
  color: #6d28d9;
}

html.light .article-content pre {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

html.light .article-content th {
  background: rgba(124, 58, 237, 0.08);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.08);
}

html.light .article-content td {
  border-color: rgba(0, 0, 0, 0.06);
  color: #334155;
}

html.light .article-content tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.02);
}

html.light .mobile-panel {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.07);
}

html.light .mobile-nav-item {
  color: #64748b;
}

html.light .mobile-nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1e293b;
}

html.light .mobile-nav-item.active {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.08);
}

html.light a[href*="twitter"] {
  background: #1a1a1a !important;
  color: #fff !important;
}

html.light a[href*="wa.me"] {
  background: #25d366 !important;
  color: #fff !important;
}

html.light a[href*="facebook"] {
  background: #1877f2 !important;
  color: #fff !important;
}

html.light a[href*="linkedin"] {
  background: #0a66c2 !important;
  color: #fff !important;
}

html.light #subPopup>div:last-child {
  background: linear-gradient(135deg, #f8fafc, #f5f3ff) !important;
  border-color: rgba(124, 58, 237, 0.15) !important;
}

html.light .risk-label {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.09) !important;
}

html.light ::-webkit-scrollbar-track {
  background: #e2e8f0;
}

html.light ::-webkit-scrollbar-thumb {
  background: #a8b8cc;
}

html.light ::-webkit-scrollbar-thumb:hover {
  background: #8fa3bc;
}

html.light .btn-outline {
  border-color: rgba(0, 0, 0, 0.1);
  color: #64748b;
}

html.light .btn-outline:hover {
  border-color: rgba(124, 58, 237, 0.3);
  color: #6d28d9;
}

html.light section h2,
.html.light section h2 .text-white {
  color: #0f172a !important;
}

/* ── MOBILE RESPONSIVE FIXES ── */

/* Prevent horizontal overflow */
body {
  overflow-x: hidden;
}

/* Hero heading: smaller on phones */
@media (max-width: 480px) {
  .hero-heading {
    font-size: 2.2rem;
    letter-spacing: -0.025em;
  }
  .hero-outer {
    padding: 90px 0 48px;
  }
  .hero-cta-row {
    flex-direction: column;
  }
  .btn-hero-primary,
  .btn-hero-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* Nav pill: tighter on phones */
@media (max-width: 480px) {
  .nav-pill {
    border-radius: 12px;
    height: 48px;
    padding: 0 10px;
  }
  .nav-logo-mark {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

/* Light mode nav pill background */
html.light .nav-pill {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
html.light .nav-pill.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(124, 58, 237, 0.1);
}
html.light .nav-item {
  color: #64748b;
}
html.light .nav-item:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.04);
}
html.light .nav-item.active {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
}
html.light .nav-search {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  color: #64748b;
}
html.light #mobileMenuBtn {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
  color: #64748b;
}
html.light .nav-logo-mark {
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

/* Light mode hero */
html.light .hero-outer {
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 40%, #e0f2fe 100%);
}
html.light .hero-heading {
  color: #0f172a;
}
html.light .hero-sub {
  color: #475569;
}
html.light .hero-trust {
  color: #64748b;
}