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

:root {
    --navy: #10213f;
    --navy-deep: #071226;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --teal-soft: #e8f7f5;
    --amber: #b7791f;
    --amber-soft: #fff7e6;
    --white: #ffffff;
    --paper: #fbfcfd;
    --mist: #f4f7fa;
    --line: #dfe7ee;
    --line-soft: #edf2f6;
    --text: #172033;
    --muted: #5f6f82;
    --radius: 8px;
    --max-w: 1160px;
    --shadow-soft: 0 18px 42px rgba(16, 33, 63, 0.08);
    --shadow-card: 0 8px 24px rgba(16, 33, 63, 0.06);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background:
        linear-gradient(180deg, rgba(244, 247, 250, 0.72) 0, rgba(255, 255, 255, 0) 420px),
        var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    transition: color 0.2s ease;
}

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

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navigation ---- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(223, 231, 238, 0.9);
    transition: all 0.3s ease;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo img {
    width: auto;
    height: 42px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.18);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(13, 148, 136, 0.22);
}

.btn:focus-visible {
    outline: 3px solid rgba(13, 148, 136, 0.3);
    outline-offset: 3px;
}

.btn--outline {
    background: var(--white);
    color: var(--navy);
    border-color: var(--line);
    box-shadow: none;
}

.btn--outline:hover {
    background: var(--teal-soft);
    color: var(--teal-dark);
    border-color: rgba(13, 148, 136, 0.34);
    box-shadow: none;
}

.btn--lg {
    padding: 15px 28px;
    font-size: 1rem;
}

/* ---- Sections ---- */
section { padding: 92px 0; }

body > section:not(.hero):not(.tech-ecosystem):not(.contact-section):nth-of-type(even) {
    background: var(--paper);
}

.section-header {
    margin-bottom: 56px;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 16px;
    color: var(--navy);
    font-size: 2.45rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.18;
}

.section-sub {
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.1rem;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 154px 0 78px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.95) 0 48%, rgba(232, 247, 245, 0.72) 48% 68%, rgba(244, 247, 250, 0.96) 68% 100%),
        var(--paper);
    color: var(--navy);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 72px 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.36), transparent);
}

.hero .container { position: relative; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    padding: 8px 12px;
    border: 1px solid rgba(13, 148, 136, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--teal-dark);
    font-size: 0.86rem;
    font-weight: 700;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 24px;
    color: var(--navy);
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
}

.hero h1 em {
    position: relative;
    color: var(--teal-dark);
    font-style: normal;
}

.hero h1 em::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    z-index: -1;
    width: 100%;
    height: 10px;
    border-radius: 2px;
    background: rgba(13, 148, 136, 0.14);
}

.hero p {
    max-width: 730px;
    margin: 0 auto 34px;
    color: var(--muted);
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 42px;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 880px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.proof-item {
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.92);
}

.proof-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--navy);
    font-size: 0.98rem;
}

.proof-item span {
    color: var(--muted);
    font-size: 0.92rem;
}

/* ---- Technology ecosystem ---- */
.tech-ecosystem {
    padding: 86px 0;
    border-bottom: 1px solid var(--line-soft);
    background: var(--white);
}

