/* helixstreet.css — shared chrome for the dark helixstreet sites (helixstreet.io, helixstreet.com).
   Tokens, reset, fixed nav, footer, background layers, reveal animation, a11y.
   Page-specific styles stay inline in each page. Single source: helixstreet.io repo root;
   helixstreet.com/ carries an identical copy (each site is its own container). */

:root {
    --purple: #8B5CF6; --purple-light: #A78BFA; --purple-glow: rgba(139, 92, 246, 0.35);
    --green: #06D6A0; --green-glow: rgba(6, 214, 160, 0.25);
    --blue: #3B82F6;
    --bg: #000000;
    --surface: rgba(255,255,255,0.025); --surface-hover: rgba(255,255,255,0.05);
    --text: #F1F5F9; --text-dim: #94A3B8; --text-faint: rgba(255,255,255,0.25);
    --border: rgba(255,255,255,0.06); --border-hover: rgba(255,255,255,0.12);
    --grad: linear-gradient(135deg, var(--purple), var(--green));
    --radius: 16px; --radius-sm: 10px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg); color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden; line-height: 1.65; -webkit-font-smoothing: antialiased;
}

/* background layers */
#helix-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.noise {
    position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat; background-size: 256px;
}
.page { position: relative; z-index: 2; }

/* nav */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1rem 2.5rem; display: flex; align-items: center; justify-content: space-between;
    backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
    background: rgba(0,0,0,0.45); border-bottom: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
nav.scrolled { background: rgba(0,0,0,0.82); padding-top: 0.7rem; padding-bottom: 0.7rem; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.nav-left { display: flex; align-items: baseline; gap: 0.6rem; }
.logo {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.3rem;
    background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    text-decoration: none;
}
.logo-sub { color: var(--text-faint); font-size: 0.72rem; font-weight: 300; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: color 0.3s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1.5px; background: var(--grad); transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--green); }
.nav-links a.active::after { width: 100%; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 4px; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--text); border-radius: 1px; transition: 0.3s; }

/* footer */
footer { position: relative; z-index: 2; border-top: 1px solid var(--border); padding: 2rem 2.5rem; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.8rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-faint); font-size: 0.7rem; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.vis { opacity: 1; transform: translateY(0); }

/* a11y */
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

@media (max-width: 680px) {
    nav { padding: 0.9rem 1.2rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column; position: fixed; inset: 0;
        background: rgba(0,0,0,0.96); backdrop-filter: blur(20px);
        justify-content: center; align-items: center; gap: 1.8rem; z-index: 200;
    }
    .nav-links.open a { font-size: 1.15rem; }
    .logo-sub { display: none; }
    footer { padding: 1.5rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* live telemetry states, set by rpc-live.js on [data-hx-status] elements */
[data-hx-status].hx-warn { color: #F59E0B; }
[data-hx-status].hx-down { color: #EF4444; }
.hx-warn .metric-pulse, .hx-warn .pulse { background: #F59E0B; box-shadow: 0 0 8px #F59E0B; }
.hx-down .metric-pulse, .hx-down .pulse { background: #EF4444; box-shadow: 0 0 8px #EF4444; animation: none; }
