/* BelmanAI — shared site styles.
   Extracted from the per-page <style> blocks: rules identical across (nearly) all pages.
   Page-specific styles remain inline on each page and override this file. */

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

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

nav.top.scrolled {
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 2px 16px rgba(10,37,64,0.08);
}

nav.top .brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.04em; flex-shrink: 0;
}

nav.top .brand img { width: 68px; height: auto; display: block; mix-blend-mode: multiply; }

nav.top .links {
  display: flex; gap: 32px; align-items: center;
  font-size: 14px; font-weight: 500;
}

nav.top .links a { color: var(--body); transition: color 0.15s; letter-spacing: 0.01em; white-space: nowrap; }

nav.top .links a:hover { color: var(--accent); }

nav.top a.nav-login {
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--ink); border: 1px solid transparent;
  padding: 9px 20px; border-radius: 100px;
  transition: background 0.15s; white-space: nowrap; letter-spacing: 0.01em;
}

nav.top a.nav-login:hover { background: var(--accent); }

.nav-hamburger {
  display: none; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--rule);
  border-radius: 6px; padding: 7px 9px; cursor: pointer;
  color: var(--ink); transition: border-color 0.15s, background 0.15s;
}

.nav-hamburger:hover { background: var(--bg-alt); }

.nav-hamburger svg { display: block; }

.nav-mobile-menu {
  display: none; flex-direction: column;
  background: #fff; border-top: 1px solid var(--rule); padding: 8px 0 16px;
}

nav.top.open .nav-mobile-menu { display: flex; }

.nav-mobile-menu a {
  padding: 14px 28px; font-size: 14px; font-weight: 500;
  color: var(--body); border-bottom: 1px solid var(--rule);
  transition: color 0.15s, background 0.15s;
}

.nav-mobile-menu a:hover { color: var(--ink); background: var(--bg-alt); }

@media (max-width: 600px) {
  nav.top .inner { padding: 0 20px; height: 60px; }
  nav.top .brand img { width: 64px; }
}

footer .foot-mini {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
}

footer .foot-mini .legal { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

footer .foot-mini a { color: rgba(255,255,255,0.55); transition: color 0.15s; }

footer .foot-mini a:hover { color: var(--hero-h); }

footer .foot-mini .legal-sep { color: rgba(255,255,255,0.16); }

footer .foot-mini .legal a.foot-social { color: rgba(255,255,255,0.72); font-weight: 500; }

footer .foot-mini .legal a.foot-social:hover { color: var(--hero-h); }

@media (max-width: 640px) { footer .foot-mini { padding: 0 22px; } }

/* ══════════════════════════════════════════
   RESPONSIVE POLISH (tablet + mobile)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .wrap, .narrow { padding: 0 32px; }
  .hero-split { grid-template-columns: 1fr; gap: 48px; }
  .hero-right .nexus-device-svg { max-width: 460px; margin: 0 auto; }
  .deploy-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Accessibility skip-link ── */
.skip-link {
  position: absolute; top: 0; left: 0;
  background: var(--accent); color: #fff;
  padding: 12px 18px; font-weight: 600; font-size: 14px;
  border-radius: 0 0 6px 0; z-index: 200;
  transform: translateY(-110%);
  transition: transform 0.2s;
}

.skip-link:focus { transform: translateY(0); }

/* ── Mobile menu polish ── */
.nav-mobile-menu a.nav-mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 500; transition: padding-left 0.18s, background 0.15s, color 0.15s;
}

.nav-mobile-menu a.nav-mobile-link::after {
  content: '→'; font-weight: 400; opacity: 0.35;
  transition: opacity 0.15s, transform 0.15s;
}

.nav-mobile-menu a.nav-mobile-link:hover {
  padding-left: 34px; color: var(--accent);
}

.nav-mobile-menu a.nav-mobile-link:hover::after { opacity: 1; transform: translateX(3px); }

