:root {
  font-family:
    "Chivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: #121725;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;

  --color-background: #121725;
  --color-accent: #54e6af;
  --color-accent-hover: #b3ffe2;
  --color-muted: #c2cbe5;
  --color-input: #2c344b;
  --color-error: #fb3e3e;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--color-background);
}

.page-content {
  position: relative;
  z-index: 1;
  width: min(100% - 64px, 1240px);
  margin-inline: auto;
}

.dot-pattern {
  position: absolute;
  z-index: 1;
  right: -46px;
  bottom: -46px;
  width: 230px;
  height: 138px;
  background-image: radial-gradient(circle, var(--color-accent) 2px, transparent 2.5px);
  background-position: right top;
  background-size: 23px 23px;
}

.site-header {
  display: flex;
  align-items: center;
  padding-top: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}

.brand-icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1.5px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  margin-top: 40px;
  padding-bottom: 64px;
}

.hero-copy {
  max-width: 500px;
  padding-block: 32px;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 4.2vw, 52px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -1.8px;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

.accent-text {
  color: var(--color-accent);
}

.intro {
  max-width: 420px;
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
}

.access-form {
  max-width: 430px;
  margin-top: 40px;
}

.form-control {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 6px;
  border-radius: 999px;
  background: var(--color-input);
}

.form-control:focus-within {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.form-control input {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 15px;
}

.form-control input::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

.form-control button {
  flex: 0 0 auto;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  color: var(--color-background);
  background: var(--color-accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 160ms ease;
}

.form-control button:hover {
  background: var(--color-accent-hover);
}

.form-control button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-control button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--color-error);
  font-size: 14px;
}

.form-help,
.form-status {
  margin: 12px 4px 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-status:not([hidden]) {
  color: var(--color-accent);
}

.form-status[data-state="error"] {
  color: var(--color-error);
}

.form-error[hidden] {
  display: none;
}

.form-error:not([hidden])::before {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--color-error);
  content: "!";
  font-size: 10px;
  font-weight: 700;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin: 56px 0 0;
  padding: 0;
  color: var(--color-muted);
  list-style: none;
  opacity: 0.7;
}

.platforms li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.3px;
  transition: color 160ms ease;
}

.platforms li:hover {
  color: #fff;
}

.platforms svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

.platforms .platform-logo {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background-color: var(--color-muted);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  transition: background-color 160ms ease;
}

.platforms li:hover .platform-logo {
  background-color: transparent;
  background-image: var(--logo);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-mask: none;
  mask: none;
}

.platforms li:first-child:hover svg {
  color: #1ed760;
}

.hero-image {
  position: relative;
  height: 640px;
  overflow: visible;
  background: var(--color-accent);
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.95;
  filter: contrast(1.05);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 800px) {
  .page-content {
    width: min(100% - 64px, 600px);
  }

  .site-header {
    padding-top: 48px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 48px;
    padding-bottom: 80px;
  }

  .hero-image {
    grid-row: 1;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hero-copy {
    max-width: 520px;
    padding-top: 48px;
  }
}

@media (max-width: 520px) {
  .page-content {
    width: min(100% - 48px, 420px);
  }

  .site-header {
    justify-content: center;
    padding-top: 32px;
  }

  .hero {
    margin-top: 32px;
    padding-bottom: 48px;
  }

  .hero-image {
    aspect-ratio: 4 / 3;
    margin-inline: -24px;
  }

  .hero-copy {
    padding-top: 40px;
    text-align: center;
  }

  h1 {
    font-size: clamp(32px, 8vw, 40px);
    letter-spacing: -1px;
  }

  .intro {
    margin-top: 16px;
    font-size: 14px;
  }

  .access-form {
    margin-top: 32px;
  }

  .form-control {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0;
    background: transparent;
  }

  .form-control input {
    min-height: 52px;
    padding-inline: 24px;
    border-radius: 999px;
    background: var(--color-input);
    text-align: left;
  }

  .form-control button {
    min-height: 52px;
  }

  .form-error {
    justify-content: center;
    text-align: left;
  }

  .form-help {
    text-align: center;
  }

  .platforms {
    justify-content: center;
    gap: 16px 20px;
    margin-top: 40px;
  }

  .platforms li {
    font-size: 12px;
  }
}
