:root {
    --armek-black: #03060d;
    --armek-navy: #050b18;
    --armek-panel: #0b1324;
    --armek-panel-soft: #101a2f;
    --armek-border: rgba(255, 255, 255, 0.12);
    --armek-text: #f6f8fb;
    --armek-muted: #aab6c8;
    --armek-blue: #2f8cff;
    --armek-blue-strong: #0b6eff;
    --armek-ice: #eaf3ff;
    --armek-silver: #d9e2ef;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--armek-black);
    color: var(--armek-text);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.app-loading {
    align-items: center;
    background: var(--armek-black);
    color: var(--armek-muted);
    display: flex;
    font-weight: 700;
    justify-content: center;
    min-height: 100vh;
}

a {
    color: var(--armek-ice);
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}

h1,
h2,
h3,
p {
    margin-top: 0;
    overflow-wrap: break-word;
}

h1:focus {
    outline: none;
}

.site-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1180px;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

.btn {
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--armek-blue-strong), #51b4ff);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a5de0, #3aa6f5);
    color: #ffffff;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.36);
    color: #ffffff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.72);
    color: #ffffff;
}

.btn:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(47, 140, 255, 0.65);
    outline-offset: 3px;
}

.site-header {
    backdrop-filter: blur(18px);
    background: rgba(3, 6, 13, 0.82);
    border-bottom: 1px solid var(--armek-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-nav {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    min-height: 78px;
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 0.85rem;
    min-width: 240px;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #8dc8ff);
    border-radius: 7px;
    color: #07101f;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.brand-copy {
    display: grid;
    gap: 0.05rem;
}

.brand-copy strong,
.footer-brand {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.brand-copy span {
    color: var(--armek-muted);
    font-size: 0.72rem;
    max-width: 300px;
}

.nav-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
}

.nav-links a {
    color: var(--armek-muted);
    font-size: 0.94rem;
    font-weight: 650;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-contact {
    min-width: 92px;
}

.hero {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(3, 6, 13, 0.96) 0%, rgba(5, 11, 24, 0.92) 34%, rgba(5, 11, 24, 0.48) 64%, rgba(3, 6, 13, 0.28) 100%),
        linear-gradient(180deg, rgba(3, 6, 13, 0.1) 0%, rgba(3, 6, 13, 0.86) 100%),
        url("images/armek-industrial-software-hero.png");
    background-position: center;
    background-size: cover;
    display: flex;
    min-height: min(820px, calc(100vh - 78px));
    padding: 7rem 0 6rem;
}

.hero-content {
    width: 100%;
}

.hero-copy {
    max-width: 760px;
    min-width: 0;
}

.hero-kicker,
.section-kicker {
    color: #76bcff;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero h1 {
    color: #ffffff;
    font-size: 5.4rem;
    font-weight: 850;
    line-height: 0.98;
    margin-bottom: 1.5rem;
    max-width: 860px;
    overflow-wrap: break-word;
}

.hero h1 span {
    display: block;
}

.hero p {
    color: var(--armek-silver);
    font-size: 1.25rem;
    max-width: 730px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.2rem;
}

.section {
    padding: 6rem 0;
}

.section-services {
    background: linear-gradient(180deg, var(--armek-black), var(--armek-navy));
}

.section-heading {
    margin-bottom: 2.6rem;
    max-width: 790px;
    min-width: 0;
}

.section-heading--compact {
    margin-bottom: 0;
}

.section h2 {
    color: #ffffff;
    font-size: 3.25rem;
    font-weight: 820;
    line-height: 1.05;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

.section p {
    color: var(--armek-muted);
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
    background: linear-gradient(180deg, rgba(16, 26, 47, 0.92), rgba(7, 14, 27, 0.92));
    border: 1px solid var(--armek-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 1.4rem;
}

.service-card__index {
    color: #76bcff;
    font-size: 0.78rem;
    font-weight: 850;
    margin-bottom: 1.4rem;
}

.service-card h3 {
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--armek-muted);
    font-size: 0.96rem;
    margin-bottom: 0;
}

.section-experience {
    background: #070d18;
    border-bottom: 1px solid var(--armek-border);
    border-top: 1px solid var(--armek-border);
}

.experience-grid,
.about-grid,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.experience-list {
    align-content: start;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.experience-list span {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--armek-border);
    border-radius: 8px;
    color: var(--armek-ice);
    font-weight: 700;
    min-height: 58px;
    padding: 1rem;
}

.section-technologies {
    background: linear-gradient(180deg, var(--armek-navy), #02050b);
}

.technology-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.technology-badge {
    background: rgba(47, 140, 255, 0.11);
    border: 1px solid rgba(118, 188, 255, 0.28);
    border-radius: 999px;
    color: #d9ecff;
    display: inline-flex;
    font-size: 0.96rem;
    font-weight: 750;
    line-height: 1;
    padding: 0.78rem 1rem;
    white-space: nowrap;
}

.section-about {
    background: #ffffff;
    color: #07101f;
}

.section-about h2,
.section-about p {
    color: #07101f;
}

.section-about .section-kicker {
    color: #0b62c4;
}

.section-about p {
    font-size: 1.12rem;
}

.section-contact {
    background: linear-gradient(135deg, #07101f, #02050b 70%);
}

.contact-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--armek-border);
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 0;
}

.contact-primary {
    color: #ffffff;
    display: inline-block;
    font-size: 2rem;
    font-weight: 820;
    margin-bottom: 1.5rem;
    overflow-wrap: anywhere;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-links a {
    border: 1px solid var(--armek-border);
    border-radius: 999px;
    color: var(--armek-ice);
    font-weight: 700;
    padding: 0.58rem 0.9rem;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.site-footer {
    background: #02050b;
    border-top: 1px solid var(--armek-border);
    padding: 2.2rem 0;
}

.footer-grid {
    align-items: start;
    grid-template-columns: 1.2fr 0.8fr 1fr;
}

.site-footer p,
.footer-meta span {
    color: var(--armek-muted);
    margin-bottom: 0;
}

.footer-links,
.footer-meta {
    display: grid;
    gap: 0.5rem;
}

.footer-links a,
.footer-meta a {
    color: var(--armek-silver);
    font-weight: 650;
}

.simple-page {
    align-items: center;
    background: linear-gradient(180deg, var(--armek-navy), var(--armek-black));
    display: flex;
    min-height: 60vh;
}

.simple-page h1 {
    color: #ffffff;
    font-size: 4rem;
    font-weight: 850;
}

.request-id {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--armek-border);
    border-radius: 8px;
    color: var(--armek-silver);
    display: inline-block;
    padding: 0.8rem 1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #ff7b7b;
}

.blazor-error-boundary {
    background: #8a1f1f;
    color: white;
    padding: 1rem;
}

@media (max-width: 991.98px) {
    .site-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand {
        min-width: 0;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero h1 {
        font-size: 4rem;
    }

    .section h2 {
        font-size: 2.65rem;
    }

    .experience-grid,
    .about-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .hero {
        background-position: 62% center;
        min-height: auto;
        padding: 5rem 0 4.5rem;
    }

    .hero h1 {
        font-size: 2.05rem;
        line-height: 1.05;
    }

    .hero p,
    .section p {
        font-size: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 4rem 0;
    }

    .section h2 {
        font-size: 1.75rem;
        line-height: 1.12;
    }

    .services-grid,
    .experience-list {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .technology-badge {
        white-space: normal;
    }

    .contact-primary {
        font-size: 1.35rem;
    }

    .simple-page h1 {
        font-size: 2.7rem;
    }
}
