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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  overflow-x: hidden;
  color: #1e293b;
}

/* BACKGROUND */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(124, 58, 237, 0.08),
      transparent 70%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(99, 102, 241, 0.05),
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 50%,
      rgba(244, 114, 182, 0.05),
      transparent 50%
    ),
    #f8fafc;
}

/* 
   DECORATIVE ELEMENTS (3D GLOSSY SPHERES & TORUS) */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.orb-blue {
  width: 90px;
  height: 90px;
  top: 12%;
  left: 10%;
  background: radial-gradient(
    circle at 35% 30%,
    #a5f3fc 0%,
    #38bdf8 30%,
    #0284c7 70%,
    #0369a1 100%
  );
  box-shadow:
    inset -6px -6px 12px rgba(0, 0, 0, 0.25),
    inset 8px 8px 16px rgba(255, 255, 255, 0.6),
    -12px 20px 30px rgba(2, 132, 199, 0.2);
  filter: blur(0.5px);
}

.orb-pink {
  width: 48px;
  height: 48px;
  top: 25%;
  right: 12%;
  background: radial-gradient(
    circle at 35% 30%,
    #fbcfe8 0%,
    #ec4899 35%,
    #be185d 70%,
    #9d174d 100%
  );
  box-shadow:
    inset -3px -3px 8px rgba(0, 0, 0, 0.25),
    inset 4px 4px 8px rgba(255, 255, 255, 0.6),
    -8px 12px 20px rgba(236, 72, 153, 0.2);
  filter: blur(0.5px);
}

.orb-indigo {
  width: 28px;
  height: 28px;
  top: 65%;
  left: 8%;
  background: radial-gradient(
    circle at 35% 30%,
    #c7d2fe 0%,
    #6366f1 35%,
    #4338ca 70%,
    #3730a3 100%
  );
  box-shadow:
    inset -2px -2px 5px rgba(0, 0, 0, 0.25),
    inset 3px 3px 5px rgba(255, 255, 255, 0.5),
    -6px 8px 15px rgba(99, 102, 241, 0.2);
  filter: blur(0.5px);
}

/* 3D Glassmorphic Torus */
.ring-purple {
  position: fixed;
  width: 260px;
  height: 260px;
  border: 34px solid rgba(233, 213, 255, 0.45);
  border-radius: 50%;
  top: 40%;
  left: -110px;
  transform: translateY(-50%) rotate(-25deg);
  pointer-events: none;
  z-index: 1;
  box-shadow:
    inset -8px -8px 16px rgba(168, 85, 247, 0.08),
    inset 10px 10px 20px rgba(255, 255, 255, 0.8),
    -15px 25px 35px rgba(168, 85, 247, 0.06);
  filter: drop-shadow(-10px 20px 25px rgba(168, 85, 247, 0.04));
}

/* Dot grids */
.dots {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.18) 1.5px,
    transparent 1.5px
  );
  background-size: 18px 18px;
}

.dots-tl {
  top: 6%;
  left: 3%;
  width: 92px;
  height: 92px;
}

.dots-br {
  bottom: 12%;
  right: 4%;
  width: 110px;
  height: 110px;
}

/* Wavy lines */
.wave-lines {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 310px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  opacity: 0.75;
}

/* Particles canvas */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.25;
}

/* Cursor glow */
#cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
}

/* 
   LAYOUT
 */
.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

/* Section badge / Logo back btn */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f46e5;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.04);
}

.section-badge svg {
  color: #4f46e5;
  fill: currentColor;
}

.logo-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
  text-decoration: none;
  z-index: 15;
}

.logo-back-btn:hover {
  transform: scale(1.04);
  opacity: 0.95;
}

.logo-back-btn:active {
  transform: scale(0.97);
}

.logo-img {
  height: clamp(60px, 8vw, 90px);
  width: 200px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .logo-img {
    height: clamp(48px, 7vw, 70px);
    width: 160px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 48px;
    width: 130px;
  }
}

/* Main heading */
.main-heading {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.1;
  max-width: 800px;
}

/* Subtitle */
.main-sub {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: #64748b;
  line-height: 1.6;
  max-width: 600px;
  margin-top: -0.2rem;
}

.hi-purple {
  color: #7c3aed;
  font-weight: 600;
}

.hi-blue {
  color: #3b82f6;
  font-weight: 600;
}

/* Search bar */
.search-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-top: 0.5rem;
}

.search-ico {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: #94a3b8;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  flex-shrink: 0;
}

#searchInput {
  width: 100%;
  padding: 0.85rem 1.5rem 0.85rem 3.2rem;
  border-radius: 50px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  color: #0f172a;
  outline: none;
  box-shadow:
    0 8px 24px rgba(148, 163, 184, 0.08),
    inset 0 1px 0 #fff;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    background-color 0.3s;
}

#searchInput::placeholder {
  color: #94a3b8;
}

#searchInput:focus {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 8px 30px rgba(99, 102, 241, 0.08),
    0 0 0 4px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 #fff;
}

/* 
   TOOLS GRID
 */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1120px;
  margin-top: 1.5rem;
}

/* 
   TOOL CARD
 */
.tool-card {
  flex: 0 0 calc(33.33% - 16px);
  min-width: 300px;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px 28px 24px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  border: 1.2px solid var(--c-border);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.03),
    0 1px 3px rgba(15, 23, 42, 0.01);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
  text-align: left;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(
    300px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(var(--c-accent-rgb), 0.07),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.tool-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 25%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg) translateX(-150%);
  transition: none;
  z-index: 4;
  pointer-events: none;
}

