:root {
  --ink: #111719;
  --white: #ffffff;
  --muted-white: rgba(255, 255, 255, 0.78);
  --line-white: rgba(255, 255, 255, 0.2);
  --button-bg: rgba(255, 255, 255, 0.11);
  --button-bg-strong: rgba(255, 255, 255, 0.18);
  --blue: #2284ff;
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--ink);
}

body {
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-shell {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #dfe2e5;
}

.landing-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 33%, rgba(0, 0, 0, 0.78) 70%, rgba(0, 0, 0, 0.98) 100%);
}

.landing-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.05), transparent 36%);
  pointer-events: none;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 31%;
  display: block;
  filter: saturate(0.85) contrast(1.04);
  animation: bikeReveal 950ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.topbar {
  min-height: 42px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: grid;
  justify-items: stretch;
  color: var(--ink);
  animation: logoIn 620ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both;
}

.brand-title {
  color: #2b3235;
  font-family: var(--font-display);
  font-size: clamp(32px, 9.8vw, 40px);
  line-height: 0.82;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-text-stroke: 0;
  text-shadow: none;
  transform: skewX(-7deg);
  transform-origin: left center;
}

.brand-subtitle {
  margin-top: 6px;
  color: #2b3235;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: right;
}

.member-action {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(43, 50, 53, 0.94), rgba(17, 23, 25, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  animation: memberIn 620ms cubic-bezier(0.2, 0.8, 0.2, 1) 240ms both;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  padding-bottom: 34px;
}

.hero-copy {
  width: 100%;
  text-align: center;
}

.hero-copy h1 {
  max-width: 350px;
  margin: 0 auto;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(45px, 14vw, 58px);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.72);
  animation: headlineIn 760ms cubic-bezier(0.18, 0.85, 0.22, 1) 310ms both;
}

.hero-copy p {
  max-width: 270px;
  margin: 16px auto 0;
  color: var(--muted-white);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.72);
  animation: subcopyIn 680ms cubic-bezier(0.2, 0.8, 0.2, 1) 500ms both;
}

.gateway {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 16px;
}

.gateway-button {
  position: relative;
  grid-column: span 2;
  min-height: 56px;
  padding: 9px 7px 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(56, 63, 66, 0.95), rgba(16, 20, 22, 0.96)),
    #202629;
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -14px 24px rgba(0, 0, 0, 0.22),
    0 12px 26px rgba(0, 0, 0, 0.22);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  backdrop-filter: blur(18px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.gateway-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, rgba(34, 132, 255, 0.94), rgba(255, 122, 24, 0.9));
}

.gateway-button::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 11px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.13), transparent 36%);
  pointer-events: none;
}

.gateway-button .icon {
  position: relative;
  width: 18px;
  height: 18px;
  opacity: 0.94;
}

.gateway-button span {
  position: relative;
}

.gateway-button:nth-child(1) {
  animation-delay: 650ms;
}

.gateway-button:nth-child(2) {
  animation-delay: 720ms;
}

.gateway-button:nth-child(3) {
  animation-delay: 790ms;
}

.gateway-button:nth-child(4) {
  animation-delay: 860ms;
}

.gateway-button:nth-child(5) {
  animation-delay: 930ms;
}

.gateway-button:nth-child(6) {
  animation-delay: 1000ms;
}

.gateway-button:hover,
.gateway-button:active {
  transform: translateY(-1px);
  background:
    linear-gradient(145deg, rgba(68, 75, 78, 0.98), rgba(18, 23, 25, 0.98)),
    #202629;
  border-color: rgba(255, 255, 255, 0.22);
}

.gateway-button:focus-visible,
.social-links a:focus-visible,
.member-action:focus-visible {
  outline: 3px solid rgba(34, 132, 255, 0.38);
  outline-offset: 3px;
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 9px;
}

.social-links a {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-white);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(18px);
  animation: iconIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.social-links a:nth-child(1) {
  animation-delay: 1040ms;
}

.social-links a:nth-child(2) {
  animation-delay: 1100ms;
}

.social-links a:nth-child(3) {
  animation-delay: 1160ms;
}

.social-links .icon {
  width: 16px;
  height: 16px;
}

.route-toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(calc(100% - 28px), 402px);
  padding: 12px 14px;
  display: grid;
  gap: 2px;
  transform: translate(-50%, 18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(15, 17, 19, 0.94);
  color: var(--white);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.route-toast strong {
  font-size: 13px;
}

.route-toast span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.route-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-height: 760px) {
  .landing-shell {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand-title {
    font-size: clamp(30px, 9.4vw, 37px);
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .hero {
    padding-bottom: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 13vw, 50px);
  }

  .gateway {
    gap: 7px;
    padding-bottom: 12px;
  }

  .gateway-button {
    min-height: 49px;
  }
}

@keyframes bikeReveal {
  from {
    opacity: 0;
    transform: scale(1.045);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logoIn {
  from {
    opacity: 0;
    transform: translateX(-18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes memberIn {
  from {
    opacity: 0;
    transform: translateX(16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes headlineIn {
  from {
    opacity: 0;
    transform: translateX(34px) scale(1.08);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes subcopyIn {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes buttonIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes iconIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gateway-button {
  animation: buttonIn 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

@media (min-width: 768px) {
  body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background:
      radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.14), transparent 34%),
      #121719;
  }

  .landing-shell {
    min-height: min(900px, 100vh);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  }
}
