:root {
  color-scheme: dark;
  --background: #111214;
  --surface: #1b1d21;
  --border: #363a42;
  --text: #f7f7f8;
  --muted: #b5bac3;
  --red: #d92e46;
  --blue: #90b4ff;
  --button-red: #b91c37;
  font-family: Inter, system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 100%;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(ellipse 44rem 23rem at 70% 7%, #172236 0%, transparent 78%), var(--background);
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.wrap {
  width: min(67rem, calc(100% - 3rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-150%);
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--background);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #111214;
}

.header-row,
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-row {
  justify-content: space-between;
  min-height: 4.75rem;
  padding-block: 0.7rem;
}

.brand {
  font-weight: 750;
  text-decoration: none;
  line-height: 1.2;
}

.brand img {
  flex: none;
  display: block;
  object-fit: contain;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.62rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
}

.button-primary {
  background: var(--button-red);
  color: #fff;
}

.button-primary:hover {
  background: #a0162d;
}

.button-secondary {
  border-color: #505560;
  background: #25282e;
}

.button-secondary:hover {
  border-color: var(--blue);
  background: #2d3543;
}

main {
  padding-block: clamp(2.8rem, 7vw, 5.5rem) 4rem;
}

.intro {
  max-width: 36rem;
  border-left: 4px solid var(--red);
  padding-left: clamp(1rem, 3vw, 1.5rem);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.intro p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.8rem, 6vw, 3rem);
}

.service {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: start;
  gap: 0.82rem;
  padding: clamp(1.15rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
}

.service-primary {
  border-color: #914354;
  background: linear-gradient(145deg, #29202a, var(--surface) 76%);
}

h2 {
  font-size: clamp(1.38rem, 3.2vw, 1.75rem);
  line-height: 1.2;
}

.service p,
.dns p {
  color: var(--muted);
}

.service .button {
  margin-top: 0.45rem;
}

.dns {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}

.dns-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.6rem;
  margin-top: 1.1rem;
}

.dns-steps div {
  border-left: 2px solid #435b83;
  padding-left: 0.85rem;
}

.dns h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

@media (max-width: 39rem) {
  .wrap {
    width: calc(100% - 2rem);
  }

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

  .site-header .button {
    flex: none;
  }
}

@media (max-width: 23rem) {
  .brand img {
    width: 2rem;
    height: 2rem;
  }

  .brand {
    gap: 0.48rem;
    font-size: 0.92rem;
  }
}
