/* ============== ALLIANCES ADVISOR, SHARED STYLES ============== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-variable.woff2') format('woff2');
}
:root {
  --ink:        #f4f6fb;
  --ink-2:      #c7d0e0;
  --ink-3:      #8b97ad;
  --ink-4:      #5a6478;
  --ink-5:      #353e52;
  --rule:       rgba(255,255,255,0.08);
  --rule-2:     rgba(255,255,255,0.14);
  --bg-0:       #0b0f19;
  --bg-1:       #0e1322;
  --bg-2:       #131a2c;
  --bg-3:       #18203a;
  --grad:       linear-gradient(180deg, #132038 0%, #0b0f19 100%);
  --grad-side:  linear-gradient(135deg, #132038 0%, #0b0f19 100%);
  --cyan:       #67d2ff;
  --green:      #61ffa8;
  --amber:      #ffb45c;
  --rose:       #ff8a8a;
  --shadow:     0 30px 80px -30px rgba(0,0,0,0.6);
  --maxw:       1280px;
  --gutter:     64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: #0b0f19; }
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--grad);
  background-attachment: fixed;
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--cyan); color: #021018; }

.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-feature-settings: "tnum"; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--cyan); display: inline-block;
}
.eyebrow.no-bar::before { display: none; }

.num {
  font-family: 'JetBrains Mono', monospace; font-weight: 500;
  font-size: 12px; color: var(--ink-4); letter-spacing: 0.04em;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11,15,25,0.78);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.01em; }
.brand-logo { height: 32px; width: auto; display: block; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { font-size: 15px; color: var(--ink); line-height: 1; }
.brand-text small {
  display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 13px; font-weight: 500; color: var(--ink-2); transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active { color: var(--cyan); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; font-size: 13px; font-weight: 600;
  border-radius: 4px; border: 1px solid transparent;
  transition: all 0.18s ease-out; cursor: pointer;
  font-family: inherit; letter-spacing: 0.01em; white-space: nowrap;
}
.btn-primary { background: var(--cyan); color: #061620; }
.btn-primary:hover { background: #8fdfff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--ink-2); background: rgba(255,255,255,0.03); }
.btn-text {
  color: var(--cyan); font-weight: 600; font-size: 13px;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.btn-text:hover { border-bottom-color: var(--cyan); }
.btn-lg { padding: 14px 24px; font-size: 14px; }

.arrow { display: inline-block; transition: transform 0.18s ease-out; }
.btn:hover .arrow, a:hover .arrow { transform: translateX(3px); }

.nav-toggle {
  display: none; background: transparent;
  border: 1px solid var(--rule-2); padding: 9px 11px;
  border-radius: 4px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 3.5px 0; }

/* ===== PAGE HEADER (sub-page hero) ===== */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 600px at 85% 10%, rgba(103,210,255,0.05), transparent 60%);
  pointer-events: none;
}
.page-hero .crumb {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--ink-4); letter-spacing: 0.04em;
  margin-bottom: 32px; display: flex; align-items: center; gap: 8px;
}
.page-hero .crumb a:hover { color: var(--ink-2); }
.page-hero .crumb .sep { color: var(--ink-5); }
.page-hero .kind {
  display: inline-block; padding: 5px 10px;
  background: rgba(103,210,255,0.12); color: var(--cyan);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; border-radius: 2px; margin-bottom: 24px;
}
.page-hero h1 {
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.025em;
  margin-bottom: 28px; max-width: 980px;
}
.page-hero h1 em { font-style: normal; color: var(--cyan); }
.page-hero .lede {
  font-size: 19px; color: var(--ink-2); max-width: 720px;
  line-height: 1.55; font-weight: 400;
}

/* ===== FOOTER ===== */
footer { padding: 64px 0 32px; border-top: 1px solid var(--rule); margin-top: 80px; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--rule);
}
.foot-col h4 {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 16px; font-weight: 600;
}
.foot-col a, .foot-col p {
  font-size: 13.5px; color: var(--ink-2);
  display: block; margin-bottom: 10px;
  font-weight: 400; line-height: 1.5;
}
.foot-col a:hover { color: var(--ink); }
.foot-brand p { font-size: 13.5px; color: var(--ink-3); max-width: 360px; margin-top: 16px; line-height: 1.6; }
.foot-bottom {
  margin-top: 32px; display: flex; justify-content: space-between;
  align-items: center; font-size: 12px; color: var(--ink-4);
  flex-wrap: wrap; gap: 16px;
}
.foot-bottom .legal { display: flex; gap: 20px; }
.foot-bottom .legal a:hover { color: var(--ink-2); }

/* ===== RESPONSIVE base ===== */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
}
@media (max-width: 820px) {
  :root { --gutter: 24px; }
  body { background-attachment: scroll; }
  .nav, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-1); border-bottom: 1px solid var(--rule);
    padding: 16px 24px 24px; gap: 14px;
  }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .page-hero { padding: 56px 0 48px; }
  .page-hero h1 { font-size: 34px; }
  .page-hero .lede { font-size: 16px; }
}
@media (max-width: 540px) {
  :root { --gutter: 18px; }
  .page-hero { padding: 40px 0 32px; }
  .page-hero h1 { font-size: 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .brand-logo { height: 28px; }
}
