/* Propicy — landing */
:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --accent: #047857;
  --radius: 12px;
  --shadow: 0 1px 3px rgb(15 23 42 / 0.06);
  --shadow-md: 0 4px 20px rgb(15 23 42 / 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Georgia", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* SVG icons (sprite: icons.svg) */
.icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  color: inherit;
}
.icon--card {
  width: 1.35rem;
  height: 1.35rem;
}
.icon--float {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--primary);
  flex-shrink: 0;
}
.icon--lead {
  width: 1.35rem;
  height: 1.35rem;
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgb(15 23 42 / 0.08);
  border-bottom-color: rgb(226 232 240 / 0.9);
}

.site-header__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 4rem;
}

.site-header__start {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  order: 1;
  max-width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: transform 0.25s ease, color 0.2s ease;
}
.logo:hover {
  text-decoration: none;
  color: var(--primary);
  transform: translateY(-1px);
}
.logo__mark {
  flex-shrink: 0;
  color: var(--primary);
  filter: drop-shadow(0 2px 6px rgb(2 132 199 / 0.25));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}
.logo:hover .logo__mark {
  transform: scale(1.06) rotate(-4deg);
  color: var(--primary-hover);
}
.logo__text {
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .logo:hover {
    transform: none;
  }
  .logo:hover .logo__mark {
    transform: none;
  }
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
  order: 2;
}

.nav {
  display: none;
  align-items: stretch;
  gap: 0.5rem;
  order: 3;
  flex-basis: 100%;
  width: 100%;
}

.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.25rem;
  box-shadow: var(--shadow-md);
}

.nav__link {
  position: relative;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--primary), #38bdf8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__link:hover {
  color: var(--primary);
  text-decoration: none;
}
.nav__link:hover::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .nav__link::after {
    transition: none;
    transform: scaleX(0);
  }
  .nav__link:hover::after {
    transform: scaleX(1);
  }
}

