/* ============================================================
   CyberLSI — v5 (rebuild per design spec + style guide)
   Fonts: Lato throughout. Colors per CyberLSI_Style_Guide.docx
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

:root {
  --navy: #00025C;      /* menu bar / primary dark */
  --blue: #000275;      /* headings on light bg */
  --yellow: #F4E004;     /* accent / hover / CTA highlight */
  --body: #222222;      /* body text on light bg */
  --link: #333333;      /* link text */
  --gray-btn: #EAECEE;   /* light button bg (resources-style) */
  --dark-btn: #111920;   /* dark button text on gray */
  --white: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', -apple-system, sans-serif;
  color: var(--body);
  background: var(--white);
  margin: 0;
  overflow-x: hidden;
}

/* ---------------------------------------------------------
   Base reset (previously handled by Tailwind Preflight)
--------------------------------------------------------- */
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { border: none; background: none; font: inherit; cursor: pointer; padding: 0; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------------------------------------------------------
   Dynamic white-page background canvas (nodes + lines)
--------------------------------------------------------- */
#node-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
main, header, nav, footer, section { position: relative; z-index: 1; }

/* ---------------------------------------------------------
   Texture boxes: binary-code graphic (content boxes)
--------------------------------------------------------- */
.tex-binary {
  position: relative;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(0,2,20,0.55), rgba(0,2,20,0.55)),
    url('assets/bg-binary.png');
  background-repeat: repeat;
  background-size: 420px auto;
  color: var(--white);
}
.tex-binary * { color: var(--white); }
.tex-binary .accent-yellow { color: var(--yellow) !important; }
.tex-binary p, .tex-binary .muted { color: #D7DBEA !important; }

/* ---------------------------------------------------------
   Texture boxes: geometric node graphic (footer only)
--------------------------------------------------------- */
.tex-node {
  position: relative;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(0,2,20,0.45), rgba(0,2,20,0.45)),
    url('assets/bg-node-dark-clean.png');
  background-repeat: repeat;
  background-size: 380px auto;
  color: var(--white);
}
.tex-node * { color: var(--white); }
.tex-node a:hover { color: var(--yellow) !important; }

/* ---------------------------------------------------------
   Nav
--------------------------------------------------------- */
.nav-bar { background: var(--navy); }
.nav-link { color: var(--white); font-size: 20px; font-family: 'Lato', sans-serif; transition: color .15s ease; }
.nav-link:hover, .nav-link.active { color: var(--yellow); }

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn-yellow {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--navy);
  font-weight: 700; font-size: 18px;
  padding: 14px 32px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 2px solid var(--yellow);
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(244,224,4,0.35); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--navy);
  font-weight: 700; font-size: 18px;
  padding: 14px 32px; border-radius: 999px;
  border: 2px solid var(--navy);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

.btn-outline-light {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--white);
  font-weight: 700; font-size: 18px;
  padding: 14px 32px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-2px); }

/* ---------------------------------------------------------
   Badge (hero "US Patent Granted")
--------------------------------------------------------- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-weight: 700; font-size: 14px; letter-spacing: .03em;
  padding: 6px 16px; border-radius: 999px;
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ---------------------------------------------------------
   Identity perimeter animation (hero visual)
--------------------------------------------------------- */
.perimeter-stage { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1/1; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.perimeter-ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(0,2,92,0.14); }
.perimeter-ring.r1 { inset: 0; }
.perimeter-ring.r2 { inset: 34px; border-color: rgba(0,2,92,0.20); }
.perimeter-ring.r3 { inset: 68px; border-color: rgba(244,224,4,0.35); }
.perimeter-core {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--yellow);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(0,2,92,0.18);
  animation: corePulse 3.4s ease-in-out infinite;
}
.perimeter-core svg { width: 52px; height: 52px; }
@keyframes corePulse { 0%,100% { box-shadow: 0 0 24px rgba(0,2,92,0.14);} 50% { box-shadow: 0 0 46px rgba(0,2,92,0.3);} }

.orbit-node {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--yellow);
  top: 50%; left: 50%;
  box-shadow: 0 0 10px rgba(244,224,4,0.8);
}
.orbit-node.n1 { animation: orbitA 9s linear infinite; }
.orbit-node.n2 { animation: orbitB 13s linear infinite; }
.orbit-node.n3 { animation: orbitC 7s linear infinite reverse; }
@keyframes orbitA { from { transform: translate(-50%,-50%) rotate(0deg) translateX(102px) rotate(0deg);} to { transform: translate(-50%,-50%) rotate(360deg) translateX(102px) rotate(-360deg);} }
@keyframes orbitB { from { transform: translate(-50%,-50%) rotate(120deg) translateX(136px) rotate(-120deg);} to { transform: translate(-50%,-50%) rotate(480deg) translateX(136px) rotate(-480deg);} }
@keyframes orbitC { from { transform: translate(-50%,-50%) rotate(240deg) translateX(68px) rotate(-240deg);} to { transform: translate(-50%,-50%) rotate(600deg) translateX(68px) rotate(-600deg);} }

