/* ═══════════════════════════════════════════════════════════════════
 *  AGENTICS BOS — SITE-WIDE STYLES (v3 — refined, less stylized)
 * ═══════════════════════════════════════════════════════════════════ */

:root {
  --ink:           #0a0e1a;
  --ink-2:         #0f1424;
  --ink-3:         #161d33;
  --ink-4:         #1f2942;
  --header-bg:     #0d1322;          /* slightly lighter than page bg */

  --silver:        #e2e4e9;
  --silver-dim:    #a8b0c0;
  --electric:      #1a80db;
  --electric-soft: #61b3dc;
  --amber:         #e27728;
  --amber-bright:  #ffa53f;
  --amber-soft:    rgba(226, 119, 40, 0.12);

  --paper:         #f4ede1;
  --accent:        var(--electric);
  --accent-warm:   var(--amber);
  --accent-glow:   rgba(26, 128, 219, 0.22);
  --accent-amber-glow: rgba(226, 119, 40, 0.18);

  --text:          rgba(232, 236, 245, 0.96);
  --text-2:        rgba(232, 236, 245, 0.72);
  --text-mute:     rgba(232, 236, 245, 0.48);
  --text-faint:    rgba(232, 236, 245, 0.30);

  --border:        rgba(232, 236, 245, 0.08);
  --border-strong: rgba(232, 236, 245, 0.18);
  --border-amber:  rgba(226, 119, 40, 0.30);

  /* Plus Jakarta Sans: clean, professional, used by Stripe-tier fintech.
     No more "geometric design system" Syne energy. */
  --display: 'Plus Jakarta Sans', sans-serif;
  --body:    'DM Sans', sans-serif;
  --mono:    'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }   /* JS handles smooth-scroll for fine control */
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' /%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.display { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.mono    { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow-blue { color: var(--electric-soft); }

.lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-2);
  line-height: 1.6;
  font-weight: 400;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
@media (max-width: 720px) { .container { padding: 0 20px; } }
section { padding: 112px 0; position: relative; }
@media (max-width: 720px) { section { padding: 72px 0; } }

/* ─── HEADER BAR: VISUALLY SEPARATED ─── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  /* Bottom edge accent — the separator that distinguishes header from page */
  box-shadow:
    0 1px 0 0 var(--border-strong),
    0 8px 24px rgba(0, 0, 0, 0.25);
  transition: padding 0.3s ease;
}
nav.site-nav::after {
  /* Thin amber → blue gradient line just below nav */
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--amber) 30%,
    var(--electric) 70%,
    transparent 100%);
  opacity: 0.5;
}
nav.site-nav.scrolled {
  padding: 12px 0;
  background: rgba(13, 19, 34, 0.96);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  font-size: 16px; color: var(--text);
}
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-mark svg, .logo-mark img { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo-text strong {
  font-weight: 700; letter-spacing: -0.01em;
  color: var(--silver);
}
.logo-text span {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.28em;
  color: var(--electric-soft); font-weight: 500;
}
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--electric); color: white !important;
  padding: 9px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 12px rgba(26, 128, 219, 0.20);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.mobile-toggle { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--ink-2);
    padding: 16px 0; border-top: 1px solid var(--border);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; padding: 14px 32px; }
  .mobile-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
  .mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: 0.2s; }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 8px;
  font-weight: 600; font-size: 14.5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--electric) 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(26, 128, 219, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(26, 128, 219, 0.40); }

.btn-amber {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-bright) 100%);
  color: #1a0c00;
  box-shadow: 0 4px 16px rgba(226, 119, 40, 0.30);
  font-weight: 700;
}
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(226, 119, 40, 0.45); }

.btn-secondary {
  border-color: var(--border-strong); color: var(--text);
  background: rgba(232, 236, 245, 0.03);
}
.btn-secondary:hover { border-color: var(--text-2); background: rgba(232, 236, 245, 0.06); }
.btn svg { width: 16px; height: 16px; }

.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head h2 {
  font-family: var(--display); font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.025em;
  margin: 18px 0 20px;
}
.section-head h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--electric-soft) 0%, var(--electric) 50%, var(--amber) 120%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-head .lead { font-size: 17px; color: var(--text-2); line-height: 1.6; }

footer.site-footer {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 56px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about p { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-top: 16px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--text-mute); text-transform: uppercase; font-weight: 600; margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--text-2); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-contact-line { font-size: 13px; color: var(--text-2); font-family: var(--mono); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: var(--text-mute); font-family: var(--mono); letter-spacing: 0.04em;
}
.footer-bottom a { color: var(--text-mute); }
.footer-bottom a:hover { color: var(--text-2); }

.subpage-header {
  padding: 168px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.subpage-header::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 480px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}
.subpage-header::after {
  content: ''; position: absolute; bottom: -200px; right: 10%;
  width: 480px; height: 320px;
  background: radial-gradient(ellipse, var(--accent-amber-glow) 0%, transparent 70%);
  pointer-events: none;
}
.subpage-header .container { position: relative; z-index: 2; }
.subpage-header h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 6vw, 68px); line-height: 1.08;
  letter-spacing: -0.025em; margin: 16px 0 20px;
  max-width: 920px;
}
.subpage-header p.lead {
  font-size: 18px; color: var(--text-2); max-width: 720px; line-height: 1.55;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.chip {
  display: inline-block;
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.10em;
  padding: 5px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-2);
}
.chip-amber { border-color: var(--border-amber); color: var(--amber-bright); background: var(--amber-soft); }
.chip-electric { border-color: rgba(26, 128, 219, 0.30); color: var(--electric-soft); background: rgba(26, 128, 219, 0.10); }

.live-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s ease infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ─── LEGAL/TEXT PAGES (privacy, terms) ─── */
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-family: var(--display); font-weight: 700;
  font-size: 24px; letter-spacing: -0.015em;
  margin: 48px 0 16px; color: var(--text);
}
.legal-content h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 18px; letter-spacing: -0.01em;
  margin: 28px 0 10px; color: var(--text);
}
.legal-content p {
  font-size: 15px; color: var(--text-2);
  line-height: 1.7; margin-bottom: 14px;
}
.legal-content ul, .legal-content ol {
  margin: 8px 0 18px 24px;
}
.legal-content li {
  font-size: 15px; color: var(--text-2); line-height: 1.6;
  margin-bottom: 8px;
}
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content code {
  font-family: var(--mono); font-size: 13px;
  background: var(--ink-2); padding: 2px 6px; border-radius: 3px;
}
.legal-effective {
  font-family: var(--mono); font-size: 12px;
  color: var(--text-mute); letter-spacing: 0.06em;
  padding: 10px 14px; background: var(--ink-2);
  border-left: 2px solid var(--amber);
  margin-bottom: 32px;
}
