/* Palette matches the portal's "Punch Arcade" theme (styles.css):
   deep purple-black bg, punch pink #EE4266, teal #3CBBB1, purple #6C4BD8. */
:root {
  color-scheme: dark;
  --background: #0b0714;
  --surface: #120c20;
  --surface-raised: #1a1230;
  --border: rgba(158, 134, 255, 0.16);
  --text: #f5f2ff;
  --muted: #a79fc2;
  --accent: #3cbbb1;
  --accent-bright: #5fd8ce;
  --pink: #ee4266;
  --purple: #6c4bd8;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--pink);
  color: #fff;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 88px 24px 130px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(108, 75, 216, 0.16), transparent 31rem),
    linear-gradient(180deg, #0d0918 0%, var(--background) 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%);
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  height: 34%;
  background: linear-gradient(to top, var(--background), transparent);
  content: "";
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.11;
  pointer-events: none;
}

.hero-glow-purple {
  top: 5%;
  right: -11rem;
  background: var(--purple);
}

.hero-glow-pink {
  bottom: 7%;
  left: -12rem;
  background: var(--pink);
}

.hero-content {
  display: flex;
  width: min(100%, 740px);
  align-items: center;
  flex-direction: column;
  text-align: center;
  animation: hero-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-icon {
  width: clamp(118px, 14vw, 154px);
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 26px;
  border-radius: 25%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(108, 75, 216, 0.28);
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.hero-tagline {
  margin: 22px 0 30px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.app-store-link {
  display: inline-block;
  border-radius: 10px;
  transition: transform 180ms ease, filter 180ms ease;
}

.app-store-link img {
  width: 179px;
  height: auto;
}

@media (hover: hover) {
  .app-store-link:hover {
    filter: brightness(1.08);
    transform: translateY(-2px) scale(1.025);
  }
}

.app-store-link:active {
  transform: scale(0.97);
}

.creator-scroll {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  width: max-content;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px;
  color: #8f86ad;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color 180ms ease;
}

.creator-scroll svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  animation: creator-scroll-bounce 1.8s ease-in-out infinite;
}

.creator-scroll:hover {
  color: var(--accent);
}

.section-heading {
  width: min(100%, 760px);
  margin: 0 auto 64px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-heading p {
  max-width: 670px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.creator {
  position: relative;
  display: flex;
  min-height: 92vh;
  min-height: 92svh;
  align-items: center;
  padding: 120px 24px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 80%, rgba(108, 75, 216, 0.18), transparent 31rem),
    #0d0a18;
}

.creator-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.creator .section-heading {
  width: min(100%, 840px);
  margin-bottom: 70px;
}

.creator .section-heading h2 {
  font-size: clamp(2.55rem, 5vw, 3.6rem);
  letter-spacing: -0.045em;
}

.creator .section-heading p {
  max-width: 780px;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.creator-grid .creator-step {
  display: flex;
  min-height: 336px;
  align-items: center;
  flex-direction: column;
  padding: 27px 24px 25px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(38, 27, 82, 0.28);
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.creator-grid .creator-step-discord {
  border-color: rgba(60, 187, 177, 0.55);
}

@media (hover: hover) {
  .creator-grid .creator-step:hover {
    border-color: rgba(60, 187, 177, 0.4);
    transform: translateY(-3px);
  }

  .creator-grid .creator-step-discord:hover {
    border-color: var(--accent-bright);
  }
}

.creator-grid .creator-step-discord:active {
  border-color: var(--accent-bright);
  transform: scale(0.985);
}

.creator-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 27px;
  border-radius: 50%;
  background: rgba(60, 187, 177, 0.12);
  color: var(--accent-bright);
}

.creator-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.creator-icon .icon-fill {
  fill: currentColor;
  stroke: none;
}

.creator-grid h3 {
  margin: 0 0 16px;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.creator-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.creator-discord-link {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent-bright);
  font-size: 0.86rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (hover: hover) {
  .creator-discord-link:hover {
    color: var(--text);
  }
}

.creator-portal-button {
  display: flex;
  width: min(100%, 284px);
  min-height: 56px;
  align-items: center;
  justify-content: center;
  margin: 70px auto 0;
  padding: 0 24px;
  border-radius: 7px;
  background: var(--text);
  color: #0b0714;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

@media (hover: hover) {
  .creator-portal-button:hover {
    background: var(--accent-bright);
    transform: translateY(-2px);
  }
}

.creator-portal-button:active {
  transform: scale(0.98);
}

.site-footer {
  display: grid;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 116px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  margin: 0 auto;
  color: #756d92;
  font-size: 0.78rem;
}

.footer-brand {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-brand img {
  width: 29px;
  height: 29px;
  border-radius: 8px;
}

.site-footer nav {
  display: flex;
  gap: 25px;
}

.site-footer nav a {
  padding: 8px 0;
  color: #8f86ad;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer nav a:hover {
  color: var(--text);
}

.site-footer p {
  justify-self: end;
  margin: 0;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes creator-scroll-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@media (max-width: 820px) {
  .creator {
    padding-top: 92px;
    padding-bottom: 96px;
  }

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

  .site-footer {
    grid-template-columns: 1fr auto;
    padding: 32px 0;
  }

  .site-footer nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .site-footer p {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .creator {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-heading {
    margin-bottom: 46px;
  }

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

  .creator-grid .creator-step {
    min-height: 0;
  }

  .creator-grid p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .creator-discord-link {
    margin-top: 24px;
    font-size: 0.95rem;
  }

  .creator-portal-button {
    margin-top: 48px;
  }

  .site-footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 32px 0 max(32px, calc(env(safe-area-inset-bottom) + 20px));
    font-size: 0.85rem;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 6px 34px;
  }

  .site-footer nav a {
    padding: 10px 0;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