@media (prefers-reduced-motion: reduce) {
  .badge-pill .dot { animation: none; }
  .perimeter-core { animation: none; }
  .orbit-node { animation: none; }
}

/* ---------------------------------------------------------
   Stat circles (pulsing, binary texture inside)
--------------------------------------------------------- */
.stat-circle {
  width: 260px; height: 260px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px;
  animation: circlePulse 4s ease-in-out infinite;
}
.stat-circle:nth-child(2) { animation-delay: .6s; }
.stat-circle:nth-child(3) { animation-delay: 1.2s; }
@keyframes circlePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(244,224,4,0.0), 0 12px 30px rgba(0,2,92,0.18); }
  50%     { box-shadow: 0 0 0 10px rgba(244,224,4,0.06), 0 12px 30px rgba(0,2,92,0.18); }
}
@media (prefers-reduced-motion: reduce) { .stat-circle { animation: none; } }
.stat-num { font-size: 40px; font-weight: 900; color: var(--yellow); line-height: 1; margin-bottom: 8px; }
.stat-lbl { font-size: 14px; line-height: 1.35; }
.stat-src { font-size: 11px; opacity: .7; margin-top: 8px; font-style: italic; }

/* ---------------------------------------------------------
   Chevron / arrow process steps
--------------------------------------------------------- */
.chevron-row { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .chevron-row { flex-direction: row; gap: 24px; align-items: stretch; } }
.chevron {
  position: relative;
  flex: 1;
  padding: 32px 44px 32px 32px;
  display: flex; flex-direction: column; justify-content: flex-start;
  clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
}
.chevron-num {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--yellow); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; margin-bottom: 14px;
  flex: none;
}
.chevron h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.chevron p { font-size: 14px; margin: 0; }

/* ---------------------------------------------------------
   Accordion (Product page feature list)
--------------------------------------------------------- */
.accordion-item {
  position: relative;
  cursor: pointer;
  padding: 26px 56px 26px 32px;
  margin-bottom: 14px;
  clip-path: polygon(0 0, 96% 0, 100% 50%, 96% 100%, 0 100%);
  transition: clip-path .2s ease;
}
.accordion-item.flip { clip-path: polygon(4% 0, 100% 0, 100% 100%, 4% 100%, 0 50%); padding: 26px 32px 26px 56px; }
.accordion-item .acc-title { display: flex; align-items: center; justify-content: space-between; font-size: 19px; font-weight: 700; }
.accordion-item .acc-plus { font-size: 33px; font-weight: 900; color: var(--yellow); transition: transform .25s ease; flex: none; margin-left: 16px; }
.accordion-item.open .acc-plus { transform: rotate(45deg); }
.accordion-item .acc-body {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .3s ease, opacity .25s ease, margin-top .3s ease;
  font-size: 15px; margin-top: 0;
}
.accordion-item.open .acc-body { max-height: 200px; opacity: 1; margin-top: 14px; }

/* ---------------------------------------------------------
   Business Solutions flowchart
--------------------------------------------------------- */
.flow-bubble {
  display: inline-flex; align-items: center;
  background: var(--yellow); color: var(--navy);
  font-weight: 900; font-size: 14px; letter-spacing: .08em;
  padding: 12px 32px; border-radius: 999px;
}
.flow-line { width: 2px; background: var(--blue); opacity: .25; margin: 0 auto; }
.flow-feature-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }

/* ---------------------------------------------------------
   Founder badges (Company page)
--------------------------------------------------------- */
.founder-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--navy); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 24px;
  border: 3px solid var(--yellow);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.founder-avatar:hover, .founder-avatar.active { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,2,92,0.25); }
.founder-bio {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease;
}
.founder-bio.open { max-height: 320px; opacity: 1; margin-top: 18px; }

/* ---------------------------------------------------------
   Location pills + world map
--------------------------------------------------------- */
.loc-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--blue); color: var(--blue);
  font-size: 14px; font-weight: 700;
  padding: 8px 18px; border-radius: 999px;
}
.loc-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }

.map-pin {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--navy);
  cursor: pointer;
  animation: pinPulse 2.4s ease-in-out infinite;
}
@keyframes pinPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(244,224,4,0.5);} 50% { box-shadow: 0 0 0 8px rgba(244,224,4,0);} }
@media (prefers-reduced-motion: reduce) { .map-pin { animation: none; } }
.map-tooltip {
  position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--navy); color: var(--white);
  font-size: 12px; white-space: nowrap;
  padding: 8px 12px; border-radius: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.map-pin:hover .map-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------------------------------------------------
   Nav mobile toggle
