:root {
    color: #222;
    background: #f7fbfe;
    font: 16px/1.45 Roboto, Arial, sans-serif;
    --accent: #1ec4f3;
    --accent-dark: #146487;
    --ink: #222;
    --muted: #4a6273;
    --sky: #e5f6fc;
    --line: #dbe8ef;
}

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

body { margin: 0; }

.page-width {
    width: min(1360px, calc(100% - 64px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-block: 20px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: auto;
    height: clamp(32px, 3.25vw, 40px);
}

.launcher {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(20px, 3vw, 44px);
    padding-block: clamp(24px, 4vw, 56px);
}

.hero {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: clamp(20px, 3vw, 36px);
    background: var(--sky);
}

.hero-copy { padding: clamp(24px, 3.7vw, 50px) clamp(24px, 3.7vw, 50px) 0; }

.eyebrow {
    margin: 0 0 16px;
    color: var(--accent-dark);
    font-size: .8rem;
    font-weight: 750;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.15rem, 4.25vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.02;
    overflow-wrap: anywhere;
}

#hero-description {
    max-width: 35ch;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-image {
    display: block;
    width: min(100%, 400px);
    height: auto;
    margin: 4px auto 0;
    mix-blend-mode: multiply;
}

.products > h2 {
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 2.4vw, 2.25rem);
    letter-spacing: -.035em;
    line-height: 1.12;
}

.product-groups { display: grid; gap: 14px; }

.product-group {
    padding: clamp(14px, 1.8vw, 22px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.product-group h3 {
    margin: 0 0 13px;
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    letter-spacing: -.025em;
}

.tile-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 100%;
    min-height: 108px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7fbfe;
    color: var(--ink);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.tile[aria-disabled="true"] { color: var(--muted); }

.tile-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--sky);
}

.tile-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

a.tile:hover,
a.tile:focus-visible {
    border-color: var(--accent);
    background: #edf9fe;
}

.badge {
    position: absolute;
    top: 10px;
    right: 7px;
    padding: 3px 5px;
    border-radius: 10px;
    background: var(--sky);
    color: var(--accent-dark);
    font-size: .69rem;
}

.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.languages button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: none;
    cursor: pointer;
}

.languages button:hover,
.languages button[aria-pressed="true"] {
    border-color: var(--line);
    background: var(--sky);
}

.languages img {
    width: 22px;
    height: 22px;
}

.language-menu { display: none; }

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

@media (max-width: 1100px) {
    .tile-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .page-width { width: calc(100% - 32px); }

    .site-header {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .brand img {
        max-width: 42vw;
        height: auto;
    }

    .languages,
    .products > h2 { display: none; }

    .language-menu {
        display: block;
        position: relative;
        z-index: 1;
        min-width: 0;
        max-width: 50%;
    }

    .language-menu summary,
    .language-options button {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 7px 8px;
        color: var(--ink);
        font: inherit;
        font-size: .875rem;
        cursor: pointer;
    }

    .language-menu summary {
        border: 1px solid var(--line);
        border-radius: 9px;
        background: #fff;
        list-style: none;
    }

    .language-menu summary::-webkit-details-marker { display: none; }

    .language-menu summary::after {
        content: '';
        flex: 0 0 6px;
        height: 6px;
        margin-inline: 2px;
        border-right: 1px solid currentColor;
        border-bottom: 1px solid currentColor;
        transform: rotate(45deg);
    }

    .language-menu img {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .language-options {
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        min-width: 100%;
        width: max-content;
        max-height: 60dvh;
        overflow-y: auto;
        padding: 4px;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: #fff;
        box-shadow: 0 4px 12px #1464871a;
    }

    .language-options button {
        width: 100%;
        border: 0;
        border-radius: 6px;
        background: transparent;
        text-align: left;
    }

    .language-options button:hover,
    .language-options button[aria-pressed="true"] {
        background: var(--sky);
    }

    .launcher {
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: 88px;
    }
    .hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) min(30%, 160px);
        align-items: center;
        gap: clamp(8px, 2vw, 16px);
        padding: clamp(12px, 2.5vw, 20px);
    }

    .hero-copy { padding: 0; }

    .eyebrow {
        margin-bottom: 6px;
        font-size: .65rem;
    }

    .hero h1 {
        font-size: clamp(1.25rem, 4vw, 2rem);
        line-height: 1.1;
    }

    #hero-description {
        margin-top: 8px;
        font-size: clamp(.8125rem, 2vw, 1rem);
        line-height: 1.35;
    }

    .hero-image {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 420px) {
    .tile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
