/* SF Tools v1.0.0 */
/* ═══════════════════════════════════════════
   SF Tools — Navigation, Footer, Cursor
   Consistent on every page
═══════════════════════════════════════════ */

/* ── CUSTOM CURSOR ── */
body { cursor:none; }
@media (hover:none),(pointer:coarse) { body { cursor:auto; } }
.c-dot {
  position:fixed; top:0; left:0; width:8px; height:8px;
  background:var(--accent); border-radius:50%;
  transform:translate(-50%,-50%); pointer-events:none; z-index:9999;
  box-shadow:0 0 12px rgba(77,166,255,.9); transition:width .15s,height .15s;
}
.c-ring {
  position:fixed; top:0; left:0; width:40px; height:40px;
  border:1.5px solid rgba(77,166,255,.4); border-radius:50%;
  transform:translate(-50%,-50%); pointer-events:none; z-index:9998;
  transition:width .3s,height .3s,border-color .3s;
}
body.chover .c-dot  { width:16px; height:16px; }
body.chover .c-ring { width:56px; height:56px; border-color:rgba(77,166,255,.75); }

/* ── STICKY NAV ── */
.site-nav {
  position:sticky; top:0; z-index:100; height:var(--nav-h);
  background:var(--nav-bg);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  transition:background .3s, border-color .3s;
}
.nav-inner {
  max-width:var(--container); margin:0 auto; padding:0 28px;
  height:100%; display:flex; align-items:center; gap:4px;
}

/* Logo */
.nav-logo { display:flex; align-items:center; gap:10px; text-decoration:none; flex-shrink:0; margin-right:24px; }
.nav-logo-icon {
  width:34px; height:34px; background:var(--accent); border-radius:7px;
  display:flex; align-items:center; justify-content:center;
  font-family:'Orbitron',sans-serif; font-weight:900; font-size:13px; color:#000;
  flex-shrink:0; transition:transform .2s;
}
.nav-logo:hover .nav-logo-icon { transform:rotate(-6deg) scale(1.05); }
.nav-logo-text { font-family:'Orbitron',sans-serif; font-weight:900; font-size:16px; letter-spacing:.08em; color:var(--text); line-height:1; transition:color .3s; }
.nav-logo-text span { color:var(--accent); }

/* Nav links */
.nav-links { display:flex; align-items:center; gap:2px; flex:1; overflow:hidden; }
.nav-link {
  font-family:'DM Mono',monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--muted); text-decoration:none; padding:6px 11px; border-radius:5px;
  transition:color .2s,background .2s; white-space:nowrap;
}
.nav-link:hover,.nav-link.active { color:var(--accent); background:rgba(77,166,255,.08); }

/* Right side */
.nav-right { margin-left:auto; display:flex; align-items:center; gap:8px; flex-shrink:0; }

/* Theme toggle button */
.theme-toggle {
  width:36px; height:36px; border-radius:8px; border:1px solid var(--border2);
  background:var(--surface); color:var(--text-muted); cursor:pointer;
  display:flex; align-items:center; justify-content:center; font-size:16px;
  transition:border-color .2s,background .2s,transform .2s; flex-shrink:0;
}
.theme-toggle:hover { border-color:var(--accent); color:var(--accent); transform:rotate(20deg); }
.theme-toggle .icon-sun  { display:none; }
.theme-toggle .icon-moon { display:block; }
[data-theme="light"] .theme-toggle .icon-sun  { display:block; }
[data-theme="light"] .theme-toggle .icon-moon { display:none; }

/* CTA button */
.nav-cta {
  font-family:'DM Mono',monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  padding:8px 18px; background:var(--accent); border-radius:5px; color:#000;
  text-decoration:none; font-weight:500; transition:background .2s,box-shadow .2s; white-space:nowrap;
}
.nav-cta:hover { background:var(--accent-dim); box-shadow:0 4px 18px rgba(77,166,255,.35); }

/* Hamburger */
.ham {
  display:none; flex-direction:column; gap:5px; cursor:pointer;
  padding:5px; background:none; border:none; margin-left:8px; flex-shrink:0;
}
.ham span { display:block; width:22px; height:2px; background:var(--text-muted); border-radius:2px; transition:transform .3s,opacity .3s; }
.ham.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity:0; }
.ham.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mob-nav {
  display:none; position:fixed; top:var(--nav-h); left:0; right:0;
  background:var(--nav-bg); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  border-bottom:1px solid var(--border); padding:14px 20px 24px;
  z-index:99; flex-direction:column; gap:3px;
  max-height:calc(100vh - var(--nav-h)); overflow-y:auto;
  transition:background .3s;
}
.mob-nav.open { display:flex; }
.mob-nav .nav-link { font-size:13px; padding:11px 14px; }
.mob-nav .mob-section {
  font-family:'DM Mono',monospace; font-size:9px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--muted); padding:12px 14px 4px; margin-top:4px;
}
.mob-nav .mob-sep { height:1px; background:var(--border); margin:8px 0; }
.mob-nav .nav-cta { text-align:center; padding:12px 14px; margin-top:10px; border-radius:6px; font-size:12px; display:block; }
.mob-nav .mob-theme-row { display:flex; align-items:center; gap:12px; padding:11px 14px; }
.mob-nav .mob-theme-label { font-family:'DM Mono',monospace; font-size:11px; color:var(--muted); letter-spacing:.08em; flex:1; }

