:root {
    --primary-dark: #0a1128;
    --surface-dark: #101f42;
    --surface-card: #162a5a;
    --graphite-muted: #1e293b;
    --accent-cyan: #00e5ff;
    --accent-yellow: #facc15;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-dark: #223b7a;
    --border-light: #e2e8f0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.15;
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        line-height: 1.2;
    }

    h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }

    h4,
    h5,
    h6 {
        font-size: 1.125rem;
    }

    a,
    p,
    span,
    li {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* ===== header ===== */
.mobile-menu-overlay.open {
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
}

/* ===== hero_section ===== */
#hero {
    overflow: hidden;
}

#hero a,
#hero button {
    transition: all 0.25s ease-in-out;
}

/* ===== benefits_section ===== */
#benefits {
    width: 100%;
    box-sizing: border-box;
}

#benefits * {
    box-sizing: border-box;
    hyphens: auto;
}

/* ===== services_section ===== */
#services {
    overflow: hidden;
}

#services input::placeholder,
#services textarea::placeholder {
    color: #94a3b8;
}

.js-service-modal {
    align-items: flex-start;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.service-modal-panel {
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body.service-modal-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .js-service-modal {
        align-items: center;
    }
}

/* ===== protected_equipment_section ===== */
#equipment {
    background-color: var(--primary-dark);
    color: var(--text-primary);
}

#equipment .js-equipment-card {
    background-color: var(--surface-dark);
    border-color: var(--border-dark);
}

#equipment .js-equipment-card:hover {
    border-color: var(--accent-cyan);
}

/* ===== protection_scheme_section ===== */
#architecture {
    overflow: hidden;
}

/* ===== solutions_section ===== */
#solutions {
    overflow: hidden;
    hyphens: auto;
}

.js-solution-card {
    width: 100%;
}

/* ===== process_steps_section ===== */
#process {
    overflow: hidden;
}

#process .js-process-step {
    min-height: 240px;
}

/* ===== about_team_section ===== */
#about {
    overflow: hidden;
    hyphens: auto;
}

#about h2,
#about h3,
#about h4 {
    line-height: 1.2;
}

#about img {
    object-fit: cover;
}

/* ===== service_concept_section ===== */
#concept {
    background-color: var(--primary-dark, #0a1128);
    color: var(--text-primary, #ffffff);
    overflow: hidden;
}

#concept .concept-container {
    width: 100%;
}

#concept h2,
#concept h3 {
    hyphens: auto;
}

@media (max-width: 767px) {
    #concept h2 {
        line-height: 1.25;
    }

    #concept h3 {
        line-height: 1.25;
    }
}

/* ===== faq_section ===== */
#faq {
    overflow: hidden;
}

#faq .js-faq-item {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#faq .js-faq-item.is-active {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 8px 24px -6px rgba(0, 229, 255, 0.15);
}

#faq .js-faq-item.is-active .js-faq-icon {
    transform: rotate(180deg);
    color: var(--accent-cyan) !important;
}

#faq button:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
    border-radius: 0.75rem;
}

/* ===== cta_banner_section ===== */
#cta-audit {
    overflow: hidden;
}

#cta-audit a,
#cta-audit button {
    outline: none;
}

/* ===== contact_form_section ===== */
#contact input::placeholder,
#contact textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

#contact select {
    background-image: none;
}

.custom-select-trigger,
.custom-select-menu {
    display: none;
}

@media (max-width: 767px) {
    .custom-select-native,
    .custom-select > .pointer-events-none {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .custom-select-trigger {
        display: flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        border: 1px solid var(--border-dark);
        border-radius: 0.75rem;
        background: var(--surface-card);
        color: var(--text-primary);
        font-size: 13px;
        text-align: left;
    }

    .custom-select-trigger i {
        flex: 0 0 auto;
        color: var(--accent-cyan);
        font-size: 1.125rem;
        transition: transform 0.2s ease;
    }

    .custom-select.is-open .custom-select-trigger {
        border-color: var(--accent-cyan);
    }

    .custom-select.is-open .custom-select-trigger i {
        transform: rotate(180deg);
    }

    .custom-select-menu {
        position: absolute;
        z-index: 30;
        top: calc(100% + 0.5rem);
        right: 0;
        left: 0;
        max-height: 15rem;
        overflow-y: auto;
        padding: 0.375rem;
        border: 1px solid var(--border-dark);
        border-radius: 0.75rem;
        background: var(--surface-dark);
        box-shadow: 0 18px 45px rgba(2, 6, 23, 0.5);
    }

    .custom-select.is-open .custom-select-menu {
        display: block;
    }

    .custom-select-menu button {
        display: block;
        width: 100%;
        padding: 0.75rem;
        border-radius: 0.5rem;
        color: var(--text-primary);
        font-size: 13px;
        text-align: left;
    }

    .custom-select-menu button:hover,
    .custom-select-menu button:focus-visible,
    .custom-select-menu button[aria-selected="true"] {
        background: #1d4ed8;
        color: #fff;
    }
}

/* ===== footer ===== */
#footer {
    hyphens: auto;
    line-height: 1.4
}

#footer a {
    display: inline-block
}

#footer a:focus-visible {
    outline: 2px solid #00e5ff;
    outline-offset: 2px;
    border-radius: 2px
}
