:root {
  --blue: #123546;
  --blue-dark: #0b2834;
  --red: #c51d25;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, .72);
  --border: rgba(255, 255, 255, .16);
}

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

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--blue);
  color: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.hub-page {
  min-height: 100vh;
  overflow: hidden;
}

.hub {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(rgba(18, 53, 70, .86), rgba(18, 53, 70, .92)),
    url("assets/images/background-hero.png") center / cover no-repeat;
}

.hub::before {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: .025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -3%); }
  30% { transform: translate(2%, 2%); }
  50% { transform: translate(-1%, 3%); }
  70% { transform: translate(3%, -1%); }
  90% { transform: translate(-3%, 1%); }
}

.hub__glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .28;
  pointer-events: none;
}

.hub__glow--one {
  top: -120px;
  right: -80px;
  background: var(--red);
}

.hub__glow--two {
  left: -130px;
  bottom: -110px;
  background: #2e6774;
}

.hub__panel {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(11, 40, 52, .72);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
  animation: panelIn .65s ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hub__logo {
  width: min(174px, 66%);
  height: auto;
  margin: 0 auto clamp(26px, 5vw, 38px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .25));
}

.hub__actions {
  display: grid;
  gap: 12px;
}

.hub-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .09);
  color: var(--white);
  transition: transform .28s ease, border-color .28s ease, background .28s ease, box-shadow .28s ease;
}

.hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(197, 29, 37, .32), transparent 56%);
  opacity: 0;
  transition: opacity .28s ease;
}

.hub-card span,
.hub-card strong {
  position: relative;
  z-index: 1;
}

.hub-card span {
  font-size: clamp(15px, 3.4vw, 18px);
  font-weight: 900;
  line-height: 1.15;
}

.hub-card strong {
  flex: 0 0 auto;
  min-width: 78px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--red);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.hub-card:hover,
.hub-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .22);
  outline: none;
}

.hub-card:hover::before,
.hub-card:focus-visible::before {
  opacity: 1;
}

@media (max-width: 560px) {
  .hub {
    padding: 18px;
  }

  .hub__panel {
    border-radius: 18px;
  }

  .hub-card {
    align-items: center;
    flex-direction: row;
  }

  .hub-card strong {
    width: auto;
  }
}

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