:root {
  color-scheme: dark;
  --red-950: #260506;
  --red-900: #450a0a;
  --red-800: #7f1d1d;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-400: #f87171;
  --red-200: #fecaca;
  --surface: #130708;
  --surface-raised: #210b0d;
  --text: #fff7f7;
  --muted: #e8c7c9;
  --border: rgb(248 113 113 / 28%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--red-950);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgb(185 28 28 / 35%), transparent 42rem),
    linear-gradient(180deg, #250708 0%, var(--surface) 54%, #090405 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  background: #fff;
  color: var(--red-900);
  font-weight: 800;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.16;
}

.ambient-one {
  top: 20%;
  left: -12rem;
  background: var(--red-600);
}

.ambient-two {
  right: -12rem;
  bottom: 5%;
  background: var(--red-400);
}

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

.hero {
  display: grid;
  justify-items: center;
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6.5rem) 0 3.5rem;
  text-align: center;
}

.hero-logo {
  width: clamp(13rem, 30vw, 20rem);
  height: auto;
  filter: drop-shadow(0 1rem 2rem rgb(0 0 0 / 42%));
}

.eyebrow {
  margin: 1.6rem 0 0.75rem;
  color: var(--red-400);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
}

main {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

h2 {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: flex;
  min-height: 29rem;
  padding: 1.5rem;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, rgb(55 15 18 / 92%), rgb(20 8 9 / 96%));
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 22%);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  border-color: var(--red-400);
  box-shadow: 0 1.3rem 3.4rem rgb(0 0 0 / 34%);
  transform: translateY(-0.3rem);
}

.service-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.service-card img {
  width: 10rem;
  height: 10rem;
  margin: 0 auto 1.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0.8rem 1.2rem rgb(0 0 0 / 30%));
}

.card-copy {
  display: flex;
  flex-direction: column;
}

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

.card-host {
  margin-top: 0.3rem;
  color: var(--red-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

.card-description {
  margin-top: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

.card-action {
  display: flex;
  margin-top: auto;
  padding-top: 1.4rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 750;
}

.card-action span {
  color: var(--red-400);
  font-size: 1.4rem;
}

footer {
  width: min(100% - 2rem, 72rem);
  margin: 3rem auto 0;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 24rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
