/* ============================================================
   Hinokame RP - estilo compartilhado (index + loja)
   Tema unico escuro de proposito: e a identidade do servidor.
   ============================================================ */

:root {
  --bg: #06040b;
  --bg-2: #0b0713;
  --surface: #100a1c;
  --surface-2: #17102a;
  --surface-3: #1e1536;
  --line: #2a1c47;
  --line-soft: #1d1433;

  --ink: #f6f1ff;
  --ink-dim: #b6a6d8;
  --ink-faint: #7b6a9d;

  --violet: #a855f7;
  --violet-bright: #c084fc;
  --violet-deep: #4c1d95;
  --violet-glow: rgba(168, 85, 247, .35);

  --gold: #edbd5a;
  --gold-soft: #f7dca0;

  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --wrap: 1200px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  --shadow-violet: 0 20px 60px -22px var(--violet-glow);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: "Chakra Petch", "Barlow", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0;
}

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- atmosfera de fundo ---------- */
.aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(700px 500px at 12% -5%, rgba(168, 85, 247, .16), transparent 70%),
    radial-gradient(600px 400px at 92% 8%, rgba(76, 29, 149, .18), transparent 70%),
    radial-gradient(900px 600px at 50% 110%, rgba(168, 85, 247, .07), transparent 70%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, nav, footer { position: relative; z-index: 2; }

/* ---------- nav ---------- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: rgba(6, 4, 11, .82);
  border-bottom: 1px solid var(--line-soft);
}

nav.top .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand b { color: var(--violet-bright); }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-dim);
  transition: color .18s ease;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transition: transform .22s ease;
  transform-origin: left;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-ctas { display: flex; gap: 10px; flex-shrink: 0; }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  width: 42px; height: 42px;
  cursor: pointer;
  font-size: 19px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 26px;
    gap: 4px;
    display: none;
    font-size: 17px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-burger { display: flex; margin-left: auto; }
  .nav-ctas .btn-ghost-sm { display: none; }
}

/* telas muito estreitas (abaixo de qualquer celular comum): encolhe a
   marca e o botao pra nada estourar a largura */
@media (max-width: 400px) {
  nav.top .wrap { gap: 10px; padding: 0 14px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .nav-ctas .btn-sm { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 330px) {
  .brand span { display: none; }
}

/* ---------- botoes ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .015em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--violet-glow);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px var(--violet-glow); transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #d99f2e 100%);
  color: #2a1c00;
  box-shadow: 0 10px 30px -12px rgba(237, 189, 90, .45);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(237, 189, 90, .55); }

.btn-ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--violet); background: rgba(168, 85, 247, .09); }

.btn-sm { padding: 9px 17px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- tipografia de secao ---------- */
section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--violet);
}

h2.h {
  font-size: clamp(30px, 4.2vw, 48px);
  margin-bottom: 18px;
}

p.sub {
  color: var(--ink-dim);
  font-size: 18px;
  max-width: 66ch;
  margin: 0 0 44px;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--violet-deep);
  box-shadow: var(--shadow-violet);
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding: 56px 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 40px;
}
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }

.foot-col h4 {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.foot-col a {
  display: block;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 6px 0;
  font-size: 15px;
  transition: color .16s ease;
}
.foot-col a:hover { color: var(--violet-bright); }

.foot-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 14px;
}

/* ---------- redes sociais ---------- */
.social-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-dim);
  transition: all .2s ease;
}
.social-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.social-btn:hover { color: var(--ink); transform: translateY(-2px); }
.social-btn.discord:hover { border-color: #5865f2; background: rgba(88, 101, 242, .12); }
.social-btn.youtube:hover { border-color: #ff0000; background: rgba(255, 0, 0, .1); }
.social-btn.tiktok:hover  { border-color: #25f4ee; background: rgba(37, 244, 238, .1); }
.social-btn.instagram:hover { border-color: #e1306c; background: rgba(225, 48, 108, .12); }

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