.hero {
  position: relative;
  padding: 156px 0 64px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/bg.webp") center 28% / cover no-repeat;
  opacity: 0.3;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 0%, transparent 0%, var(--bg) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent) 0%, var(--bg) 94%);
}

.hero-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 28px;
  filter: drop-shadow(0 18px 44px color-mix(in srgb, var(--accent) 34%, transparent));
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(40px, 6.4vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  max-width: 50ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.ip {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 0 7px 0 20px;
  border-radius: 15px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease);
}

.ip:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.ip:active {
  transform: scale(0.98);
}

.ip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13.5px;
}

.ip svg {
  width: 15px;
  height: 15px;
}

.hero .btn {
  height: 52px;
  border-radius: 15px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.online {
  opacity: 0;
  transition: opacity 0.4s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.online i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent);
  animation: pulse 2s infinite;
}

.online.on {
  opacity: 1;
}

.hero {
  padding-bottom: 48px;
}

.season {
  margin-bottom: 22px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  color: var(--ok);
  font-size: 13.5px;
  font-weight: 600;
}

.nav-in > .btn svg {
  width: 16px;
  height: 16px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tile {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s;
}

.tone-store {
  --tone: #036FFF;
}

.tone-apply {
  --tone: #00B0FF;
}

.tone-media {
  --tone: #FF1998;
}

.tone-discord {
  --tone: #5865F2;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--tone);
  opacity: 0.85;
}

.tile:hover {
  border-color: color-mix(in srgb, var(--tone) 45%, transparent);
  background: color-mix(in srgb, var(--tone) 4%, var(--surface));
  transform: translateY(-2px);
}

.tile b {
  font: 600 19px/1.2 var(--display);
}

.tile p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  color: var(--tone);
}

.tile-icon svg {
  width: 22px;
  height: 22px;
}

.tile-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  color: var(--tone);
  font-size: 14px;
  font-weight: 600;
}

.tile-go svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.tile:hover .tile-go svg {
  transform: translateX(3px);
}

.join,
.facts {
  padding-top: 88px;
  scroll-margin-top: 40px;
}

.sec-title {
  margin-bottom: 24px;
  text-align: center;
}

.sec-title h2 {
  font: 700 clamp(28px, 4vw, 38px)/1.1 var(--display);
  letter-spacing: -0.025em;
}

.sec-title p {
  margin-top: 10px;
  color: var(--muted);
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.join-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.join-card ol {
  display: grid;
  gap: 6px;
  padding-left: 20px;
  color: var(--muted);
}

.ip.small {
  height: 46px;
  gap: 12px;
  padding-left: 16px;
}

.ip.small span {
  height: 34px;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
}

.fact-list li {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-list li:nth-child(3n) {
  border-right: 0;
}

.fact-list li:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.fact-list b {
  font: 600 16px/1.3 var(--display);
}

.fact-list span {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

main {
  padding-bottom: 96px;
}

@media (max-width: 1000px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-list {
    grid-template-columns: 1fr 1fr;
  }

  .fact-list li:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .fact-list li:nth-child(2n) {
    border-right: 0;
  }

  .fact-list li:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .fact-list li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .tiles,
  .join-grid,
  .fact-list {
    grid-template-columns: 1fr;
  }

  .fact-list li,
  .fact-list li:nth-child(2n),
  .fact-list li:nth-child(3n) {
    border-right: 0;
  }

  .fact-list li:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .fact-list li:last-child {
    border-bottom: 0;
  }

  .nav .links {
    display: none;
  }
}
