/* ============================================================
   Slashiee — Site chrome: nav, footer, background texture
   ============================================================ */

/* Ambient background texture: faint grid + radial glow, no literal chart clichés */
.bg-texture{
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 600px at 82% -10%, rgba(232,93,107,0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 40%, rgba(232,93,107,0.06), transparent 60%),
    var(--bg-void);
}
.bg-texture::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, black, transparent 75%);
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
/* Blur lives on a pseudo-element, not .site-header itself, because
   backdrop-filter on an ancestor creates a containing block for
   position:fixed descendants — which broke the mobile nav-links
   panel (it was being sized against the header's own short box
   instead of the viewport). */
.site-header::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11,15,29,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}
.brand{
  display: flex;
  align-items: center;
}
.brand img{
  height: 56px;
  width: auto;
  display: block;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.nav-links a{
  font-size: var(--step--1);
  color: var(--ink-70);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover{ color: var(--ink-100); }
.nav-links a.active{ color: var(--ink-100); }

/* Cursor-tracking underline: one shared element, repositioned via JS
   to sit under whichever link is hovered/focused. Falls back to
   marking the active link when nothing is hovered. */
.nav-indicator{
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transition: left 0.35s var(--ease), width 0.35s var(--ease), opacity 0.2s var(--ease);
  pointer-events: none;
  flex: 0 0 auto;
}
.nav-links.tracking .nav-indicator{ opacity: 1; }
@media (max-width: 860px){
  .nav-indicator{ display: none; }
}
.nav-cta{ display: flex; align-items: center; gap: 0.9rem; }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  color: var(--ink-100);
  width: 42px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg{ width: 20px; height: 20px; }

@media (max-width: 860px){
  .nav-toggle{ display: inline-flex; }
  .nav-links{
    position: fixed;
    inset: 64px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem var(--pad);
    background: var(--bg-void);
    gap: 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-links.open{
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .nav-links a{ font-size: var(--step-0); }
  .nav-cta .btn-ghost{ display: none; }
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  background: var(--bg-panel);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 760px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-col-brand{ grid-column: 1 / -1; }
}
.footer-col-brand{ display: flex; align-items: center; }
.footer-brand{
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.footer-brand img{ height: 84px; width: auto; display: block; }
@media (max-width: 760px){
  .footer-brand img{ height: 64px; }
}
.footer-col h4{
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-col a{ color: var(--ink-70); font-size: var(--step--1); transition: color 0.2s var(--ease); }
.footer-col a:hover{ color: var(--accent-2); }
.footer-bottom{
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: var(--step--1);
  color: var(--ink-50);
  font-family: var(--font-mono);
}
.footer-bottom a{ color: var(--ink-50); }
.footer-bottom a:hover{ color: var(--accent-2); }
.footer-legal-links{ display: flex; gap: 1.4rem; flex-wrap: wrap; }
