/* ============================================================
   Branue — Intelligence to Influence
   Global stylesheet. Page-section styling is inline in the HTML
   (component-scoped); shared chrome (nav, footer, buttons) and all
   :hover / :focus states live here.
   ============================================================ */

/* --- reset & base --- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Geologica', sans-serif;
  background: #08061a;
  color: #f6f5fb;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
img { max-width: 100%; }

/* --- links (default palette) --- */
a { color: #b55bed; text-decoration: none; }
a:hover { color: #d79bf5; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-family: 'Geologica', sans-serif; font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em; line-height: 1; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary { background: #87fbc0; color: #08061a; }
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 30px -8px rgba(135,251,192,0.5); }
.btn-outline { background: transparent; color: #f6f5fb; border-color: rgba(181,91,237,0.55); }
.btn-outline:hover, .btn-outline:focus-visible { transform: translateY(-1px); border-color: #b55bed; background: rgba(181,91,237,0.12); }
.btn-ghost { background: transparent; color: #d7cdd6; border-color: rgba(215,205,214,0.28); }
.btn-ghost:hover, .btn-ghost:focus-visible { transform: translateY(-1px); border-color: rgba(215,205,214,0.6); color: #f6f5fb; }
.btn:focus-visible { outline: 2px solid #87fbc0; outline-offset: 3px; }

/* --- header / nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,6,26,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215,205,214,0.12);
}
.nav-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 12px clamp(20px,5vw,64px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative;
}
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(18px,2.4vw,32px); }
.nav-links a {
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  color: #d7cdd6; white-space: nowrap; transition: color .2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: #f6f5fb; }
.nav-links a.active { color: #87fbc0; }
.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-toggle {
  display: none; background: none; border: none; color: #f6f5fb;
  font-size: 24px; line-height: 1; cursor: pointer; padding: 6px;
}
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header.nav-open .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #0e0a24; display: flex; flex-direction: column; align-items: flex-start;
    padding: 22px clamp(20px,5vw,64px); gap: 18px;
    border-bottom: 1px solid rgba(215,205,214,0.12);
  }
}

/* --- footer --- */
.site-footer { border-top: 1px solid rgba(215,205,214,0.14); background: #08061a; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: clamp(48px,7vw,80px) clamp(20px,5vw,64px) 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(32px,5vw,64px); margin-bottom: 48px; }
.footer-brand { min-width: 0; }
.footer-logo { display: inline-flex; margin-bottom: 20px; }
.footer-logo img { height: 56px; width: auto; display: block; }
.footer-brand p { color: #b9aec4; font-size: 16px; line-height: 1.6; max-width: 34ch; margin: 0; }
.footer-col { min-width: 0; }
.footer-col h4 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: #b55bed; margin: 0 0 18px;
}
.footer-col a { display: block; color: #d7cdd6; font-size: 16px; margin-bottom: 12px; }
.footer-col a:last-child { margin-bottom: 0; }
.footer-col a:hover { color: #f6f5fb; }
.footer-plain { color: #d7cdd6; font-size: 16px; margin: 0 0 12px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 26px; border-top: 1px solid rgba(215,205,214,0.1);
  font-size: 14px; color: #8f8499; letter-spacing: 0.01em;
}

/* --- form note --- */
.form-note { transition: color .2s ease; }

/* --- scroll reveal --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.reveal-in { opacity: 1; transform: none; }

/* --- logo intro (home) --- */
@keyframes brWordmarkWipe { from { clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); } }
@keyframes brLineSweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes brWordmarkFloat { from { opacity: 0.001; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes brOverlayOut { from { transform: translateY(0); } to { transform: translateY(-101%); } }

@media (prefers-reduced-motion: reduce) {
  #br-intro { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- generated hover / focus states (from component interactions) --- */
.hv-1:hover{border-color: #b55bed !important; transform: translateY(-4px) !important; background: linear-gradient(160deg,rgba(78,59,149,0.5),rgba(8,6,26,0.7)) !important}
.hv-2:hover{border-color: #b55bed !important; color: #f6f5fb !important}
.hv-3:focus-visible{border-color: #87fbc0 !important}
.hv-4:hover{box-shadow: 0 8px 30px -8px rgba(135,251,192,0.5) !important; transform: translateY(-1px) !important}
.hv-5:hover{border-color: #b55bed !important; transform: translateY(-4px) !important}
.hv-6:hover{border-bottom-color: #87fbc0 !important}
.hv-7:hover{color: #87fbc0 !important}
.hv-8:hover{color: #f6f5fb !important}
