/* ------------------------------------------------------------------
   Piphin Studio - estilos do site público
   Paleta e tipografia vêm do mockup original (neon rosa/laranja).
   ------------------------------------------------------------------ */

:root {
  --bg:        #12061c;
  --bg-soft:   #1a0826;
  --bg-card:   #1d0a2b;
  --deep:      #6b1350;
  --pink:      #ff2e88;
  --pink-soft: #ff4d94;
  --orange:    #ff8a3d;
  --amber:     #ffb03a;
  --yellow:    #ffd166;
  --text:      #ffeaf3;
  --text-soft: #ffd7e8;
  --muted:     #c69cb4;
  --line:      rgba(255, 46, 136, .28);
  --line-soft: rgba(255, 255, 255, .12);
  --ok:        #4ade80;
  --err:       #ff6b6b;

  --radius:    18px;
  --radius-lg: 26px;
  --shell:     1180px;
  --font:      Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Archivo Black", Archivo, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--pink-soft); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--amber); }

::selection { background: var(--pink); color: #fff; }

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

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.025em; line-height: 1.05; margin: 0; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(36px, 4vw, 56px) 0; }
.section--alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); text-transform: uppercase; }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 56ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(18, 6, 28, .35);
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: #fff3d6;
}

/* ---------------------------- Botões ---------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 700 14px/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; transition: transform .12s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(95deg, var(--pink), var(--orange)); color: #2a0714; }
.btn--primary:hover { color: #2a0714; filter: brightness(1.12); }
.btn--light { background: rgba(255, 255, 255, .92); color: var(--deep); }
.btn--light:hover { color: var(--deep); background: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .06); color: var(--text-soft); border-color: rgba(255, 255, 255, .18); }
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.btn--block { width: 100%; }

/* ---------------------------- Header ---------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(18, 6, 28, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 42px; height: 42px; border-radius: 999px; object-fit: cover; border: 2px solid var(--pink); }
.brand span { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: -.02em; }

.site-nav { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 24px); flex-wrap: wrap; }
.site-nav a { color: var(--text-soft); font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.site-nav a:hover, .site-nav a.is-active { color: var(--orange); }
.site-nav .btn { font-size: 12.5px; padding: 10px 18px; }

.nav-divider { width: 1px; height: 22px; background: var(--line-soft); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-soft);
  font: 600 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.lang-switch:hover { color: #fff; border-color: var(--pink); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--text); border-radius: 12px; padding: 9px 12px; cursor: pointer;
  font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 64px 0 auto; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px clamp(16px, 4vw, 48px) 26px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .55);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav .btn, .site-nav .lang-switch { justify-content: center; margin-top: 10px; }
  .nav-divider { display: none; }
}

/* ---------------------------- Hero ---------------------------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(60px, 8vw, 116px);
  background: radial-gradient(120% 90% at 70% 10%, var(--orange) 0%, var(--pink) 32%, var(--deep) 58%, var(--bg) 92%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 4px);
}
.hero .shell { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 {
  font-size: clamp(46px, 8.5vw, 104px); line-height: .92; margin: 20px 0 0;
  text-transform: uppercase; color: #fff; text-shadow: 0 6px 0 rgba(107, 19, 80, .55);
}
.hero p { max-width: 46ch; margin: 22px 0 0; font-size: clamp(16px, 1.6vw, 20px); color: #ffe6f1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-art { position: relative; width: min(460px, 100%); margin: 0 auto; }
.hero-art::before {
  content: ""; position: absolute; inset: -6% -6% -10%; border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 209, 102, .55), rgba(255, 46, 136, 0) 68%);
  animation: pip-sun 5s ease-in-out infinite;
}
.hero-art img { position: relative; filter: drop-shadow(0 30px 50px rgba(43, 3, 24, .55)); animation: pip-float 7s ease-in-out infinite; }

@keyframes pip-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-18px) rotate(1deg); } }
@keyframes pip-sun   { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-art img, .hero-art::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------- Estatísticas ---------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stats div { background: var(--bg); padding: 26px clamp(16px, 3vw, 32px); }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); color: #fff; }
.stats span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------- Cards ---------------------------- */

.card-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--pink); }
.card__media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--deep), var(--bg-soft)); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  padding: 6px 12px; border-radius: 999px; background: rgba(18, 6, 28, .82);
  border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft);
}
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { font-size: 24px; color: #fff; }
.card__body p { margin: 0; color: var(--muted); font-size: 15px; }
.card__link { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.card__meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-soft);
}

/* ---------------------------- Equipe ---------------------------- */

