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

body {
  font-family: Inter, sans-serif;
  background: #02142f;
  color: white;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Grid background */
.background-grid {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(41,91,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,91,255,.08) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(31,102,255,.18) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(31,102,255,.10) 0%, transparent 70%);
  bottom: 100px;
  left: -150px;
  animation: orbFloat 15s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 140px 20px 100px;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #1f66ff;
  border: 1px solid rgba(31,102,255,.35);
  padding: 6px 20px;
  margin-bottom: 28px;
  text-transform: uppercase;
  animation: fadeDown .8s ease both;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 10vw, 100px);
  letter-spacing: 6px;
  line-height: 1;
  animation: fadeDown .8s .15s ease both;
}

.hero span {
  color: #1f66ff;
  position: relative;
}

.hero span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: #1f66ff;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineExpand 1s .9s ease forwards;
}

@keyframes lineExpand {
  to { transform: scaleX(1); }
}

.hero p {
  color: #8d9cb9;
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 16px;
  line-height: 1.8;
  animation: fadeDown .8s .3s ease both;
}

.hero-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1f66ff, transparent);
  margin: 40px auto 0;
  animation: fadeDown .8s .4s ease both;
}

/* Services grid */
.services-grid {
  width: min(1280px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 140px;
}

.service-card {
  position: relative;
  background: rgba(10, 28, 65, 0.6);
  border: 1px solid rgba(44, 110, 255, 0.15);
  border-radius: 16px;
  padding: 28px 24px;
  overflow: hidden;
  cursor: default;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .5s ease, transform .5s ease, border-color .3s ease, background .3s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  border-color: rgba(31, 102, 255, 0.5);
  background: rgba(15, 35, 80, 0.75);
  transform: translateY(-4px);
}

.service-card:hover .card-glow {
  opacity: 1;
}

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(31,102,255,.07) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  border-radius: 16px;
}

/* Icon box */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(31, 102, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: #5b9aff;
}

.card-icon.green {
  background: rgba(16, 185, 129, 0.2);
}

.card-icon.green svg {
  stroke: #34d399;
}

.card-icon.orange {
  background: rgba(245, 158, 11, 0.2);
}

.card-icon.orange svg {
  stroke: #fbbf24;
}

.card-icon.purple {
  background: rgba(139, 92, 246, 0.2);
}

.card-icon.purple svg {
  stroke: #a78bfa;
}

/* Card text */
.service-card h3 {
  font-family: Inter, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.3;
}

.card-tag {
  font-size: 12px;
  font-weight: 500;
  color: #4d8fff;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.card-tag.green { color: #34d399; }
.card-tag.orange { color: #fbbf24; }

.card-desc {
  color: #7a8fad;
  line-height: 1.75;
  font-size: 13.5px;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
    width: 92%;
  }
}