
:root {
  --ink: #f5f5f5;
  --muted: #aebdb4;
  --paper: #000000;
  --white: #ffffff;
  --blue: #44b78b;
  --blue-deep: #237a4b;
  --teal: #237a4b;
  --coral: #aebdb4;
  --gold: #dce5df;
  --lavender: #1f2923;
  --line: #333333;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 12%, rgba(68, 183, 139, 0.12), transparent 28rem),
    radial-gradient(circle at 91% 86%, rgba(68, 183, 139, 0.08), transparent 31rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", Arial, sans-serif;
}

.screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  overflow: hidden;
}

.screen::before {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(68, 183, 139, 0.18);
  border-radius: 50%;
  content: "";
}

.intro {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(42px, 4.8vw, 78px);
}

.brand {
  position: absolute;
  top: clamp(28px, 4vw, 58px);
  left: clamp(42px, 4.8vw, 78px);
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: var(--ink);
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(68, 183, 139, 0.26);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-mark svg path:nth-child(2) {
  fill: var(--blue-deep);
}

.eyebrow {
  margin: 0 0 17px;
  line-height: 2.0;
  padding-top: 2px;
  overflow: visible;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(56px, 4.8vw, 72px);
  font-weight: 790;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

h1 .accent {
  display: inline-block;
  margin-top: 20px;
  color: var(--blue);
}

h1 .invite {
  display: inline-block;
  margin-top: 36px;
  color: var(--ink);
  font-size: 0.56em;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.signin {
  display: inline-flex;
  text-decoration: none;
  width: min(100%, 260px);
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 17px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 16px 28px rgba(68, 183, 139, 0.24);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 760;
  margin-top: 38px;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.signin:hover {
  background: var(--blue-deep);
  box-shadow: 0 18px 34px rgba(68, 183, 139, 0.3);
  transform: translateY(-2px);
}

.signin:focus-visible {
  outline: 4px solid rgba(68, 183, 139, 0.32);
  outline-offset: 4px;
}

.visual {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 80px 60px 50px 20px;
  place-items: center;
}

.community-graphic {
  --orbit: clamp(190px, 19vw, 265px);
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.48));
}

.community-graphic::before,
.community-graphic::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.community-graphic::before {
  inset: 10%;
  border: 1.5px dashed rgba(68, 183, 139, 0.34);
  animation: orbit 60s linear infinite;
}

.community-graphic::after {
  inset: 25%;
  border: 1px solid rgba(68, 183, 139, 0.24);
}

@keyframes orbit {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-graphic::before {
    animation: none;
  }
}

.globe-card {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 43%;
  aspect-ratio: 1 / 1;
  place-items: center;
  border: 11px solid rgba(51, 51, 51, 0.98);
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 40%, rgba(255, 255, 255, 0.4), transparent 18%),
    linear-gradient(145deg, #44b78b 8%, #237a4b 55%, #165c35 100%);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.globe-lines {
  position: absolute;
  inset: 14%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.globe-lines::before,
.globe-lines::after {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  content: "";
}

.globe-lines::before {
  transform: scaleX(0.48);
}

.globe-lines::after {
  transform: scaleX(0.76);
}

.globe-line-horizontal {
  position: absolute;
  top: 50%;
  left: 12%;
  width: 76%;
  height: 2px;
  background: rgba(255, 255, 255, 0.48);
  transform: translateY(-50%);
}

.globe-latitude {
  position: absolute;
  left: 14%;
  width: 72%;
  height: 21%;
  border: 2px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
}

.latitude-north {
  top: 27%;
}

.latitude-south {
  bottom: 27%;
}

.globe-card .core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 30%;
  aspect-ratio: 1 / 1;
  place-items: center;
  border-radius: 20px 20px 20px 6px;
  background: var(--white);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.34);
}

.core svg {
  width: 54%;
  height: 54%;
}

.core svg path:first-child {
  fill: var(--blue);
}

.language {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: flex;
  min-width: 126px;
  min-height: 70px;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border: 1px solid rgba(68, 183, 139, 0.42);
  border-radius: 20px 20px 20px 7px;
  background: rgba(31, 41, 35, 0.92);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(calc(-1 * var(--orbit)))
    rotate(calc(-1 * var(--angle)));
}

.avatar {
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.avatar.a1 {
  background: linear-gradient(145deg, #ffd69f 48%, #a56e45 49%);
}

.avatar.a2 {
  background: linear-gradient(145deg, #bfe5ff 48%, #2f5679 49%);
}

.avatar.a3 {
  background: linear-gradient(145deg, #f4b49c 48%, #55312d 49%);
}

.avatar.a4 {
  background: linear-gradient(145deg, #ffe183 48%, #84522e 49%);
}

.avatar.a5 {
  background: linear-gradient(145deg, #c8afff 48%, #36457c 49%);
}

.language-copy {
  display: grid;
  gap: 2px;
}

.language strong {
  color: var(--ink);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 740;
  line-height: 1.15;
  white-space: nowrap;
}

.language small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lang-one {
  --angle: 0deg;
}

.lang-two {
  --angle: 72deg;
}

.lang-three {
  --angle: 144deg;
}

.lang-four {
  --angle: 216deg;
}

.lang-five {
  --angle: 288deg;
}

.spark {
  position: absolute;
  z-index: 1;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(220, 229, 223, 0.16);
}

.spark.s1 {
  top: 16%;
  left: 23%;
}

.spark.s2 {
  top: 19%;
  right: 16%;
  width: 9px;
  height: 9px;
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(174, 189, 180, 0.14);
}

.spark.s3 {
  right: 24%;
  bottom: 9%;
  width: 10px;
  height: 10px;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(35, 122, 75, 0.2);
}

@media (max-width: 1050px) {
  .screen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro {
    padding-inline: 48px;
  }

  .brand {
    left: 48px;
  }

  .visual {
    padding-right: 28px;
  }

  .language {
    min-width: 110px;
    padding: 10px 12px;
  }

  .avatar {
    width: 37px;
    height: 37px;
  }
}

@media (max-width: 900px) {
  .screen {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
  }

  .intro {
    order: 2;
    min-height: auto;
    padding: 12px 24px calc(28px + env(safe-area-inset-bottom));
  }

  .brand {
    top: calc(22px + env(safe-area-inset-top));
    left: calc(22px + env(safe-area-inset-left));
    font-size: 17px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
    border-radius: 11px;
  }

  h1 {
    max-width: 340px;
    font-size: 40px;
    line-height: 0.96;
  }

  h1 .invite {
    margin-top: 15px;
    font-size: 0.66em;
    line-height: 1.08;
  }

  .signin {
    width: 100%;
    min-height: 55px;
    margin-top: 24px;
    border-radius: 15px;
  }

  .visual {
    order: 1;
    width: 100%;
    min-height: 0;
    height: 47vh;
    height: 47dvh;
    padding: 66px 22px 0;
  }

  .community-graphic {
    --orbit: clamp(118px, 34vw, 150px);
    width: min(100%, 420px);
    max-height: 42vh;
    max-height: 42dvh;
  }

  .globe-card {
    width: 42%;
    border-width: 7px;
  }

  .language {
    min-width: 96px;
    min-height: 54px;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 15px 15px 15px 6px;
  }

  .language strong {
    font-size: 13px;
  }

  .language small {
    display: none;
  }

  .avatar {
    width: 32px;
    height: 32px;
    border-width: 2px;
  }

  .eyebrow {
    padding-top: 60px;
    font-size: 15px;
    overflow: visible;
  }

}

@media (max-width: 400px) and (max-height: 760px) {
  .visual {
    height: 42vh;
    height: 42dvh;
    padding-top: 75px;
  }

  .community-graphic {
    --orbit: 112px;
    max-height: 36vh;
    max-height: 36dvh;
  }

  h1 {
    font-size: 38px;
  }

  h1 .invite {
    margin-top: 12px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .screen {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .intro {
    order: 1;
    min-height: 100dvh;
    padding: 54px 28px 22px;
  }


  .visual {
    order: 2;
    height: 100dvh;
    min-height: 100dvh;
    padding: 24px 24px 16px 0;
  }

  .community-graphic {
    width: min(100%, 420px);
    max-height: 90dvh;
  }

  h1 {
    max-width: 360px;
    font-size: clamp(34px, 5.5vw, 46px);
  }

  h1 .invite {
    margin-top: 12px;
  }

  .signin {
    width: min(100%, 240px);
    min-height: 50px;
    margin-top: 19px;
  }
}

/* Keep this at the very bottom of the CSS */
@media (min-width: 901px) and (max-width: 1280px) {
  .screen {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

  }

  .intro,
  .visual {
    width: 100%;
    min-width: 0;
    padding-left: clamp(28px, 4vw, 52px);
    padding-right: clamp(28px, 4vw, 52px);
  }

  .intro {
    align-items: center;
    text-align: center;
  }

  .intro > * {
    margin-left: auto;
    margin-right: auto;
  }

  .visual {
    place-items: center;
  }

  .community-graphic {
    margin: auto;
  }
}

h1 {
  white-space: nowrap;
  font-size: clamp(1.5rem, 5vw, 3rem);
}

main {
  padding: 24px;
}
