/* ==========================================================================
   base.css — tokens, reset, tipografia, layout, botões, header e footer
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #07080c;
  --bg-soft: #0b0d13;
  --panel: #10131b;
  --panel-2: #151925;
  --panel-3: #1c2130;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #edf0f7;
  --muted: #98a1b4;
  --muted-2: #6d7689;

  /* Accents */
  --gold: #e9c46a;
  --gold-soft: #f5dda0;
  --gold-deep: #c69a34;
  --cyan: #22d3ee;
  --cyan-deep: #0e7490;
  --violet: #c084fc;
  --discord: #5865f2;
  --success: #34d399;
  --danger: #f87171;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.85);
  --ring: 0 0 0 1px rgba(255, 255, 255, 0.06);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Montserrat", var(--font-sans);

  /* Layout */
  --container: 1200px;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow + WoW background behind the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 8, 12, 0.35) 0%, rgba(7, 8, 12, 0.62) 55%, rgba(6, 7, 10, 0.85) 100%),
    radial-gradient(55% 45% at 82% -8%, rgba(34, 211, 238, 0.12), transparent 62%),
    radial-gradient(45% 40% at 12% 0%, rgba(233, 196, 106, 0.09), transparent 65%),
    url('../img/wow-bg.jpg') center/cover no-repeat;
  background-color: var(--bg);
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.06rem;
  letter-spacing: 0;
}

p {
  margin: 0;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--gold-soft);
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(233, 196, 106, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section--tight {
  padding-block: clamp(36px, 5vw, 56px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--muted);
  max-width: 56ch;
  margin-top: 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn:active {
  transform: translateY(0);
}

.btn--gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  color: #1a1405;
  box-shadow: 0 10px 28px -12px rgba(233, 196, 106, 0.6);
}

.btn--gold:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 32px -12px rgba(233, 196, 106, 0.75);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: rgba(34, 211, 238, 0.55);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.05);
}

.btn--discord {
  background: var(--discord);
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(88, 101, 242, 0.9);
}

.btn--discord:hover {
  background: #6b74f5;
  color: #fff;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 8px 15px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--gold);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 12, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 10px rgba(233, 196, 106, 0.35));
}

.brand__text span {
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.nav a {
  position: relative;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transition: right 0.22s ease;
}

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

.nav a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1405;
  font-size: 0.68rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
}

@media (max-width: 1080px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 20px 20px;
    background: rgba(11, 13, 19, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav a {
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
  }

  .nav a::after {
    display: none;
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header .btn--discord {
    display: none;
  }
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: 40px;
  padding-block: 48px 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
}

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

.footer-grid h4 {
  margin-bottom: 14px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-grid li + li {
  margin-top: 9px;
}

.footer-grid a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-about p {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.8rem;
}

.footer-bottom p {
  max-width: 70ch;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* --------------------------------------------------------------- reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
