:root {
  --brand-primary: #3498db;
  --brand-primary-dark: #2a7aaf;
  --brand-deep: #34495e;
  --brand-surface: #e5edf2;
  --brand-white: #ffffff;
  --brand-ink: #333333;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1200px 600px at 10% -5%, rgba(52, 152, 219, 0.2), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(52, 152, 219, 0.12), transparent 60%),
    var(--brand-surface);
  line-height: 1.55;
}

main h1,
main h2,
main h3 {
  letter-spacing: -0.015em;
}

main p,
main li {
  line-height: 1.65;
}

.prose :where(h2):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
  margin-top: 1.8em;
  margin-bottom: 0.55em;
  font-size: 1.5rem;
  line-height: 1.35;
}

.prose :where(h3):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
  margin-top: 1.45em;
  margin-bottom: 0.45em;
  font-size: 1.125rem;
  line-height: 1.4;
}

::selection {
  background: var(--brand-primary);
  color: #fff;
}

.brand-glass {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(52, 152, 219, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 152, 219, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
}

.dot-pattern {
  background-image: radial-gradient(rgba(52, 152, 219, 0.22) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
}

.section-shell {
  border: 1px solid rgba(52, 152, 219, 0.2);
  box-shadow:
    0 1px 2px rgba(22, 34, 47, 0.05),
    0 16px 40px rgba(52, 152, 219, 0.08);
}

.pill {
  border: 1px solid rgba(52, 152, 219, 0.25);
  background: rgba(52, 152, 219, 0.08);
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -180%;
  width: 160%;
  height: 300%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.26) 45%, transparent 100%);
  transition: left 0.55s ease;
}

.btn-shine:hover::after {
  left: 120%;
}

.card-lift {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 152, 219, 0.4);
  box-shadow: 0 18px 40px rgba(20, 36, 52, 0.12);
}

.nav-shadow {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 18px 35px rgba(52, 152, 219, 0.12);
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease forwards;
}

.fade-up:nth-child(2) { animation-delay: 0.08s; }
.fade-up:nth-child(3) { animation-delay: 0.16s; }
.fade-up:nth-child(4) { animation-delay: 0.24s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.focus-ring:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .hero-grid {
    background-size: 24px 24px;
  }
}
