:root {
  --bg: #0f1419;
  --bg-card: #1a2332;
  --bg-card-hover: #243044;
  --text: #e8edf4;
  --text-muted: #8b9cb3;
  --accent: #4da3ff;
  --accent-glow: rgba(77, 163, 255, 0.25);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(77, 163, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(120, 80, 200, 0.1), transparent),
    var(--bg);
  line-height: 1.5;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  flex: 1;
}

.loading,
.error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.error {
  color: #f87171;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(77, 163, 255, 0.35);
  box-shadow: 0 12px 40px var(--accent-glow);
  outline: none;
}

.service-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.service-icon {
  font-size: 2rem;
  line-height: 1;
}

.service-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.service-description {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  flex: 1;
}

.service-link {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

footer p {
  margin: 0;
}

@media (max-width: 480px) {
  .page {
    padding-top: 2rem;
  }

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