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

html {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background-color: #FFFFFF;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #FFFFFF;
  color: #232426;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
}

.coming-soon {
  grid-row: 2;
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Official RC2 horizontal logo (710:130 aspect ratio preserved) */
.brand-logo {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
  margin-bottom: 26px;
}

.coming-soon-text {
  margin: 0 0 32px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: #3D4043;
}

/* Official 5-icon row */
.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: transparent;
  color: #4A4D52;
  text-decoration: none;
  transition:
    color 165ms ease,
    background-color 165ms ease,
    transform 165ms ease;
}

.social-icon {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.social-link:hover {
  color: #111214;
  background-color: rgba(35, 36, 38, 0.06);
  transform: scale(1.05);
}

.social-link:active {
  color: #111214;
  background-color: rgba(35, 36, 38, 0.1);
  transform: scale(0.95);
}

.social-link:focus-visible {
  color: #111214;
  background-color: rgba(35, 36, 38, 0.06);
  outline: 2px solid #232426;
  outline-offset: 2px;
}

.copyright {
  grid-row: 3;
  align-self: end;
  margin: 0;
  padding: 16px 24px 24px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #71747A;
  text-align: center;
}

@media (max-width: 640px) {
  .brand-logo {
    width: 240px;
    margin-bottom: 20px;
  }

  .coming-soon-text {
    margin-bottom: 24px;
    font-size: 15px;
  }

  .social-row {
    gap: 10px;
  }

  .social-link {
    width: 52px;
    height: 52px;
  }

  .social-icon {
    width: 30px;
    height: 30px;
  }

  .copyright {
    padding: 16px 20px 20px;
  }
}

/* Very narrow viewports (e.g. 320px / folded outer screen) */
@media (max-width: 360px) {
  .coming-soon {
    padding: 20px 16px;
  }

  .brand-logo {
    width: min(220px, 72vw);
    margin-bottom: 18px;
  }

  .coming-soon-text {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .social-row {
    gap: 6px;
  }

  .social-link {
    width: 44px;
    height: 44px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }
}

/* Short-height viewports (e.g. 844x390 mobile landscape, 1280x320) */
@media (max-height: 460px) {
  .coming-soon {
    padding: 16px 24px;
  }

  .brand-logo {
    margin-bottom: 16px;
  }

  .coming-soon-text {
    margin-bottom: 18px;
  }

  .copyright {
    padding: 12px 24px 16px;
  }
}

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

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