/* Gateway landing page: "Choose your side" */

:root {
  --gw-ink: #05070d;
  --gw-blue: #2f6bff;
  --gw-deep: #0a1f66;
  --gw-mute: #9fb4e8;
}

body.gw-body {
  margin: 0;
  background: var(--gw-ink);
}

.gw {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--gw-ink);
  color: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

.gw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
}

.gw-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.gw-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.gw-login {
  color: var(--gw-mute);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.gw-login:hover {
  color: #ffffff;
}

.gw-title {
  text-align: center;
  padding: 16px 24px 40px;
}

.gw-title h1 {
  margin: 0;
  font-family: "Unbounded", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.gw-title p {
  margin: 18px auto 0;
  max-width: 44ch;
  color: var(--gw-mute);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
}

.gw-doors {
  flex: 1;
  display: flex;
  min-height: 480px;
}

.gw-door {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
  color: #ffffff;
  text-decoration: none;
  transition: flex 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gw-door:hover,
.gw-door:focus-visible {
  flex: 1.45;
}

.gw-door:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -6px;
}

.gw-door h2 {
  margin: 0 0 10px;
  font-family: "Unbounded", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.gw-promise {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  line-height: 1.45;
}

.gw-facts {
  list-style: none;
  margin: 26px 0 28px;
  padding: 0;
  max-width: 440px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.gw-facts li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}

.gw-go {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.25s, color 0.25s;
}

.gw-door:hover .gw-go,
.gw-door:focus-visible .gw-go {
  background: #ffffff;
  color: var(--gw-ink);
}

/* Left door: the Academy, black with a faint chart grid */

.gw-door--academy {
  background: var(--gw-ink);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.gw-door--academy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(47, 107, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 255, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}

.gw-chart {
  position: absolute;
  left: 0;
  right: 0;
  top: 3%;
  width: 100%;
  height: 30%;
  z-index: -1;
  animation: gw-reveal 2.4s cubic-bezier(0.5, 0, 0.2, 1) 0.3s both;
}

@keyframes gw-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Right door: JTL Auto, electric blue with signal rings */

.gw-door--auto {
  background: linear-gradient(150deg, #1b4fe0 0%, #2f6bff 45%, var(--gw-deep) 100%);
}

.gw-door--auto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-radial-gradient(
    circle at 76% 26%,
    rgba(255, 255, 255, 0.2) 0 2px,
    transparent 2px 54px
  );
  -webkit-mask-image: radial-gradient(circle at 76% 26%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 76% 26%, #000 0%, transparent 62%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.gw-door--auto:hover::before {
  transform: scale(1.12);
}

.gw-door--auto::after {
  content: "";
  position: absolute;
  left: 76%;
  top: 26%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25), 0 0 40px 10px rgba(255, 255, 255, 0.55);
  z-index: -1;
}

.gw-foot {
  padding: 16px 24px;
  text-align: center;
  color: #6f82b3;
  font-size: 12px;
}

.gw-jtl { display: inline; }
.gw-go-short { display: none; }

/* Phones: both sides sit next to each other and the whole page fits on
   one screen, so nobody has to scroll to choose. */
@media (max-width: 820px) {
  .gw {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }

  .gw-top { padding: 12px 16px; }
  .gw-brand img { width: 32px; height: 32px; }

  .gw-title { padding: 4px 16px 18px; }
  .gw-title h1 { font-size: clamp(28px, 8.6vw, 44px); }
  .gw-title p { display: none; }

  .gw-doors { flex-direction: row; min-height: 0; }

  .gw-door,
  .gw-door:hover,
  .gw-door:focus-visible {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 18px 14px 20px;
  }

  .gw-door--academy {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
  }

  .gw-door h2 { font-size: clamp(22px, 6.6vw, 30px); }

  .gw-jtl {
    display: block;
    margin-bottom: 4px;
    font-size: 0.55em;
    letter-spacing: 0.06em;
    opacity: 0.75;
  }

  .gw-promise { max-width: none; font-size: 15px; line-height: 1.4; }
  .gw-facts { display: none; }

  .gw-go {
    width: 100%;
    justify-content: center;
    margin-top: 18px;
    padding: 15px 10px;
  }

  .gw-go-long { display: none; }
  .gw-go-short { display: inline; }

  .gw-door--auto::before {
    background: repeating-radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 40px);
    -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 65%);
    mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 65%);
  }

  .gw-door--auto::after { left: 50%; top: 20%; }

  .gw-foot { padding: 10px 16px 12px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .gw-door,
  .gw-door--auto::before,
  .gw-go { transition: none; }
  .gw-chart { animation: none; }
}
