/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero__art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 760px;
  object-fit: cover;
  object-position: 62% 30%;
  animation: settle 1600ms var(--ease-out) both;
}

.hero__shade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 760px;
}

.hero__shade--side {
  background: linear-gradient(90deg, var(--bg-94) 0%, var(--bg-80) 30%, var(--bg-30) 54%, var(--bg-0) 70%);
}

.hero__shade--bottom {
  background: linear-gradient(180deg, var(--bg-60) 0%, var(--bg-0) 16%, var(--bg-0) 52%, var(--bg) 100%);
}

.hero__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 88px;
  padding-bottom: 64px;
  min-height: 540px;
}

.hero__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 640px;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 10vw, 136px);
  line-height: .86;
  color: var(--gold-title);
  text-shadow: 0 2px 40px var(--shade-60);
}

.hero__subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.1;
  color: var(--gold);
}

.hero__lead {
  margin: 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
  text-shadow: 0 1px 12px var(--shade-70);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding-top: 12px;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted-2);
}

.hero__note {
  color: var(--ink-soft);
}

.hero__howto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--aether-soft);
}

@media (pointer: coarse) {
  .hero__howto {
    position: relative;
  }

  .hero__howto::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    height: 44px;
    transform: translateY(-50%);
  }
}

.hero__online {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 4px var(--online-halo);
}

.hero__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--gold-text);
}

.hero__online-label {
  font-size: 17px;
  color: var(--muted);
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.04);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__art {
    animation: fade 500ms ease both;
  }
}

/* Feature card */

.feature {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 260px;
}

.feature__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--surface-0) 28%, var(--surface-82) 66%, var(--surface) 100%);
}

.feature__shot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: min(70%, 240px);
  height: auto;
  opacity: .85;
  -webkit-mask-image: linear-gradient(180deg, var(--black) 62%, transparent 100%);
  mask-image: linear-gradient(180deg, var(--black) 62%, transparent 100%);
}

.feature__icon {
  position: relative;
  display: flex;
  color: var(--aether);
}

.feature__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: .04em;
  color: var(--gold-text);
  position: relative;
  text-shadow: 0 2px 12px var(--shade-85);
}

.feature__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-card);
  position: relative;
  text-shadow: 0 1px 10px var(--shade-85);
}

.feature__art--voice {
  object-position: 50% 22%;
}

.feature__art--dps {
  object-position: 55% 25%;
}

.feature__art--gear {
  object-position: 50% 20%;
}

.feature__art--translate {
  object-position: 50% 15%;
}

/* Features */

.features {
  position: relative;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.features__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
}

.features__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--aether-soft);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
}

.features__grid > article {
  animation: rise 600ms var(--ease-out) both;
}

.features__grid > article:nth-child(1) {
  animation-delay: 500ms;
}

.features__grid > article:nth-child(2) {
  animation-delay: 560ms;
}

.features__grid > article:nth-child(3) {
  animation-delay: 620ms;
}

.features__grid > article:nth-child(4) {
  animation-delay: 680ms;
}

@media (prefers-reduced-motion: reduce) {
  .features__grid > article {
    animation: fade 200ms ease both;
  }
}

/* Reward stages */

.rewards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 12px;
  animation: drop 220ms var(--ease-out) both;
}

.rewards__stage {
  background: var(--surface-2);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rewards__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-brand);
}

.rewards__title--highlight {
  color: var(--aether-soft);
}

.rewards__item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-nav);
}

.rewards__amount {
  color: var(--muted-3);
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rewards {
    animation: fade 200ms ease both;
  }
}

/* Starter kit */

.starter-section {
  padding: 40px 0 0;
}

.starter {
  position: relative;
  overflow: hidden;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (max-width: 640px) {
  .starter {
    padding: 24px 16px;
  }
}

.starter__art {
  position: absolute;
  top: 0;
  right: 0;
  width: 64%;
  height: 380px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, var(--black) 50%);
  mask-image: linear-gradient(90deg, transparent 0%, var(--black) 50%);
}

.starter__art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 40%;
  opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, var(--black) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, var(--black) 55%, transparent 100%);
}

.starter__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.starter__intro {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.starter__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.05;
  color: var(--gold-title);
}

.starter__lead {
  margin: 0;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.starter__highlights {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px 32px;
}

.starter__highlight {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 14px;
  row-gap: 2px;
}

.starter__highlight-slot {
  grid-row: 1 / 3;
  align-self: center;
}

.starter__highlight-title {
  align-self: end;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.starter__highlight-note {
  align-self: start;
  font-size: 14px;
  color: var(--muted-2);
}

.starter__rewards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.starter__toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  margin: -8px 0;
  background: none;
  border: 0;
  color: var(--aether-soft);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.starter__chevron {
  transition: transform 200ms var(--ease-out);
}

.starter__chevron--open {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .starter__chevron {
    transition: none;
  }
}

/* News item */

.row {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  color: var(--ink);
  flex: 1 1 auto;
  transition: background-color 150ms ease;
}

.row:not(:last-child) {
  border-bottom: 1px solid var(--white-06);
}

@media (hover: hover) and (pointer: fine) {
  .row:hover {
    background-color: var(--aether-06);
  }
}

.row__date {
  flex: 0 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  border: 1px solid var(--aether-35);
}

.row__day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--aether);
}

.row__month {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 2px;
}

.row__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.row__tag {
  font-size: 14px;
  font-weight: 700;
}

.row__tag--aether {
  color: var(--aether-soft);
}

.row__tag--gold {
  color: var(--gold-link);
}

.row__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

/* News */

.news {
  position: relative;
  padding: 72px 0 80px;
}

.news__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.news__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.news__heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  color: var(--gold-title);
}

.news__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
}

.news__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.featured {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gold-line-22);
  background: var(--surface-card);
  color: var(--ink);
}

.featured__media {
  height: 260px;
  position: relative;
  overflow: hidden;
  background: var(--surface-ph);
  border-bottom: 1px solid var(--gold-line-18);
}

.featured__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.featured__tag {
  position: absolute;
  left: 20px;
  top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-85);
  border: 1px solid var(--gold-line-50);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-brand);
}

.featured__body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.featured__date {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted-2);
}

.featured__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: .03em;
  color: var(--gold-text);
}

.featured__excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-news);
  text-wrap: pretty;
}

.news__list {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gold-line-22);
  background: var(--surface-card);
}

/* Site additions (not in the mockups) */

/* Server offline: grey dot, no count */
.hero__online--offline .hero__dot {
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .06);
}

.hero__online--offline .hero__online-label {
  color: var(--muted);
}
