:root {
    --kaBlue: #1a73e8;
    --ink: #0f172a;
    --muted: #475569;
    --border: #e6e8f0;
    --soft: #f6f7f9;
    --nav: #0b1b3a
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans 3',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5
}

a {
    color: var(--kaBlue);
    text-decoration: none
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px
}
/* NAVBAR */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--border)
}

.nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 56px
}

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

.center {
    justify-self: center
}

.right {
    justify-self: end;
    display: flex;
    gap: 16px;
    align-items: center
}

.drop {
    border: 0;
    background: transparent;
    color: var(--kaBlue);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.search {
    display: flex;
    align-items: center;
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    padding: 6px 10px;
    gap: 8px;
    min-width: 300px;
    height: 36px
}

    .search input {
        border: 0;
        outline: 0;
        width: 100%
    }

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

    .logo img {
        height: 24px
    }

    .logo b {
        font-size: 20px;
        color: #0b1b3a
    }

.btn {
    border: 1px solid var(--kaBlue);
    background: var(--kaBlue);
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer
}

.btn:hover{
    border: 1px solid var(--kaBlue);
}

.btn-outline {
    background: #fff;
    color: var(--kaBlue);
    border-width: 1px
}

.lang {
    position: relative
}

    .lang ul {
        position: absolute;
        right: 0;
        top: 36px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(2,6,23,.12);
        list-style: none;
        margin: 0;
        padding: 6px;
        display: none
    }

    .lang:hover ul {
        display: block
    }

    .lang li {
        padding: 6px 10px;
        border-radius: 6px;
        cursor: pointer;
    }

        .lang li:hover {
            background: #f3f6ff
        }

/* MEGA MENU */
.dropdown {
    position: relative
}

.mega {
    position: absolute;
    left: 0;
    top: 42px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(2,6,23,.15);
    display: none;
    width: 920px;
    overflow: hidden
}

.dropdown:hover .mega {
    display: block
}

.mega-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 360px;
    max-height: 460px
}

.mega-side {
    border-right: 1px solid var(--border);
    padding: 8px;
    overflow: auto
}

.mega-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin: 2px 4px;
    border-radius: 6px;
    cursor: pointer;
    color: #0f172a
}

    .mega-item::after {
        content: '\203A';
        opacity: .5
    }

    .mega-item.active {
        background: #eef2ff
    }

.mega-pane {
    padding: 14px 18px;
    overflow: auto
}

    .mega-pane h4 {
        margin: 0 0 10px;
        color: #334155;
        font-size: 12px;
        letter-spacing: .08em
    }

    .mega-pane ul {
        list-style: none;
        margin: 0;
        padding: 0
    }

    .mega-pane li {
        padding: 7px 0
    }

/* LAYOUT */
.section {
    padding: 56px 0
}

.hero h1 {
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 12px;
    font-weight: 800
}

.hero p {
    color: var(--muted)
}

.cta {
    display: flex;
    gap: 12px;
    margin-top: 18px
}

.why h2 {
    text-align: center;
    font-size: 48px;
    margin: 0 0 36px;
    font-weight: 800
}

.why .grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 40px;
    text-align: center
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center
}

.art {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4/3;
    border-radius: 16px;
    background: linear-gradient(135deg,#ffe5a0,#ffc8c8 40%,#d9e8ff);
    justify-self: center
}

.join h2 {
    text-align: left;
    font-size: 48px;
    margin-bottom: 18px;
    font-weight: 800
}

.join .stack {
    display: inline-block
}

    .join .stack .btn {
        display: block;
        width: 360px;
        height: 56px;
        border-radius: 8px;
        margin: 10px 0;
        text-align: center;
        line-height: 40px;
        padding-top: 8px
    }

/* Supporters */
.support {
    background: #f9fafb;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7
}

.logos {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 24px;
    align-items: center;
    justify-items: center;
    color: #0f172a
}

/* Footer */
.footer {
    background: #0b1b3a;
    color: #cbd5e1
}

.foot-grid {
    display: grid;
    grid-template-columns: 420px 1fr 1fr 1fr;
    gap: 28px;
    padding: 40px 0
}

.foot-bottom {
    border-top: 1px solid #ffffff22;
    padding: 12px 0 24px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

/* MODALS */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: 820px;
    max-width: 96%;
    padding: 18px
}

.steps {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 6px;
    margin-bottom: 12px
}

    .steps span {
        height: 6px;
        border-radius: 4px;
        background: #e5e7eb
    }

        .steps span.on {
            background: var(--kaBlue)
        }

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

    .field input, .field select {
        height: 40px;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 0 10px
    }

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px
}

.hide {
    display: none
}

@media (max-width:980px) {
    .split {
        grid-template-columns: 1fr
    }

    .why .grid {
        grid-template-columns: 1fr
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr
    }

    .join h2 {
        text-align: center
    }
}

@media (max-width:640px) {
    .foot-grid {
        grid-template-columns: 1fr
    }
}

.bg-soft {
    background: linear-gradient(180deg,#f6f8fb 0%,#eef2f7 100%)
}

.bg-alt {
    background: linear-gradient(180deg,#e6f0ff 0%,#cfe2ff 100%)
}

.bg-mint {
    background: linear-gradient(180deg,#e7fff2 0%,#c9ffe3 100%)
}

.bg-sky {
    background: linear-gradient(180deg,#eef7ff 0%,#d9ecff 100%)
}

.bg-sand {
    background: linear-gradient(180deg,#fff6e6 0%,#ffe9c7 100%)
}

.bg-slate {
    background: linear-gradient(180deg,#f5f7fa 0%,#e9edf3 100%)
}

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

    .social a {
        display: inline-flex;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 1px solid #ffffff44;
        align-items: center;
        justify-content: center
    }
/* keep dropdowns open while moving cursor */
.dropdown.open .mega {
    display: block
}

.lang.open ul {
    display: block
}