/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: none;
}

html[data-theme="light"] .hero::after {
  background: none;
}

/* Eyebrow */
.hero-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 1rem;
  animation: fadeUp 0.7s ease both;
}

/* Hero heading */
.hero-h {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  animation: fadeUp 0.7s 0.1s ease both;
}

/* Ghost CTA link */
.hero-cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 108, 251, 0.28);
  padding-bottom: 0.18rem;
  transition: color 0.3s, border-color 0.3s;
  animation: fadeUp 0.7s 0.22s ease both;
}

.hero-cta:hover {
  color: var(--wh);
  border-color: rgba(176, 108, 251, 0.7);
}

.hero-cta svg {
  transition: transform 0.3s;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

html[data-theme="light"] .hero-cta {
  color: rgba(26, 8, 64, 0.4);
  border-color: rgba(124, 92, 224, 0.3);
}

html[data-theme="light"] .hero-cta:hover {
  color: #1a0840;
  border-color: rgba(124, 92, 224, 0.7);
}

/* Scroll indicator */
.scroll-ind {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  color: var(--mu);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: fadeUp 1s 0.5s ease both;
  z-index: 2;
}

.scroll-line {
  width: 0.5px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(176, 108, 251, 0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* Hero responsive */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 1.2rem 4rem;
  }
  .hero-eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.8rem;
  }
  .hero-cta {
    margin-top: 1.5rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4.5rem 1rem 3rem;
  }
  .hero-eyebrow {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
  }
}

/* About */
.about-sec {
  padding: clamp(5rem, 9vw, 8rem) clamp(1.2rem, 5vw, 2rem);
  position: relative;
  overflow: hidden;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.about-tagline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.6rem;
}

.about-tagline span {
  display: block;
}

.about-tagline .gr-text {
  background: linear-gradient(135deg, var(--p200), var(--acc), var(--acc2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-body {
  color: var(--sec-s);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2.2rem;
}

.about-mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .about-sec {
    padding: clamp(3rem, 6vw, 5rem) 1rem;
  }
  .about-tagline {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 1.2rem;
  }
  .about-body {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }
  .about-mission-vision {
    gap: 0.8rem;
  }
}

@media (max-width: 520px) {
  .about-mission-vision {
    grid-template-columns: 1fr;
  }
}

/* Mission / Vision cards */
.mv-card {
  background: var(--card);
  border: 0.5px solid var(--border-c);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  transition: 0.3s;
}

.mv-card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.mv-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.mv-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--acc);
}

.mv-text {
  font-size: 0.85rem;
  color: var(--sec-s);
  line-height: 1.6;
  font-weight: 300;
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 3.5rem;
}

.step-card {
  background: var(--card);
  border: 0.5px solid var(--border-c);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: 0.4s;
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(176, 108, 251, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.step-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  background: var(--step-h);
}

.step-card:hover::before {
  opacity: 1;
}

.sn {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(176, 108, 251, 0.1);
  line-height: 1;
  margin-bottom: 0.9rem;
  letter-spacing: -0.04em;
}

.siw {
  width: 42px;
  height: 42px;
  background: rgba(176, 108, 251, 0.1);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.siw svg {
  width: 21px;
  height: 21px;
}

.st {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  margin-bottom: 0.6rem;
}

.sd {
  color: var(--mu);
  font-size: clamp(0.86rem, 1vw, 0.97rem);
  line-height: 1.65;
  font-weight: 300;
}

/* Horizontal Stepper */
.hstepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3.5rem;
  position: relative;
  max-width: 100%;
  width: 100%;
}

.hstepper::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 36px;
  right: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--border-c), var(--border-h), var(--border-c));
  z-index: 0;
}

.hstep {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 33.33%;
}

