/* ═══════════════════════════════════════════════════════════════
   Dragons Lab — global.css
   Carregado em TODAS as páginas.
   Contém: tokens, reset, utilitários, navbar, footer,
           breadcrumb, botões, reveal, cookie banner,
           eyebrow/dot, feedback de formulário, spinner,
           lightbox base.
   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --bg: #0a0812;
  --bg-2: #0f0d1a;
  --bg-3: #151224;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(196, 160, 82, 0.3);

  --gold: #c4a052;
  --gold-light: #e8c97a;
  --gold-dark: #8a6e30;
  --gold-glow: rgba(196, 160, 82, 0.2);

  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-glow: rgba(124, 58, 237, 0.25);

  --red: #dc2626;
  --red-light: #f87171;

  --text: #e8e0d0;
  --text-muted: rgba(232, 224, 208, 0.55);
  --text-faint: rgba(232, 224, 208, 0.3);

  --mana-w: #f9fafb;
  --mana-u: #3b82f6;
  --mana-b: #6b21a8;
  --mana-r: #ef4444;
  --mana-g: #16a34a;

  --ff-display: "Cinzel", "Palatino Linotype", Georgia, serif;
  --ff-body: "Crimson Pro", Georgia, serif;
  --ff-mono: "JetBrains Mono", "Courier New", monospace;

  --container: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-magic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
}

/* ─── UTILITÁRIOS ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container--narrow {
  max-width: 840px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(
    135deg,
    #e8c97a 0%,
    #c4a052 40%,
    #f0d896 70%,
    #c4a052 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header--flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  margin-bottom: 40px;
}

/* ─── BOTÕES ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(
    135deg,
    var(--gold-dark),
    var(--gold),
    var(--gold-light)
  );
  background-size: 200% 200%;
  color: var(--bg);
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition:
    background-position 0.4s,
    opacity 0.2s,
    transform 0.2s;
}
.btn-primary:hover {
  background-position: right center;
  opacity: 0.92;
  transform: translateY(-1px);
}
.btn-primary i {
  font-size: 14px;
}
.btn-primary.btn-sm {
  padding: 8px 20px;
  font-size: 12px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--gold);
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-gold);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s,
    transform 0.2s;
}
.btn-outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: transparent;
  color: var(--gold);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border-gold);
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-outline-sm:hover {
  background: var(--gold-glow);
  color: var(--gold-light);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #25d366;
  color: #fff;
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.btn-whatsapp:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-whatsapp i {
  font-size: 18px;
}

/* ─── NAVBAR ─────────────────────────────────────────────────── */

.logo-inline {
  display: inline-flex;
  align-items: end;
  gap: 8px;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition:
    background 0.35s,
    backdrop-filter 0.35s,
    border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10, 8, 18, 0.92);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo img {
  height: 38px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease-out);
}
.nav-links a:hover {
  color: var(--gold-light);
}
.nav-links a:hover::after {
  right: 0;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg);
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.nav-cta i {
  font-size: 12px;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold-light);
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(10, 8, 18, 0.98);
  border-top: 1px solid var(--border);
  padding: 0 24px 24px;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  padding: 14px 0;
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav .mobile-cta {
  color: var(--gold-light);
}

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb-bar {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
  z-index: 1;
  margin-top: 72px;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb-list li {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.breadcrumb-list li i {
  font-size: 8px;
  opacity: 0.5;
}
.breadcrumb-list a {
  color: var(--text-faint);
  transition: color 0.2s;
}
.breadcrumb-list a:hover {
  color: var(--gold);
}
.breadcrumb-list [aria-current="page"] {
  color: var(--gold);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.footer-brand {
  display: inline-flex;
  gap: 1rem;
}
.footer-brand img {
  height: 70px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-faint);
  line-height: 1.7;
  max-width: 220px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-title {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--gold-light);
}
.footer-col a i {
  font-size: 14px;
}
.soon-tag {
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 1px 5px;
}
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-faint);
}
.footer-bottom span {
  color: var(--red-light);
}

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── EYEBROW COM PONTO PULSANTE ─────────────────────────────── */
.product-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: blinkDot 2s ease-in-out infinite;
}
@keyframes blinkDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ─── FORM FEEDBACK & SPINNER ────────────────────────────────── */
.form-feedback {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 14px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: var(--red-light);
}
.form-feedback i {
  font-size: 18px;
  flex-shrink: 0;
}
.form-feedback--loading {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
}
.form-feedback--success {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.35);
  color: #4ade80;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── LIGHTBOX (base compartilhada) ─────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 10, 0.93);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  max-width: 600px;
  width: 100%;
}
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.lightbox-content img {
  max-width: min(320px, 80vw);
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px var(--border-gold),
    0 32px 80px rgba(0, 0, 0, 0.8),
    0 0 60px var(--gold-glow);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.lightbox-caption {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  z-index: 2;
}
.lightbox-close:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.4);
  color: var(--red-light);
}
.lightbox-nav {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.lightbox-nav:hover {
  background: var(--gold-glow);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

/* ─── COOKIE BANNER ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 500px;
  background: var(--bg-3);
  border: 1px solid var(--border-gold);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 300;
  transform: translateY(120px);
  opacity: 0;
  transition:
    transform 0.4s var(--ease-out),
    opacity 0.4s;
}
.cookie-banner.show {
  transform: none;
  opacity: 1;
}
.cookie-banner[aria-hidden="true"] {
  display: none;
}
.cookie-banner p {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.5;
}
.cookie-banner a {
  color: var(--gold);
}

/* ─── RESPONSIVE GLOBAL ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .burger {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .section-header--flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cookie-banner {
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: flex-start;
    bottom: 12px;
  }
  .lightbox-inner {
    gap: 8px;
    padding: 0 8px;
  }
  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
}
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 480px) {
  .lightbox-nav {
    display: none;
  }
}