.tech-ecosystem .section-header {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

.ecosystem-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.ecosystem-canvas {
    position: relative;
    padding: 40px;
    background:
        linear-gradient(180deg, rgba(232, 247, 245, 0.42), rgba(255, 255, 255, 0) 68%),
        var(--paper);
}

.ecosystem-flow {
    position: absolute;
    top: 76px;
    left: 8%;
    z-index: 0;
    width: 84%;
    height: 170px;
    overflow: visible;
    pointer-events: none;
}

.ecosystem-flow path {
    fill: none;
    stroke-linecap: round;
}

.ecosystem-flow-base {
    stroke: rgba(15, 118, 110, 0.16);
    stroke-width: 3;
}

.ecosystem-flow-active {
    stroke: rgba(13, 148, 136, 0.56);
    stroke-width: 3;
    stroke-dasharray: 9 17;
    animation: ecosystem-flow 10s linear infinite;
}

.ecosystem-groups {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.85fr 1.3fr 1fr;
    gap: 28px;
}

.technology-group {
    min-width: 0;
    padding: 24px;
    border: 1px solid rgba(223, 231, 238, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

.technology-group-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.technology-group-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 0.74rem;
    font-weight: 800;
}

.technology-group h3 {
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.25;
}

.technology-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.technology-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--text);
    box-shadow: 0 2px 7px rgba(16, 33, 63, 0.04);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.technology-chip:hover,
.technology-chip:focus-visible {
    border-color: rgba(13, 148, 136, 0.48);
    background: var(--teal-soft);
    color: var(--teal-dark);
    box-shadow: 0 5px 14px rgba(13, 148, 136, 0.12);
    transform: translateY(-1px);
}

.technology-chip:focus-visible {
    outline: 3px solid rgba(13, 148, 136, 0.24);
    outline-offset: 2px;
}

.technology-chip svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.technology-chip svg.tech-logo {
    fill: currentColor;
    stroke: none;
}

.ecosystem-card.is-filtering .technology-chip {
    opacity: 0.46;
}

.ecosystem-card.is-filtering .technology-chip.is-related {
    opacity: 1;
    border-color: rgba(13, 148, 136, 0.25);
    background: rgba(232, 247, 245, 0.7);
}

.ecosystem-card.is-filtering .technology-chip.is-active {
    opacity: 1;
    border-color: var(--teal-dark);
    background: var(--teal-dark);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.24);
    transform: translateY(-1px);
}

