/* ============================================================
   css/style.css — Estilos compartilhados BOPRO
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:        #F5F4F0;
  --bg2:       #ECEAE4;
  --bg3:       #E2DFD8;
  --surface:   #FFFFFF;
  --border:    #D8D5CE;
  --border2:   #C8C4BC;
  --text:      #1A1917;
  --text2:     #5C5954;
  --text3:     #9C9890;
  --primary:   #1B3A6B;
  --primary2:  #142D54;
  --primary-l: #E8EFF8;
  --accent:    #F97316;
  --accent2:   #EA6A0A;
  --accent-l:  #FEF3E8;
  --green:     #16A34A;
  --green-l:   #DCFCE7;
  --purple:    #7C3AED;
  --purple-l:  #EDE9FE;
  --code-bg:   #1E1E2E;
  --code-text: #CDD6F4;
  --shadow:    0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.12);
  --radius:    14px;
  --radius-sm: 9px;
  --radius-xs: 6px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] {
  --bg:        #0D1117;
  --bg2:       #161B24;
  --bg3:       #1C2333;
  --surface:   #1C2333;
  --border:    #2A3347;
  --border2:   #374461;
  --text:      #E8EAF0;
  --text2:     #9BA3B8;
  --text3:     #5C6478;
  --primary:   #5B9BD5;
  --primary2:  #4A8BC4;
  --primary-l: #1A2A40;
  --accent:    #F97316;
  --accent2:   #EA6A0A;
  --accent-l:  #2A1A0A;
  --green:     #22C55E;
  --green-l:   #0D2818;
  --purple:    #A78BFA;
  --purple-l:  #1E1535;
  --shadow:    0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.5);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.6);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: 'Sora', sans-serif; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ── LOGO ───────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text  { display: flex; flex-direction: column; line-height: 1; }
.logo-name  {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
  letter-spacing: -.02em;
}
.logo-tag {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1px;
}

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(245,244,240,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
[data-theme="dark"] .nav { background: rgba(13,17,23,.88); }
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text2);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--bg2); }
.nav-links a.active { font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* ── THEME BUTTON ───────────────────────────────────────── */
.theme-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: grid; place-items: center;
  font-size: .95rem;
  color: var(--text2);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.theme-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-l); }
[data-theme="dark"]  .sun  { display: block; }
[data-theme="dark"]  .moon { display: none; }
[data-theme="light"] .sun  { display: none; }
[data-theme="light"] .moon { display: block; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(.97) !important; }
.btn-sm { padding: 7px 16px; font-size: .82rem; border-radius: var(--radius-sm); }
.btn-md { padding: 11px 24px; font-size: .9rem;  border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: .95rem; border-radius: var(--radius-sm); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(249,115,22,.3); }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,115,22,.4); }

.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-l); }

.btn-dark { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(27,58,107,.25); }
.btn-dark:hover { background: var(--primary2); transform: translateY(-1px); }

/* ── TAGS ───────────────────────────────────────────────── */
.tag {
  padding: 2px 9px;
  border-radius: var(--radius-xs);
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  background: var(--bg2);
  color: var(--text3);
  border: 1px solid var(--border);
}

/* ── NEWSLETTER BOX ─────────────────────────────────────── */
.nl-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.nl-box::before {
  content: '{ }';
  position: absolute;
  right: 48px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Space Mono', monospace;
  font-size: 8rem;
  font-weight: 700;
  color: var(--border);
  pointer-events: none;
  line-height: 1;
  opacity: .5;
}
.nl-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}
.nl-sub { font-size: .88rem; color: var(--text2); line-height: 1.6; }
.nl-form { display: flex; gap: 10px; min-width: 360px; position: relative; z-index: 1; }
.nl-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: .88rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nl-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,58,107,.1);
}
.nl-input::placeholder { color: var(--text3); }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--bg2); border-top: 1px solid var(--border); }
.footer-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 28px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: .83rem;
  color: var(--text3);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--text); }
.social-links { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--text3);
  font-size: .9rem;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  text-decoration: none;
}
.social-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-l); }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy { font-size: .76rem; color: var(--text3); }
.footer-xo {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
}

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fu { animation: fadeUp .65s ease both; }
.d1 { animation-delay: .08s; }
.d2 { animation-delay: .18s; }
.d3 { animation-delay: .28s; }
.d4 { animation-delay: .38s; }
.d5 { animation-delay: .48s; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nl-box { flex-direction: column; padding: 32px 28px; }
  .nl-box::before { display: none; }
  .nl-form { min-width: unset; width: 100%; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; }
}
