/* ═══════════════════════════════════════════════════════════
   Cybersolus v4 — shared design system
   Loaded by BaseLayoutV4.astro on every page
   ═══════════════════════════════════════════════════════════ */

@font-face { font-family:"Sora Regular"; src:url("/uploads/2025/11/Sora-Regular-1.woff2") format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:"Sora Medium";  src:url("/uploads/2025/11/Sora-Medium-1.woff2")  format("woff2"); font-weight:500; font-display:swap; }

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

:root {
  --navy-black:#020617;
  --navy-deep:#061121;
  --navy-mid:#0c1e35;
  --neon-green:#4ade80;
  --neon-cyan:#22d3ee;
  --neon-violet:#a78bfa;
  --neon-amber:#fbbf24;
  --neon-red:#ef4444;
  --ink:#e8f4f0;
  --ink-dim:rgba(232,244,240,0.65);
  --ink-muted:rgba(232,244,240,0.35);
  --border-faint:rgba(255,255,255,0.07);
  --border-soft:rgba(255,255,255,0.12);
  /* accent overridden per-page via inline :root { --accent:... } */
  --accent:var(--neon-green);
  --accent-rgb:74,222,128;
}

html { background:var(--navy-black); scroll-behavior:smooth; }
body {
  font-family:"Sora Regular",system-ui,sans-serif;
  color:var(--ink);
  background:var(--navy-black);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* ── NAV ────────────────────────────────────────────────── */
#site-nav {
  position:fixed; top:0; left:0; right:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 40px; height:96px;
  background:rgba(2,6,23,0.78);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,0.06);
  z-index:80;
  transition:background .3s, height .3s;
}
#site-nav.scrolled { background:rgba(2,6,23,0.96); height:74px; }
.nav-logo img { height:85px; width:auto; display:block; filter:drop-shadow(0 0 10px rgba(74,222,128,0.28)); transition:filter .3s, height .3s; }
#site-nav.scrolled .nav-logo img { height:62px; }
.nav-logo:hover img { filter:drop-shadow(0 0 16px rgba(74,222,128,0.5)); }
.nav-links { display:flex; gap:32px; }
.nav-links a { font-size:13px; color:var(--ink-dim); text-decoration:none; transition:color .2s; }
.nav-links a:hover, .nav-links a.active { color:var(--neon-green); }
.nav-cta {
  background:var(--neon-green); color:var(--navy-black);
  padding:10px 22px; border-radius:2px;
  font-size:13px; font-family:"Sora Medium",sans-serif;
  text-decoration:none; font-weight:600;
  transition:opacity .2s;
}
.nav-cta:hover { opacity:.85; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background:var(--navy-deep);
  border-top:1px solid var(--border-faint);
  padding:64px 56px 40px;
}
.footer-cols {
  max-width:min(94vw,1720px); margin:0 auto;
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr;
  gap:48px; padding-bottom:48px;
  border-bottom:1px solid var(--border-faint);
}
.footer-brand p { font-size:13px; color:var(--ink-muted); line-height:1.65; font-weight:300; margin-top:12px; }
.footer-col-label {
  font-family:'JetBrains Mono',monospace; font-size:10px;
  letter-spacing:.14em; color:var(--neon-green); opacity:.7;
  text-transform:uppercase; margin-bottom:16px;
}
.footer-link { display:block; font-size:13px; color:var(--ink-muted); text-decoration:none; margin-bottom:10px; font-weight:300; transition:color .2s; }
.footer-link:hover { color:var(--ink); }
.footer-bottom {
  max-width:min(94vw,1720px); margin:32px auto 0;
  display:flex; justify-content:space-between; align-items:center;
  font-size:12px; color:var(--ink-muted);
}
.footer-status { font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--ink-muted); }
.footer-status .dot { color:var(--neon-green); opacity:.6; }