.nav__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav.is-open .nav__actions {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.lang-field {
  display: flex;
  align-items: center;
}

.site-header__start .lang-field {
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

.lang-select {
  width: auto;
  min-width: 6.75rem;
  max-width: 10rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-select:hover {
  border-color: rgb(2 132 199 / 0.45);
}

.lang-select:focus {
  outline: 2px solid rgb(2 132 199 / 0.35);
  outline-offset: 1px;
  border-color: var(--primary);
}

@media (min-width: 768px) {
  .site-header__inner {
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .site-header__start,
  .nav {
    order: 0;
  }

  /* Burger wrapper: empty on desktop once toggle is hidden */
  .site-header__tools {
    display: none;
    margin-left: 0;
  }

  .nav,
  .nav.is-open {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    gap: 0.25rem 1.25rem;
    flex-basis: auto;
    width: auto;
    min-width: 0;
  }

  .nav.is-open .nav__actions {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .nav__actions {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .lang-select {
    min-width: 7rem;
    max-width: none;
  }

  /* Burger / hamburger: mobile only (hidden on desktop) */
  .nav-toggle {
    display: none !important;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle:hover {
  background: var(--bg);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.35rem;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
}
.btn--ghost:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgb(2 132 199 / 0.25);
}
.btn--primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

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

.btn__label {
  position: relative;
  z-index: 1;
}

.btn--shine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgb(255 255 255 / 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: btnShine 6s ease-in-out infinite;
}

@keyframes btnShine {
  0%,
  70% {
    transform: translateX(-100%);
  }
  85% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: var(--bg);
  color: var(--text);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.35rem);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__bullets .hero__bullet:nth-child(1) {
  --reveal-delay: 0.06s;
}
.hero__bullets .hero__bullet:nth-child(2) {
  --reveal-delay: 0.12s;
}
.hero__bullets .hero__bullet:nth-child(3) {
  --reveal-delay: 0.18s;
}

.services-grid .service-card:nth-child(1) {
  --reveal-delay: 0.04s;
}
.services-grid .service-card:nth-child(2) {
  --reveal-delay: 0.1s;
}
.services-grid .service-card:nth-child(3) {
  --reveal-delay: 0.16s;
}
.services-grid .service-card:nth-child(4) {
  --reveal-delay: 0.22s;
}
.services-grid .service-card:nth-child(5) {
  --reveal-delay: 0.28s;
}
.services-grid .service-card:nth-child(6) {
  --reveal-delay: 0.34s;
}

.hero__capabilities .hero-cap:nth-child(1) {
  --reveal-delay: 0.04s;
}
.hero__capabilities .hero-cap:nth-child(2) {
  --reveal-delay: 0.08s;
}
.hero__capabilities .hero-cap:nth-child(3) {
  --reveal-delay: 0.12s;
}
.hero__capabilities .hero-cap:nth-child(4) {
  --reveal-delay: 0.16s;
}
.hero__capabilities .hero-cap:nth-child(5) {
  --reveal-delay: 0.2s;
}
.hero__capabilities .hero-cap:nth-child(6) {
  --reveal-delay: 0.24s;
}

.lead-steps .lead-step:nth-child(1) {
  --reveal-delay: 0.06s;
}
.lead-steps .lead-step:nth-child(2) {
  --reveal-delay: 0.14s;
}
.lead-steps .lead-step:nth-child(3) {
  --reveal-delay: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn--shine::after {
    animation: none;
  }
  .btn--primary:hover,
  .btn--ghost:hover {
    transform: none;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, #e0f2fe 0%, var(--bg) 58%);
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 60% at 50% -30%,
    rgb(125 211 252 / 0.5),
    transparent 55%
  );
  pointer-events: none;
  animation: heroGlow 14s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from {
    opacity: 0.75;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.06);
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  max-width: 48ch;
}

.hero__bullets {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 44ch;
}

.hero__bullet {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.45;
}

.hero__bullet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  box-shadow: 0 0 0 3px rgb(2 132 199 / 0.15);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero__stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hero__stats span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.hero__card:hover {
  border-color: rgb(2 132 199 / 0.25);
  box-shadow: 0 12px 40px rgb(15 23 42 / 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
    opacity: 0.85;
  }
}
.hero__card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.hero__card p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.hero__capabilities {
  margin-top: 0.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero__card:hover .hero__capabilities {
  border-color: rgb(2 132 199 / 0.22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8), 0 4px 20px rgb(2 132 199 / 0.06);
}

@media (min-width: 420px) {
  .hero__capabilities {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-cap {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.85);
  border: 1px solid rgb(226 232 240 / 0.9);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cap:hover {
  border-color: rgb(2 132 199 / 0.28);
  box-shadow: 0 4px 14px rgb(15 23 42 / 0.06);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-cap:hover {
    transform: none;
  }
}

.hero-cap__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: linear-gradient(145deg, #e0f2fe, #bae6fd);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.hero-cap__icon .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.hero-cap:hover .hero-cap__icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 6px 16px rgb(2 132 199 / 0.22);
}
@media (prefers-reduced-motion: reduce) {
  .hero-cap:hover .hero-cap__icon {
    transform: none;
  }
}

.hero-cap__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.hero-cap__title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.hero-cap__sub {
  display: block;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.hero-cap:focus-visible {
  outline: 2px solid rgb(2 132 199 / 0.55);
  outline-offset: 2px;
}

.hero__preview {
  margin: 1rem 0 1.15rem;
  perspective: 900px;
}

.hero__preview-layer {
  position: relative;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  transform: rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
}

.hero__photo-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgb(15 23 42 / 0.12);
  background: var(--surface);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.hero__card:hover .hero__photo-frame {
  box-shadow: 0 22px 56px rgb(15 23 42 / 0.14);
}

.hero__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__photo-frame:hover .hero__photo {
  transform: scale(1.06);
}

.hero__photo-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 40%,
    rgb(255 255 255 / 0.2) 48%,
    transparent 56%
  );
  transform: translateX(-100%);
  animation: photoShine 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes photoShine {
  0%,
  60% {
    transform: translateX(-100%);
  }
  75% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo-frame:hover .hero__photo {
    transform: scale(1.02);
  }
  .hero__photo-shine {
    animation: none;
    opacity: 0;
  }
  .hero__preview-layer {
    transform: none;
  }
}

.hero__float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(226 232 240 / 0.95);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.12);
  max-width: 11rem;
  animation: floatBob 5s ease-in-out infinite;
}

.hero__float--1 {
  top: 8%;
  right: -4%;
  animation-delay: 0s;
}

.hero__float--2 {
  bottom: 10%;
  left: -6%;
  animation-delay: -2.4s;
}

@keyframes floatBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__float {
    animation: none;
  }
}

.hero__float-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.hero__float-text strong {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.hero__float-text span {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.25;
}

@media (max-width: 480px) {
  .hero__float {
    max-width: 9.5rem;
    padding: 0.45rem 0.6rem;
  }
  .hero__float--1 {
    right: 0;
  }
  .hero__float--2 {
    left: 0;
  }
}

/* Photo strip */
.visual-strip {
  padding: 0 0 2.5rem;
  overflow: hidden;
}

.visual-strip__track {
  display: flex;
  gap: 1rem;
  padding: 0 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.visual-tile {
  position: relative;
  flex: 0 0 min(320px, 85vw);
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.visual-tile:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgb(15 23 42 / 0.12);
}

.visual-tile img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.visual-tile:hover img {
  transform: scale(1.05);
}

.visual-tile__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f8fafc;
  background: linear-gradient(transparent, rgb(15 23 42 / 0.88));
  transform: translateY(0);
  transition: padding 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .visual-tile:hover {
    transform: none;
  }
  .visual-tile:hover img {
    transform: none;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  margin: 0 0 0.5rem;
  text-align: center;
}

.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.section--cta {
  padding-bottom: 4.5rem;
}

/* Services grid */
.services-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover {
  border-color: rgb(2 132 199 / 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

@media (prefers-reduced-motion: reduce) {
  .service-card:hover {
    transform: none;
  }
}

.service-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #e0f2fe, #bae6fd);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.service-card:hover .service-card__icon,
.service-card:focus-visible .service-card__icon {
  transform: scale(1.08) rotate(-6deg);
  box-shadow: 0 8px 22px rgb(2 132 199 / 0.18);
}

.service-card:focus-visible {
  outline: 2px solid rgb(2 132 199 / 0.45);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .service-card:hover .service-card__icon,
  .service-card:focus-visible .service-card__icon {
    transform: none;
  }
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}
.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Lead flow */
.lead-steps {
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .lead-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lead-step {
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.lead-step:hover {
  border-color: rgb(2 132 199 / 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.lead-step:focus-visible {
  outline: 2px solid rgb(2 132 199 / 0.45);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .lead-step:hover {
    transform: none;
  }
}

.lead-step__badge {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
}

.lead-step__icon-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0ea5e9, #0369a1);
  box-shadow: 0 10px 28px rgb(3 105 161 / 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.lead-step:hover .lead-step__icon-wrap {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 14px 36px rgb(3 105 161 / 0.4);
}

.lead-step__num {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 8px rgb(4 120 87 / 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .lead-step:hover .lead-step__icon-wrap {
    transform: none;
  }
}

.lead-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.lead-step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  background: linear-gradient(
    125deg,
    #0c4a6e 0%,
    #0369a1 38%,
    #0e7490 68%,
    #0369a1 100%
  );
  background-size: 200% 200%;
  animation: ctaGradient 16s ease infinite;
  color: #f8fafc;
  padding: 3.5rem 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 0 0 4rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 80%,
    rgb(255 255 255 / 0.08),
    transparent 45%
  );
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

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

@media (prefers-reduced-motion: reduce) {
  .cta-band {
    animation: none;
    background-size: 100% 100%;
  }
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}
.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 40ch;
  opacity: 0.92;
  font-size: 1.0625rem;
}
.cta-band .btn--primary {
  background: #fff;
  color: #0369a1;
}
.cta-band .btn--primary:hover {
  background: #f1f5f9;
  color: #0c4a6e;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  max-width: 640px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 1rem;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover {
  border-color: rgb(148 163 184 / 0.9);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgb(2 132 199 / 0.35);
  outline-offset: 1px;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgb(2 132 199 / 0.08);
  transform: translateY(-1px);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form .form-message {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  min-height: 1.25rem;
}
.contact-form .form-message--ok {
  color: var(--accent);
}
.contact-form .form-message--err {
  color: #b91c1c;
}

.contact-aside {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: fit-content;
}
.contact-aside h3 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
}
.contact-aside ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.5rem 0;
  font-size: 0.875rem;
}
.site-footer a {
  color: #e2e8f0;
}
.site-footer a:hover {
  color: #fff;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.site-footer__brand {
  font-family: var(--display);
  font-weight: 700;
  color: #f8fafc;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
