:root {
  --background-image: url("/static/img/000.jpg");
  --content-width: 40rem;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-text: #111111;
  --text: #f3f3f3;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  color: var(--text);
  font:
    1.05rem/1.6 "Segoe UI",
    Verdana,
    Tahoma,
    Geneva,
    sans-serif;
  background-color: #050505;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image: var(--background-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(5px);
  transform: scale(1.03);
}

body::after {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.68));
}

main,
footer {
  position: relative;
  z-index: 1;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  transition: color 200ms linear;
}

a:hover,
a:focus-visible {
  color: #ffe46a;
}

:focus-visible {
  outline: 2px solid #ffe46a;
  outline-offset: 3px;
}

main {
  padding: 0 0 1rem;
}

footer {
  padding: 2.5rem 1rem;
}

.services,
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero {
  text-align: center;
  border-top: 0.5rem solid rgba(255, 255, 255, 0.8);
  animation: topbar 8s linear infinite;
  padding-top: 1.5rem;
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: 0.08em;
}

.hero h1 a {
  text-decoration: none;
}

.tagline {
  margin: 1.25rem auto 0;
  max-width: 32rem;
  font-size: 1.2rem;
}

.services {
  display: grid;
  gap: 1rem;
  padding-top: 0.5rem;
}

.card {
  background: var(--surface);
  color: var(--surface-text);
  transition:
    background-color 200ms linear,
    transform 200ms ease;
}

.card:hover {
  transform: translateY(-2px);
}

.card p {
  margin: 0;
  min-height: 11rem;
  padding: 1.75rem 1.25rem 1.75rem 10.25rem;
  background-position: 1.5rem center;
  background-repeat: no-repeat;
  background-size: 7.25rem 7.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.card.engineers p {
  background-image: url("/static/img/engineers.png");
}

.card.engineers:hover {
  background-color: rgba(255, 255, 40, 0.72);
}

.card.designers p {
  background-image: url("/static/img/designers.png");
}

.card.designers:hover {
  background-color: rgba(255, 40, 255, 0.72);
}

.card.apps p {
  background-image: url("/static/img/apps.png");
}

.card.apps:hover {
  background-color: rgba(120, 255, 120, 0.72);
}

.card.support p {
  background-image: url("/static/img/support.png");
}

.card.support:hover {
  background-color: rgba(255, 120, 120, 0.72);
}

.card.quality p {
  background-image: url("/static/img/quality.png");
}

.card.quality:hover {
  background-color: rgba(120, 120, 255, 0.72);
}

footer {
  background: rgba(0, 0, 0, 0.62);
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

address {
  font-style: normal;
}

.contact-meta {
  margin: 0;
}

.contact-meta span {
  display: block;
}

.copyright {
  margin: 0;
  opacity: 0.85;
}

@keyframes topbar {
  0% {
    border-top-color: rgba(120, 120, 255, 0.8);
  }
  20% {
    border-top-color: rgba(255, 255, 40, 0.8);
  }
  40% {
    border-top-color: rgba(255, 40, 255, 0.8);
  }
  60% {
    border-top-color: rgba(120, 255, 120, 0.8);
  }
  80% {
    border-top-color: rgba(255, 120, 120, 0.8);
  }
  100% {
    border-top-color: rgba(120, 120, 255, 0.8);
  }
}

@media screen and (max-width: 700px) {
  body::before,
  body::after {
    position: absolute;
    min-height: 100%;
  }

  .card p {
    min-height: 10rem;
    padding: 7rem 1.25rem 1.75rem;
    background-position: center 1.25rem;
    background-size: 5rem 5rem;
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }

  .card,
  a {
    transition: none;
  }
}
