:root {
    --bg: #0f0822;
    --text: #1f1535;
    --muted: #6b6385;
    --white: #ffffff;
    --primary: #7c3aed;
    --primary-strong: #6d28d9;
    --primary-light: #a855f7;
    --accent: #d946ef;
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #d946ef 100%);
    --line: #e4dff0;
    --container: 1180px;
}

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

html,
body {
    margin: 0;
    padding: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: #f7f9fc;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #3c1f8d;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-text {
    color: var(--white);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.menu-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 1.1rem;
}

.menu-list a {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0.72rem 1.2rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.45);
}

.btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.section {
    padding: 5rem 0;
}

.section-muted {
    background: #f5f0fc;
}

.section-accent {
    background: linear-gradient(135deg, #f3e8ff 0%, #fdf4ff 100%);
}

.section-dark {
    color: var(--white);
    background: radial-gradient(circle at 25% 20%, #3b1d80 0%, #0f0822 55%);
}

.hero {
    position: relative;
    padding: 6.2rem 0;
    background-color: #0f0822;
    background-image:
        linear-gradient(105deg, rgba(15, 8, 34, 0.94) 0%, rgba(31, 18, 70, 0.82) 42%, rgba(76, 29, 149, 0.55) 100%),
        url("/assets/images/homepage_bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
    margin: 0.4rem 0 1rem;
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    line-height: 1.1;
}

.lead {
    color: rgba(255, 255, 255, 0.84);
    max-width: 60ch;
    line-height: 1.65;
}

.lead p {
    margin: 0;
}

.lead p + p {
    margin-top: 1.1rem;
}

.hero-actions {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-tags {
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 72ch;
}

.section-stats {
    padding: 3.5rem 0;
    background: linear-gradient(180deg, #f8f4ff 0%, #ffffff 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.1rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(76, 29, 149, 0.06);
}

.stat-card strong {
    display: block;
    font-size: 1.45rem;
    color: var(--primary-strong);
    margin-bottom: 0.35rem;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

#providers .container {
    max-width: 1100px;
}

.section-providers {
    background: linear-gradient(180deg, #f0e8ff 0%, #f7f3ff 50%, #f5f0fc 100%);
    border-block: 1px solid rgba(124, 58, 237, 0.12);
}

.provider-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.provider-list .provider-card {
    margin: 0;
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-left: 4px solid var(--primary);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(76, 29, 149, 0.07);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.provider-list .provider-card:nth-child(even) {
    background: linear-gradient(135deg, #faf7ff 0%, #f3ecff 100%);
    border-color: rgba(168, 85, 247, 0.28);
    border-left-color: var(--primary-light);
}

.provider-list .provider-card:hover {
    border-color: rgba(124, 58, 237, 0.45);
    box-shadow: 0 14px 32px rgba(124, 58, 237, 0.14);
    transform: translateY(-3px);
}

.provider-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--primary-strong);
    line-height: 1.25;
}

.provider-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.pillar-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.2rem;
}

.pillar-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}

.pillar-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.compare-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.compare-table th,
.compare-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.compare-table thead th {
    background: #f3ecff;
    color: var(--text);
}

.compare-table td.check {
    color: var(--primary-strong);
    font-weight: 700;
    text-align: center;
}

.tagline-center {
    text-align: center;
    font-weight: 700;
    color: var(--primary-strong);
    margin: 0;
}

.tagline-light {
    color: rgba(255, 255, 255, 0.85);
}

.solution-grid .card-meta {
    margin-top: 0.85rem;
    font-size: 0.9rem;
}

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

.step-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem;
}

.step-num {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.step-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

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

.testimonial-card {
    margin: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem;
}

.testimonial-card p {
    margin: 0 0 0.85rem;
    color: var(--text);
    line-height: 1.6;
}

.testimonial-card footer {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.section-cta {
    padding: 5rem 0;
}

.cta-block {
    text-align: center;
    max-width: 72ch;
    margin: 0 auto;
}

.cta-block p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
}

.cta-block .hero-actions {
    justify-content: center;
}


h2 {
    margin: 0 0 1.2rem;
    font-size: clamp(1.6rem, 2.2vw, 2.3rem);
}

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

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

.product-rows {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.product-row--image-right .product-copy {
    order: 1;
}

.product-row--image-right .product-media {
    order: 2;
}

.product-media {
    margin: 0;
}

.product-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(76, 29, 149, 0.12);
}

.product-copy {
    margin: 0;
}

.product-copy h3 {
    margin-top: 0;
}

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

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

.card,
.feature,
.contact-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem;
}

.card p,
.feature p,
.section-intro {
    color: var(--muted);
}

.promo-block {
    border: 1px solid #e9d5ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    padding: 1.35rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    font: inherit;
}

textarea {
    margin: 0.85rem 0;
    resize: vertical;
}

.form-notice {
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.85rem;
}

.form-notice.success {
    background: #e9fbf1;
    border: 1px solid #9ce1ba;
    color: #0f6b3c;
}

.form-notice.error {
    background: #ffefef;
    border: 1px solid #f4b2b2;
    color: #8e2020;
}

.site-footer {
    background: #0a0518;
    color: rgba(255, 255, 255, 0.88);
    padding-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding-bottom: 1rem;
}

.site-footer h3,
.site-footer h4 {
    color: var(--white);
    margin-top: 0;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 0.44rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0 1.6rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.section-capabilities {
    position: relative;
    padding: 6rem 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(168, 85, 247, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 95% 100%, rgba(217, 70, 239, 0.16) 0%, transparent 50%),
        linear-gradient(180deg, #faf7ff 0%, #f3ecff 100%);
    overflow: hidden;
}

.section-capabilities::before {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.25), transparent);
}

.eyebrow-dark {
    color: var(--primary-strong);
    font-weight: 700;
}

.section-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.6rem;
}

.section-intro-center {
    max-width: 60ch;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-capabilities .eyebrow,
.section-capabilities .section-title {
    text-align: center;
}

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

.capability-card {
    position: relative;
    padding: 1.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 28px rgba(76, 29, 149, 0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.capability-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.capability-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(124, 58, 237, 0.18);
    border-color: transparent;
}

.capability-card:hover::before {
    opacity: 1;
}

.capability-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
    margin-bottom: 1rem;
    transition: transform 0.25s ease;
}

.capability-icon svg {
    width: 24px;
    height: 24px;
}

.capability-card:hover .capability-icon {
    transform: rotate(-6deg) scale(1.05);
}

.capability-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    color: var(--text);
}

.capability-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

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

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

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

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

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

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

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

@media (max-width: 760px) {
    .hero {
        background-image:
            linear-gradient(180deg, rgba(15, 8, 34, 0.94) 0%, rgba(31, 18, 70, 0.92) 100%),
            url("/assets/images/homepage_bg.png");
        background-position: center top;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .form-grid,
    .footer-grid,
    .product-row,
    .capability-grid,
    .stats-grid,
    .pillar-grid,
    .steps-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .product-row--image-right .product-copy,
    .product-row--image-right .product-media,
    .product-row--image-left .product-copy,
    .product-row--image-left .product-media {
        order: unset;
    }

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

    .main-nav {
        display: none;
    }

    .provider-list {
        grid-template-columns: 1fr;
    }
}
