@font-face {
  font-family: Coolvetica;
  src: url("fonts/Coolvetica-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Coolvetica;
  src: url("fonts/Coolvetica-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #242424;
  --ink: #ffffff;
  --muted: #cfcfcf;
  --green: #20cf5e;
  --green-2: #17a34a;
  --purple: #7a7cd3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: Coolvetica, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.home::before,
body.home::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.home::before {
  z-index: -2;
  background:
    radial-gradient(920px 620px at 100% 0%, rgba(122, 124, 211, 0.55), transparent 58%),
    radial-gradient(820px 780px at 86% 62%, rgba(32, 207, 94, 0.42), transparent 60%),
    radial-gradient(640px 480px at 70% 100%, rgba(23, 163, 74, 0.22), transparent 70%),
    #242424;
}

body.home::after {
  z-index: -1;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.top {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 92px;
  padding: 0 22px 0 28px;
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  color: #fff;
  flex: none;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 1.12rem;
  color: #fff;
}

.nav-links a {
  color: #fff;
}

.nav-links a:hover {
  color: #d8d8d8;
}

.header-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  height: 58px;
  padding: 0 20px;
  border-radius: 16px;
  background: #7a7cd3;
  color: #fff;
  font-style: italic;
  font-size: 1.2rem;
}

.header-login svg {
  width: 22px;
  height: auto;
}

.header-login:hover {
  background: #8e90e0;
}

.splash {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8px;
  width: min(1320px, calc(100% - 48px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 0 12px 48px;
}

.splash-copy h1 {
  font-size: clamp(4.6rem, 11vw, 9.2rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.splash-copy h1 em {
  font-style: italic;
}

.splash-copy p {
  margin-top: 16px;
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.12;
  color: #20cf5e;
}

.cash-art {
  justify-self: end;
  width: min(560px, 48vw);
}

.cash-art img {
  width: 100%;
  height: auto;
  display: block;
  animation: cash-float 3.6s ease-in-out infinite;
}

@keyframes cash-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@media (prefers-reduced-motion: reduce) {
  .cash-art img {
    animation: none;
  }
}

.discord-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: min(430px, 86vw);
  min-height: 88px;
  padding: 20px 34px;
  border-radius: 18px;
  background: #20cf5e;
  color: #fff;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-style: italic;
  box-shadow: 0 16px 40px rgba(32, 207, 94, 0.25);
}

.discord-login:hover {
  background: #3be072;
}

.discord-login svg {
  width: 48px;
  height: auto;
  flex: none;
}

.splash-foot {
  display: flex;
  gap: 28px;
  padding: 0 48px 28px;
  color: #bdbdbd;
  font-style: italic;
}

.splash-foot a:hover {
  color: var(--green);
}

.section {
  scroll-margin-top: 24px;
  width: min(1120px, calc(100% - 80px));
  margin: 0 auto;
  padding: 12px 0 88px;
}

.section h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.95;
  margin-bottom: 8px;
}

.section h2 em {
  font-style: italic;
  color: var(--green);
}

.section-lead {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 46ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 22px 20px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-style: italic;
}

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

.cmd-group {
  padding: 22px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cmd-group h3 {
  margin-bottom: 12px;
  color: var(--green);
}

code {
  display: inline-block;
  margin: 0 6px 8px 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(32, 207, 94, 0.12);
  color: #d0ffd0;
  font-family: Coolvetica, sans-serif;
  font-size: 0.95rem;
}

.steps,
.shop {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.step,
.shop-item {
  padding: 24px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step span,
.shop-item b {
  display: block;
  color: var(--green);
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step h3,
.shop-item h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.step p,
.shop-item p {
  color: var(--muted);
  font-style: italic;
}

.news {
  list-style: none;
  display: grid;
  gap: 12px;
}

.news li {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-style: italic;
  color: var(--muted);
}

.news em {
  font-style: italic;
  color: var(--ink);
  margin-right: 8px;
}

.cta {
  width: min(1120px, calc(100% - 80px));
  margin: 0 auto 72px;
}

.cta-inner {
  padding: 48px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(32, 207, 94, 0.18), rgba(122, 124, 211, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta h2 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.9;
}

.cta h2 em {
  font-style: italic;
  color: var(--green);
}

.cta p {
  margin: 14px 0 28px;
  font-style: italic;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.discord-login.small {
  min-width: 0;
  min-height: 64px;
  font-size: 1.35rem;
  padding: 14px 26px;
}

.ghost {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 0 22px;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  font-style: italic;
  font-size: 1.2rem;
}

.ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.legal-nav,
.legal {
  font-family: Coolvetica, "Segoe UI", sans-serif;
}

body:not(.home) {
  background: #242424;
}

body:not(.home)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(122, 124, 211, 0.25), transparent 60%),
    #242424;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 0;
}

.legal-nav img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}

.legal h1,
.legal h2 {
  font-family: Coolvetica, sans-serif;
  color: var(--green);
}

.legal h1 {
  font-size: 3rem;
  line-height: 0.95;
  margin: 18px 0 10px;
}

.legal h2 {
  font-size: 1.45rem;
  margin: 28px 0 8px;
}

.legal p,
.legal li {
  color: #e8eef7;
  margin-bottom: 10px;
}

.legal .meta {
  font-style: italic;
  color: #94a3b8;
  margin-bottom: 18px;
}

.legal a {
  color: var(--green);
}

@media (max-width: 860px) {
  .top {
    height: auto;
    flex-wrap: wrap;
    row-gap: 12px;
    padding: 16px 16px 8px;
  }

  .brand {
    font-size: 1.15rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.95rem;
    color: #fff;
  }

  .header-login {
    margin-left: auto;
    height: 44px;
    font-size: 0.9rem;
    padding: 0 12px;
  }

  .splash,
  .section,
  .cta {
    width: min(1280px, calc(100% - 28px));
  }

  .splash {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 0 40px;
    gap: 8px;
  }

  .splash-copy h1 {
    white-space: normal;
    font-size: clamp(3.4rem, 16vw, 5.2rem);
  }

  .cash-art {
    justify-self: center;
    width: min(320px, 78vw);
  }

  .grid,
  .commands,
  .steps,
  .shop {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    width: auto;
    padding: 32px 22px;
  }

  .splash-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
}

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