/* ============ Theme ============ */
:root{
  --bg: #080a12;
  --card: #0e1324;
  --card-2: #121833;
  --text: #e7e9f3;
  --muted: #a6acc9;
  --brand1: #6ee7ff;
  --brand2: #8b5cf6;
  --brand3: #22d3ee;
  --ring: rgba(142, 110, 255, .45);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

@media (prefers-color-scheme: light){
  :root{
    --bg: #0c1220;
    --card: #101833;
    --card-2: #142047;
    --text: #f3f5ff;
    --muted: #c7cce6;
  }
}

html, body{
  height: 100%;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background mesh + grid */
.bg-mesh{
  position: fixed; inset: -20vmax;
  background:
    radial-gradient(60vmax 60vmax at 80% 20%, rgba(110,231,255,.16), transparent 60%),
    radial-gradient(60vmax 60vmax at 10% 80%, rgba(139,92,246,.14), transparent 60%),
    radial-gradient(40vmax 40vmax at 50% 50%, rgba(34,211,238,.12), transparent 60%);
  filter: blur(30px);
  z-index: -3;
}
.bg-grid{
  position: fixed; inset: 0;
  background:
    linear-gradient(transparent 0, rgba(255,255,255,.03) 1px),
    linear-gradient(90deg, transparent 0, rgba(255,255,255,.03) 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(120% 100% at 50% 0%, black 40%, transparent 80%);
  z-index: -2;
}

/* Helpers */
.section-pad{ padding: 6rem 0 4.5rem; }
.grad-text{
  background: linear-gradient(90deg, var(--brand1), var(--brand2), var(--brand3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fw-800{ font-weight: 800; }
.text-secondary{ color: var(--muted) !important; }
.text-secondary-strong{ color: color-mix(in srgb, var(--text) 65%, var(--muted) 35%); }

.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}

/* Navbar */
.navbar-blur{
  background: rgba(12, 18, 32, .5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar-blur .nav-link{ color: var(--muted); }
.navbar-blur .nav-link.active, .navbar-blur .nav-link:hover{ color: var(--text); }

/* Buttons */
.btn-gradient{
  position: relative;
  border: 0; color: #0b1020;
  background: linear-gradient(90deg, var(--brand1), var(--brand2), var(--brand3));
  font-weight: 700;
  border-radius: 12px;
  padding: .75rem 1rem;
  box-shadow: 0 8px 20px rgba(134, 93, 246, .25);
}
.btn-gradient:hover{ filter: brightness(1.05); }

.btn-ghost{
  border: 1px solid rgba(255,255,255,.16);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  padding: .75rem 1.1rem;
}

/* Hero */
.hero{ padding-top: 8.5rem; }
.badge-soft{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--muted);
  padding: .4rem .65rem;
  border-radius: 999px;
  font-size: .8rem;
}
.hero-card{
  padding: 1.25rem;
  border-radius: 16px;
}
.hero-card__row{
  display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem;
}
.hero-stat{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: .9rem;
  text-align: center;
}
.stat-number{ font-size: 1.35rem; font-weight: 800; }
.stat-label{ color: var(--muted); font-size: .8rem; }

.hero .divider{
  height: 1px; background: rgba(255,255,255,.08); margin: 1rem 0;
}
.hero-mini{
  display: flex; align-items: center; gap: .6rem;
  color: var(--muted);
}
.hero-mini i{ color: var(--brand2); }

/* Tiny trust dots */
.trust-row{ display: flex; align-items: center; gap: .75rem; }
.trust-row .dots{ display: inline-flex; gap: .35rem; }
.trust-row .dots span{
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brand1), var(--brand2));
  box-shadow: 0 0 12px var(--ring);
}

/* Feature Cards */
.feature-card{
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  padding: 1px; /* for the halo border */
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feature-card__halo{
  position: absolute; inset: -1px;
  background: conic-gradient(from 180deg, var(--brand1), var(--brand2), var(--brand3), var(--brand1));
  filter: blur(12px); opacity: .16;
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}
.feature-card__body{
  position: relative; z-index: 1;
  padding: 1.25rem;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
}
.feature-card:hover .feature-card__halo{
  opacity: .32; filter: blur(8px); transform: scale(1.02);
}
.icon-wrap{
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--brand1);
  margin-bottom: .6rem;
  font-size: 1.2rem;
}
.feature-link{
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .25rem;
  color: var(--text); text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.25);
}
.feature-link:hover{ color: var(--brand1); }

/* CTA */
.cta{
  position: relative;
}
.cta::before{
  content:"";
  position: absolute; inset: 0 0 -2rem 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(110,231,255,.08), transparent 60%);
  z-index: -1;
}
.cta-box{
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}

/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(12, 18, 32, .45);
  backdrop-filter: blur(6px);
}
.footer-link{
  color: var(--muted);
  text-decoration: none;
}
.footer-link:hover{ color: var(--text); }

/* Responsive tweaks */
@media (max-width: 991.98px){
  .hero-card__row{ grid-template-columns: 1fr; }
}
