:root {
    --ink: #0d2538;
    --muted: #5a6f83;
    --line: #d8e8f4;
    --soft: #f4f9fd;
    --mint: #e5fbf7;
    --white: #ffffff;
    --blue: #1056b3;
    --blue-dark: #06356f;
    --cyan: #18b9df;
    --teal-dark: #023f43;
    --shadow: 0 24px 70px rgba(7, 43, 84, 0.14);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

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

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

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    min-height: 78px;
    padding: 14px clamp(18px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(216, 232, 244, 0.88);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    font-weight: 850;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: var(--radius);
    font-size: 0.78rem;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.nav a,
.language-switch a {
    padding: 9px 13px;
    color: var(--muted);
    border-radius: 999px;
    font-weight: 750;
    font-size: 0.95rem;
}

.nav a:hover,
.nav a.active,
.language-switch a:hover,
.language-switch a.active {
    color: var(--blue-dark);
    background: #eaf4ff;
}

.language-switch {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.hero {
    min-height: calc(100vh - 78px);
    display: grid;
    align-items: center;
    padding: clamp(52px, 9vw, 118px) clamp(20px, 6vw, 88px);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 35%, rgba(255, 255, 255, 0.24) 64%),
        url("/assets/images/hero-commerce-ai.png") center right / cover no-repeat;
}

.hero-content {
    max-width: 730px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.06;
}

h1 {
    max-width: 880px;
    font-size: 5.2rem;
}

h2 {
    font-size: 3.15rem;
}

h3 {
    font-size: 2rem;
}

.lead {
    max-width: 780px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.24rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 850;
}

.button.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 16px 35px rgba(16, 86, 179, 0.22);
}

.button.secondary {
    color: var(--blue-dark);
    background: var(--white);
    border: 1px solid var(--line);
}

.proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.proof span {
    padding: 9px 12px;
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 750;
}

.section,
.page-hero {
    padding: clamp(56px, 8vw, 112px) clamp(20px, 6vw, 88px);
}

.intro-band {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(30px, 8vw, 96px);
    align-items: end;
    background: var(--white);
}

.intro-band p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 1.22rem;
}

.section-heading {
    max-width: 860px;
    margin-bottom: 46px;
}

.section-heading p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.service-story {
    background: linear-gradient(180deg, var(--soft), #ffffff);
}

.story-row {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(30px, 6vw, 78px);
    align-items: center;
    padding: clamp(34px, 6vw, 72px) 0;
    border-top: 1px solid var(--line);
}

.story-row.reverse {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}

.story-row.reverse .story-media {
    order: 2;
}

.story-media {
    position: relative;
}

.story-media::before {
    content: "";
    position: absolute;
    inset: 7% -5% -7% 9%;
    z-index: 0;
    border-radius: var(--radius);
    background: var(--mint);
}

.story-media img,
.solution-detail img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.story-copy {
    max-width: 720px;
}

.story-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    color: var(--blue);
    background: #eaf4ff;
    border-radius: 999px;
    font-weight: 900;
}

.story-short {
    margin: 18px 0 12px;
    color: var(--blue-dark);
    font-size: 1.15rem;
    font-weight: 800;
}

.story-copy p,
.solution-detail p,
.team-card p,
.process-grid p,
.contact-panel p {
    color: var(--muted);
}

ul {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

li {
    position: relative;
    margin: 10px 0;
    padding-left: 28px;
    color: var(--ink);
    font-weight: 700;
}

li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--cyan);
    border-radius: 999px;
}

.process-band {
    color: var(--white);
    background:
        radial-gradient(circle at 75% 24%, rgba(24, 185, 223, 0.18), transparent 26%),
        linear-gradient(135deg, #053b5a, var(--teal-dark));
}

.process-band .section-heading,
.process-band p,
.process-band .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.process-grid article {
    min-height: 240px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
}

.process-grid span {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--cyan);
    font-weight: 900;
}

.process-grid h3 {
    font-size: 1.18rem;
}

.cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr) auto;
    gap: 28px;
    align-items: center;
    background: var(--mint);
}

.cta-band h2 {
    font-size: 2.8rem;
}

.cta-band p {
    color: var(--muted);
    font-size: 1.08rem;
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
    background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.page-hero.compact {
    display: block;
}

.about-hero {
    display: block;
}

.about-hero .lead {
    max-width: 720px;
}

.legal-page {
    min-height: 50vh;
}

.legal-content {
    max-width: 880px;
    margin-top: 40px;
    padding: clamp(26px, 4vw, 46px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(7, 43, 84, 0.08);
}

.legal-content h1 {
    font-size: 2.4rem;
}

.legal-content h2 {
    margin-top: 34px;
    font-size: 1.65rem;
}

.legal-content h1:first-child,
.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--muted);
}

.legal-content ul {
    margin-bottom: 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.contact-panel {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.team-section {
    padding-top: clamp(36px, 5vw, 72px);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.team-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.team-card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.team-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
}

.team-card-copy {
    padding: 24px;
}

.team-card h2 {
    font-size: 1.75rem;
}

.role {
    margin: 12px 0 0;
    color: var(--blue);
    font-weight: 850;
}

.solution-detail-list {
    display: grid;
    gap: 36px;
    background: var(--white);
}

.solution-detail {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding: clamp(24px, 4vw, 46px);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.solution-detail h2 {
    font-size: 2.35rem;
}

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

.contact-panel a {
    color: var(--blue-dark);
    font-size: 1.3rem;
    font-weight: 900;
}

.contact-panel.wide {
    grid-column: 1 / -1;
}

.contact-panel.wide p {
    max-width: 760px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(20px, 6vw, 88px);
    color: #dbeaff;
    background: #071d37;
}

.site-footer p {
    margin: 6px 0 0;
    color: #a8bed7;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.site-footer a {
    color: #ffffff;
}

@media (max-width: 1080px) {
    h1 {
        font-size: 3.7rem;
    }

    h2 {
        font-size: 2.45rem;
    }

    h3 {
        font-size: 1.65rem;
    }

    .site-header {
        grid-template-columns: 1fr auto;
    }

    .nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .hero {
        min-height: auto;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.8)),
            url("/assets/images/hero-commerce-ai.png") center / cover no-repeat;
    }

    .intro-band,
    .story-row,
    .story-row.reverse,
    .page-hero,
    .solution-detail,
    .cta-band {
        grid-template-columns: 1fr;
    }

    .story-row.reverse .story-media {
        order: 0;
    }

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

    .cta-band {
        justify-items: start;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 68px;
        gap: 12px;
    }

    .brand span:last-child {
        display: none;
    }

    .nav a,
    .language-switch a {
        padding: 8px 10px;
        font-size: 0.88rem;
    }

    h1 {
        font-size: 2.45rem;
    }

    h2,
    .cta-band h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.42rem;
    }

    .lead {
        font-size: 1.08rem;
    }

    .process-grid,
    .team-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .story-row {
        padding: 36px 0;
    }

    .site-footer {
        display: block;
    }

    .site-footer nav {
        margin-top: 18px;
    }
}
