/* ============================================================
   PAMPA ROLEPLAY — design system
   Tema: amanhecer sobre a pampa — do azul profundo da noite
   ao azul claro do horizonte ao amanhecer.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
  /* cor — noite/dia sobre a pampa */
  --night: #061420;
  --night-2: #0b2038;
  --dusk: #123353;
  --panel: #0e2740;
  --panel-raised: #143252;
  --horizon: #2e7dab;
  --sky: #6fc3e8;
  --sky-light: #b9e6f7;
  --dawn: #ffcf7a;

  --text-hi: #eef8fd;
  --text: #c7dfec;
  --text-mute: #7fa2b8;
  --border: rgba(111, 195, 232, 0.16);
  --border-strong: rgba(111, 195, 232, 0.32);

  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1180px;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 50% -8%, var(--dusk) 0%, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--sky); color: var(--night); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--sky);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-hi);
  margin: 0.2em 0;
}
h1 { font-size: clamp(40px, 7vw, 78px); line-height: 0.98; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }

p { color: var(--text); }
.muted { color: var(--text-mute); }

/* ---------- horizon divider (signature element) ---------- */
.horizon {
  position: relative;
  height: 2px;
  margin: 0 auto;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--sky) 20%, var(--dawn) 50%, var(--sky) 80%, transparent);
  opacity: 0.55;
}
.horizon::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dawn);
  box-shadow: 0 0 24px 6px rgba(255, 207, 122, 0.55);
  transform: translate(-50%, -50%);
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(6, 20, 32, 0.78);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.03em;
  color: var(--text-hi);
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--sky), var(--horizon));
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--night);
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mute);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text-hi); background: rgba(111,195,232,0.08); }
.nav-links a.active { color: var(--night); background: var(--sky); }

.nav-auth { display: flex; align-items: center; gap: 10px; }
.nav-user {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mute);
  font-family: var(--font-mono);
}
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--border-strong);
    color: var(--text-hi);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: var(--font-mono);
    cursor: pointer;
  }
  .site-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--night-2);
    border-bottom: 1px solid var(--border);
    padding: 10px 28px 20px;
    gap: 4px;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(160deg, var(--sky-light), var(--sky));
  color: var(--night);
  box-shadow: 0 8px 24px -8px rgba(111, 195, 232, 0.55);
}
.btn-primary:hover { box-shadow: 0 10px 28px -6px rgba(111, 195, 232, 0.75); }
.btn-ghost {
  background: transparent;
  color: var(--text-hi);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(111,195,232,0.08); border-color: var(--sky); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-tag { margin-bottom: 18px; }
.hero p.lede {
  font-size: 18px;
  max-width: 560px;
  margin-top: 18px;
  color: var(--text);
}
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(111,195,232,0.16), transparent 65%);
  pointer-events: none;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--sky-light);
}
.stat span { font-size: 13px; color: var(--text-mute); }

/* ---------- section ---------- */
.section { padding: 72px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* ---------- category cards (home) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.cat-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-raised));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.cat-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.cat-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sky);
  letter-spacing: .1em;
}
.cat-card h3 { margin: 10px 0 8px; }
.cat-card p { font-size: 14px; color: var(--text-mute); margin: 0 0 18px; }
.cat-card .go { font-size: 13px; font-weight: 700; color: var(--sky-light); display: inline-flex; align-items: center; gap: 6px; }
.cat-card .go svg { transition: transform .15s ease; }
.cat-card:hover .go svg { transform: translateX(3px); }

/* ---------- generic card / list ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sky-light);
  background: rgba(111,195,232,0.1);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-mute);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

/* ---------- rules ---------- */
.rules-list { counter-reset: rule; }
.rule-item {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.rule-item:last-child { border-bottom: none; }
.rule-item::before {
  content: counter(rule, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--horizon);
}
.rule-item h3 { font-size: 17px; margin: 0 0 6px; }
.rule-item p { font-size: 14px; margin: 0; }

/* ---------- vip cards ---------- */
.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.vip-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.vip-card.featured {
  border-color: var(--sky);
  background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  box-shadow: 0 20px 50px -20px rgba(111,195,232,0.4);
}
.vip-card.featured::before {
  content: 'Mais popular';
  position: absolute;
  top: -12px; right: 20px;
  background: var(--dawn);
  color: var(--night);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.vip-price { font-family: var(--font-display); font-size: 40px; color: var(--text-hi); }
.vip-price span { font-family: var(--font-body); font-size: 13px; color: var(--text-mute); font-weight: 600; }
.vip-perks { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.vip-perks li { font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.vip-perks li::before { content: '✓'; color: var(--sky); font-weight: 700; }

/* ---------- product cards ---------- */
.product-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-media {
  height: 140px;
  background: linear-gradient(150deg, var(--dusk), var(--panel-raised));
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  color: var(--text-mute);
  font-size: 12px;
}
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-price { margin-top: auto; font-family: var(--font-display); font-size: 24px; color: var(--sky-light); }

/* ---------- faction / corp cards ---------- */
.org-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  align-items: flex-start;
}
.org-badge {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--sky), var(--horizon));
  color: var(--night);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  flex-shrink: 0;
}
.org-meta { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- forms (auth) ---------- */
.auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 60px 20px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
}
.tabs {
  display: flex;
  background: var(--night-2);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 26px;
  border: 1px solid var(--border);
}
.tabs button {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-mute);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tabs button.active { background: var(--sky); color: var(--night); }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mute);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.field input {
  width: 100%;
  background: var(--night-2);
  border: 1px solid var(--border-strong);
  color: var(--text-hi);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease;
}
.field input:focus { border-color: var(--sky); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-mute);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  width: 100%;
  background: var(--text-hi);
  color: var(--night);
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity .15s ease;
}
.btn-google:hover { opacity: .88; }

.form-msg {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.error { background: rgba(255,90,90,0.1); border: 1px solid rgba(255,90,90,0.3); color: #ff9a9a; }
.form-msg.success { background: rgba(111,195,232,0.1); border: 1px solid var(--border-strong); color: var(--sky-light); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer .muted { font-size: 13px; }

/* ---------- loading skeleton ---------- */
.skel { position: relative; overflow: hidden; background: var(--panel-raised); border-radius: var(--radius); }
.skel::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(111,195,232,0.12), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
