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

:root {
  --bg:             hsl(220 20% 7%);
  --fg:             hsl(220 10% 90%);
  --card-bg:        hsl(220 18% 10%);
  --muted:          hsl(220 10% 50%);
  --border:         hsl(220 15% 18%);
  --accent:         hsl(210 100% 60%);
  --radius:         0.75rem;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100svh;
  overflow-x: hidden;
}

/* Grid background */
.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(hsl(210 100% 60% / 0.3) 1px, transparent 1px),
    linear-gradient(90deg, hsl(210 100% 60% / 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Glow orb */
.orb {
  pointer-events: none;
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(210 100% 60%) 0%, transparent 70%);
  opacity: 0.07;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 40px));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
  will-change: transform;
}

/* Main layout */
main {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

/* Fade-in animation */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fade-in 0.6s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

/* Hero */
.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.sro {
  font-weight: 400;
  font-size: 0.45em;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 0.5rem;
}

.tagline {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

/* Services */
.services {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .services { flex-direction: row; gap: 1.5rem; }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(220 15% 18% / 0.5);
  background: hsl(220 18% 10% / 0.5);
  backdrop-filter: blur(8px);
  cursor: default;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.2s ease,
              background 0.2s ease;
}

@media (min-width: 640px) { .card { width: 14rem; } }

.card:hover {
  transform: translateY(-4px);
  border-color: hsl(210 100% 60% / 0.4);
  background: hsl(220 18% 10% / 0.8);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.card-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Divider */
.divider {
  width: 4rem;
  height: 1px;
  background: var(--border);
  transform-origin: center;
  animation: scale-in 0.6s ease-out forwards;
  animation-delay: var(--delay, 0s);
  transform: scaleX(0);
  opacity: 1;
}

@keyframes scale-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Contact */
.contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.contact .arrow { width: 0.75rem; height: 0.75rem; opacity: 0; transition: opacity 0.2s ease; }

.contact:hover {
  color: var(--fg);
  transform: scale(1.03);
}

.contact:hover .arrow { opacity: 1; }
