@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --bg: #0a0a0b;
    --bg-elev: #151517;
    --text: #f5f5f7;
    --muted: #a1a1ab;
    --border: #272729;
    --accent-1: #2dd4bf;
    --accent-2: #f59e0b;
    --accent-3: #f472b6;
    --laser: #ff3b3b;
}

* { box-sizing: border-box; }

html {
    overflow-x: hidden;
}

body, html {
    margin: 0; padding: 0;
    min-height: 100vh;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Mono', monospace;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text {
    font-family: 'Space Grotesk', sans-serif;
}

/* ---- Background ---- */

#barcodeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* ---- Nav ---- */

nav {
    position: sticky; top: 0; left: 0;
    width: 100%;
    z-index: 50;
    box-sizing: border-box;
    background: rgba(10, 10, 11, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 22px 0;
    transition: background 250ms ease, box-shadow 250ms ease, padding 250ms ease;
}

nav.nav-scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 11, 0.92);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: reduce) {
    nav { transition: none; }
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-bars {
    width: 20px;
    height: 22px;
    background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 6px, transparent 6px 9px);
    transition: height 250ms ease, width 250ms ease;
}

nav.nav-scrolled .logo-bars { height: 16px; }

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    transition: font-size 250ms ease;
}

nav.nav-scrolled .logo-text { font-size: 1.05rem; }

.logo-dim {
    color: var(--muted);
    font-weight: 500;
}

.nav-link {
    text-decoration: none;
    color: var(--bg);
    background: var(--text);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 11px 22px;
    border-radius: 6px;
    border: 1px solid var(--text);
    transition: all 250ms ease;
    white-space: nowrap;
}

nav.nav-scrolled .nav-link {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: var(--accent-1);
    border-color: var(--accent-1);
    color: #04221d;
    outline: none;
}

@media (max-width: 650px) {
    .nav-inner { padding: 0 18px; }
    .logo-text { font-size: 1rem; }
    .nav-link { padding: 9px 18px; font-size: 0.8rem; }

    nav.nav-scrolled .logo-text { font-size: 0.9rem; }
    nav.nav-scrolled .nav-link { padding: 7px 14px; font-size: 0.75rem; }
}

/* ---- Main / content layering ---- */

main {
    position: relative;
    z-index: 2;
}

/* ---- Hero ---- */

.hero {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 12vh 24px 8vh;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-1);
    border: 1px solid rgba(45, 212, 191, 0.35);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 26px;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text);
}

.hero-sub {
    max-width: 680px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.7;
}

@media (max-width: 480px) {
    .hero { padding: 10vh 18px 7vh; }
}

/* ---- Cards ---- */

.cards-section {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 32px 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    position: relative;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 38px 34px;
    overflow: hidden;
    transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent-1);
}

.card.c2::before { background: var(--accent-2); }
.card.c3::before { background: var(--accent-3); }

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.14);
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--text);
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .card { transition: none; }
}

@media (max-width: 480px) {
    .cards-section { padding: 40px 18px 70px; gap: 18px; }
    .card { padding: 30px 24px; }
}

/* ---- CTA ---- */

.cta {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 90px 24px 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signal-status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--accent-1);
    margin: 0 0 24px;
}

.signal-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-1);
    margin-right: 10px;
    box-shadow: 0 0 10px var(--accent-1);
}

.signal-cta {
    text-decoration: none;
    display: inline-block;
    background: var(--laser);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 18px 46px;
    border-radius: 8px;
    border: 1px solid var(--laser);
    transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease;
}

.signal-cta:hover,
.signal-cta:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 34px rgba(255, 59, 59, 0.35);
    outline: none;
}

.signal-sub {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .cta { padding: 70px 18px 90px; }
    .signal-cta {
        padding: 16px 32px;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .signal-cta { transition: none; }
}

/* ---- Footer ---- */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain -
   spacing/contrast live here instead, so nothing needs to rely on Bootstrap margin utilities. */

footer {
    position: relative;
    z-index: 2;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 24px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

footer div {
    margin: 4px 0;
}

footer a {
    color: var(--text);
}

footer a:hover {
    color: var(--accent-1);
}
