/* FPDS site — extends tokens.css with site-level utilities */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #fff;
  color: var(--slate-900);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*::selection { background: #DBEAFE; color: #000080; }

/* --- Grid pattern (signature) --- */
.grid-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,128,0.06) 1px, transparent 0);
  background-size: 40px 40px;
}
.grid-pattern-dark {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 40px 40px;
}
.grid-pattern-fine {
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,128,0.08) 1px, transparent 0);
  background-size: 20px 20px;
}

/* --- Tech border (analyst's clip) --- */
.tech-border {
  position: relative;
  border: 1px solid var(--slate-200);
}
.tech-border::before, .tech-border::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: #000080;
  border-radius: 999px;
}
.tech-border::before { top: -3px; left: -3px; }
.tech-border::after  { bottom: -3px; right: -3px; }
.tech-border.four-corner::before { top: -3px; left: -3px; }
.tech-border.four-corner::after  { top: -3px; right: -3px; }
.tech-border.four-corner > .fc1,
.tech-border.four-corner > .fc2 {
  position: absolute;
  width: 6px; height: 6px;
  background: #000080;
  border-radius: 999px;
}
.tech-border.four-corner > .fc1 { bottom: -3px; left: -3px; }
.tech-border.four-corner > .fc2 { bottom: -3px; right: -3px; }

/* --- Eyebrow (the trademark) --- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #000080;
  display: inline-block;
}
.eyebrow.dark { color: #60A5FA; }
.eyebrow.muted { color: #64748B; }

/* --- Reveal animation (scroll in, Framer-style) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.33, 1, 0.68, 1), transform 0.9s cubic-bezier(0.33, 1, 0.68, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes pulseBar { 0% { opacity: 0.65; } 100% { opacity: 1; } }
@keyframes ambientOrb { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(2%,-1%) scale(1.04); } }
@keyframes heroAurora1 {
  0%,100% { transform: translate(0,0) scale(1); opacity: 0.85; }
  50%     { transform: translate(8%,6%) scale(1.1); opacity: 1; }
}
@keyframes heroAurora2 {
  0%,100% { transform: translate(0,0) scale(1); opacity: 0.7; }
  50%     { transform: translate(-6%,-8%) scale(1.08); opacity: 0.95; }
}
@keyframes flowLine {
  0% { stroke-dashoffset: 40; }
  100% { stroke-dashoffset: 0; }
}
@keyframes marqueeX {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-flow path, .animate-flow line {
  stroke-dasharray: 4 4;
  animation: flowLine 1.2s linear infinite;
}

/* --- Button resets --- */
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* --- Section --- */
.section { padding: 128px 0; position: relative; }
.section-sm { padding: 80px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* --- Display typography --- */
.display {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}
.display .accent { color: #000080; font-style: italic; }
.display.dark { color: #fff; }
.display.dark .accent { color: #60A5FA; }

.h2-display {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.022em;
}
.h2-display .accent { color: #000080; font-style: italic; }
.h2-display.dark { color: #fff; }
.h2-display.dark .accent { color: #60A5FA; }

.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--slate-600);
  max-width: 620px;
  font-weight: 500;
}
.lede.dark { color: #94A3B8; }

.stat-num {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--slate-900);
}
.stat-num.dark { color: #fff; }
.stat-num.accent { color: #000080; }

/* --- Mono labels --- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--slate-500);
  font-weight: 500;
}
.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* --- Page transitions --- */
.page-view {
  animation: pageFade 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Terminal --- */
.terminal-shell {
  background: #0B1222;
  border-radius: 20px;
  overflow: hidden;
  font-family: var(--font-mono);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 40px 80px -30px rgba(0,0,128,0.35), 0 0 0 1px rgba(0,0,0,0.02);
}
.terminal-bar {
  background: #0F172A;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 10px;
}
.terminal-dot { width: 10px; height: 10px; border-radius: 999px; opacity: 0.6; }
.terminal-title {
  margin-left: auto; margin-right: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

/* --- Scrollbar subtle --- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* --- Utility --- */
.no-select { user-select: none; -webkit-user-select: none; }
.underline-grow {
  position: relative;
}
.underline-grow::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.33,1,0.68,1);
}
.underline-grow:hover::after { transform: scaleX(1); }

/* --- CTA primary button --- */
.btn-primary {
  background: #000080;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 20px 40px -12px rgba(0,0,128,0.45), inset 0 -1px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.25s cubic-bezier(0.33,1,0.68,1);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover { background: #000060; transform: translateY(-1px); box-shadow: 0 28px 50px -12px rgba(0,0,128,0.55), inset 0 -1px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2); }

.btn-secondary {
  background: #fff;
  color: var(--slate-900);
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--slate-200);
  transition: all 0.25s cubic-bezier(0.33,1,0.68,1);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-secondary:hover { background: var(--slate-50); border-color: var(--slate-300); }

.btn-ondark {
  background: #fff;
  color: #000080;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s cubic-bezier(0.33,1,0.68,1);
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.3);
}
.btn-ondark:hover { background: #EFF6FF; transform: translateY(-1px); }

.btn-ghost-dark {
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.25s cubic-bezier(0.33,1,0.68,1);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* --- Chip --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: #000080;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.chip-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.chip-live .chip-dot { background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
.chip-dark { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.2); color: #93C5FD; }

/* --- Focus --- */
:focus-visible { outline: 2px solid #000080; outline-offset: 3px; border-radius: 4px; }

/* --- Link in body --- */
.body-link { color: #000080; font-weight: 600; position: relative; }
.body-link:hover { text-decoration: underline; text-underline-offset: 3px; }
