:root {
  --bg: #060816;
  --bg-soft: #0e1330;
  --primary: #6d7bff;
  --secondary: #32d7ff;
  --text: #f3f6ff;
  --muted: #b4bddf;
  --card-border: rgba(163, 184, 255, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 10% -10%, #1e2c73 0%, transparent 56%),
    radial-gradient(1000px 620px at 100% 110%, #12617a 0%, transparent 52%),
    linear-gradient(155deg, var(--bg) 0%, var(--bg-soft) 100%);
  overflow-x: hidden;
}

.bg-video-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  filter: blur(6px) saturate(1.2) brightness(0.42);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.45s ease;
}

.bg-video.is-active {
  opacity: 0.38;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.35;
  z-index: -1;
}

.bg-shape-1 {
  width: 340px;
  height: 340px;
  background: #6f78ff;
  top: -60px;
  left: -80px;
  animation: drift 10s ease-in-out infinite alternate;
}

.bg-shape-2 {
  width: 360px;
  height: 360px;
  background: #29c7ff;
  right: -90px;
  bottom: -80px;
  animation: drift 12s ease-in-out infinite alternate-reverse;
}

.container {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 72px 0 40px;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  margin-bottom: 46px;
}

.label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #d8e1ff;
  background: rgba(109, 123, 255, 0.2);
  border: 1px solid rgba(143, 187, 255, 0.44);
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #f3f7ff;
  text-shadow: 0 0 24px rgba(80, 153, 255, 0.2);
}

.subtitle {
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(26, 36, 78, 0.88), rgba(16, 24, 54, 0.9));
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 206, 255, 0.64);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(109, 123, 255, 0.24) 0%,
    rgba(50, 215, 255, 0.1) 52%,
    transparent 100%
  );
  pointer-events: none;
}

.service-index {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  color: #e4ecff;
  background: rgba(116, 154, 255, 0.18);
  border: 1px solid rgba(158, 194, 255, 0.4);
  font-weight: 700;
}

.service-name {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.3;
  color: #eef3ff;
}

.service-desc {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #f8fbff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  width: fit-content;
  background: linear-gradient(100deg, #6273ff, #3ca7ff 55%, #31d8ff);
  box-shadow: 0 10px 20px rgba(63, 130, 255, 0.35);
  border: 1px solid rgba(174, 221, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(63, 130, 255, 0.46);
}

.service-link span {
  transition: transform 0.2s ease;
}

.service-link:hover span {
  transform: translateX(2px);
}

.footer {
  margin-top: 26px;
  text-align: center;
  color: #a7b7e9;
  font-size: 14px;
  letter-spacing: 0.04em;
}

code {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

@keyframes drift {
  from {
    transform: translateY(0px) scale(1);
  }
  to {
    transform: translateY(24px) scale(1.08);
  }
}

@media (max-width: 780px) {
  .container {
    padding-top: 52px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