--------------------------------------------------------- */
.nav-links-mobile { transform: translateX(100%); transition: transform .25s ease; }
.nav-links-mobile.open { transform: translateX(0); }

/* ---------------------------------------------------------
   Page transitions (kept from earlier direction; lightweight)
--------------------------------------------------------- */
body { transition: opacity .2s ease; }
body.page-exit { opacity: 0; }
@view-transition { navigation: auto; }

/* ---------------------------------------------------------
   Legal pages — plain, readable, no texture
--------------------------------------------------------- */
.legal-content h2 { color: var(--blue); font-size: 22px; margin-top: 34px; margin-bottom: 10px; font-weight: 700; }
.legal-content p, .legal-content li { color: var(--body); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.legal-content ul, .legal-content ol { padding-left: 28px; margin-bottom: 14px; }
.legal-content strong { color: var(--navy); }
.legal-content a { color: var(--link); text-decoration: underline; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 14px; }
.legal-content th, .legal-content td { border: 1px solid #D8DEE9; padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-content th { background: #F1F3F8; color: var(--navy); }
.legal-content tr.even { background: #FAFBFD; }
.smallcaps { font-variant: small-caps; letter-spacing: 0.02em; }

/* ============================================================
   Self-contained utility layer
   (Replaces Tailwind CDN — zero runtime/build dependency)
   ============================================================ */

/* box sizing + resets for utility-classed elements */
[class] { box-sizing: border-box; }

/* --- display / position --- */
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.relative { position: relative; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-20 { top: 5rem; }
.right-0 { right: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* --- flex / grid --- */
.flex-col { flex-direction: column; }
.flex-none { flex: none; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-14 { gap: 3.5rem; }

/* --- spacing: margin --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }

/* --- spacing: padding --- */
.p-5 { padding: 1.25rem; }
.p-8 { padding: 2rem; }
.p-9 { padding: 2.25rem; }
.p-10 { padding: 2.5rem; }
.p-14 { padding: 3.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-24 { padding-bottom: 6rem; }
.imp-px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.imp-py-2-5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }

/* --- sizing --- */
.w-1 { width: 0.25rem; }
.w-16 { width: 4rem; }
.w-72 { width: 18rem; }
.w-fit { width: fit-content; }
.w-full { width: 100%; }
.h-3px { height: 3px; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-20 { height: 5rem; }
.h-auto { height: auto; }
.h-fit { height: fit-content; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-xs { max-width: 20rem; }

/* --- borders / radius --- */
.border { border-width: 1px; border-style: solid; border-color: #E5E7EB; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; border-color: #E5E7EB; }
.border-gray-200 { border-color: #E5E7EB; }
.border-white-15 { border-color: rgba(255,255,255,0.15); }
.border-white-25 { border-color: rgba(255,255,255,0.25); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-28 { border-radius: 28px; }
.rounded-full { border-radius: 9999px; }

/* --- backgrounds --- */
.bg-navy { background-color: var(--navy); }
.bg-white-10 { background-color: rgba(255,255,255,0.10); }
.bg-white-70 { background-color: rgba(255,255,255,0.70); }
.placeholder-white-40::placeholder { color: rgba(255,255,255,0.40); }

/* --- text --- */
.text-center { text-align: center; }
.text-white { color: #FFFFFF; }
.text-black { color: #000000; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-15 { font-size: 15px; }
.text-16 { font-size: 16px; }
.text-18 { font-size: 18px; }
.text-20 { font-size: 20px; }
.text-28 { font-size: 28px; }
.text-30 { font-size: 30px; }
.text-32 { font-size: 32px; }
.text-34 { font-size: 34px; }
.text-40 { font-size: 40px; }
.imp-text-base { font-size: 1rem !important; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-sans { font-family: 'Lato', sans-serif; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-02em { letter-spacing: 0.2em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.65; }
.leading-108 { line-height: 1.08; }

/* --- interaction --- */
.hover-underline:hover { text-decoration: underline; }
.focus-outline-none:focus { outline: none; }
.focus-border-yellow:focus { border-color: #F4E004; }
.opacity-70 { opacity: 0.7; }

/* --- responsive (min-width: 768px) --- */
@media (min-width: 768px) {
  .md-flex { display: flex; }
  .md-hidden { display: none; }
  .md-inline-flex { display: inline-flex; }
  .md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md-p-14 { padding: 3.5rem; }
  .md-w-auto { width: auto; }
  .md-text-36 { font-size: 36px; }
  .md-text-38 { font-size: 38px; }
  .md-text-42 { font-size: 42px; }
  .md-text-44 { font-size: 44px; }
  .md-text-46 { font-size: 46px; }
  .md-text-52 { font-size: 52px; }
}
