/* ============================================================
   home.css — ItSave Homepage Styles
   Fully responsive · Dark-mode ready · Animated
   ============================================================ */

/* ── Scroll-reveal base ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}
/* Stagger delays for children */
.stagger > *:nth-child(1) {
  transition-delay: 0.05s;
}
.stagger > *:nth-child(2) {
  transition-delay: 0.12s;
}
.stagger > *:nth-child(3) {
  transition-delay: 0.19s;
}
.stagger > *:nth-child(4) {
  transition-delay: 0.26s;
}
.stagger > *:nth-child(5) {
  transition-delay: 0.33s;
}
.stagger > *:nth-child(6) {
  transition-delay: 0.4s;
}
.stagger > *:nth-child(7) {
  transition-delay: 0.47s;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hp-hero {
  position: relative;
  overflow: hidden;
  background: #030b1a;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  text-align: center;
}

/* Canvas particle layer */
#hp-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Animated gradient orbs */
.hp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: orbFloat 10s ease-in-out infinite;
  z-index: 0;
}
.hp-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.32) 0%,
    transparent 70%
  );
  top: -180px;
  left: -100px;
  animation-duration: 13s;
  animation-delay: 0s;
}
.hp-orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.24) 0%,
    transparent 70%
  );
  bottom: -120px;
  right: -80px;
  animation-duration: 11s;
  animation-delay: -4s;
}
.hp-orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.18) 0%,
    transparent 70%
  );
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  animation-duration: 15s;
  animation-delay: -8s;
}
.hp-orb-4 {
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.14) 0%,
    transparent 70%
  );
  top: 10%;
  right: 15%;
  animation-duration: 9s;
  animation-delay: -2s;
}
@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(18px, -22px) scale(1.04);
  }
  50% {
    transform: translate(-12px, 14px) scale(0.97);
  }
  75% {
    transform: translate(8px, 20px) scale(1.02);
  }
}

/* Grid overlay */
.hp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Bottom fade */
.hp-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #030b1a);
  pointer-events: none;
  z-index: 1;
}

.hp-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Badge */
.hp-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  animation: badgeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes badgeIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hp-badge-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 6px #4ade80;
  }
  50% {
    opacity: 0.6;
    transform: scale(1.4);
    box-shadow: 0 0 12px #4ade80;
  }
}

/* H1 */
.hp-hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -2.5px;
  margin-bottom: 22px;
  animation: headIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
@keyframes headIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hp-grad {
  background: linear-gradient(120deg, #60a5fa 0%, #a78bfa 45%, #34d399 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 5s ease infinite;
}
@keyframes gradShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Sub */
.hp-sub {
  font-size: clamp(0.94rem, 2.2vw, 1.18rem);
  color: rgba(255, 255, 255, 0.62);
  max-width: 560px;
  margin: 0 auto 38px;
  line-height: 1.75;
  animation: subIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
@keyframes subIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search */
.hp-search-wrap {
  max-width: 540px;
  margin: 0 auto 28px;
  animation: searchIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
@keyframes searchIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hp-search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.hp-search-bar:focus-within {
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.22),
    0 12px 40px rgba(0, 0, 0, 0.35);
}
.hp-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-size: 0.96rem;
  color: #fff;
  font-family: inherit;
  min-width: 0;
}
.hp-search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.hp-search-bar button {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  color: #fff;
  padding: 14px 22px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition:
    background 0.2s,
    transform 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hp-search-bar button:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}
.hp-search-bar button:active {
  transform: scale(0.97);
}

/* Trust pills */
.hp-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  animation: trustIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}
@keyframes trustIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hp-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  transition:
    background 0.2s,
    color 0.2s;
}
.hp-pill:hover {
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.92);
}
.hp-pill .check {
  color: #4ade80;
  font-size: 0.68rem;
}

/* Scroll indicator */
.hp-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: scrollHintIn 1s ease 1.2s both;
}
@keyframes scrollHintIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.hp-scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}
.hp-scroll-mouse::before {
  content: "";
  width: 3px;
  height: 7px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  animation: scrollBall 1.8s ease-in-out infinite;
}
@keyframes scrollBall {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(12px);
    opacity: 0.2;
  }
}

/* ── TOOL CATEGORIES TABS ─────────────────────────────────── */
.hp-tools {
  padding: 80px 0 64px;
  background: #fff;
  transition: background 0.3s;
}
[data-theme="dark"] .hp-tools {
  background: #0c1525;
}