/* ── Dark CTA sub-text consolidation ── */
section.dark-cta .cta-sub,
.dark-cta .cta-sub,
.cta-strip .cta-sub {
  font-size: 17px; line-height: 1.5;
  color: rgba(255,255,255,0.72);
  max-width: 46ch; margin: 0 auto 32px;
  letter-spacing: -0.005em;
}

/* ── Dark-context italic em override (gold, not green) ── */
section.hero h1 em,
section.dark-cta h2 em,
.dark-cta h2 em,
.legal-hero h1 em,
.article-hero h1 em,
.job-hero h1 em,
.cta-strip h2 em,
section.hero h2 em,
footer .foot-pitch em {
  color: var(--hero-h) !important;
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic; font-weight: 400;
  letter-spacing: -0.025em;
}

/* ── #6 Focus rings ── */
*:focus { outline: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.nav-mobile-link:focus-visible {
  outline: 2px solid var(--hero-h);
  outline-offset: 3px;
  border-radius: 4px;
}

/* On dark backgrounds use white instead */
section.hero a:focus-visible,
section.dark-cta a:focus-visible,
.dark-cta a:focus-visible,
.legal-hero a:focus-visible,
.article-hero a:focus-visible,
.job-hero a:focus-visible,
.cta-strip a:focus-visible,
footer a:focus-visible {
  outline: 2px solid #ffffff;
}

/* ── #3 Noise grain on dark moments ── */
/* (removed: bad background-image override) */
section.hero::after,
section.dark-cta::after,
.dark-cta::after,
.legal-hero::after,
.article-hero::after,
.job-hero::after,
.cta-strip::after,
.video-band::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
  z-index: 1;
}

section.hero > *,
section.dark-cta > *,
.dark-cta > *,
.legal-hero > *,
.article-hero > *,
.job-hero > *,
.cta-strip > *,
.video-band > * { position: relative; z-index: 2; }

/* ── #7 Hero h1 max-width loosened ── */
.hero-main-h1 { max-width: 22ch; }

/* ── #1 Inner-page hero rule line + remove V* corner ── */
.hero-accent { display: none !important; }

section.hero .wrap > *:first-child,
.legal-hero-inner > *:first-child,
.article-hero-inner > *:first-child,
.job-hero-inner > *:first-child {
  position: relative;
}

/* Thin gold rule above inner-page H1, sitting above the eyebrow */
.hero-rule {
  display: block; width: 56px; height: 2px;
  background: var(--hero-h);
  margin-bottom: 22px;
  box-shadow: 0 0 14px rgba(240,200,80,0.35);
}

nav.top .links a.active::after,
nav.top .links a[aria-current="page"]::after {
  content: ''; position: absolute;
  left: 50%; bottom: -22px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hero-h);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(240,200,80,0.55);
}

footer .foot-mini .foot-brand {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic; font-weight: 500;
  color: rgba(255,255,255,0.85);
  font-size: 16px; letter-spacing: -0.01em;
  margin-right: 6px;
}

/* Auto-stagger: children of a .reveal-group inherit a delay */
.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }

.reveal-group .reveal:nth-child(2) { transition-delay: 0.07s; }

.reveal-group .reveal:nth-child(3) { transition-delay: 0.14s; }

.reveal-group .reveal:nth-child(4) { transition-delay: 0.21s; }

.reveal-group .reveal:nth-child(5) { transition-delay: 0.28s; }

.reveal-group .reveal:nth-child(6) { transition-delay: 0.35s; }

.hero-accent .v {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: 18px; color: var(--hero-h);
  letter-spacing: -0.01em; text-transform: none;
}

.hero-accent .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hero-h);
  box-shadow: 0 0 0 0 rgba(240,200,80,0.4);
  animation: heroAccentPulse 2.6s ease-in-out infinite;
}

@keyframes heroAccentPulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 0 0 rgba(240,200,80,0.45); }
  50%      { opacity: 1;   box-shadow: 0 0 0 6px rgba(240,200,80,0); }
}
