:root {
    --hag-ink: #152235;
    --hag-muted: #64748b;
    --hag-line: #dce5ed;
    --hag-soft: #f4f8fb;
    --hag-blue: #315a7a;
    --hag-cyan: #65d8f4;
    --hag-orange: #efad57;
    --hag-green: #23846c;
    --hag-radius: 1.1rem;
    --hag-shadow: 0 20px 50px rgba(24, 51, 75, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--hag-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
}

.container {
    width: min(1140px, calc(100% - 3rem));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -5rem;
    left: 1rem;
    z-index: 10;
    padding: 0.65rem 1rem;
    border-radius: 0.4rem;
    background: var(--hag-ink);
    color: #fff;
}

.skip-link:focus {
    top: 1rem;
    color: #fff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid rgba(220, 229, 237, 0.8);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.nav {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--hag-ink);
    font-size: 1.35rem;
    font-weight: 760;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 170px;
    max-height: 42px;
    height: auto;
    object-fit: contain;
}

.footer-logo {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 45px;
    height: auto;
    object-fit: contain;
}

.brand-mark {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.65rem;
    background: var(--hag-blue);
    color: #fff;
    font-size: 1.15rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.45rem;
    color: #475569;
    font-size: 0.92rem;
}

.nav-links a {
    color: inherit;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--hag-blue);
}

.language-selector {
    position: relative;
}

.language-selector summary {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--hag-line);
    border-radius: 999px;
    color: var(--hag-blue);
    font-size: 0.82rem;
    font-weight: 800;
}

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

.language-selector summary::after {
    margin-left: 0.35rem;
    content: "⌄";
    font-size: 0.8rem;
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 6;
    min-width: 150px;
    padding: 0.4rem;
    border: 1px solid var(--hag-line);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: var(--hag-shadow);
}

.nav-links .language-menu a {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.4rem;
    font-size: 0.82rem;
}

.language-menu a:hover,
.language-menu a:focus,
.language-menu a[aria-current="true"] {
    background: var(--hag-soft);
}

.language-menu span {
    color: var(--hag-muted);
}

.client-link {
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--hag-line);
    border-radius: 999px;
    color: var(--hag-blue) !important;
}

.nav-toggle {
    display: none;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--hag-line);
    border-radius: 0.5rem;
    background: #fff;
}