.member { text-align: center; padding: 24px 18px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.member__photo {
  width: 104px; height: 104px; margin: 0 auto 14px; border-radius: 999px; object-fit: cover;
  border: 2px solid var(--pink); background: var(--bg-soft);
  display: grid; place-items: center; color: var(--muted); font-family: var(--font-mono); font-size: 11px;
}
.member h3 { font-size: 18px; color: #fff; }
.member .role { color: var(--orange); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 8px; }
.member .worked { color: var(--muted); font-size: 13px; }

/* ---------------------------- Sobre / processo ---------------------------- */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }
.prose p { color: var(--text-soft); font-size: clamp(16px, 1.5vw, 18px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step; display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: "0" counter(step); font-family: var(--font-mono); font-size: 13px;
  color: var(--pink); font-weight: 700; letter-spacing: .08em;
}

/* ---------------------------- Redes ---------------------------- */

.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.social-card {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 22px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text);
}
.social-card:hover { color: #fff; border-color: var(--pink); background: #24102f; }
.social-card strong { font-family: var(--font-display); font-size: 19px; }
.social-card span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------- Página de jogo ---------------------------- */

.game-hero { background: linear-gradient(160deg, var(--deep) 0%, var(--bg) 70%); border-bottom: 1px solid var(--line); padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.game-hero h1 { font-size: clamp(40px, 7vw, 82px); text-transform: uppercase; color: #fff; margin: 14px 0 0; }
.game-hero .lead { font-size: clamp(16px, 1.7vw, 20px); color: var(--text-soft); max-width: 52ch; margin: 18px 0 0; }
.game-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
.game-facts div { background: var(--bg); padding: 16px 18px; }
.game-facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.game-facts dd { margin: 0; font-weight: 600; color: #fff; }

.highlight-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.highlight-list li { display: flex; gap: 12px; color: var(--text-soft); }
.highlight-list li::before { content: "\25C6"; color: var(--pink); font-size: 12px; line-height: 1.7; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16/9; object-fit: cover; width: 100%; }

.back-link { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }

/* ---------------------------- Post ---------------------------- */

.post-body { max-width: 68ch; }
.post-body p { color: var(--text-soft); font-size: 17px; margin: 0 0 20px; }
.post-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); margin-bottom: 32px; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; }
.filters .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.filters a {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--text-soft);
}
.filters a.is-active, .filters a:hover { background: var(--pink); border-color: var(--pink); color: #fff; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); color: var(--text-soft); font-weight: 600;
}
.pagination .is-active { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ---------------------------- Formulários ---------------------------- */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft);
  color: var(--text); font: 15px/1.5 var(--font); transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--pink); background: rgba(255, 255, 255, .07); }
.field textarea { min-height: 150px; resize: vertical; }
.field select option { background: var(--bg-card); color: var(--text); }
.field .hint { font-size: 12.5px; color: var(--muted); }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-soft); }
.check input { width: 18px; height: 18px; accent-color: var(--pink); margin-top: 2px; flex: none; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.auth-wrap { display: grid; place-items: center; padding: clamp(40px, 6vw, 80px) 0; }
.auth-card {
  width: min(460px, 100%); padding: clamp(26px, 4vw, 40px);
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.auth-card h1 { font-size: clamp(28px, 4vw, 38px); text-transform: uppercase; }
.auth-card > p { color: var(--muted); margin: 10px 0 26px; }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); text-align: center; }

.newsletter { display: flex; flex-wrap: wrap; gap: 12px; }
.newsletter input { flex: 1 1 240px; }

/* ---------------------------- Mensagens ---------------------------- */

.flashes { display: grid; gap: 10px; margin-bottom: 20px; }
.flash { padding: 13px 18px; border-radius: 14px; border: 1px solid; font-size: 14.5px; }
.flash--success { background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .45); color: #b9f6d0; }
.flash--error   { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .45); color: #ffc9c9; }
.flash--info    { background: rgba(255, 138, 61, .1);  border-color: rgba(255, 138, 61, .45);  color: #ffd9b8; }

.flash-fixed { position: fixed; inset: auto 16px 16px auto; z-index: 90; max-width: 360px; }

/* ---------------------------- Conta ---------------------------- */

.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; align-items: start; }
.panel { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.panel h2 { font-size: 22px; text-transform: uppercase; margin-bottom: 18px; }
.panel--danger { border-color: rgba(255, 107, 107, .4); }
.panel--danger h2 { color: #ffb3b3; }

.badge-role {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 46, 136, .16); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-soft);
}

/* ---------------------------- Rodapé ---------------------------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: clamp(36px, 5vw, 56px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-soft); font-size: 14.5px; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}

/* ---------------------------- Utilidades ---------------------------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.muted { color: var(--muted); }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.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; }
.placeholder-media { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255, 234, 243, .35); font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
