:root {
    --ink: #101828;
    --muted: #5c667a;
    --line: rgba(16, 24, 40, 0.12);
    --blue: #2457ff;
    --teal: #19b6a3;
    --coral: #ff6b4a;
    --gold: #f5b544;
    --white: #ffffff;
    --panel: rgba(255, 255, 255, 0.86);
    --shadow: 0 24px 70px rgba(16, 24, 40, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    inset: 18px 0 auto;
    z-index: 50;
    transition: transform 0.3s ease;
}

.nav-shell {
    width: min(1160px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    padding: 12px 14px 12px 22px;
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.14);
    backdrop-filter: blur(18px);
}

.brand img {
    width: 154px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-links a {
    padding: 10px 12px;
    color: #2f384c;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: var(--blue);
    background: rgba(36, 87, 255, 0.08);
}

.nav-cta,
.btn-primary-modern,
.btn-secondary-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta,
.btn-primary-modern {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--teal));
    box-shadow: 0 12px 26px rgba(36, 87, 255, 0.28);
}

.btn-secondary-modern {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.56);
}

.nav-cta:hover,
.btn-primary-modern:hover,
.btn-secondary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.2);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    background: #edf2ff;
}

.hero-section {
    position: relative;
    min-height: 760px;
    padding: 168px 0 92px;
    color: var(--white);
    overflow: hidden;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.06);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 14, 34, 0.94) 0%, rgba(5, 14, 34, 0.75) 48%, rgba(5, 14, 34, 0.28) 100%),
        radial-gradient(circle at 72% 20%, rgba(25, 182, 163, 0.38), transparent 34%),
        radial-gradient(circle at 34% 90%, rgba(255, 107, 74, 0.28), transparent 34%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.section-heading h2,
.workflow-copy h2,
.cta-shell h2 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1.03;
}

.hero-copy h1 {
    max-width: 780px;
    font-size: clamp(44px, 6vw, 78px);
}

.hero-copy p {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 20px;
}

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

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 680px;
    margin-top: 48px;
}

.hero-proof div,
.product-panel,
.solution-card,
.step-item,
.case-card,
.insight-card,
.cta-shell {
    border: 1px solid var(--line);
    border-radius: 8px;
}

.hero-proof div {
    padding: 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.hero-proof strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.hero-proof span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.product-panel {
    padding: 20px;
    color: var(--ink);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.panel-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.panel-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--coral);
}

.panel-top span:nth-child(2) {
    background: var(--gold);
}

.panel-top span:nth-child(3) {
    background: var(--teal);
}

.panel-top p {
    margin: 0 0 0 auto;
    color: var(--muted);
    font-weight: 800;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.metric-row div {
    padding: 18px;
    border-radius: 8px;
    background: #f5f8ff;
}

.metric-row span,
.pipeline-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.metric-row strong {
    display: block;
    margin-top: 8px;
    color: var(--blue);
    font-size: 34px;
    line-height: 1;
}

.pipeline-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    margin-top: 12px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.07);
}

.pipeline-card.active {
    color: var(--white);
    background: #101828;
}

.pipeline-card.active span {
    color: rgba(255, 255, 255, 0.68);
}

.pipeline-card i {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    border-radius: 8px;
    color: var(--white);
    background: var(--teal);
}

.panel-chart {
    height: 120px;
    display: flex;
    align-items: end;
    gap: 10px;
    margin-top: 20px;
    padding: 18px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f7fbff, #eef4ff);
}

.panel-chart span {
    flex: 1;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--coral), var(--blue));
    animation: liftBar 3s ease-in-out infinite alternate;
}

.panel-chart span:nth-child(even) {
    background: linear-gradient(180deg, var(--gold), var(--teal));
    animation-delay: 0.4s;
}

.logo-strip {
    padding: 24px 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.logo-track {
    display: grid;
    grid-template-columns: 1.3fr repeat(5, minmax(80px, 1fr));
    align-items: center;
    gap: 28px;
}

.logo-track span {
    color: var(--muted);
    font-weight: 800;
}

.logo-track img {
    max-height: 46px;
    width: auto;
    margin: 0 auto;
    filter: grayscale(1);
    opacity: 0.72;
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.logo-track img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-2px);
}

