@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700&display=swap');

:root {
  --bg: #f7f9ff;
  --surface: rgba(255, 255, 255, 0.75);
  --border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.68);
  --primary: #2563eb;
  --primary-2: #06b6d4;
  --accent: #a855f7;
  --success: #16a34a;
  --shadow: 0 18px 60px rgba(37, 99, 235, 0.12);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(900px 550px at 100% 10%, rgba(168, 85, 247, 0.14), transparent 55%),
    radial-gradient(800px 420px at 40% 110%, rgba(6, 182, 212, 0.12), transparent 55%),
    var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.container {
  max-width: 1160px;
}

.text-muted {
  color: var(--muted) !important;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 55%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gradient {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92) 0%, rgba(168, 85, 247, 0.88) 50%, rgba(6, 182, 212, 0.88) 100%);
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

.glass.bg-gradient {
  background: linear-gradient(135deg, #1d4ed8 0%, #7e22ce 55%, #0e7490 100%);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  overflow: hidden;
}

.glass.bg-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.18);
  pointer-events: none;
}

.glass.bg-gradient > * {
  position: relative;
  z-index: 1;
}

.card-elevated {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn-gradient {
  --bs-btn-color: #fff;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-border-color: transparent;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 55%, var(--primary-2) 100%);
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn-gradient:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.28);
}

.btn-outline-glass {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.navbar {
  padding: 1.05rem 0;
  transition: background-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 60%, var(--primary-2) 100%);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.nav-link {
  font-weight: 600;
}

.hero {
  position: relative;
  padding: 8.25rem 0 4.25rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(1200px 520px at 15% 0%, rgba(37, 99, 235, 0.35), transparent 62%),
    radial-gradient(1000px 520px at 85% 10%, rgba(168, 85, 247, 0.3), transparent 62%),
    radial-gradient(920px 520px at 65% 110%, rgba(6, 182, 212, 0.26), transparent 62%);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 249, 255, 0.1), rgba(247, 249, 255, 0.8));
  z-index: -1;
}

.hero-orb {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
  animation: floaty 10s ease-in-out infinite;
}

.hero-orb.orb-1 {
  left: -180px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.9), rgba(37, 99, 235, 0) 65%);
}

.hero-orb.orb-2 {
  right: -220px;
  top: -100px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.9), rgba(168, 85, 247, 0) 62%);
  animation-delay: -2.5s;
}

.hero-orb.orb-3 {
  left: 30%;
  bottom: -280px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.9), rgba(6, 182, 212, 0) 62%);
  animation-delay: -5s;
}

@keyframes floaty {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -16px, 0);
  }
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kpi {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.kpi .kpi-value {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section {
  padding: 4.4rem 0;
}

.section-tight {
  padding: 3.2rem 0;
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.feature {
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
  height: 100%;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 90px rgba(37, 99, 235, 0.12);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 60%, var(--primary-2) 100%);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22);
}

.step {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  height: 100%;
}

.step .step-index {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.quote {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.06);
  padding: 22px 20px;
  height: 100%;
}

.quote .avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.footer {
  padding: 3.8rem 0 2.2rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  color: rgba(255, 255, 255, 0.9);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer .divider {
  border-color: rgba(255, 255, 255, 0.14);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 1050;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orb { animation: none; }
  .feature, .btn-gradient { transition: none; }
}

@media (max-width: 991.98px) {
  .hero {
    padding: 7rem 0 3.5rem;
  }

  .hero-kpis {
    grid-template-columns: 1fr;
  }
}
