@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;700;800&display=swap");

:root {
  --tone-ink: #0a1738;
  --tone-mid: #33415f;
  --tone-line: rgba(133, 155, 192, 0.34);
  --tone-glass: rgba(255, 255, 255, 0.78);
  --tone-blue: #1d4ed8;
  --tone-cyan: #0891b2;
  --tone-soft: #eff6ff;
  --shadow-card: 0 16px 42px rgba(15, 23, 42, 0.16);
  --shadow-lift: 0 24px 52px rgba(15, 23, 42, 0.22);
}

* {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif !important;
  color: var(--tone-ink) !important;
  background:
    radial-gradient(1000px 600px at 8% -8%, rgba(56, 189, 248, 0.18), transparent 62%),
    radial-gradient(950px 560px at 94% 12%, rgba(29, 78, 216, 0.2), transparent 58%),
    linear-gradient(180deg, #edf4ff 0%, #f6f9ff 38%, #ffffff 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(98, 129, 182, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 129, 182, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 35%, black 40%, transparent 88%);
}

body::after {
  width: min(42vw, 520px);
  aspect-ratio: 1;
  right: -14vw;
  top: 42vh;
  border-radius: 50%;
  filter: blur(4px);
  background: radial-gradient(circle at 28% 28%, rgba(20, 184, 166, 0.35), rgba(29, 78, 216, 0));
  animation: driftBlob 17s ease-in-out infinite;
}

main,
.site-header,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  background: var(--tone-glass) !important;
  border-bottom: 1px solid var(--tone-line) !important;
  backdrop-filter: blur(14px);
}

.logo {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  color: #0d214f;
}

.logo span {
  color: #41557f !important;
  letter-spacing: 0.11em;
}

.nav-links a {
  color: #1b2f5d !important;
  font-weight: 600 !important;
}

.nav-links a::after {
  height: 3px !important;
}

.hero h1,
.page-title,
.section-title,
.card h2,
.card h3,
.hero-card-title {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  color: #0c204d !important;
  letter-spacing: -0.04em !important;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.4rem) !important;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--tone-blue), var(--tone-cyan));
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: gradientShift 6s ease infinite;
}

.hero p,
.intro,
.page-subtitle,
.section-description,
.card p,
ul,
.note,
.cta {
  color: var(--tone-mid) !important;
}

.eyebrow,
.page-kicker,
.section-kicker,
.section-note,
.card-tag,
.contact-label {
  color: #2354cd !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
}

.eyebrow {
  border: 1px solid rgba(37, 84, 205, 0.2);
  background: linear-gradient(135deg, rgba(37, 84, 205, 0.12), rgba(6, 182, 212, 0.12)) !important;
}

.eyebrow-dot {
  animation: pulseDot 2.4s infinite;
}

.card,
.about-quick,
.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.96)) !important;
  border: 1px solid var(--tone-line) !important;
  box-shadow: var(--shadow-card) !important;
  backdrop-filter: blur(3px);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover,
.about-quick:hover,
.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift) !important;
  border-color: rgba(29, 78, 216, 0.34) !important;
}

.pill,
.value-pill,
.hero-pill {
  border: 1px solid rgba(29, 78, 216, 0.2) !important;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(6, 182, 212, 0.1)) !important;
  color: #1a45a9 !important;
}

.hero-pill span {
  background: #2450c7 !important;
}

.btn,
.btn-primary {
  border: 0 !important;
  background-image: linear-gradient(125deg, #1d4ed8, #0ea5e9, #0891b2, #1d4ed8) !important;
  background-size: 220% 220% !important;
  box-shadow: 0 16px 40px rgba(29, 78, 216, 0.35) !important;
  animation: gradientShift 8s ease infinite;
}

.btn:hover,
.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 22px 48px rgba(29, 78, 216, 0.44) !important;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid var(--tone-line) !important;
  color: #17346f !important;
}

footer {
  background: rgba(255, 255, 255, 0.82) !important;
  border-top: 1px solid var(--tone-line) !important;
}

main > header,
main > section,
.hero,
.section,
.page-header {
  animation: riseIn 0.75s ease both;
}

main > *:nth-child(1),
.hero {
  animation-delay: 0.08s;
}

main > *:nth-child(2),
.section:nth-of-type(1) {
  animation-delay: 0.16s;
}

main > *:nth-child(3),
.section:nth-of-type(2) {
  animation-delay: 0.24s;
}

main > *:nth-child(4),
.section:nth-of-type(3) {
  animation-delay: 0.3s;
}

main > *:nth-child(5),
.section:nth-of-type(4) {
  animation-delay: 0.38s;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(37, 84, 205, 0.48); }
  70% { box-shadow: 0 0 0 11px rgba(37, 84, 205, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 84, 205, 0); }
}

@keyframes driftBlob {
  0%,
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-7vw, -6vh, 0) rotate(-10deg); }
}

@media (max-width: 680px) {
  body::before {
    background-size: 30px 30px;
  }

  body::after {
    width: min(74vw, 420px);
    right: -28vw;
    top: 52vh;
  }

  .card:hover,
  .about-quick:hover,
  .hero-card:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
