:root {
  --bg: #050608;
  --panel: #0b0f14;
  --line: #1d2837;
  --text: #e8edf7;
  --muted: #a6b4ca;
  --blue: #0f86ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% -8%, rgba(22, 94, 255, 0.19), transparent 40%),
    radial-gradient(circle at 84% 8%, rgba(15, 123, 255, 0.13), transparent 30%),
    var(--bg);
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 62px,
      rgba(255, 255, 255, 0.02) 63px,
      transparent 64px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 62px,
      rgba(255, 255, 255, 0.018) 63px,
      transparent 64px
    );
}

.services-wrap {
  width: min(1720px, calc(100% - 2rem));
  padding: 0;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(15, 123, 255, 0.12), transparent 46%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.hero {
  min-height: clamp(220px, 34vw, 420px);
  display: grid;
  place-content: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 88%, rgba(15, 123, 255, 0.22), transparent 40%),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 62px,
      rgba(255, 255, 255, 0.02) 63px,
      transparent 64px
    );
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1.08;
  position: relative;
  z-index: 1;
  background: linear-gradient(92deg, #f8fbff, #dce8ff 34%, #9bc9ff 66%, #f8fbff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.crumb {
  margin: 1rem 0 0;
  position: relative;
  z-index: 1;
  color: #a6b4c8;
}

.crumb a {
  color: var(--blue);
  text-decoration: none;
}

.services-intro {
  text-align: center;
  padding: 1.2rem 0 0.2rem;
}

.eyebrow {
  margin: 0;
  color: #7ebfff;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.eyebrow::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  border: 2px solid #1388ff;
}

.services-intro h2 {
  margin: 1rem auto 0;
  max-width: 980px;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.06;
  background: linear-gradient(96deg, #f8fbff, #dce8ff 36%, #8fa6c5 70%, #f8fbff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1720px;
  margin: 0 auto;
}

.service-card {
  padding: 1.2rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 700px;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(82, 160, 255, 0.58);
  box-shadow: 0 28px 48px rgba(3, 11, 25, 0.6);
}

.icon-box {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  border: 1px solid rgba(170, 90, 255, 0.36);
  box-shadow:
    inset 0 0 0 1px rgba(16, 127, 255, 0.2),
    0 10px 24px rgba(13, 18, 33, 0.5);
  background: linear-gradient(160deg, rgba(18, 21, 28, 0.95), rgba(8, 11, 16, 0.96));
  color: #0f88ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.4rem;
}

.icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-card h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.3;
}

.service-card h4 {
  margin: 0.25rem 0 0;
  color: #c4d2e6;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  line-height: 1.42;
}

.service-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.card-btn {
  margin-top: auto;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(26, 137, 255, 0.55);
  background: linear-gradient(140deg, rgba(16, 54, 108, 0.88), rgba(10, 24, 46, 0.92));
  box-shadow: inset 0 0 0 1px rgba(120, 182, 255, 0.15);
  text-decoration: none;
  color: #e9f2ff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.card-btn .arrow {
  font-size: 1.2rem;
  line-height: 1;
}

.card-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(85, 174, 255, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(133, 194, 255, 0.24),
    0 10px 22px rgba(9, 39, 82, 0.35);
}

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

  .service-card {
    min-height: 650px;
  }
}

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

  .service-card {
    min-height: 600px;
  }
}

@media (max-width: 760px) {
  .services-wrap {
    width: calc(100% - 0.55rem);
    padding: 0;
    gap: 0.72rem;
  }

  .panel {
    border-radius: 16px;
  }

  .services-intro {
    padding-top: 0.75rem;
  }

  .services-intro h2 {
    font-size: clamp(1.9rem, 10vw, 2.9rem);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .service-card {
    padding: 0.9rem;
    min-height: auto;
  }

  .icon-box {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .card-btn {
    min-height: 40px;
    padding: 0.56rem 0.8rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .services-wrap {
    width: calc(100% - 0.35rem);
    gap: 0.62rem;
  }

  .panel {
    border-radius: 14px;
  }

  .hero {
    min-height: 190px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 9vw, 2.35rem);
  }

  .services-intro h2 {
    font-size: clamp(1.7rem, 9vw, 2.7rem);
  }

  .service-card h3 {
    font-size: 1.22rem;
  }

  .service-card h4 {
    font-size: 0.98rem;
  }

  .service-card p {
    font-size: 0.92rem;
    line-height: 1.48;
  }
}

@media (max-width: 420px) {
  .services-wrap {
    width: calc(100% - 0.25rem);
  }

  .panel {
    border-radius: 12px;
  }

  .hero {
    min-height: 165px;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 8.4vw, 1.95rem);
  }

  .service-card {
    padding: 0.75rem;
  }

  .icon-box {
    width: 74px;
    height: 74px;
    border-radius: 16px;
  }
}
