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

:root {
  --ink: #0b1220;
  --navy: #0f2436;
  --navy-2: #163a52;
  --teal: #0fb5ae;
  --teal-dark: #0c9891;
  --sky: #3b9fe0;
  --sand: #e0a458;
  --mist: #f6f8f9;
  --line: #e3e8ec;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background-color: #ffffff;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
}

::selection {
  background-color: var(--teal);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Dot-lattice background, used behind hero / section dividers */
.bg-lattice {
  background-image: radial-gradient(rgba(15, 36, 54, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
}

.bg-lattice-light {
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Gradient text accent */
.text-gradient {
  background: linear-gradient(90deg, var(--teal) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-navy {
  background: radial-gradient(120% 140% at 10% 0%, #163a52 0%, #0f2436 55%, #0b1a28 100%);
}

/* Nav underline animation */
.nav-link {
  position: relative;
  color: rgba(15, 36, 54, 0.75);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--teal);
  transition: width 0.2s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--navy);
  font-weight: 600;
}

/* Card hover lift */
.lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15, 36, 54, 0.25);
  border-color: var(--teal);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Lattice connecting lines (decorative svg) subtle pulse */
.lattice-pulse circle {
  animation: pulse-dot 3.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: var(--mist);
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.6rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 0.6rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 0.6rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-outline-dark:hover {
  border-color: var(--teal);
  background: var(--mist);
}
