/* =========================================================
   CRWZ1N — Discord Presell
   Tokens
========================================================= */
:root {
  --void: #060409;
  --void-2: #09060f;
  --surface: #110b1c;
  --surface-2: #171029;
  --border: rgba(167, 139, 250, 0.14);
  --border-strong: rgba(167, 139, 250, 0.32);
  --violet: #7c3aed;
  --violet-bright: #9d5cff;
  --violet-deep: #33124f;
  --ink: #f6f4fb;
  --muted: #a79fc0;
  --muted-2: #756c8f;

  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1120px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   Reset
========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, p { margin: 0; }

button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--violet);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* =========================================================
   Layout helpers
========================================================= */
.section { position: relative; padding: 72px 20px; }
.section__inner { max-width: var(--container); margin: 0 auto; }

.section__title {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.section__lead {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 1rem;
}

/* =========================================================
   Buttons
========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-18deg);
  animation: btn-shine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shine {
  0% { left: -60%; }
  22% { left: 130%; }
  100% { left: 130%; }
}

.btn--header {
  padding: 9px 18px;
  font-size: 0.8rem;
  background: rgba(124, 58, 237, 0.14);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn--header:hover { background: rgba(124, 58, 237, 0.26); }

.btn--primary {
  background: linear-gradient(135deg, var(--violet-bright), var(--violet));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 14px 32px -12px rgba(124, 58, 237, 0.55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.4), 0 18px 40px -12px rgba(157, 92, 255, 0.65);
}
.btn--primary:active { transform: translateY(0); }

.btn--large {
  padding: 17px 30px;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.icon-discord { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* =========================================================
   Header
========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 20px;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), padding 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 7, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 12px 20px;
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand__name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* =========================================================
   Hero
========================================================= */
.hero {
  position: relative;
  padding: 116px 20px 48px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.35), rgba(124, 58, 237, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-bright);
  box-shadow: 0 0 8px 1px var(--violet-bright);
}

.hero__title {
  font-size: clamp(2.1rem, 1.55rem + 2.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin-top: 18px;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 600;
  color: var(--ink);
}

.hero__text {
  margin: 12px auto 0;
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero__cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__microcopy {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted-2);
}

/* =========================================================
   Discord mockup (screenshot)
========================================================= */
.hero__visual {
  width: 100%;
  max-width: 360px;
}

.discord-mock {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-l);
  padding: 16px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.discord-mock__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  display: block;
}

/* =========================================================
   Cards
========================================================= */
.features { padding-top: 40px; }

.card-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.14);
  color: var(--violet-bright);
  margin-bottom: 16px;
}
.card__icon svg { width: 20px; height: 20px; }

.card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card__text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* =========================================================
   Category / flow
========================================================= */
.category { overflow: hidden; }

.category__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(124, 58, 237, 0.10), transparent 70%),
    var(--void-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: 0;
}

.category .section__inner { position: relative; z-index: 1; }

.flow {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 20px;
}

.flow__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.16);
  color: var(--violet-bright);
}
.flow__icon svg { width: 20px; height: 20px; }

.flow__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

.flow__arrow {
  color: var(--muted-2);
  transform: rotate(90deg);
}
.flow__arrow svg { width: 18px; height: 18px; }

/* =========================================================
   CTA 2
========================================================= */
.cta2__inner { text-align: center; }

.cta2__title {
  font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cta2__text {
  margin: 14px auto 30px;
  color: var(--muted);
  max-width: 480px;
}

/* =========================================================
   Footer
========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 20px 40px;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.site-footer__copy {
  font-size: 0.8rem;
  color: var(--muted-2);
}

.site-footer__links {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__links a { transition: color 0.2s var(--ease); }
.site-footer__links a:hover { color: var(--violet-bright); }
.site-footer__divider { color: var(--muted-2); }

/* =========================================================
   Reveal animation
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .btn::after { animation: none; display: none; }
  .btn--primary:hover { transform: none; }
  .card:hover { transform: none; }
}

/* =========================================================
   Responsive
========================================================= */
@media (min-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 700px) {
  .flow {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
  }
  .flow__arrow { transform: none; }
}

@media (min-width: 860px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px) {
  .hero { padding: 148px 20px 96px; }
  .features { padding-top: 64px; }
}