.hp-sec-head {
  text-align: center;
  margin-bottom: 52px;
}
.hp-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 14px;
}
[data-theme="dark"] .hp-eyebrow {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
}
.hp-sec-title {
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
[data-theme="dark"] .hp-sec-title {
  color: #f8fafc;
}
.hp-sec-sub {
  font-size: 0.97rem;
  color: #6b7280;
  max-width: 440px;
  margin: 0 auto;
}
[data-theme="dark"] .hp-sec-sub {
  color: #94a3b8;
}

/* Category filter tabs */
.hp-cat-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hp-cat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1.5px solid #e5e7eb;
  background: transparent;
  color: #6b7280;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.22s;
}
[data-theme="dark"] .hp-cat-tab {
  border-color: #334155;
  color: #94a3b8;
}
.hp-cat-tab:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}
[data-theme="dark"] .hp-cat-tab:hover {
  border-color: #3b82f6;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.1);
}
.hp-cat-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
[data-theme="dark"] .hp-cat-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.hp-cat-tab .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
}
.hp-cat-tab:not(.active) .tab-count {
  background: #f3f4f6;
  color: #9ca3af;
}
[data-theme="dark"] .hp-cat-tab:not(.active) .tab-count {
  background: rgba(255, 255, 255, 0.08);
  color: #64748b;
}

/* Category block */
.hp-cat-block {
  margin-bottom: 52px;
}
.hp-cat-block:last-child {
  margin-bottom: 0;
}

.hp-cat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #f1f5f9;
}
[data-theme="dark"] .hp-cat-label {
  border-bottom-color: #1e293b;
}
.hp-cat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #fff;
  flex-shrink: 0;
}
.hp-cat-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #374151;
  flex: 1;
}
[data-theme="dark"] .hp-cat-name {
  color: #e2e8f0;
}
.hp-cat-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 2px 10px;
  border-radius: 20px;
}
[data-theme="dark"] .hp-cat-count {
  background: rgba(255, 255, 255, 0.06);
  color: #64748b;
}

/* Tool grid */
.hp-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

/* Tool card */
.hp-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px 16px;
  background: #fafafa;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s;
}
[data-theme="dark"] .hp-card {
  background: #111827;
  border-color: #1f2937;
}

/* Gradient shimmer line on top */
.hp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--cc, #2563eb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 16px 16px 0 0;
}
/* Glow overlay on hover */
.hp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cc, #2563eb);
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: inherit;
  pointer-events: none;
}
.hp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
  border-color: var(--cc, #2563eb);
}
[data-theme="dark"] .hp-card:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}
.hp-card:hover::before {
  transform: scaleX(1);
}
.hp-card:hover::after {
  opacity: 0.03;
}

/* Card icon */
.hp-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  flex-shrink: 0;
  background: var(--cc, #2563eb);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s;
  position: relative;
  z-index: 1;
}
.hp-card:hover .hp-card-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* Card content */
.hp-card-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.hp-card-name {
  font-size: 0.89rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  line-height: 1.3;
  transition: color 0.2s;
}
[data-theme="dark"] .hp-card-name {
  color: #f1f5f9;
}
.hp-card:hover .hp-card-name {
  color: var(--cc, #2563eb);
}
.hp-card-desc {
  font-size: 0.76rem;
  color: #6b7280;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="dark"] .hp-card-desc {
  color: #94a3b8;
}

.hp-card-arrow {
  position: absolute;
  top: 2px;
  right: 0;
  font-size: 0.7rem;
  color: #d1d5db;
  transition:
    color 0.2s,
    transform 0.2s;
  z-index: 1;
}
.hp-card:hover .hp-card-arrow {
  color: var(--cc, #2563eb);
  transform: translate(2px, -2px);
}

/* No results */
.hp-no-results {
  display: none;
  text-align: center;
  padding: 56px 0;
  color: #9ca3af;
}
.hp-no-results i {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}
.hp-no-results p {
  font-size: 0.9rem;
}

/* ── STATS ────────────────────────────────────────────────── */
.hp-stats {
  background: #020c1b;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hp-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 90% at 10% 50%,
      rgba(37, 99, 235, 0.22) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 80% at 90% 50%,
      rgba(124, 58, 237, 0.15) 0%,
      transparent 55%
    );
  pointer-events: none;
}
.hp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.hp-stat {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}
.hp-stat::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.hp-stat:last-child::after {
  display: none;
}

.hp-stat-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #93c5fd;
  margin: 0 auto 18px;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s,
    transform 0.25s;
}
.hp-stat:hover .hp-stat-icon {
  background: rgba(37, 99, 235, 0.25);
  border-color: rgba(37, 99, 235, 0.45);
  color: #60a5fa;
  transform: scale(1.08);
}

.hp-stat-num {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 30%, #bfdbfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hp-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ── FEATURES ─────────────────────────────────────────────── */
.hp-features {
  padding: 80px 0;
  background: #f8fafc;
}
[data-theme="dark"] .hp-features {
  background: #0c1525;
}

.hp-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.hp-feat-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 18px;
  padding: 32px 26px;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .hp-feat-card {
  background: #111827;
  border-color: #1f2937;
}
.hp-feat-card::before {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--fc, rgba(37, 99, 235, 0.06));
  transition: transform 0.35s;
  pointer-events: none;
}
.hp-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09);
  border-color: transparent;
}
.hp-feat-card:hover::before {
  transform: scale(2);
}

