:root {
    --bg-dark: #0B132B;
    --accent-cyan: #06B6D4;
    --text-light: #E0F2FE;
    --space: 10pt;
    --radius: 1.5rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: system-ui, -apple-system, sans-serif;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

body.layout-sticky-footer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.layout-sticky-footer>main {
    flex: 1;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    aspect-ratio: 16/9;
    object-fit: cover;
}

.container {
    max-width: 1410px;
    margin: 0 auto;
    padding: 0 var(--space);
}

.card {
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius);
    padding: calc(var(--space) * 2);
    background-color: rgba(11, 19, 43, 0.6);
}

.btn {
    display: inline-block;
    padding: var(--space) calc(var(--space) * 2);
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--accent-cyan);
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-cyan);
    opacity: 1;
}

/* Header Layout */
.site-header {
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    position: sticky;
    top: 0;
    background-color: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
    padding: calc(var(--space) * 1.5) 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-light);
}

.logo svg {
    height: 32px;
    width: auto;
}

.desktop-nav .nav-list {
    display: flex;
    gap: calc(var(--space) * 3);
    list-style: none;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.activ_link {
    color: var(--accent-cyan);
    font-weight: 600;
}

.nav-link.activ_link::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: calc(var(--space) * 2);
}

/* Burger Menu with Block-based Animation */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.burger-block {
    width: 100%;
    height: 6px;
    background-color: var(--text-light);
    transition: all 0.4s ease;
    display: block;
}

.burger-btn.is-active {
    justify-content: center;
}

.burger-btn.is-active .burger-block {
    height: 12px;
    margin-top: -12px;
    background-color: var(--accent-cyan);
}

.burger-btn.is-active .burger-block:nth-child(1) {
    transform: rotate(45deg);
}

.burger-btn.is-active .burger-block:nth-child(2) {
    opacity: 0;
}

.burger-btn.is-active .burger-block:nth-child(3) {
    transform: rotate(-45deg);
    margin-top: -12px;
}

/* Mobile Nav (Bottom Sheet) */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    border-top: 2px solid var(--accent-cyan);
    border-radius: var(--radius) var(--radius) 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
    padding: calc(var(--space) * 4) 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav.is-open {
    transform: translateY(0);
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: calc(var(--space) * 2);
    font-size: 1.5rem;
    text-align: center;
}

/* Footer Layout */
.site-footer {
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    padding: calc(var(--space) * 6) 0;
    margin-top: calc(var(--space) * 6);
    background-color: rgba(11, 19, 43, 0.8);
    color: var(--text-light);
}

.site-footer .brand-name {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--space) * 4);
    text-align: center;
}

.tagline {
    margin-top: var(--space);
    color: var(--accent-cyan);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space);
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space);
    color: var(--text-light);
}

.icon {
    width: 20px;
    height: 20px;
    color: var(--accent-cyan);
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: calc(var(--space) * 2);
    font-size: 0.9rem;
}

.legal-link {
    color: var(--text-light);
    opacity: 0.7;
}

/* Grid Classes (Explicit Requirements) */
.md\:grid-cols-2,
.md\:grid-cols-3,
.md\:grid-cols-4,
.lg\:grid-cols-3,
.lg\:grid-cols-4 {
    display: grid;
    gap: calc(var(--space) * 3);
}

/* Media Queries */
@media (max-width: 767px) {
    .desktop-nav {
        display: none;
    }

    .header-actions .btn {
        display: none;
    }

    .burger-btn {
        display: flex;
    }
}

@media (min-width: 768px) {
    .burger-btn {
        display: none !important;
    }

    /* Mobile sheet must stay off-screen on desktop (class .is-open can linger after resize) */
    .mobile-nav,
    .mobile-nav.is-open {
        transform: translateY(100%);
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }

    .footer-contact {
        align-items: flex-start;
    }

    .footer-legal {
        justify-content: flex-end;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Hero: modular tower assembly (index — pure CSS, no text labels) */
.hero-building-wrap {
    width: 100%;
    max-width: min(300px, 100%);
    margin-left: auto;
    margin-right: auto;
    min-height: min(300px, 46vh);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding-top: 3rem;
}

.hero-building-wrap__rig {
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 48px;
    margin-left: -10px;
    animation: hero-cable-sway 4s ease-in-out infinite;
    transform-origin: top center;
}

.hero-building-wrap__cable {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 40px;
    margin-left: -1px;
    border-radius: 1px;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.75));
}

