:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101214;
  color: #f7f8f8;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  background:
    linear-gradient(#202429 1px, transparent 1px),
    linear-gradient(90deg, #202429 1px, transparent 1px),
    #101214;
  background-size: 48px 48px;
}

.portal {
  width: min(920px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(32px, 8vh, 88px) 0 28px;
  display: flex;
  flex-direction: column;
}

.portal__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid #343a40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid #f7f8f8;
  font-size: 22px;
  font-weight: 800;
}

.brand__name {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  font-weight: 750;
}

.portal__label {
  margin: 0 0 4px;
  color: #929ba3;
  font-size: 12px;
  font-weight: 700;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: clamp(40px, 9vh, 96px) 0;
}

.service {
  min-height: 184px;
  padding: 24px;
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  align-items: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
  border: 1px solid #343a40;
  border-radius: 8px;
  background: #171a1d;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.service:hover,
.service:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: #1c2024;
  outline: none;
}

.service--cloud {
  --accent: #4c9fff;
}

.service--nas {
  --accent: #47c98b;
}

.service__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 16%, #171a1d);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, #343a40);
}

.service__icon img {
  width: 27px;
  height: 27px;
  filter: brightness(0) invert(1);
}

.service__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.service__content strong {
  font-size: 24px;
  line-height: 1.1;
}

.service__content span {
  overflow-wrap: anywhere;
  color: #aeb6bd;
  font-size: 14px;
}

.service__arrow {
  color: var(--accent);
  font-size: 25px;
  line-height: 1;
}

footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #818a92;
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #47c98b;
  box-shadow: 0 0 0 4px rgb(71 201 139 / 12%);
}

@media (max-width: 680px) {
  .portal {
    width: min(100% - 28px, 520px);
    padding-top: 28px;
  }

  .services {
    grid-template-columns: 1fr;
    margin: 38px 0;
  }

  .service {
    min-height: 132px;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service {
    transition: none;
  }
}