.hp-feat-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}
.hp-feat-card:hover .hp-feat-icon {
  transform: scale(1.1) rotate(-5deg);
}

.hp-feat-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}
[data-theme="dark"] .hp-feat-name {
  color: #f1f5f9;
}
.hp-feat-desc {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.65;
}
[data-theme="dark"] .hp-feat-desc {
  color: #94a3b8;
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.hp-how {
  padding: 80px 0;
  background: #fff;
}
[data-theme="dark"] .hp-how {
  background: #060f1e;
}

.hp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

/* Connecting line */
.hp-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: calc(16.67% + 30px);
  right: calc(16.67% + 30px);
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #10b981);
  background-size: 200% 100%;
  animation: lineShimmer 3s linear infinite;
  z-index: 0;
}
@keyframes lineShimmer {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}

.hp-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.hp-step-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
  z-index: 1;
}
.hp-step:nth-child(2) .hp-step-circle {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}
.hp-step:nth-child(3) .hp-step-circle {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.hp-step:hover .hp-step-circle {
  transform: scale(1.12);
}

.hp-step-title {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}
[data-theme="dark"] .hp-step-title {
  color: #f1f5f9;
}
.hp-step-desc {
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.65;
}
[data-theme="dark"] .hp-step-desc {
  color: #94a3b8;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.hp-faq {
  padding: 80px 0;
  background: #f8fafc;
}
[data-theme="dark"] .hp-faq {
  background: #0c1525;
}

.hp-faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hp-faq-item {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  transition:
    box-shadow 0.25s,
    border-color 0.25s;
}
[data-theme="dark"] .hp-faq-item {
  background: #111827;
  border-color: #1f2937;
}
.hp-faq-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  border-color: #d1d5db;
}
[data-theme="dark"] .hp-faq-item:hover {
  border-color: #374151;
}
.hp-faq-item.open {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}
[data-theme="dark"] .hp-faq-item.open {
  border-color: rgba(96, 165, 250, 0.25);
}

.hp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
[data-theme="dark"] .hp-faq-q {
  color: #f1f5f9;
}
.hp-faq-q:hover {
  color: #2563eb;
}
[data-theme="dark"] .hp-faq-q:hover {
  color: #60a5fa;
}

.hp-faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #9ca3af;
  flex-shrink: 0;
  transition: all 0.25s;
}
[data-theme="dark"] .hp-faq-icon {
  border-color: #374151;
  color: #64748b;
}
.hp-faq-item.open .hp-faq-icon {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  transform: rotate(45deg);
}

.hp-faq-ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hp-faq-item.open .hp-faq-ans {
  max-height: 300px;
}
.hp-faq-ans-inner {
  padding: 0 22px 18px;
  font-size: 0.86rem;
  color: #4b5563;
  line-height: 1.75;
}
[data-theme="dark"] .hp-faq-ans-inner {
  color: #94a3b8;
}

/* ── CTA ──────────────────────────────────────────────────── */
.hp-cta {
  padding: 96px 0;
  background: #020c1b;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hp-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 70% at 50% 50%,
      rgba(37, 99, 235, 0.2) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 50% at 80% 80%,
      rgba(124, 58, 237, 0.14) 0%,
      transparent 55%
    );
  pointer-events: none;
}
.hp-cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.hp-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
}
.hp-cta-inner h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  line-height: 1.15;
}
.hp-cta-inner p {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 36px;
  line-height: 1.75;
}
.hp-cta-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.42);
  letter-spacing: 0.01em;
}
.hp-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(37, 99, 235, 0.55);
  color: #fff;
}
.hp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.09);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s;
}
.hp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-2px);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-stat:nth-child(2)::after {
    display: none;
  }
  .hp-steps::before {
    display: none;
  }
  .hp-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 768px) {
  .hp-hero {
    padding: 80px 0 64px;
    min-height: 0;
  }
  .hp-tool-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hp-feat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hp-cta-btns {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 560px) {
  .hp-search-bar input {
    padding: 14px 16px;
    font-size: 0.88rem;
  }
  .hp-search-bar button {
    padding: 14px 18px;
  }
  .hp-trust {
    gap: 6px;
  }
  .hp-pill {
    font-size: 0.7rem;
    padding: 5px 11px;
  }
}
@media (max-width: 480px) {
  .hp-tool-grid {
    grid-template-columns: 1fr;
  }
  .hp-feat-grid {
    grid-template-columns: 1fr;
  }
  .hp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-hero h1 {
    letter-spacing: -1px;
  }
  .hp-cat-tabs {
    gap: 6px;
  }
  .hp-cat-tab {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}
