:root {
    --bg: #f4f8ff;
    --bg-soft: #eaf1ff;
    --surface: rgba(255, 255, 255, 0.75);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --line: rgba(72, 99, 142, 0.18);
    --text: #14213d;
    --muted: #4f6388;
    --brand-a: #3b82f6;
    --brand-b: #6968ff;
    --brand-c: #2b73d7;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Manrope", "Segoe UI", sans-serif;
    background: radial-gradient(980px 580px at 5% -8%, rgba(93, 143, 243, 0.18), transparent 62%),
                radial-gradient(920px 560px at 95% -5%, rgba(120, 115, 255, 0.14), transparent 64%),
                linear-gradient(180deg, #f7faff 0%, #edf3ff 48%, #f8fbff 100%);
}

h1,
h2,
h3,
.footer-logo {
    font-family: "Space Grotesk", "Manrope", sans-serif;
}

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

.container {
    width: min(var(--max), calc(100% - 2.4rem));
    margin: 0 auto;
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(74px);
    z-index: -1;
}

.bg-orb-a {
    width: 420px;
    height: 420px;
    top: -190px;
    left: -70px;
    background: rgba(102, 156, 255, 0.28);
}

.bg-orb-b {
    width: 380px;
    height: 380px;
    bottom: -180px;
    right: -70px;
    background: rgba(128, 122, 255, 0.2);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(56, 80, 120, 0.4);
    background: rgba(217, 230, 247, 0.92);
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.topbar.scrolled {
    box-shadow: 0 10px 30px rgba(30, 57, 104, 0.08);
    border-bottom-color: rgba(95, 120, 159, 0.3);
}

.topbar-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand img {
    width: min(220px, 38vw);
    display: block;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    color: #385078;
    font-size: 0.92rem;
    flex: 1;
    margin-left: 1.2rem;
}

.menu-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu a:hover {
    color: #20345a;
}

.btn {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.72rem 1.12rem;
    font-weight: 700;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(79, 117, 239, 0.34);
}

.btn-secondary {
    border-color: var(--line);
    background: var(--surface-strong);
    color: #21385f;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(44, 71, 119, 0.12);
}

.btn-soft {
    border-color: rgba(79, 108, 152, 0.34);
    color: #274067;
    background: rgba(255, 255, 255, 0.52);
}

.btn-soft:hover,
.btn-soft:focus-visible {
    background: rgba(255, 255, 255, 0.92);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: #34517e;
    display: block;
}

.hero {
    padding: clamp(2.2rem, 4.2vw, 3.6rem) 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.03fr 0.97fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(70, 107, 160, 0.22);
    border-radius: 999px;
    padding: 0.36rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #365987;
    background: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.85rem;
}

.eyebrow {
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    color: var(--brand-c);
    font-weight: 700;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5.2vw, 4.1rem);
    line-height: 1.03;
    max-width: 12ch;
}

h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3.4vw, 2.8rem);
    line-height: 1.1;
}

h3 {
    margin: 0;
}

.lead,
.section p,
.footer-inner p,
li {
    color: var(--muted);
    line-height: 1.68;
}

.lead {
    margin: 1.1rem 0 0;
    max-width: 56ch;
    font-size: 1.08rem;
}

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

.hero-copy .hero-actions {
    margin-bottom: 1.15rem;
}

.hero-proof {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.36rem;
    font-size: 0.92rem;
}

.hero-proof li {
    color: #3f5780;
    padding-left: 1rem;
    position: relative;
}

.hero-proof li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    position: absolute;
    left: 0;
    top: 0.62rem;
}

.hero-visual {
    min-height: 430px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 1rem;
    align-content: center;
    border-radius: 28px;
    border: 1px solid rgba(90, 124, 173, 0.2);
    background: linear-gradient(155deg, rgba(181, 214, 255, 0.55), rgba(236, 243, 255, 0.92));
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(41, 67, 109, 0.18);
    perspective: 980px;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 300px at 50% 0%, rgba(125, 173, 255, 0.28), transparent 65%);
    pointer-events: none;
}

.float-card {
    position: relative;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(124, 154, 201, 0.35);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    padding: 0.95rem;
    box-shadow: 0 20px 34px rgba(41, 73, 122, 0.16);
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
    animation: float 8s ease-in-out infinite;
}

.float-card .label {
    margin: 0;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3b66a0;
    font-weight: 700;
}

.float-card h3 {
    margin: 0.45rem 0;
    font-size: 1.05rem;
}

.float-card strong {
    font-size: 1.28rem;
    color: #1a335a;
}

.card-crm { animation-delay: 0ms; }
.card-tasks { animation-delay: 220ms; }
.card-pipeline { animation-delay: 420ms; }
.card-automation { animation-delay: 620ms; }