.section-block,
.workflow-section,
.cta-section {
    padding: 104px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-heading h2,
.workflow-copy h2,
.cta-shell h2 {
    font-size: clamp(34px, 4vw, 54px);
}

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

.solution-card {
    min-height: 300px;
    padding: 26px;
    background: var(--white);
    box-shadow: 0 18px 46px rgba(16, 24, 40, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.solution-card:hover,
.case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(36, 87, 255, 0.32);
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.14);
}

.solution-card i {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    border-radius: 8px;
    color: var(--white);
    background: var(--blue);
}

.solution-card:nth-child(2) i {
    background: var(--coral);
}

.solution-card:nth-child(3) i {
    background: var(--teal);
}

.solution-card:nth-child(4) i {
    background: var(--gold);
}

.solution-card h3,
.step-item h3,
.case-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
}

.solution-card p,
.workflow-copy p,
.step-item p,
.case-card p,
.cta-shell p,
.modern-footer p {
    margin: 0;
    color: var(--muted);
}

.workflow-section {
    background: #101828;
    color: var(--white);
}

.workflow-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.workflow-copy {
    position: sticky;
    top: 122px;
}

.workflow-copy p {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--teal);
    font-weight: 900;
}

.steps-list {
    display: grid;
    gap: 18px;
}

.step-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 24px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.step-item span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    color: #101828;
    background: var(--gold);
    font-weight: 900;
}

.step-item p {
    color: rgba(255, 255, 255, 0.68);
}

.case-section {
    background: #ffffff;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.case-card {
    overflow: hidden;
    background: #f8fafc;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.case-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 28px;
    background: linear-gradient(135deg, #eef4ff, #f7fffb);
}

.case-card div {
    padding: 26px;
}

.case-card span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.insight-band {
    padding: 44px 0;
    background: linear-gradient(135deg, #2457ff, #19b6a3);
}

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

.insight-card {
    padding: 24px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

.insight-card strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.insight-card span {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.78);
}

.cta-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 42px;
    align-items: center;
    padding: 44px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.cta-shell p {
    max-width: 760px;
    margin-top: 18px;
    font-size: 18px;
}

.modern-footer {
    padding: 72px 0 28px;
    color: rgba(255, 255, 255, 0.78);
    background: #07111f;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 42px;
}

.modern-footer img {
    width: 168px;
    margin-bottom: 20px;
}

.modern-footer h3 {
    margin: 0 0 18px;
    color: var(--white);
    font-size: 16px;
}

.modern-footer a {
    display: block;
    margin-top: 10px;
    transition: color 0.2s ease;
}

.modern-footer a:hover {
    color: var(--teal);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom-modern {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-modern p {
    margin: 0;
}

.footer-bottom-modern div {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-bottom-modern a {
    margin: 0;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: var(--white);
    background: var(--ink);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes liftBar {
    from {
        transform: scaleY(0.88);
    }
    to {
        transform: scaleY(1);
    }
}

@media (max-width: 1100px) {
    .solution-grid,
    .insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid,
    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .workflow-copy {
        position: static;
    }
}

@media (max-width: 820px) {
    .site-header {
        inset: 10px 0 auto;
    }

    .nav-shell {
        position: relative;
        width: min(100% - 20px, 1160px);
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .nav-links,
    .nav-cta {
        display: none;
        width: 100%;
    }

    .nav-links {
        order: 4;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding-top: 10px;
    }

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

    .nav-shell.is-open .nav-cta {
        order: 5;
    }

    .hero-section {
        min-height: auto;
        padding: 132px 0 66px;
    }

    .hero-copy p {
        font-size: 18px;
    }

    .hero-proof,
    .metric-row,
    .case-grid,
    .cta-shell,
    .footer-grid,
    .footer-bottom-modern {
        grid-template-columns: 1fr;
    }

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

    .logo-track span {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .brand img {
        width: 132px;
    }

    .hero-actions,
    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
    }

    .solution-grid,
    .insight-grid {
        grid-template-columns: 1fr;
    }

    .product-panel,
    .solution-card,
    .step-item,
    .cta-shell {
        padding: 22px;
    }

    .step-item {
        grid-template-columns: 1fr;
    }

    .case-card img {
        height: 220px;
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
