/* ============================================================
   KNB LIMITED — Brand Stylesheet
   Purple Theme | Plus Jakarta Sans + DM Sans
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: #1A0533; background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* ── Fonts ─────────────────────────────────────────────────── */
.font-heading { font-family: 'Plus Jakarta Sans', sans-serif; }
.font-body    { font-family: 'DM Sans', sans-serif; }

/* ── Brand utilities ────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glass effects ──────────────────────────────────────────── */
.glass {
  background: rgba(124,58,237,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(124,58,237,.2);
}
.glass-dark {
  background: rgba(18,8,42,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ── Background patterns ────────────────────────────────────── */
.bg-dot-pattern {
  background-image: radial-gradient(circle, rgba(124,58,237,.35) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(124,58,237,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Navbar ─────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all .3s ease;
}
#navbar.scrolled {
  background: rgba(18,8,42,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 4px 30px rgba(0,0,0,.3);
}
.nav-link {
  color: rgba(255,255,255,.72);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  padding: .45rem .85rem;
  border-radius: .5rem;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(124,58,237,.15);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: #7C3AED;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  border-radius: .875rem;
  text-decoration: none;
  transition: all .2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124,58,237,.35);
}
.btn-primary:hover {
  background: #6D28D9;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124,58,237,.45);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: transparent;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  border-radius: .875rem;
  border: 1.5px solid rgba(255,255,255,.35);
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}
.btn-outline:hover {
  border-color: #A78BFA;
  color: #A78BFA;
  background: rgba(124,58,237,.1);
}
.btn-sm {
  padding: .5rem 1.1rem;
  font-size: .82rem;
  border-radius: .65rem;
}

/* ── Section badge ──────────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 999px;
}
.badge-purple {
  background: rgba(124,58,237,.12);
  color: #7C3AED;
  border: 1px solid rgba(124,58,237,.2);
}
.badge-light {
  background: rgba(124,58,237,.08);
  color: #7C3AED;
  border: 1px solid rgba(124,58,237,.15);
}

/* ── Cards ──────────────────────────────────────────────────── */
.service-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid rgba(124,58,237,.1);
  transition: all .25s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(124,58,237,.15);
  border-color: rgba(124,58,237,.3);
}
.service-card:hover .service-icon { background: #7C3AED; }
.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F0FF;
  transition: all .25s;
  flex-shrink: 0;
}
.service-icon svg { transition: all .25s; }
.service-card:hover .service-icon svg { stroke: white; }

.testimonial-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid rgba(124,58,237,.1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.pricing-card {
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.popular {
  background: #12082A;
  border: 2px solid #7C3AED;
  box-shadow: 0 12px 40px rgba(124,58,237,.35);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #7C3AED;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .06em;
}

/* ── Team card ──────────────────────────────────────────────── */
.team-card {
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border: 1px solid rgba(124,58,237,.1);
  transition: all .25s;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(124,58,237,.15);
}
.team-linkedin {
  position: absolute;
  bottom: 4.5rem;
  right: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all .25s;
}
.team-card:hover .team-linkedin {
  opacity: 1;
  transform: translateY(0);
}

/* ── Value card ─────────────────────────────────────────────── */
.value-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all .25s;
}
.value-card:hover {
  background: rgba(124,58,237,.15);
  border-color: rgba(124,58,237,.4);
}

/* ── Form ───────────────────────────────────────────────────── */
.form-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  color: #1A0533;
  margin-bottom: .45rem;
}
.form-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid rgba(26,5,51,.15);
  border-radius: .75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  color: #1A0533;
  background: #fff;
  transition: all .2s;
  outline: none;
}
.form-input:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.form-input.error { border-color: #ef4444; }
.form-error {
  display: none;
  color: #ef4444;
  font-size: .75rem;
  margin-top: .25rem;
  font-family: 'DM Sans', sans-serif;
}

/* ── Policy pages ───────────────────────────────────────────── */
.policy-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(26,5,51,.07);
}
.policy-section:last-child { border-bottom: none; }
.policy-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1A0533;
  margin-bottom: .75rem;
}
.policy-p {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: rgba(26,5,51,.7);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.policy-ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.policy-ul li {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: rgba(26,5,51,.7);
  line-height: 1.8;
  margin-bottom: .4rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer-link {
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-link:hover { color: #A78BFA; }
.social-btn {
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.12);
  transition: all .2s;
  text-decoration: none;
}
.social-btn:hover {
  color: #A78BFA;
  border-color: #7C3AED;
  background: rgba(124,58,237,.15);
}

/* ── Cookie banner ──────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 340px;
  z-index: 9999;
  transform: translateY(120%);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-prefs { display: none; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes float        { 0%,100%{transform:translateY(0px)}   50%{transform:translateY(-12px)} }
@keyframes float-alt    { 0%,100%{transform:translateY(-6px)}  50%{transform:translateY(6px)} }
@keyframes pulse-glow   { 0%,100%{box-shadow:0 0 0 0 rgba(124,58,237,.4)} 50%{box-shadow:0 0 0 12px rgba(124,58,237,0)} }
@keyframes blob         { 0%,100%{border-radius:60% 40% 30% 70%/60% 30% 70% 40%;transform:scale(1)} 50%{border-radius:30% 60% 70% 40%/50% 60% 30% 60%;transform:scale(1.05)} }
@keyframes rotate-ring  { to{transform:rotate(360deg)} }
@keyframes fade-in-up   { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.float-1  { animation: float      5s   ease-in-out infinite; }
.float-2  { animation: float-alt  6s   ease-in-out infinite; }
.float-3  { animation: float      7s   ease-in-out infinite .5s; }
.float-4  { animation: float-alt  5.5s ease-in-out infinite 1s; }
.pulse-dot { animation: pulse-glow 2s  ease-in-out infinite; }
.blob-anim { animation: blob 8s ease-in-out infinite; opacity: .12; filter: blur(60px); }
.ring-1   { animation: rotate-ring 10s linear infinite; }
.ring-2   { animation: rotate-ring 14s linear infinite reverse; }
.ring-3   { animation: rotate-ring 18s linear infinite; }

/* ── Success toast ──────────────────────────────────────────── */
.success-toast {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 9998;
  background: #12082A;
  border: 1px solid rgba(124,58,237,.4);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  transform: translateX(120%);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  max-width: 300px;
}
.success-toast.show { transform: translateX(0); }

/* ── Stat number ────────────────────────────────────────────── */
.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
}

/* ── Company details ────────────────────────────────────────── */
.company-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(124,58,237,.08);
}
.company-detail-row:last-child { border-bottom: none; }
.detail-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F0FF;
  flex-shrink: 0;
}

/* ── Pricing button helpers ──────────────────────────────────── */
.pricing-btn-outline-dark {
  display: block;
  width: 100%;
  text-align: center;
  padding: .75rem 1rem;
  border: 2px solid rgba(255,255,255,.2);
  color: white;
  font-weight: 600;
  font-size: .875rem;
  border-radius: .75rem;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  background: transparent;
  cursor: pointer;
}
.pricing-btn-outline-dark:hover {
  border-color: #7C3AED;
  color: #A78BFA;
}
.pricing-btn-solid-dark {
  display: block;
  width: 100%;
  text-align: center;
  padding: .75rem 1rem;
  background: #7C3AED;
  color: white;
  font-weight: 700;
  font-size: .875rem;
  border-radius: .75rem;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all .2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124,58,237,.35);
}
.pricing-btn-solid-dark:hover {
  background: #6D28D9;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124,58,237,.45);
}

