:root {
  --background: #08090d;
  --surface: rgba(20, 22, 30, 0.76);
  --surface-hover: rgba(28, 31, 42, 0.92);
  --line: rgba(255, 255, 255, 0.105);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f6f2e9;
  --muted: #a3a0a0;
  --accent: #f3c96b;
  --accent-dark: #a96d18;
  --green: #83d6a3;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(8, 9, 13, 0) 0%, var(--background) 76%),
    radial-gradient(circle at 50% -20%, #20273a 0%, var(--background) 52%);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(110px);
  opacity: 0.14;
}

.ambient-one {
  top: 3rem;
  left: -12rem;
  background: #b264ff;
}

.ambient-two {
  top: 18rem;
  right: -14rem;
  background: #e7a733;
}

.site-header,
main,
footer {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  transition: color 160ms ease;
}

.account-link:hover,
.account-link:focus-visible {
  color: var(--text);
}

.hero {
  max-width: 850px;
  padding: 112px 0 102px;
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 20px 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 8vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero-copy {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  line-height: 1.65;
}

.apps-section {
  padding-bottom: 88px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(131, 214, 163, 0.7);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.19);
  backdrop-filter: blur(16px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  outline: none;
  transform: translateY(-4px);
}

.app-card.featured {
  grid-column: span 2;
  background:
    radial-gradient(circle at 78% 14%, rgba(243, 201, 107, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(38, 36, 34, 0.94), rgba(18, 20, 27, 0.87));
}

.app-card.featured::after {
  position: absolute;
  right: -4rem;
  bottom: -6rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(243, 201, 107, 0.13);
  border-radius: 999px;
  box-shadow:
    0 0 0 36px rgba(243, 201, 107, 0.035),
    0 0 0 72px rgba(243, 201, 107, 0.018);
  content: "";
}

.card-topline,
.card-action {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: #d9d5cd;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.game-icon {
  border-color: rgba(243, 201, 107, 0.36);
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.access-pill,
.subtle-pill {
  padding: 7px 10px;
  border: 1px solid rgba(243, 201, 107, 0.22);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(243, 201, 107, 0.07);
  font-size: 0.67rem;
  font-weight: 650;
}

.subtle-pill {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.card-copy {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin-top: auto;
  padding: 66px 0 42px;
}

.card-copy h3 {
  margin: 11px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.app-card:not(.featured) .card-copy h3 {
  font-size: 2.05rem;
}

.card-copy p:last-child {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.card-action {
  justify-content: flex-start;
  gap: 9px;
  color: #ded9cf;
  font-size: 0.79rem;
  font-weight: 620;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: #77767a;
  font-size: 0.72rem;
}

@media (max-width: 860px) {
  .hero {
    padding: 88px 0 76px;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 580px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: 0.84rem;
  }

  .hero {
    padding: 70px 0 66px;
  }

  .hero h1 {
    margin-top: 17px;
    font-size: clamp(3rem, 17vw, 4.7rem);
  }

  .section-heading {
    align-items: flex-end;
  }

  .status {
    font-size: 0;
  }

  .status-dot {
    width: 8px;
    height: 8px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card,
  .app-card.featured {
    grid-column: span 1;
    min-height: 315px;
    padding: 22px;
  }

  .card-copy {
    padding-top: 56px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