/* ── MARQUEE ── */
.marquee-wrap {
  position:relative; z-index:1; overflow:hidden;
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  padding:12px 0; background:var(--surface3); transition:background .3s,border-color .3s;
}
.marquee-inner { display:flex; gap:48px; animation:mq 38s linear infinite; width:max-content; }
.mq-item {
  font-family:'DM Mono',monospace; font-size:10px; letter-spacing:.2em;
  text-transform:uppercase; color:var(--muted); white-space:nowrap;
  display:flex; align-items:center; gap:14px;
}
.mq-item::before { content:'◆'; color:var(--accent); font-size:7px; opacity:.5; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  font-family:'DM Mono',monospace; font-size:11px; color:var(--muted);
  letter-spacing:.06em; margin-bottom:28px;
}
.breadcrumb a { color:var(--muted); text-decoration:none; transition:color .2s; }
.breadcrumb a:hover { color:var(--accent); }
.breadcrumb .sep { opacity:.4; }
.breadcrumb .current { color:var(--text-muted); }

/* ── SITE FOOTER ── */
.site-footer {
  position:relative; z-index:1; border-top:1px solid var(--border);
  background:var(--footer-bg); margin-top:80px;
  transition:background .3s,border-color .3s;
}
.footer-inner {
  max-width:var(--container); margin:0 auto; padding:52px 28px 36px;
  display:grid; grid-template-columns:2.2fr 1fr 1fr 1fr 1fr; gap:48px;
}
.f-logo-wrap { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.f-logo-box {
  width:32px; height:32px; background:var(--accent); border-radius:6px;
  display:flex; align-items:center; justify-content:center;
  font-family:'Orbitron',sans-serif; font-weight:900; font-size:12px; color:#000;
}
.f-logo-name { font-family:'Orbitron',sans-serif; font-weight:900; font-size:16px; letter-spacing:.08em; color:var(--text); transition:color .3s; }
.f-logo-name span { color:var(--accent); }
.footer-brand p { font-size:13px; color:var(--text-muted); line-height:1.7; max-width:260px; transition:color .3s; }
.f-badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.f-badge {
  font-family:'DM Mono',monospace; font-size:9px; letter-spacing:.1em;
  padding:3px 8px; border:1px solid var(--border); border-radius:3px; color:var(--muted);
  transition:border-color .3s,color .3s;
}
.footer-col h4 {
  font-family:'DM Mono',monospace; font-size:10px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--muted); margin-bottom:14px; transition:color .3s;
}
.footer-col a { display:block; font-size:13px; color:var(--text-muted); text-decoration:none; margin-bottom:9px; transition:color .2s; padding:1px 0; }
.footer-col a:hover { color:var(--accent); }
.footer-col .cs-link { opacity:.4; pointer-events:none; font-size:12px; }
.footer-divider { max-width:var(--container); margin:0 auto 0; height:1px; background:var(--border); }
.footer-bottom {
  max-width:var(--container); margin:0 auto; padding:18px 28px;
  border-top:1px solid var(--border); display:flex;
  align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
}
.footer-copy { font-family:'DM Mono',monospace; font-size:10px; color:var(--muted); letter-spacing:.06em; transition:color .3s; }
.footer-copy a { color:var(--accent); text-decoration:none; }
.footer-copy a:hover { text-decoration:underline; }
.footer-links { display:flex; gap:20px; }
.footer-links a { font-family:'DM Mono',monospace; font-size:10px; color:var(--muted); text-decoration:none; letter-spacing:.06em; transition:color .2s; }
.footer-links a:hover { color:var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width:1100px) {
  .footer-inner { grid-template-columns:2fr 1fr 1fr 1fr; gap:32px; }
}
@media (max-width:900px) {
  .footer-inner { grid-template-columns:1fr 1fr 1fr; gap:28px; }
}
@media (max-width:768px) {
  :root { --nav-h:60px; }
  .nav-links { display:none; }
  .nav-right .nav-cta { display:none; }
  .ham { display:flex; }
  .footer-inner { grid-template-columns:1fr 1fr; gap:24px; }
}
@media (max-width:560px) {
  .nav-inner { padding:0 16px; }
  .footer-inner { grid-template-columns:1fr; gap:20px; }
  .footer-bottom { flex-direction:column; text-align:center; gap:8px; }
  .footer-links { flex-wrap:wrap; justify-content:center; }
}

/* ── Theme toggle icon visibility ── */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Footer year */
.footer-copy .year { font-variant-numeric: tabular-nums; }