.hero,
.page-intro {
    overflow: hidden;
    background: linear-gradient(120deg, #edf7fb 0%, #fff 60%);
}

.hero-grid {
    display: grid;
    min-height: 625px;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
}

.eyebrow,
.card-kicker {
    margin: 0 0 1rem;
    color: var(--hag-blue);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero h1,
.page-intro h1 {
    max-width: 760px;
    margin: 0 0 1.35rem;
    font-size: clamp(2.7rem, 5.6vw, 5rem);
    font-weight: 750;
    letter-spacing: -0.065em;
    line-height: 1.03;
}

.hero-lead,
.page-intro > .container > p:not(.eyebrow) {
    max-width: 650px;
    color: #526579;
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.button-primary {
    background: var(--hag-blue);
    color: #fff;
}

.button-primary:hover,
.button-primary:focus {
    background: #244661;
    color: #fff;
}

.button-quiet {
    border-color: var(--hag-line);
    background: #fff;
    color: var(--hag-blue);
}

.hero-art {
    position: relative;
    display: grid;
    height: 410px;
    place-items: center;
}

.hero-logo {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: min(260px, 62vw);
    max-height: 82px;
    height: auto;
    object-fit: contain;
    box-shadow: var(--hag-shadow);
}

.orbit {
    position: absolute;
    width: 290px;
    height: 290px;
    border: 1px solid #b9dbe7;
    border-radius: 50%;
}

.orbit-two {
    width: 405px;
    height: 405px;
    border-color: #d9e9ef;
}

.product-node {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: #fff;
    box-shadow: var(--hag-shadow);
    font-weight: 800;
}

.node-main {
    width: 100px;
    height: 100px;
    background: var(--hag-blue);
    color: #fff;
    font-size: 2.4rem;
}

.node-main span {
    color: var(--hag-cyan);
}

.node-one {
    top: 35px;
    right: 60px;
    width: 92px;
    height: 56px;
    color: var(--hag-blue);
}

.node-two {
    bottom: 44px;
    left: 35px;
    width: 110px;
    height: 56px;
    color: #b16c1c;
}

.node-three {
    right: 8px;
    bottom: 72px;
    width: 92px;
    height: 56px;
    color: var(--hag-green);
}

.section {
    padding: 7rem 0;
}

.section-soft {
    background: var(--hag-soft);
}

.section-heading {
    max-width: 650px;
}

.section-heading h2,
.callout h2,
.detail-grid h2 {
    margin: 0.1rem 0 1rem;
    font-size: clamp(2rem, 3.6vw, 3.25rem);
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.section-heading > p:not(.eyebrow),
.callout p,
.detail-grid p {
    color: var(--hag-muted);
    font-size: 1.08rem;
}

.product-grid {
    display: grid;
    margin-top: 2.8rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.product-grid-spacious {
    margin-top: 0;
}

.product-card {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.7rem;
    border: 1px solid var(--hag-line);
    border-radius: var(--hag-radius);
    background: #fff;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hag-shadow);
    transition: 0.2s;
}

.product-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    margin-bottom: 2.5rem;
    place-items: center;
    border-radius: 0.8rem;
    background: #e7f4f8;
    color: var(--hag-blue);
    font-size: 1.3rem;
    font-weight: 850;
}

.product-orange .product-icon {
    background: #fff2df;
    color: #a3631d;
}

.product-green .product-icon {
    background: #e8f6ee;
    color: #22734f;
}

.card-kicker {
    margin: 0;
    color: var(--hag-muted);
    font-size: 0.73rem;
    letter-spacing: 0.1em;
}

.product-card h3 {
    margin: 0.35rem 0;
    font-size: 1.55rem;
}

.product-card p:not(.card-kicker) {
    margin: 0.1rem 0 1.4rem;
    color: var(--hag-muted);
}

.product-card a {
    margin-top: auto;
    color: var(--hag-blue);
    font-weight: 750;
    text-decoration: none;
}

.split,
.detail-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 6rem;
}

.principles {
    display: grid;
    gap: 1rem;
}

.principles > div {
    padding: 1.15rem 0;
    border-top: 1px solid var(--hag-line);
}

.principles span {
    color: var(--hag-blue);
    font-family: ui-monospace, monospace;
    font-weight: 800;
}

.principles h3 {
    margin: 0.25rem 0;
    font-size: 1.15rem;
}

.principles p {
    margin: 0;
    color: var(--hag-muted);
}

.callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem;
    border: 1px solid var(--hag-line);
    border-radius: var(--hag-radius);
    background: #f8fafc;
}

.callout h2 {
    max-width: 700px;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.page-intro {
    padding: 7rem 0 6rem;
}

.page-intro-shop {
    background: linear-gradient(120deg, #edf7fb 0%, #fff3e4 100%);
}

.page-intro .button {
    margin-top: 1rem;
}

.product-intro {
    background: linear-gradient(120deg, #edf7fb 0%, #fff 70%);
}

.info-panel {
    align-self: start;
    padding: 2rem;
    border-radius: var(--hag-radius);
    background: var(--hag-soft);
}

.info-panel h2 {
    margin: 0 0 0.4rem;
    font-size: 1.3rem;
}

.info-panel p {
    margin-bottom: 1.5rem;
}

.site-footer {
    padding: 4rem 0 1.5rem;
    background: var(--hag-ink);
    color: #c8d5df;
}

.brand-dark {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 2rem;
}

.footer-grid h2 {
    margin: 0 0 1rem;
    color: #91a9ba;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-grid a,
.footer-grid span {
    display: block;
    margin: 0.45rem 0;
    color: #d8e2e8;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-note,
.footer-bottom {
    color: #91a9ba;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.2rem;
    border-top: 1px solid #314354;
    font-size: 0.78rem;
}

@media (max-width: 850px) {
    .container {
        width: min(100% - 2rem, 680px);
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 74px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-bottom: 1px solid var(--hag-line);
        background: #fff;
    }

    .nav-links.is-open {
        display: flex;
    }

    .language-selector {
        align-self: flex-start;
    }

    .language-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
    }

    .client-link {
        text-align: center;
    }

    .hero-grid,
    .split,
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-grid {
        padding: 4.5rem 0;
    }

    .hero-art {
        order: -1;
        height: 330px;
    }

    .brand-logo {
        max-width: 145px;
        max-height: 36px;
    }

    .hero-logo {
        max-width: min(220px, 66vw);
        max-height: 70px;
    }

    .hero h1,
    .page-intro h1 {
        font-size: clamp(2.6rem, 12vw, 4.4rem);
    }

    .section {
        padding: 5rem 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .callout {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        max-width: 125px;
        max-height: 31px;
    }

    .footer-logo {
        max-width: 130px;
        max-height: 39px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom,
    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