.tool-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.tool-card:active {
  transform: scale(0.98);
}

.tool-card:hover {
  border-color: rgba(var(--c-accent-rgb), 0.45);
  box-shadow: 0 24px 50px -12px rgba(var(--c-accent-rgb), 0.16), 0 8px 24px -8px rgba(15, 23, 42, 0.04);
}

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

.tool-card:hover::after {
  transform: skewX(-25deg) translateX(550%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Per-card accent configurations */
.card-qr {
  --c-accent: #4f46e5;
  --c-accent-rgb: 79, 70, 229;
  --c-border: rgba(99, 102, 241, 0.16);
  --c-glow: rgba(99, 102, 241, 0.16);
  --c-bg-light: rgba(99, 102, 241, 0.08);
  --c-num: rgba(99, 102, 241, 0.05);
  --c-icon-bg: linear-gradient(135deg, #818cf8, #4f46e5);
}

.card-tts {
  --c-accent: #ec4899;
  --c-accent-rgb: 236, 72, 153;
  --c-border: rgba(236, 72, 153, 0.16);
  --c-glow: rgba(236, 72, 153, 0.16);
  --c-bg-light: rgba(236, 72, 153, 0.08);
  --c-num: rgba(236, 72, 153, 0.05);
  --c-icon-bg: linear-gradient(135deg, #f472b6, #ec4899);
}

.card-pdf {
  --c-accent: #3b82f6;
  --c-accent-rgb: 59, 130, 246;
  --c-border: rgba(59, 130, 246, 0.16);
  --c-glow: rgba(59, 130, 246, 0.16);
  --c-bg-light: rgba(59, 130, 246, 0.08);
  --c-num: rgba(59, 130, 246, 0.05);
  --c-icon-bg: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.card-rag {
  --c-accent: #6366f1;
  --c-accent-rgb: 99, 102, 241;
  --c-border: rgba(99, 102, 241, 0.16);
  --c-glow: rgba(99, 102, 241, 0.16);
  --c-bg-light: rgba(99, 102, 241, 0.08);
  --c-num: rgba(99, 102, 241, 0.05);
  --c-icon-bg: linear-gradient(135deg, #a5b4fc, #6366f1);
}

.card-transaction {
  --c-accent: #10b981;
  --c-accent-rgb: 16, 185, 129;
  --c-border: rgba(16, 185, 129, 0.16);
  --c-glow: rgba(16, 185, 129, 0.16);
  --c-bg-light: rgba(16, 185, 129, 0.08);
  --c-num: rgba(16, 185, 129, 0.05);
  --c-icon-bg: linear-gradient(135deg, #34d399, #10b981);
}

/* Card header row */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  width: 100%;
}

/* Icon */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--c-icon-bg);
  box-shadow: 0 8px 20px -4px rgba(var(--c-accent-rgb), 0.4);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-card:hover .card-icon {
  transform: scale(1.08) rotate(3deg);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

/* Right column: badge on top */
.card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.card-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--c-bg-light);
  color: var(--c-accent);
  line-height: 1.2;
  border: none;
}

/* Absolute background numbers */
.card-num {
  position: absolute;
  font-size: 3rem;
  font-weight: 900;
  color: var(--c-num);
  line-height: 0.75;
  letter-spacing: -0.05em;
  top: 36%;
  right: 12px;
  transform: translateY(-20%);
  pointer-events: none;
  z-index: 1;
  user-select: none;
  margin: 0;
}

/* Card content */
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.card-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  flex: 1;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

/* Card footer */
.card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.card-launch {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-accent);
  transition: opacity 0.3s ease;
}

.card-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.2px solid var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  font-size: 0.8rem;
  font-weight: 700;
  background: transparent;
  flex-shrink: 0;
  line-height: 1;
  transition: all 0.3s ease;
}

.tool-card:hover .card-btn {
  background: var(--c-accent);
  color: #fff;
  transform: translateX(3px);
}

/* Decoration layer (abs bottom-right with fade mask) */
.card-deco {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-bottom-right-radius: 24px;
  border-bottom-left-radius: 24px;
  z-index: 0;
  opacity: 0.65;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 12%,
    rgba(0, 0, 0, 1) 70%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 12%,
    rgba(0, 0, 0, 1) 70%
  );
}

.card-deco svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Dot-style deco (RAG, Transaction) */
.deco-dots {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 50%;
  background-image: radial-gradient(
    circle,
    var(--dot-clr, rgba(99, 102, 241, 0.25)) 2px,
    transparent 2px
  );
  background-size: 16px 16px;
  background-position: right bottom;
}

.card-rag .card-deco {
  --dot-clr: rgba(99, 102, 241, 0.28);
}

.card-transaction .card-deco {
  --dot-clr: rgba(16, 185, 129, 0.28);
}

/* No results */
#no-results {
  display: none;
  width: 100%;
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Coming soon button */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.coming-soon:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.coming-soon svg {
  color: #94a3b8;
}

/* 
   ANIMATIONS
 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.section-badge,
.logo-back-btn {
  animation: fadeInDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.main-heading {
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.main-sub {
  animation: fadeIn 0.8s ease 0.35s both;
}

.search-wrap {
  animation: fadeIn 0.8s ease 0.45s both;
}

.coming-soon {
  animation: fadeIn 0.9s ease 1s both;
}