.section {
    padding: clamp(3.1rem, 5vw, 4.4rem) 0;
}

.section.has-divider {
    position: relative;
}

.section.has-divider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--max), calc(100% - 2.4rem));
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.65) 50%, rgba(59, 130, 246, 0) 100%);
}

.section-head {
    margin-bottom: 1.4rem;
    max-width: 72ch;
}

.pain-grid,
.feature-grid,
.benefits-grid,
.steps-grid {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.3rem;
}

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

.pain-grid article,
.feature-card,
.path-card,
.steps-grid article,
.benefits-grid article,
.solution-wrap {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    backdrop-filter: blur(7px);
    box-shadow: 0 18px 38px rgba(40, 67, 108, 0.11);
}

.pain-grid article,
.feature-card,
.path-card,
.steps-grid article,
.benefits-grid article {
    padding: 1.25rem;
}

.solution-wrap {
    padding: 1.85rem;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 1.2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(245, 250, 255, 0.8));
}

.solution-list {
    margin: 0;
    padding-left: 1.2rem;
    align-self: center;
    display: grid;
    gap: 0.5rem;
}

.solution-list li {
    color: #304b75;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.05rem;
}

.feature-card {
    min-height: 168px;
    transform: translateY(0) rotateX(0) rotateY(0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(243, 249, 255, 0.82));
}

.feature-card:hover {
    transform: translateY(-7px) rotateX(1deg) rotateY(-1.2deg);
    box-shadow: 0 26px 42px rgba(50, 81, 129, 0.17);
    border-color: rgba(114, 157, 219, 0.64);
}

.card-kicker {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: #456ea8;
    font-weight: 700;
}

.two-paths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.path-card ul {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.path-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(241, 248, 255, 0.8));
}

.steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.steps-grid article span {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    margin-bottom: 0.65rem;
    box-shadow: 0 8px 18px rgba(76, 115, 228, 0.3);
}

.benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.cta {
    text-align: center;
}

.cta-copy {
    margin: 1rem auto 0;
    max-width: 62ch;
    color: #496089;
}

.cta form {
    max-width: 780px;
    margin: 0.8rem auto 0;
}

.cta .demo-form-card {
    margin: 0 auto;
    padding: 1.15rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.86));
    box-shadow: 0 18px 38px rgba(38, 66, 106, 0.14);
}

.cta .demo-form-error {
    margin: 0.9rem auto 0;
    max-width: 760px;
    border: 1px solid rgba(185, 54, 54, 0.35);
    border-radius: 14px;
    background: rgba(255, 239, 239, 0.95);
    color: #7c1f1f;
    padding: 0.72rem 0.9rem;
    font-weight: 700;
}

.cta .demo-form-grid {
    display: grid;
    gap: 0.8rem;
}

.cta .demo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.cta .demo-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(72, 99, 142, 0.24);
    background: rgba(255, 255, 255, 0.96);
    padding: 0.8rem 0.95rem;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta .demo-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.78);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.cta .demo-input::placeholder {
    color: #687ea3;
}

.cta textarea.demo-input {
    resize: vertical;
    min-height: 96px;
}

.centered {
    justify-content: center;
}

.site-footer {
    border-top: 1px solid rgba(107, 134, 175, 0.2);
    padding: 1.8rem 0 2.4rem;
    background: rgba(255, 255, 255, 0.52);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo {
    margin: 0;
    font-size: 1.16rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: #3f5f91;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-hidden {
    opacity: 0;
    transform: translateY(18px);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-11px); }
}

@media (max-width: 620px) {
    .section.has-divider::before {
        width: min(var(--max), calc(100% - 1.4rem));
    }
}

@media (max-width: 1040px) {
    .hero-grid,
    .solution-wrap,
    .two-paths,
    .pain-grid,
    .feature-grid,
    .steps-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 350px;
    }

    .menu {
        margin-left: 0;
    }
}

@media (max-width: 840px) {
    .menu-toggle {
        display: inline-flex;
    }

    .menu {
        position: absolute;
        top: 76px;
        left: 1rem;
        right: 1rem;
        background: rgba(248, 251, 255, 0.97);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 0.9rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
        box-shadow: 0 16px 38px rgba(44, 68, 107, 0.14);
    }

    .menu-links,
    .menu-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .menu.is-open {
        display: flex;
    }

    .menu .btn {
        text-align: center;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(var(--max), calc(100% - 1.4rem));
    }

    .float-card {
        width: 100%;
        padding: 0.72rem;
        position: relative;
        inset: auto;
        animation: none;
    }

    .float-card strong {
        font-size: 1.14rem;
    }

    .hero-visual {
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        padding: 0.7rem;
        align-content: center;
    }

    .card-crm,
    .card-tasks,
    .card-pipeline,
    .card-automation {
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
    }

    .cta .demo-form-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