.hstep-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--acc);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.hstep-icon {
  width: 52px;
  height: 52px;
  background: rgba(176, 108, 251, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.hstep-icon svg {
  width: 24px;
  height: 24px;
}

.hstep-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hstep-desc {
  color: var(--mu);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 300;
  max-width: 220px;
}

.hstep-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (max-width: 900px) {
  .hstepper {
    padding: 0 0.5rem;
  }
  .hstep-num {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }
  .hstep-icon {
    width: 44px;
    height: 44px;
  }
  .hstep-icon svg {
    width: 20px;
    height: 20px;
  }
  .hstep-desc {
    max-width: 180px;
    font-size: 0.82rem;
  }
}

@media (max-width: 768px) {
  .hstepper {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    max-width: 100%;
  }
  .hstepper::before {
    display: none;
  }
  .hstep {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: left;
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
  }
  .hstep-num {
    margin-bottom: 0;
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  .hstep-icon {
    display: none;
  }
  .hstep-content {
    flex: 1;
  }
  .hstep-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  .hstep-desc {
    font-size: 0.85rem;
    max-width: 100%;
  }
}

html[data-theme="light"] .hstep-num {
  background: #f8f5ff;
  border-color: var(--acc);
  color: var(--acc);
}

html[data-theme="light"] .hstepper::before {
  background: linear-gradient(90deg, rgba(124, 92, 224, 0.15), rgba(124, 92, 224, 0.4), rgba(124, 92, 224, 0.15));
}

/* Features bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
  margin-top: 3.5rem;
}

.bc {
  background: var(--card);
  border: 0.5px solid var(--border-c);
  border-radius: 22px;
  padding: 1.75rem;
  overflow: hidden;
  position: relative;
  transition: 0.4s;
}

.bc:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  background: var(--step-h);
}

.bl {
  grid-column: span 7;
}

.bs {
  grid-column: span 5;
}

.bt {
  grid-column: span 4;
}

.bw {
  grid-column: span 8;
}

@media (max-width: 880px) {
  .bl,
  .bs,
  .bt,
  .bw {
    grid-column: span 12;
  }
}

.bt2 {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  background: rgba(176, 108, 251, 0.1);
  border: 0.5px solid rgba(176, 108, 251, 0.2);
  color: var(--p300);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.26rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.bh {
  font-family: 'Syne', sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.bd {
  color: var(--mu);
  font-size: clamp(0.84rem, 1vw, 0.96rem);
  line-height: 1.65;
  font-weight: 300;
}

/* AI search box */
.aibox {
  margin-top: 1.3rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 13px;
  border: 0.5px solid rgba(176, 108, 251, 0.17);
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  color: var(--mu);
}

.aiq {
  color: var(--p200);
  font-size: 0.84rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.air {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.04);
}

.air:last-child {
  border-bottom: none;
}

.aid {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acc);
  flex-shrink: 0;
}

.ais {
  font-size: 0.7rem;
  color: var(--acc);
  font-weight: 500;
}

/* Map box */
.mapbox {
  margin-top: 1.3rem;
  height: 105px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 13px;
  border: 0.5px solid rgba(176, 108, 251, 0.13);
  position: relative;
  overflow: hidden;
}

.mgrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(176, 108, 251, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 108, 251, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.mpin {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.mpin::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #fff;
  border-radius: 50%;
}

.mrip {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(176, 108, 251, 0.3);
  border-radius: 50%;
  animation: ripple 2.2s ease-out infinite;
}

/* Payment box */
.paybox {
  margin-top: 1.3rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 13px;
  border: 0.5px solid rgba(176, 108, 251, 0.13);
  padding: 0.85rem 1rem;
}

.pr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 0.4rem 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
  color: var(--mu);
}

.pr:last-child {
  border-bottom: none;
}

.pv {
  color: var(--wh);
  font-weight: 500;
}

.pg {
  color: #4ade80;
}

/* KYC checklist */
.kycl {
  margin-top: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.kyi {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: var(--mu);
}

.kyc {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.6rem;
}

.kd {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 0.5px solid rgba(74, 222, 128, 0.25);
}

.kp {
  background: rgba(176, 108, 251, 0.1);
  color: var(--acc);
  border: 0.5px solid rgba(176, 108, 251, 0.2);
}

/* Notification rows */
.nrow {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.np {
  flex: 1;
  min-width: 125px;
  border-radius: 11px;
  padding: 0.65rem 0.85rem;
  font-size: 0.7rem;
}

/* For who */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 3.5rem;
}

@media (max-width: 768px) {
  .who-grid {
    margin-top: 2.5rem;
    gap: 1rem;
  }
}

@media (max-width: 620px) {
  .who-grid {
    grid-template-columns: 1fr;
  }
}

.wcard {
  border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 2.5rem) clamp(1.4rem, 3.5vw, 2rem);
}

.wr {
  background: linear-gradient(135deg, rgba(91, 59, 191, 0.12), rgba(58, 36, 144, 0.06));
  border: 0.5px solid var(--who-rb);
}

.wh {
  background: linear-gradient(135deg, rgba(201, 85, 138, 0.12), rgba(176, 108, 251, 0.06));
  border: 0.5px solid var(--who-hb);
}

.wi {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.wr .wi {
  background: rgba(124, 92, 224, 0.17);
}

.wh .wi {
  background: rgba(201, 85, 138, 0.17);
}

.wt {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.3rem, 1.6vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.42rem;
}

.ws {
  color: var(--mu);
  font-size: clamp(0.86rem, 1.05vw, 1rem);
  margin-bottom: 1.3rem;
  font-weight: 300;
}

.wl {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.wl li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: clamp(0.84rem, 1.05vw, 0.98rem);
  color: var(--mi);
  line-height: 1.5;
}

.wl li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acc);
  flex-shrink: 0;
  margin-top: 0.42em;
}

/* Tech badges */
.tech-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2.8rem;
}

.tbadge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--tbadge-bg);
  border: 0.5px solid var(--tbadge-b);
  border-radius: 13px;
  padding: 0.85rem 1.2rem;
  transition: 0.3s;
  flex: 1;
  min-width: 155px;
}