.ecosystem-card.is-filtering .technology-chip.is-active::after {
    content: '';
    width: 6px;
    height: 6px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.ecosystem-description {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 150px;
    padding: 30px 40px;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.ecosystem-description > div {
    max-width: 780px;
}

.ecosystem-description-label {
    display: block;
    margin-bottom: 6px;
    color: var(--teal-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ecosystem-description h3 {
    margin-bottom: 7px;
    color: var(--navy);
    font-size: 1.3rem;
}

.ecosystem-description p {
    color: var(--muted);
    font-size: 0.96rem;
}

.ecosystem-reset {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--navy);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.ecosystem-reset:hover,
.ecosystem-reset:focus-visible {
    border-color: rgba(13, 148, 136, 0.4);
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.ecosystem-reset:focus-visible {
    outline: 3px solid rgba(13, 148, 136, 0.24);
    outline-offset: 2px;
}

@keyframes ecosystem-flow {
    to { stroke-dashoffset: -52; }
}

/* ---- Problem ---- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 940px;
    margin: 0 auto;
}

.problem-item {
    position: relative;
    padding: 24px 26px 24px 54px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow-card);
    font-size: 1rem;
}

.problem-item::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 24px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 0 0 5px var(--amber-soft);
}

.problem-punch {
    max-width: 760px;
    margin: 48px auto 0;
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}

/* ---- Shared card grids ---- */
.who-grid,
.outcomes-grid,
.typical-grid {
    display: grid;
    gap: 22px;
}

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

.outcomes-grid { grid-template-columns: repeat(3, 1fr); }

.info-card,
.outcome-card,
.engagement-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.info-card h3,
.outcome-card h3,
.engagement-card h3 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 1.05rem;
    line-height: 1.35;
}

.info-card p,
.outcome-card p,
.engagement-card p,
.engagement-card li {
    color: var(--muted);
    font-size: 0.95rem;
}

.info-card ul,
.engagement-card ul {
    margin-top: 10px;
    padding-left: 18px;
}

/* ---- Services ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    position: relative;
    overflow: hidden;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--amber));
}

.service-card:hover {
    border-color: rgba(13, 148, 136, 0.28);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: var(--radius);
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.service-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--mist);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.service-card--wide {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
    text-align: left;
}

.service-card--wide::before { display: none; }

.service-card--wide .service-icon {
    margin: 0;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.service-card--wide h3 {
    margin-bottom: 6px;
    color: var(--white);
}

.service-card--wide p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.76);
}

.service-card--wide:hover {
    border-color: var(--navy);
    background: var(--navy);
}

.engagement-note {
    max-width: 720px;
    margin: 40px auto 0;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--mist);
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

/* ---- Steps ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.step {
    padding: 30px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
    text-align: left;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 24px;
    border-radius: var(--radius);
    background: var(--teal);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
}

.step h4 {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 700;
}

.step p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ---- About ---- */
.about-wrap {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr;
    gap: 34px;
    align-items: start;
    max-width: 920px;
    margin: 0 auto;
    text-align: left;
}

.about-copy {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.about-wrap p {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 1.05rem;
}

.about-wrap p:last-child { margin-bottom: 0; }

.about-list {
    display: grid;
    gap: 12px;
}

.about-list div {
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--mist);
    color: var(--text);
    font-weight: 700;
}

.about-list span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---- Contact ---- */
.contact-section {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy));
    color: var(--white);
}

.contact-section .section-title { color: var(--white); }
.contact-section .section-label { color: #5eead4; }
.contact-section .section-sub { color: rgba(255, 255, 255, 0.84); }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 760px;
    margin: 0 auto 38px;
}

.contact-item {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
}

.contact-item .lbl {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.contact-item .val {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item .val a {
    color: #5eead4;
    text-decoration: none;
}

.contact-item .val a:hover {
    color: var(--white);
    text-decoration: none;
}

.contact-actions { text-align: center; }

.contact-actions .contact-note {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

/* ---- Footer ---- */
footer {
    padding: 48px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #050b16;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: center;
}

footer strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.footer-small {
    margin-top: 16px;
    opacity: 0.6;
}

/* ---- Responsive ---- */
@media (max-width: 1040px) {
    .hero h1 { font-size: 3.3rem; }
    .ecosystem-canvas { padding: 30px; }
    .ecosystem-groups { gap: 18px; }
    .technology-group { padding: 20px; }
    .services-grid,
    .outcomes-grid { grid-template-columns: 1fr; }
    .service-card--wide { grid-template-columns: auto 1fr; }
    .service-card--wide .btn {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 900px) {
    .ecosystem-flow {
        display: none;
    }

    .ecosystem-canvas::before {
        content: '';
        position: absolute;
        top: 80px;
        bottom: 80px;
        left: 50%;
        width: 3px;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(13, 148, 136, 0.12), rgba(13, 148, 136, 0.52), rgba(13, 148, 136, 0.12));
        transform: translateX(-50%);
    }

    .ecosystem-groups { grid-template-columns: 1fr; }

    .hero-proof,
    .steps,
    .about-wrap,
    .who-grid,
    .typical-grid {
        grid-template-columns: 1fr;
    }

    .hero-proof { text-align: center; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    section { padding: 66px 0; }
    nav .container { height: 64px; }
    .logo img { height: 36px; }
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 2rem; }
    .section-sub { font-size: 1rem; }
    .hero { padding: 122px 0 56px; }
    .hero h1 { font-size: 2.35rem; }
    .hero p { font-size: 1.05rem; }
    .hero-actions { margin-bottom: 30px; }
    .tech-ecosystem { padding: 60px 0; }
    .ecosystem-canvas { padding: 20px; }
    .ecosystem-description {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        padding: 26px 24px;
    }
    .ecosystem-reset {
        width: 100%;
    }
    .problem-grid { grid-template-columns: 1fr; }
    .service-card,
    .about-copy,
    .step {
        padding: 26px 22px;
    }
    .service-card--wide { grid-template-columns: 1fr; }
    .service-card--wide .btn {
        grid-column: auto;
        justify-self: start;
    }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    nav .container { gap: 12px; }
    .logo img {
        width: min(150px, 42vw);
        height: auto;
    }
    nav .btn {
        flex-shrink: 1;
        padding: 9px 12px;
        font-size: 0.78rem;
    }
    .hero-eyebrow {
        max-width: 100%;
        justify-content: center;
        white-space: normal;
    }
    .hero h1 { font-size: 2rem; }
    .hero-actions .btn { width: 100%; }
    .proof-item { padding: 18px; }
    .technology-group { padding: 18px; }
    .technology-list {
        display: grid;
        grid-template-columns: 1fr;
    }
    .technology-chip {
        width: 100%;
        justify-content: flex-start;
        border-radius: var(--radius);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ecosystem-flow-active {
        animation: none;
    }

    .technology-chip {
        transition: none;
    }
}
