:root {
    --bg: #fff;
    --fg: #000;
    --muted: rgba(0, 0, 0, .65);
    --line: rgba(0, 0, 0, .12);
    --radius: 24px
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans'
}

a {
    color: inherit;
    text-decoration: none
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line)
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px
}

.nav {
    display: flex;
    gap: 16px;
    font-size: 14px
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px
}

.logo .scn {
    font-weight: 800;
    font-size: 24px;
    line-height: 1
}

.logo .div {
    height: 24px;
    width: 1px;
    background: rgba(0, 0, 0, .2)
}

.btn {
    border: 1px solid var(--fg);
    border-radius: 16px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(14px, 2.4vw, 16px);
    line-height: 1.2
}

.btn:hover {
    background: var(--fg);
    color: #fff;
    transition: all .2s
}

.section {
    padding: 56px 0;
    border-top: 1px solid transparent
}

.border-y {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.grid {
    display: grid;
    gap: 16px
}

.card {
    border: 1px solid var(--fg);
    border-radius: var(--radius);
    padding: 24px
}

.kpi {
    border: 1px solid var(--fg);
    border-radius: 16px;
    padding: 16px
}

.kpi .v {
    font-size: 22px;
    font-weight: 800;
    line-height: 1
}

.kpi .l {
    font-size: 12px;
    opacity: .7;
    margin-top: 4px
}

.hero h1 {
    font-size: clamp(28px, 6vw, 42px);
    line-height: 1.1;
    margin: 0 0 12px;
    font-weight: 800
}

.hero p {
    font-size: clamp(16px, 2.8vw, 18px);
    opacity: .85;
    margin: 0
}

.small {
    font-size: 12px;
    opacity: .6
}

.footer {
    border-top: 1px solid var(--line)
}

.footer .row {
    font-size: 14px
}


/* Media & fluid helpers */

img,
video,
svg {
    max-width: 100%;
    height: auto
}

body {
    line-height: 1.5
}


/* Fluid heading overrides for inline-styled elements */

.section h2 {
    font-size: clamp(22px, 4.2vw, 28px) !important
}

.card h3 {
    font-size: clamp(16px, 3.4vw, 20px) !important
}

.kpi .v {
    font-size: clamp(18px, 4vw, 22px)
}

form .inp {
    border: 1px solid var(--fg);
    border-radius: 16px;
    padding: 10px 12px;
    width: 100%
}

form .area {
    min-height: 120px
}

.status {
    margin-top: 6px;
    font-size: 14px
}

.bad {
    color: #dc2626
}

.ok {
    color: rgba(0, 0, 0, .7)
}

.col-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.col-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}


/* Hamburger */

.hamburger {
    display: none;
    border: 1px solid var(--fg);
    border-radius: 12px;
    padding: 8px;
    background: transparent;
    cursor: pointer
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--fg);
    margin: 3px 0;
    transition: transform .2s, opacity .2s
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg)
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg)
}


/* Mobile nav panel */

.nav {
    align-items: center
}

.nav.open {
    display: flex
}

@media (max-width: 900px) {
    .col-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .row {
        flex-wrap: wrap
    }
    /* Stack hero columns earlier */
    .hero .container {
        grid-template-columns: 1fr !important;
        gap: 20px !important
    }
}

@media (max-width: 640px) {
    .col-2,
    .col-3 {
        grid-template-columns: 1fr
    }
    .nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 56px;
        flex-direction: column;
        gap: 8px;
        background: rgba(255, 255, 255, .98);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
        max-height: calc(100vh - 72px);
        overflow: auto
    }
    .nav a {
        padding: 8px 10px
    }
    .hamburger {
        display: inline-flex
    }
    .section {
        padding: 36px 0
    }
    .container {
        padding: 12px
    }
    .card {
        padding: 16px
    }
    .kpi {
        padding: 12px
    }
    .kpi .v {
        font-size: 20px
    }
}

@media (max-width: 480px) {
    .logo .scn {
        font-size: 20px
    }
    .logo .div {
        height: 20px
    }
    .btn {
        padding: 8px 12px;
        border-radius: 14px
    }
    .hamburger {
        padding: 6px
    }
    .nav {
        top: 52px;
        border-radius: 10px
    }
}

@media (max-width: 360px) {
    .container {
        padding: 10px
    }
    .btn {
        padding: 7px 10px
    }
    .footer .row {
        font-size: 13px
    }
}


/* Force two-column layouts with inline styles to stack on small screens */

#tech .container {
    grid-template-columns: 1fr !important
}