:root {
  color-scheme: dark;
  --green: #35e566;
  --gold: #ffd45a;
  --cyan: #37dcff;
  --ink: #031107;
  --white: #f7fff8;
}

* { box-sizing: border-box; }

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

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: #031107;
}

.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: url("assets/digitlink-background.png") center / cover no-repeat;
}

.screen {
  position: absolute;
  left: 50%;
  top: 10.4vh;
  z-index: 1;
  width: min(88vw, 1290px);
  height: min(73.8vh, 724px);
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 2px;
}

.screen-arcade {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(560px, 1.2fr);
  grid-template-rows: 1fr auto;
  gap: clamp(14px, 1.4vw, 22px);
  padding: clamp(18px, 2vw, 30px);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 212, 90, 0.16), transparent 34%),
    radial-gradient(circle at 78% 70%, rgba(53, 229, 102, 0.18), transparent 32%),
    rgba(0, 0, 0, 0.08);
}

.feature {
  display: grid;
  grid-template-columns: minmax(150px, 0.58fr) minmax(300px, 1.12fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
  min-width: 0;
  min-height: 0;
  padding: clamp(16px, 1.8vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.64), rgba(4, 32, 16, 0.62));
}

.feature > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(255, 212, 90, 0.3);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.42);
}

.feature > div {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(2px, 0.5vw, 8px);
  padding-bottom: 0;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(255, 212, 90, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand span,
.eyebrow,
.legal-in-screen a {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: clamp(22px, 3.4vw, 54px) 0 10px;
  color: var(--gold);
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 4.05vw, 64px);
  line-height: 0.94;
  letter-spacing: 0;
  white-space: nowrap;
}

.feature h1 span {
  display: block;
}

.intro {
  max-width: 380px;
  margin: 18px 0 0;
  color: rgba(247, 255, 248, 0.82);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 760;
  line-height: 1.35;
}

.highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: auto 0 10px;
  padding: 0;
  list-style: none;
}

.highlights li {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 212, 90, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(247, 255, 248, 0.86);
  font-size: 13px;
  font-weight: 850;
}

.cta {
  width: min(100%, 360px);
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 17px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7dff91, var(--green) 54%, var(--cyan));
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  text-decoration: none;
  box-shadow:
    0 22px 46px rgba(17, 194, 90, 0.36),
    0 0 30px rgba(53, 229, 102, 0.2);
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 14px);
  min-width: 0;
  min-height: 0;
}

.cards img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255, 212, 90, 0.28);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.38);
}

.legal-in-screen {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.36);
  color: rgba(247, 255, 248, 0.74);
  font-size: 11px;
}

.legal-in-screen a {
  color: rgba(247, 255, 248, 0.9);
  font-size: 11px;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .page {
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    background-position: center top;
  }

  .screen {
    position: relative;
    left: auto;
    top: auto;
    width: min(92vw, 420px);
    height: auto;
    min-height: calc(100svh - 20px);
    margin: 14px auto;
    transform: none;
    overflow: visible;
  }

  .screen-arcade {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 212, 90, 0.22);
    border-radius: 10px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 212, 90, 0.14), transparent 38%),
      linear-gradient(180deg, rgba(0, 11, 4, 0.9), rgba(0, 24, 11, 0.8));
  }

  .feature {
    display: block;
    padding: 14px 14px;
    text-align: center;
  }

  .feature > img {
    display: none;
  }

  .brand {
    margin: 0 auto;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .eyebrow {
    margin: 12px 0 7px;
    font-size: 12px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 0.94;
    white-space: normal;
  }

  .intro {
    max-width: 310px;
    margin: 9px auto 0;
    font-size: 14px;
    line-height: 1.26;
  }

  .highlights {
    display: none;
  }

  .cta {
    width: 100%;
    min-height: 60px;
    margin-top: 0;
    font-size: 18px;
  }

  .cards {
    display: flex;
    gap: 12px;
    min-height: auto;
    margin: 0 -14px;
    padding: 0 14px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .cards img {
    flex: 0 0 calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
    height: auto;
    aspect-ratio: 270 / 452;
    object-position: center top;
    scroll-snap-align: start;
  }

  .cards::-webkit-scrollbar {
    display: none;
  }

  .legal-in-screen {
    flex-wrap: wrap;
    gap: 7px 10px;
    margin-top: auto;
    padding: 8px 10px;
    font-size: 9px;
    line-height: 1.25;
    text-align: center;
  }

  .legal-in-screen a {
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .screen {
    width: calc(100vw - 20px);
    min-height: calc(100svh - 16px);
    margin: 10px auto;
  }

  .screen-arcade {
    gap: 9px;
    padding: 12px;
  }

  .feature {
    padding: 14px 12px;
  }

  h1 {
    font-size: 34px;
  }

  .intro {
    font-size: 14px;
  }

  .cta {
    min-height: 60px;
  }

  .cards {
    margin: 0 -12px;
    padding: 0 12px 2px;
    scroll-padding-inline: 12px;
  }

  .cards img {
    flex-basis: calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
  }
}