.tbadge:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.td {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tn {
  font-size: clamp(0.84rem, 1.1vw, 0.97rem);
  font-weight: 500;
}

.tr {
  font-size: clamp(0.7rem, 0.9vw, 0.82rem);
  color: var(--mu);
  margin-top: 0.1rem;
}

@media (max-width: 768px) {
  .tech-row {
    gap: 0.6rem;
    margin-top: 2rem;
  }
  .tbadge {
    padding: 0.65rem 0.9rem;
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .tech-row {
    flex-direction: column;
  }
  .tbadge {
    width: 100%;
  }
}

/* Download */
.dl-sec {
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dl-glow {
  position: absolute;
  width: 580px;
  height: 380px;
  background: radial-gradient(circle, rgba(176, 108, 251, 0.2), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.dl-card {
  max-width: 590px;
  margin: 0 auto;
  background: var(--dl-bg);
  border: 0.5px solid var(--dl-b);
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  position: relative;
}

.dl-h {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.dl-s {
  color: var(--mu);
  font-size: 0.96rem;
  margin-bottom: 2.2rem;
  line-height: 1.65;
  font-weight: 300;
}

.dl-btns {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.dlb {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 13px;
  padding: 0.78rem 1.3rem;
  text-decoration: none;
  color: var(--wh);
  transition: 0.3s;
}

.dlb:hover {
  background: rgba(176, 108, 251, 0.13);
  border-color: rgba(176, 108, 251, 0.36);
  transform: translateY(-2px);
}

.dlb svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.ds {
  font-size: 0.62rem;
  color: var(--mu);
  display: block;
}

.dn {
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
}

@media (max-width: 768px) {
  .dl-sec {
    padding: clamp(3rem, 6vw, 5rem) 1rem;
  }
  .dl-card {
    padding: clamp(1.8rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
  }
  .dl-h {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
  }
  .dl-s {
    font-size: 0.88rem;
    margin-bottom: 1.8rem;
  }
  .dlb {
    padding: 0.65rem 1rem;
  }
  .dlb svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .dl-btns {
    flex-direction: column;
    align-items: center;
  }
  .dlb {
    width: 100%;
    max-width: 220px;
    justify-content: center;
  }
}

/* Footer */
footer {
  border-top: 0.5px solid var(--foot-b);
  padding: 2.2rem clamp(1.4rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.fl {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--p200), var(--acc));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ft {
  color: var(--mu);
  font-size: 0.72rem;
}

@media (max-width: 480px) {
  footer {
    justify-content: center;
    text-align: center;
  }
}

/* Floating category pills */
.hero {
  overflow: hidden;
}

.cat-canvas {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  max-width: 100vw;
  width: 100%;
}

/* Z-index layering: pills below vignette, content above vignette */
.hero::after {
  z-index: 2;
}

.hero > *:not(.cat-canvas) {
  position: relative;
  z-index: 3;
}

/* Dot grid atmosphere behind pills */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(176, 108, 251, 0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  opacity: 0.5;
}

html[data-theme="light"] .hero::before {
  background-image: radial-gradient(circle, rgba(124, 92, 224, 0.22) 1px, transparent 1px);
  opacity: 0.4;
}

/* Individual pill */
.fcat {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 1.1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: auto;
  user-select: none;
  cursor: default;
  border: 1px solid rgba(176, 108, 251, 0.22);
  background: rgba(13, 8, 32, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.45);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.4s ease;
  will-change: transform;
}

.fcat:hover {
  transform: scale(1.22) !important;
  background: rgba(176, 108, 251, 0.18);
  border-color: rgba(176, 108, 251, 0.6);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 24px rgba(176, 108, 251, 0.25), 0 0 0 1px rgba(176, 108, 251, 0.3);
  z-index: 10;
}

html[data-theme="light"] .fcat {
  background: rgba(248, 245, 255, 0.72);
  border: 1px solid rgba(124, 92, 224, 0.2);
  color: rgba(58, 36, 144, 0.45);
}

html[data-theme="light"] .fcat:hover {
  background: rgba(124, 92, 224, 0.14);
  border-color: rgba(124, 92, 224, 0.5);
  color: #3a2490;
  box-shadow: 0 4px 20px rgba(124, 92, 224, 0.2);
}

/* Colored dot inside pill */
.fcat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s;
}

.fcat:hover .fcat-dot {
  opacity: 1;
  transform: scale(1.3);
}

/* Pill responsive */
@media (max-width: 900px) {
  .fcat {
    font-size: 0.75rem;
    padding: 0.45rem 0.9rem;
    gap: 0.4rem;
  }
}

@media (max-width: 768px) {
  .cat-canvas {
    overflow: hidden;
  }
  .fcat {
    font-size: 0.68rem !important;
    padding: 0.4rem 0.8rem !important;
    max-width: 38vw !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    left: clamp(2vw, var(--x), 56vw) !important;
    max-width: calc(100vw - 2rem);
    position: absolute;
  }
  .fcat-dot {
    width: 6px;
    height: 6px;
  }
  /* Override right-positioned pills to stay inside */
  .fcat[style*="left:8"],
  .fcat[style*="left:9"] {
    left: auto !important;
    right: 1rem !important;
  }
}

@media (max-width: 480px) {
  .fcat {
    font-size: 0.6rem;
    padding: 0.32rem 0.65rem;
    gap: 0.3rem;
    max-width: 34vw;
  }
  .fcat-dot {
    width: 5px;
    height: 5px;
  }
}