.hero-building-wrap__hook {
    position: absolute;
    top: 36px;
    left: 50%;
    width: 14px;
    height: 8px;
    margin-left: -7px;
    border: 2px solid rgba(6, 182, 212, 0.55);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

@keyframes hero-cable-sway {

    0%,
    100% {
        transform: rotate(-2.5deg);
    }

    50% {
        transform: rotate(2.5deg);
    }
}

.hero-building-stack {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding-bottom: 4px;
}

.hero-building-stack__slab {
    width: 92%;
    height: 11px;
    border-radius: 4px;
    background: linear-gradient(90deg, #1e3a8a 0%, #0f172a 50%, #1e3a8a 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.hero-building-stack__floor {
    border-radius: 6px;
    border: 1px solid rgba(6, 182, 212, 0.38);
    background: linear-gradient(168deg,
            rgba(15, 23, 42, 0.98) 0%,
            rgba(11, 19, 43, 0.96) 45%,
            rgba(30, 58, 95, 0.88) 100%);
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.1) inset,
        0 10px 28px rgba(0, 0, 0, 0.4),
        0 0 32px rgba(6, 182, 212, 0.14);
    position: relative;
    overflow: hidden;
    animation: hero-floor-assemble 4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.hero-building-stack__floor::after {
    content: "";
    position: absolute;
    left: 11%;
    right: 11%;
    top: 20%;
    bottom: 20%;
    background: repeating-linear-gradient(90deg,
            transparent 0,
            transparent 9px,
            rgba(6, 182, 212, 0.2) 9px,
            rgba(6, 182, 212, 0.2) 15px);
    opacity: 0.88;
    pointer-events: none;
}

.hero-building-stack__floor--1 {
    width: 100%;
    height: 50px;
    animation-delay: 0s;
}

.hero-building-stack__floor--2 {
    width: 88%;
    height: 46px;
    animation-delay: 0.12s;
}

.hero-building-stack__floor--3 {
    width: 76%;
    height: 42px;
    animation-delay: 0.24s;
}

.hero-building-stack__floor--4 {
    width: 64%;
    height: 38px;
    animation-delay: 0.36s;
}

.hero-building-stack__roof {
    width: 48%;
    height: 20px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.42), rgba(11, 19, 43, 0.96));
    border: 1px solid rgba(6, 182, 212, 0.5);
    box-shadow:
        0 -6px 20px rgba(6, 182, 212, 0.18),
        0 0 0 1px rgba(6, 182, 212, 0.15) inset;
    animation: hero-floor-assemble 4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 0.48s;
}

@keyframes hero-floor-assemble {
    0% {
        transform: translateY(64px) scale(0.9);
        opacity: 0;
        filter: brightness(0.75);
    }

    13% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: brightness(1);
    }

    76% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    90% {
        transform: translateY(-5px);
        opacity: 0.92;
    }

    100% {
        transform: translateY(64px) scale(0.9);
        opacity: 0;
        filter: brightness(0.75);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-building-wrap__rig {
        animation: none;
    }

    .hero-building-stack__floor,
    .hero-building-stack__roof {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* Hero Assembly Animation (Requirement) */
@keyframes assemble-module {
    0% {
        transform: translateY(-100px) scale(0.95);
        opacity: 0;
    }

    60% {
        transform: translateY(10px) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.hero-module {
    opacity: 0;
    animation: assemble-module 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* footer extras */
.footer__extras {
    margin-top: 16px;
}

.footer__extrasInner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.footer__social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-social {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    text-decoration: none;
}

.footer-social__icon {
    display: block;
}

.footer__poemWrap {
    max-width: 520px;
}

.footer-poem {
    opacity: 0.9;
    font-size: 0.95em;
    line-height: 1.35;
}

/* --- injected by logo step --- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.brand-logo {
    width: 28px;
    height: 28px;
    display: inline-block;
    flex: 0 0 auto
}

.brand-logo * {
    vector-effect: non-scaling-stroke
}

/* --- /injected by logo step --- */
.form-privacy {
    margin-bottom: 20px;
}
