:root {
  --navy: #061433;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.88);
  --button: #ffffff;
  --button-hover: #e7f3ff;
  --button-active: #d3e7f7;
  --button-text: #071428;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--navy);
  color: var(--text);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding:
    max(28px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  background-color: var(--navy);
  background-image: url("public/Futuristic%20Navy%20Gradient%20with%20Halftone%20Glows.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  text-align: center;
  overflow-x: hidden;
}

.logo {
  display: block;
  width: 188px;
  height: auto;
  margin: -40px 0 -28px;
}

.copy h1 {
  margin: 0;
  max-width: 18ch;
  color: var(--text);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.copy h1 span {
  background: linear-gradient(100deg, #7af0ff 0%, #4aa3ff 58%, #6d7bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.wallet {
  display: block;
  width: min(320px, 82vw);
  height: auto;
  margin: 8px 0 18px;
  object-fit: contain;
}

.open-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 300px);
  min-height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
}

.open-app:active {
  background: var(--button-active);
}

.open-app:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

@media (hover: hover) {
  .open-app:hover {
    background: var(--button-hover);
  }
}

@media (min-width: 768px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
      "logo wallet"
      "copy wallet"
      "action wallet";
    align-content: center;
    align-items: center;
    column-gap: clamp(28px, 4vw, 72px);
    row-gap: 0;
    height: 100dvh;
    min-height: 100dvh;
    padding: 36px clamp(40px, 6vw, 96px);
    text-align: left;
    overflow: hidden;
  }

  .logo {
    grid-area: logo;
    justify-self: start;
    width: 240px;
    margin: -52px 0 -58px;
  }

  .copy {
    grid-area: copy;
  }

  .copy h1 {
    max-width: 12em;
    font-size: 48px;
    text-align: left;
  }

  .subtitle {
    margin-top: 18px;
    font-size: 19px;
    text-align: left;
  }

  .wallet {
    grid-area: wallet;
    justify-self: center;
    align-self: center;
    width: min(520px, 100%);
    max-height: 72vh;
    margin: 0;
  }

  .open-app {
    grid-area: action;
    justify-self: start;
    width: auto;
    min-width: 220px;
    margin-top: 32px;
  }
}

@media (min-width: 1200px) {
  .copy h1 {
    font-size: 54px;
  }

  .subtitle {
    font-size: 20px;
  }

  .wallet {
    width: min(560px, 100%);
  }
}

@media (max-width: 767px) and (max-height: 740px) {
  .logo {
    width: 168px;
    margin: -36px 0 -40px;
  }

  .copy h1 {
    font-size: 30px;
  }

  .subtitle {
    margin-top: 10px;
    font-size: 16px;
  }

  .wallet {
    width: min(280px, 74vw);
    margin: 8px 0 16px;
  }
}