/* ── COMMON TYPOGRAPHY ───────────────────────────────────── */
.sec-eyebrow {
  font-family:'JetBrains Mono',monospace; font-size:11px;
  letter-spacing:.2em; color:var(--neon-green);
  text-transform:uppercase; margin-bottom:18px;
  display:flex; align-items:center; gap:12px;
}
.sec-eyebrow span { width:28px; height:1px; background:var(--neon-green); display:inline-block; }
.sec-h2 {
  font-family:"Sora Medium",sans-serif;
  font-size:clamp(32px,4.2vw,60px); font-weight:700;
  letter-spacing:-0.03em; line-height:1.04;
  color:#fff; margin-bottom:22px; max-width:940px;
}
.sec-h2 em { font-style:normal; color:var(--accent); }
.sec-lead {
  font-size:clamp(15px,1.4vw,19px); color:var(--ink-dim);
  font-weight:300; line-height:1.7; max-width:760px;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display:inline-flex; align-items:center; gap:8px;
  padding:16px 32px; background:var(--neon-green);
  color:var(--navy-black); font-family:"Sora Medium",sans-serif;
  font-size:15px; font-weight:600; border-radius:3px;
  text-decoration:none; transition:opacity .2s, transform .2s;
}
.btn-primary:hover { opacity:.88; transform:translateY(-1px); }
.btn-ghost {
  display:inline-flex; align-items:center; gap:8px;
  padding:16px 32px;
  border:1px solid rgba(var(--accent-rgb),0.3);
  color:var(--accent); font-family:"Sora Medium",sans-serif;
  font-size:15px; font-weight:600; border-radius:3px;
  text-decoration:none; transition:border-color .2s, background .2s;
}
.btn-ghost:hover { border-color:var(--accent); background:rgba(var(--accent-rgb),0.05); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-section { max-width:min(94vw,1500px); margin:0 auto; padding:80px 56px 96px; border-top:1px solid var(--border-faint); }
.faq-h2 { font-family:"Sora Medium",sans-serif; font-size:clamp(28px,3.4vw,48px); font-weight:700; letter-spacing:-0.03em; color:#fff; margin-bottom:14px; }
.faq-lead { font-size:15px; color:var(--ink-dim); font-weight:300; margin-bottom:44px; max-width:720px; line-height:1.6; }
.faq-list { max-width:860px; }
.faq-item { border-bottom:1px solid var(--border-faint); }
.faq-q {
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  padding:22px 0; display:flex; justify-content:space-between; align-items:center; gap:20px;
  font-family:"Sora Medium",sans-serif; font-size:clamp(15px,1.5vw,18px);
  font-weight:600; color:#fff; line-height:1.35;
}
.faq-q .ico { color:var(--neon-green); font-size:22px; flex-shrink:0; transition:transform .3s; font-style:normal; }
.faq-item.open .faq-q .ico { transform:rotate(45deg); }
.faq-a { max-height:0; overflow:hidden; transition:max-height .4s cubic-bezier(.16,1,.3,1); }
.faq-a p { padding:0 0 22px; font-size:15px; color:var(--ink-dim); font-weight:300; line-height:1.72; max-width:720px; }
.faq-a a { color:var(--neon-green); text-decoration:none; border-bottom:1px solid rgba(74,222,128,0.3); }
.faq-a a:hover { border-color:var(--neon-green); }

/* ── HERO SHARED ────────────────────────────────────────── */
.hero-breadcrumb {
  font-family:'JetBrains Mono',monospace; font-size:11px;
  color:var(--ink-muted); letter-spacing:.06em;
  margin-bottom:32px; display:flex; gap:8px;
}
.hero-breadcrumb a { color:var(--ink-muted); text-decoration:none; }
.hero-breadcrumb a:hover { color:var(--neon-green); }
.hero-eyebrow {
  font-family:'JetBrains Mono',monospace; font-size:11px;
  letter-spacing:.24em; color:var(--accent);
  text-transform:uppercase; margin-bottom:22px;
  display:flex; align-items:center; gap:12px;
}
.hero-eyebrow span { width:32px; height:1px; background:var(--accent); box-shadow:0 0 10px var(--accent); display:inline-block; }
.hero-flag {
  display:inline-block; font-family:'JetBrains Mono',monospace;
  font-size:10px; letter-spacing:.16em; color:var(--accent);
  border:1px solid rgba(var(--accent-rgb),0.3);
  background:rgba(var(--accent-rgb),0.06);
  padding:6px 12px; border-radius:20px; margin-bottom:24px;
}
.hero-top-line {
  position:absolute; top:0; left:0; right:0; height:2px; z-index:2;
  background:linear-gradient(90deg,transparent,var(--accent) 35%,var(--neon-green) 65%,transparent);
}

/* ── GALLERY RAIL ───────────────────────────────────────── */
.gal-rail { display:flex; gap:22px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none; }
.gal-rail::-webkit-scrollbar { height:0; }
.gal-card { flex:0 0 auto; width:clamp(300px,80vw,540px); scroll-snap-align:center; }
.gal-frame { border:1px solid var(--border-soft); border-radius:14px; overflow:hidden; background:#04080f; box-shadow:0 30px 70px rgba(0,0,0,0.55); }
.gal-bar { display:flex; align-items:center; gap:7px; padding:11px 15px; background:rgba(255,255,255,0.04); border-bottom:1px solid var(--border-faint); }
.gal-dot { width:9px; height:9px; border-radius:50%; }
.gal-url { flex:1; margin-left:10px; background:rgba(0,0,0,0.4); border-radius:5px; padding:5px 12px; font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--ink-dim); display:flex; align-items:center; gap:7px; }
.gal-shot { display:block; width:100%; height:360px; object-fit:cover; object-position:top center; background:#0b1220; }
.gal-cap { margin-top:16px; display:flex; align-items:baseline; gap:10px; }
.gal-cap-num { font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--accent); flex-shrink:0; }
.gal-cap-txt { font-size:13.5px; color:var(--ink-dim); font-weight:300; line-height:1.5; }
.gal-cap-txt b { color:var(--ink); font-weight:600; font-family:"Sora Medium",sans-serif; }
.gal-btn { width:46px; height:46px; border-radius:50%; border:1px solid var(--border-soft); background:rgba(255,255,255,0.03); color:var(--ink); font-size:19px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:border-color .2s, background .2s, color .2s; }
.gal-btn:hover { border-color:var(--accent); color:var(--accent); background:rgba(var(--accent-rgb),0.06); }
.gal-btn:disabled { opacity:.3; cursor:default; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width:1100px) {
  #site-nav { padding:0 24px; }
  .footer-cols { grid-template-columns:1fr 1fr; gap:32px; }
  .site-footer { padding:48px 24px 40px; }
  .faq-section { padding:60px 24px 72px; }
}
@media (max-width:640px) {
  .nav-links { display:none; }
  .footer-cols { grid-template-columns:1fr; }
}

/* ═══════════ GLOBAL: Hummingbird scroll companion (bottom-left) ═══════════ */
#hb-force {
  position: fixed; left: 16px; bottom: 18px; z-index: 70;
  display: block; pointer-events: none;
  transform: translate3d(0,0,0); will-change: transform;
}
.hb-force__chip {
  width: 134px; padding: 9px 8px 8px; border-radius: 16px;
  border: 1px solid rgba(74,222,128,0.62); background: rgba(2,8,18,0.9);
  box-shadow: 0 10px 32px rgba(0,9,24,0.78), inset 0 0 18px rgba(74,222,128,0.11);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hb-force__svg { width: 112px; height: 104px; display: block; margin: 0 auto; overflow: visible; filter: drop-shadow(0 0 9px rgba(74,222,128,0.66)); }
.hb-force__line {
  --len: 1; stroke: rgba(118,255,194,0.95); stroke-width: 2.35; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  animation: hbfTrace 3.2s ease-in-out infinite; animation-delay: calc(var(--seq,0) * 0.08s);
}
.hb-force__line--accent { stroke: rgba(79,217,160,0.98); stroke-width: 2.62; }
.hb-force__line--deep { stroke: rgba(31,191,138,0.98); stroke-width: 2.9; }
.hb-force__point { transform-box: fill-box; transform-origin: center; animation: hbfPoint 3.2s ease-in-out infinite; animation-delay: calc(var(--seq,0) * 0.08s); }
.hb-force__point--a { fill: rgba(118,255,194,0.97); }
.hb-force__point--b { fill: rgba(31,191,138,0.97); }
.hb-force__meta { margin-top: 6px; display: flex; gap: 6px; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(127,255,201,0.98); }
.hb-force__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--neon-green); box-shadow: 0 0 9px rgba(74,222,128,0.95); }
@keyframes hbfTrace { 0%,22% { stroke-dashoffset: var(--len); opacity: .08; } 64%,100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes hbfPoint { 0%,45% { transform: scale(.24); opacity: .08; } 70%,100% { transform: scale(1); opacity: 1; } }

/* ═══════════ GLOBAL: Chat bubble (bottom-right) ═══════════ */
.chat-bubble {
  position: fixed; bottom: 32px; right: 32px; z-index: 71;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
  border: 1px solid var(--neon-green); border-radius: 100px; padding: 12px 22px;
  display: flex; align-items: center; gap: 12px; color: var(--ink);
  font-family: "Sora Medium", sans-serif; font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 8px rgba(74,222,128,0.08);
  transition: transform .2s, box-shadow .2s; outline: none;
}
.chat-bubble:hover { transform: translateY(-2px); box-shadow: 0 20px 56px rgba(0,0,0,0.7), 0 0 0 10px rgba(74,222,128,0.12); }
.chat-bubble:focus-visible { outline: 2px solid var(--neon-green); outline-offset: 3px; }
.chat-icon { width: 26px; height: 26px; background: var(--neon-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--navy-black); font-weight: 800; font-size: 12px; }

/* ═══════════ GLOBAL: scroll-reveal fade-up ═══════════ */
.v4-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.v4-reveal.in { opacity: 1; transform: none; }

@media (max-width: 680px) {
  #hb-force { left: 10px; bottom: 12px; }
  .hb-force__chip { width: 104px; padding: 7px 7px 6px; }
  .hb-force__svg { width: 80px; height: 74px; }
  .hb-force__meta { font-size: 8px; gap: 5px; }
  .chat-bubble { bottom: 16px; right: 14px; padding: 10px 16px; font-size: 12px; }
  .chat-bubble span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-force__line, .hb-force__point { animation: none; stroke-dashoffset: 0; }
  .v4-reveal { opacity: 1; transform: none; transition: none; }
}
