/* ═══════════════════════════════════════════
   ZARABANDA SHIELD — Layout System
   ═══════════════════════════════════════════ */

/* ── Container ── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ── Sections ── */
.section {
    padding: var(--section-pad);
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section--short {
    min-height: auto;
    padding: 4rem 2rem;
}

/* ── Section Separator ── */
.section+.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

/* ── Sticky Nav ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(2, 12, 27, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.nav.scrolled {
    padding: 0.7rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.nav__logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 14px;
    color: var(--white);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.nav__logo-text {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    letter-spacing: 0.03em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav__link {
    font-family: var(--font-m);
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav__link:hover,
.nav__link.active {
    color: var(--cyan);
}

.nav__cta {
    font-family: var(--font-h);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.55rem 1.4rem;
    border-radius: 100px;
    border: 1px solid rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.06);
    color: var(--cyan);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: all 0.3s;
    cursor: pointer;
}

.nav__cta:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: var(--glow);
}

/* ── Mobile Nav Toggle ── */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── Grid Systems ── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ── Two Column Layout ── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* ── Text Helpers ── */
.text-center {
    text-align: center;
}

.section-chip {
    font-family: var(--font-m);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.3);
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.06);
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: var(--font-h);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.section-title .accent {
    color: var(--cyan);
}

.section-title .accent-red {
    color: var(--red);
}

.section-title .accent-gold {
    color: var(--gold);
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text);
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.section-sub.centered {
    margin-left: auto;
    margin-right: auto;
}

/* ── Hero specific ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero__canvas {
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#shield-canvas {
    width: 100%;
    height: 100%;
}

/* ── Footer ── */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copy {
    font-family: var(--font-m);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer__link {
    font-family: var(--font-m);
    font-size: 0.72rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer__link:hover {
    color: var(--cyan);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero__canvas {
        right: -20%;
        width: 70%;
        opacity: 0.5;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 4rem 1.5rem;
    }

    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(2, 12, 27, 0.97);
        backdrop-filter: blur(20px);
        padding: 2rem;
        border-bottom: 1px solid var(--border);
        gap: 1.5rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__canvas {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        opacity: 0.3;
    }

    .section-title {
        font-size: clamp(1.4rem, 6vw, 2.2rem);
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}