:root {
  --bg: #090c13;
  --bg-soft: #101624;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --text: #edf2ff;
  --muted: #a8b2c9;
  --brand: #4de2b7;
  --brand-2: #4a8dff;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 20%, #12203f 0%, transparent 40%),
              radial-gradient(circle at 85% 10%, #003d41 0%, transparent 35%),
              linear-gradient(170deg, #060911 0%, #090c13 45%, #0e121d 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
  animation: drift 16s ease-in-out infinite;
}

.ambient--one {
  width: 25rem;
  height: 25rem;
  background: #1c8af5;
  top: 8%;
  left: -6%;
}

.ambient--two {
  width: 20rem;
  height: 20rem;
  background: #27dca8;
  right: -4%;
  top: 32%;
  animation-delay: -6s;
}

.ambient--three {
  width: 22rem;
  height: 22rem;
  background: #7f53ff;
  left: 34%;
  bottom: -6%;
  animation-delay: -3s;
}

.site-header,
main,
.site-footer {
  width: min(1140px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0.8rem;
  z-index: 20;
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(10, 14, 25, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand__logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex-shrink: 0;
}

.brand__name {
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.header-cta {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--line);
  padding: 0.56rem 0.95rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.section {
  padding: 5rem 0 1.5rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--brand);
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.06;
}

h2 {
  max-width: 20ch;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.hero__lead,
.section-head + p,
.cta p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.72;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.2rem;
  border-radius: 11px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #07131f;
  background: linear-gradient(135deg, var(--brand), #8cf4d8);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero__metrics {
  margin-top: 2rem;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.metric {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.metric strong {
  font-size: 1.6rem;
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-head {
  margin-bottom: 1.6rem;
}

.cards-grid {
  display: grid;
  gap: 1rem;
}

.cards-grid--services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid--cases {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  padding: 1.1rem;
  box-shadow: var(--shadow);
  --card-translate-y: 20px;
  --rx: 0deg;
  --ry: 0deg;
  --sc: 1;
  --mx: 50%;
  --my: 50%;
  --glare: 0;
  transform: perspective(900px) translateY(var(--card-translate-y)) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--sc));
  transform-style: preserve-3d;
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.24), transparent 38%);
  opacity: var(--glare);
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% auto;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 226, 183, 0.35), transparent 64%);
}

.card.is-visible {
  --card-translate-y: 0px;
  opacity: 1;
}

.card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.16rem;
}

.card p {
  position: relative;
  z-index: 1;
  margin-top: 0.65rem;
  color: var(--muted);
  line-height: 1.6;
}

.case-meta {
  position: relative;
  z-index: 1;
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--brand);
  font-size: 0.92rem;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.timeline li {
  margin-left: 1rem;
  padding: 0 0 1.3rem 1.2rem;
  position: relative;
  color: var(--muted);
}

.timeline li::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  position: absolute;
  left: -1.39rem;
  top: 0.35rem;
}

.timeline strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.cta {
  margin-top: 2rem;
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(170deg, rgba(77, 226, 183, 0.1), rgba(74, 141, 255, 0.08));
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  width: 20rem;
  height: 20rem;
  right: -5rem;
  top: -8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 226, 183, 0.2), transparent 65%);
  pointer-events: none;
}

.cta__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.cta__content h2 {
  max-width: 14ch;
}

.cta__points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.cta__points li {
  color: #c3cee5;
  font-size: 0.96rem;
  line-height: 1.5;
  padding-left: 1.2rem;
  position: relative;
}

.cta__points li::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  position: absolute;
  left: 0;
  top: 0.42rem;
}

.cta__panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7, 13, 25, 0.82), rgba(6, 10, 18, 0.88));
  padding: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lead-form {
  margin-top: 0;
  display: grid;
  gap: 0.85rem;
  max-width: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-form label {
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
  font-weight: 500;
}

.lead-form__hint {
  margin: 0.1rem 0 0;
  color: #b8c5e0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(3, 8, 15, 0.84);
  color: var(--text);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(77, 226, 183, 0.45);
  border-color: transparent;
}

.form-status {
  margin-top: 0.7rem;
  color: var(--brand);
  min-height: 1.2rem;
  font-size: 0.92rem;
}

.site-footer {
  padding: 2.1rem 0 2.4rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -22px, 0) scale(1.08);
  }
}

@media (max-width: 980px) {
  .cards-grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid--cases {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 0.3rem;
    border-top: 1px solid var(--line);
  }

  .hero__metrics {
    grid-template-columns: 1fr;
  }

  .cards-grid--services {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 1.4rem;
  }

  .cta__grid {
    grid-template-columns: 1fr;
  }

  .cta__content h2 {
    max-width: 100%;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.6rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .card {
    --rx: 0deg !important;
    --ry: 0deg !important;
    --sc: 1 !important;
    --glare: 0 !important;
  }
}
