/* /assets/styles/global.css */
/* ============================================================
   Reset, variáveis, tipografia e layout base.
   Design system idêntico à landing page principal.
   ============================================================ */

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

:root {
  --black: #000000;
  --dark-bg: #0A0A0A;
  --dark-surface: #111111;
  --dark-border: #1A1A1A;
  --gold-dark: #9C7C0F;
  --gold-mid: #EABA16;
  --gold-light: #FEC91A;
  --gold-glow: rgba(254, 201, 26, 0.08);
  --gold-glow-strong: rgba(254, 201, 26, 0.15);
  --text-primary: #F5F5F0;
  --text-secondary: #8A8A85;
  --text-muted: #5A5A55;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'SFMono-Regular', 'Cascadia Code', 'Fira Code', Consolas, monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Container — mesma largura da landing page */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Container largo para grids de posts */
.container--wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

main {
  flex: 1;
}

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

ul, ol { list-style: none; }

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* Tipografia — mesmas fontes e pesos da landing page */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Divider — idêntico à landing page */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dark-border), rgba(156, 124, 15, 0.2), var(--dark-border), transparent);
}

/* Section base — mesmo padding da landing page */
section {
  padding: 120px 0;
  position: relative;
}

/* Section labels — idêntico */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold-dark);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 56px;
}

::selection {
  background: var(--gold-glow-strong);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--dark-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Animations — idênticas à landing page */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 640px) {
  .container, .container--wide { padding: 0 16px; }
  section { padding: 72px 0; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section-desc { font-size: 0.95rem; margin-bottom: 40px; }
}

@media (max-width: 380px) {
  .container, .container--wide { padding: 0 14px; }
  .section-title { font-size: 1.5rem; }
}
