:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1c2029;
  background: #f7f9ff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

html {
  min-width: 280px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 85% 66% at 3% 108%, rgb(215 218 255 / 72%), transparent 72%),
    radial-gradient(ellipse 75% 68% at 103% 106%, rgb(215 227 255 / 66%), transparent 73%),
    radial-gradient(ellipse 68% 62% at 50% 30%, #fff 8%, rgb(255 255 255 / 0%) 100%),
    linear-gradient(180deg, #fafcff 0%, #f8faff 54%, #f0f4ff 100%);
}

.portal {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(2rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
}

.portal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  width: 100%;
  padding-bottom: 2rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 6.2vw, 5.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.055em;
  text-align: center;
  text-wrap: balance;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.125rem;
  max-width: 100%;
}

.glass-link {
  --glass-tint: 148 190 243;
  --icon-color: #456180;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8125rem;
  width: 16rem;
  max-width: 100%;
  min-height: 4.75rem;
  padding: 1.125rem 1.5rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 96%);
  border-radius: 999px;
  color: inherit;
  background:
    radial-gradient(ellipse 65% 90% at 18% 0%, rgb(255 255 255 / 96%), transparent 80%),
    radial-gradient(ellipse 50% 80% at 95% 110%, rgb(var(--glass-tint) / 27%), transparent 85%),
    linear-gradient(180deg, rgb(255 255 255 / 76%), rgb(255 255 255 / 26%) 48%, rgb(var(--glass-tint) / 19%));
  box-shadow:
    inset 0 2px 2px #fff,
    inset 0 -3px 4px rgb(255 255 255 / 92%),
    inset 3px 0 7px rgb(255 255 255 / 88%),
    inset -3px 0 7px rgb(var(--glass-tint) / 24%),
    0 0 0 1px rgb(var(--glass-tint) / 30%),
    0 3px 5px -3px rgb(65 83 125 / 22%),
    0 12px 22px -12px rgb(var(--glass-tint) / 56%),
    0 22px 40px -20px rgb(87 105 149 / 22%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  backdrop-filter: blur(24px) saturate(165%);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.025em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease, background-color 320ms ease;
}

.glass-link--cloud {
  --glass-tint: 151 209 199;
  --icon-color: #4d7568;
}

.glass-link--vault {
  --glass-tint: 179 165 231;
  --icon-color: #655c7e;
}

.glass-link::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: inherit;
  background:
    radial-gradient(ellipse 16% 46% at 7% 20%, rgb(255 255 255 / 95%), transparent),
    radial-gradient(ellipse 16% 46% at 94% 88%, rgb(255 255 255 / 90%), transparent);
  box-shadow: inset 0 1px 2px #fff, inset 0 -2px 4px rgb(var(--glass-tint) / 22%);
  pointer-events: none;
}

.glass-link::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 100px 70px at var(--light-x, 50%) var(--light-y, 50%), rgb(255 255 255 / 95%), rgb(255 255 255 / 42%) 30%, transparent 75%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.glass-link__icon {
  flex: 0 0 auto;
  width: 1.875rem;
  height: 1.875rem;
  color: var(--icon-color);
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
  .glass-link:hover {
    transform: translateY(-4px) scale(1.015);
    background-color: rgb(var(--glass-tint) / 9%);
    box-shadow:
      inset 0 1px 2px #fff,
      inset 0 -2px 4px rgb(255 255 255 / 95%),
      inset 3px 0 7px #fff,
      inset -3px 0 7px rgb(var(--glass-tint) / 30%),
      0 0 0 1px rgb(var(--glass-tint) / 42%),
      0 4px 6px -4px rgb(65 83 125 / 18%),
      0 18px 28px -12px rgb(var(--glass-tint) / 58%),
      0 28px 46px -20px rgb(87 105 149 / 27%);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .glass-link[data-light]::after {
    opacity: 1;
  }
}

.glass-link:focus-visible {
  outline: 2px solid #5469a4;
  outline-offset: 6px;
}

.glass-link:active {
  transform: translateY(1px) scale(0.975);
  transition-duration: 100ms;
}

@media (max-width: 600px) {
  .portal__content {
    gap: 2.125rem;
  }

  .services {
    width: 100%;
    max-width: 25rem;
    gap: 0.75rem;
  }

  .glass-link {
    width: auto;
    flex: 1 1 8.25rem;
    min-height: 4rem;
    gap: 0.625rem;
    padding: 1rem 0.875rem;
    font-size: 1rem;
  }

  .glass-link__icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-link,
  .glass-link::after {
    transition: none;
  }

  .glass-link:hover,
  .glass-link:active {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  .glass-link {
    border-color: #626c84;
    background: #f8faff;
  }

  .glass-link::before,
  .glass-link::after {
    display: none;
  }
}

@media (forced-colors: active) {
  .glass-link {
    border: 1px solid ButtonText;
  }

  .glass-link:focus-visible {
    outline-color: Highlight;
  }

  .glass-link__icon {
    color: inherit;
  }
}