/* ── Info card (contact) ────────────────────────────────────── */
.info-card {
  background: #fff;
  border: 1px solid rgba(124,58,237,.1);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: all .25s;
}
.info-card:hover {
  border-color: rgba(124,58,237,.3);
  box-shadow: 0 8px 24px rgba(124,58,237,.1);
}
.info-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F0FF;
  flex-shrink: 0;
}

/* ── Hero page badge ───────────────────────────────────────── */
.hero-page-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,58,237,.2);
  border: 1px solid rgba(124,58,237,.35);
  margin: 0 auto 1.5rem;
}

/* ── Stat card (hero) ───────────────────────────────────────── */
.stat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Feature check list ─────────────────────────────────────── */
.feature-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
}

/* ── Divider line ───────────────────────────────────────────── */
.divider { height: 1px; background: rgba(124,58,237,.08); margin: 1.5rem 0; }

/* ── Stars ──────────────────────────────────────────────────── */
.stars { color: #F59E0B; font-size: 1rem; letter-spacing: .1em; }

/* ── Why card ───────────────────────────────────────────────── */
.why-card {
  background: #fff;
  border: 1px solid rgba(124,58,237,.1);
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: all .25s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(124,58,237,.12);
  border-color: rgba(124,58,237,.25);
}
.why-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#7C3AED,#A78BFA);
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(124,58,237,.3);
}

/* ── Scroll top btn ─────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: #7C3AED;
  border: none;
  border-radius: .75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transform: translateY(12px);
  transition: all .3s;
  box-shadow: 0 4px 16px rgba(124,58,237,.4);
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: #6D28D9; transform: translateY(-2px); }

/* ── Responsive helpers ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  #cookie-banner { left: 1rem; right: 1rem; max-width: none; bottom: 1rem; }
}

/* ── Mobile menu ────────────────────────────────────────────── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
#mobile-menu.open { max-height: 400px; }
