@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/public-sans-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f6f4ef;
  --paper-bright: #fffef9;
  --ink: #0b0c11;
  --muted: #62636b;
  --line: rgba(11, 12, 17, 0.14);
  --cyan: #08a9ef;
  --blue: #2676ff;
  --violet: #7b4dff;
  --pink: #f23aa9;
  --coral: #ff6548;
  --amber: #ffb80f;
  --green: #4dcc86;
  --font: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --gutter: clamp(1.2rem, 4vw, 4.5rem);
  --max-width: 94rem;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  color-scheme: light;
  background: var(--paper);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

::selection {
  color: var(--ink);
  background: rgba(8, 169, 239, 0.32);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.cloud-gateway {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.cloud-gateway::before,
.cloud-gateway::after {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  content: '';
  pointer-events: none;
  filter: blur(5rem);
}

.cloud-gateway::before {
  top: -13rem;
  right: -10rem;
  width: min(33rem, 70vw);
  aspect-ratio: 1;
  opacity: 0.18;
  background: conic-gradient(
    from 30deg,
    var(--cyan),
    var(--blue),
    var(--violet),
    var(--pink),
    var(--coral),
    var(--amber),
    var(--cyan)
  );
}

.cloud-gateway::after {
  bottom: -18rem;
  left: -15rem;
  width: min(34rem, 78vw);
  aspect-ratio: 1;
  opacity: 0.13;
  background: radial-gradient(circle, var(--cyan), transparent 68%);
}

.brain-watermark {
  position: absolute;
  z-index: -1;
  top: clamp(-5rem, -4vw, -1rem);
  right: clamp(-24rem, -15vw, -9rem);
  width: clamp(44rem, 61vw, 69rem);
  height: auto;
  opacity: 0.13;
  pointer-events: none;
  user-select: none;
}

.gateway-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
  grid-template-rows: 1fr auto;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  width: min(100%, var(--max-width));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 7.5rem) var(--gutter) 1.5rem;
}

.gateway-intro {
  max-width: 47rem;
}

.eyebrow,
.destination-index,
.destination-label,
.gateway-footer {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 2.2rem;
  color: #555760;
  font-size: 0.7rem;
  font-weight: 700;
}

.eyebrow span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.28rem rgba(77, 204, 134, 0.16);
}

.cloud-wordmark {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.gateway-intro h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(4rem, 7.5vw, 8.25rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.spectrum-text {
  color: transparent;
  background: linear-gradient(
    92deg,
    var(--cyan) 5%,
    var(--blue) 27%,
    var(--violet) 48%,
    var(--pink) 70%,
    var(--coral) 88%,
    var(--amber)
  );
  background-clip: text;
  -webkit-background-clip: text;
}

.intro-copy {
  max-width: 40rem;
  margin: 2rem 0 0;
  color: #4b4d55;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.65;
}

.destination-list {
  align-self: stretch;
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.destination {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: center;
  min-height: 15.5rem;
  padding: clamp(2rem, 4vw, 3.4rem) clamp(1rem, 2vw, 1.7rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.destination::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  content: '';
  background: linear-gradient(to bottom, var(--cyan), var(--violet), var(--coral), var(--amber));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 220ms ease;
}

.destination::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  opacity: 0;
  background: rgba(255, 254, 249, 0.72);
  transition: opacity 180ms ease;
}

.destination:hover,
.destination:focus-visible {
  transform: translateX(4px);
}

.destination:hover::before,
.destination:focus-visible::before {
  transform: scaleY(1);
}

.destination:hover::after,
.destination:focus-visible::after {
  opacity: 1;
}

.destination-index {
  align-self: start;
  padding-top: 0.35rem;
  color: var(--muted);
  font-size: 0.67rem;
}

.destination-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.destination-label {
  margin-bottom: 1.05rem;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.destination-name {
  width: fit-content;
  font-size: clamp(2.5rem, 4vw, 4.85rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.destination-description {
  max-width: 30rem;
  margin-top: 1rem;
  color: #555760;
  font-size: 0.97rem;
  line-height: 1.55;
}

.destination-arrow {
  display: grid;
  width: clamp(3.3rem, 5vw, 4.5rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.destination:hover .destination-arrow,
.destination:focus-visible .destination-arrow {
  color: var(--ink);
  background: transparent;
  transform: rotate(45deg);
}

.gateway-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
}

@media (max-width: 59rem) {
  .brain-watermark {
    top: -7rem;
    right: -21rem;
    width: 55rem;
    opacity: 0.1;
  }

  .gateway-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: clamp(3.5rem, 8vw, 5rem);
    align-items: start;
    padding-top: clamp(4rem, 10vw, 7rem);
  }

  .gateway-intro {
    max-width: 52rem;
  }

  .gateway-intro h1 {
    max-width: none;
  }

  .destination-list {
    width: 100%;
  }

  .gateway-footer {
    grid-column: 1;
  }
}

@media (max-width: 40rem) {
  .cloud-gateway::before {
    opacity: 0.12;
  }

  .brain-watermark {
    top: -1rem;
    right: -22rem;
    width: 45rem;
    opacity: 0.075;
  }

  .gateway-shell {
    gap: 3.5rem;
    padding-bottom: 1.2rem;
  }

  .eyebrow {
    margin-bottom: 1.7rem;
  }

  .gateway-intro h1 {
    font-size: clamp(3.55rem, 18vw, 5.4rem);
  }

  .intro-copy {
    margin-top: 1.5rem;
  }

  .destination {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    min-height: 13rem;
    padding: 2rem 0.15rem;
  }

  .destination-index {
    display: none;
  }

  .destination-name {
    font-size: clamp(2.55rem, 12.5vw, 3.65rem);
  }

  .destination-arrow {
    width: 3.25rem;
  }
}

@media (max-width: 24rem) {
  .destination {
    grid-template-columns: 1fr;
  }

  .destination-arrow {
    display: none;
  }
}

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