:root {
    --indigo: #283593;
    --indigo-light: #eef2ff;
    --indigo-soft: #f6f8ff;
    --accent: #ff2d95;
    --text: #172033;
    --muted: #667085;
    --border: #e6eaf2;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(40, 53, 147, 0.12);
    --navbar-bg: radial-gradient(circle at 0% 0%, rgba(40, 53, 147, 0.22), transparent 34%), radial-gradient(circle at 100% 0%, rgba(255, 45, 149, 0.15), transparent 32%), linear-gradient(135deg, rgba(239, 243, 255, 0.98) 0%, rgba(225, 232, 255, 0.96) 50%, rgba(214, 224, 255, 0.94) 100%);
    --navbar-bg-shrink: radial-gradient(circle at 0% 0%, rgba(40, 53, 147, 0.18), transparent 30%), radial-gradient(circle at 100% 0%, rgba(255, 45, 149, 0.12), transparent 28%), linear-gradient(135deg, rgba(244, 247, 255, 0.99) 0%, rgba(232, 238, 255, 0.98) 55%, rgba(221, 230, 255, 0.97) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
}

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

button {
    font-family: inherit;
}

/* TOP NAV */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 64px;
    background: var(--navbar-bg);
    border-bottom: 1px solid rgba(230, 234, 242, 0.9);
    backdrop-filter: blur(18px);
    transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

    .navbar.shrink {
        padding: 7px 64px;
        background: var(--navbar-bg-shrink);
        box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
    }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1220px;
    margin: 0 auto;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    --logo-scale: 1;
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(40, 53, 147, 0.14));
    transform-origin: center;
    animation: logoFloat 4.5s ease-in-out infinite;
    transition: width 0.3s ease, height 0.3s ease, filter 0.3s ease;
    will-change: transform;
}

.brand:hover .brand-logo {
    --logo-scale: 1.18;
    filter: drop-shadow(0 16px 26px rgba(40, 53, 147, 0.24));
}

.navbar.shrink .brand-logo {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 6px 12px rgba(40, 53, 147, 0.12));
}

.navbar.shrink .brand:hover .brand-logo {
    --logo-scale: 1.22;
    filter: drop-shadow(0 12px 20px rgba(40, 53, 147, 0.2));
}

.brand-mark {
    width: 1px;
    height: 42px;
    background: linear-gradient(180deg, transparent, rgba(40, 53, 147, 0.35), transparent);
    transition: height 0.3s ease;
}

.navbar.shrink .brand-mark {
    height: 38px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    text-transform: uppercase;
}

.brand-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
}

.brand-title-main {
    font-size: 18px;
    letter-spacing: 0.06em;
    color: var(--indigo);
    transition: font-size 0.3s ease, letter-spacing 0.3s ease;
}

.brand-title-sub {
    font-size: 10px;
    letter-spacing: 0.22em;
    color: #5c6bc0;
    transition: font-size 0.3s ease, letter-spacing 0.3s ease;
}

.navbar.shrink .brand-title-main {
    font-size: 20px;
    letter-spacing: 0.07em;
}

.navbar.shrink .brand-title-sub {
    font-size: 11px;
    letter-spacing: 0.26em;
}

.brand-tagline {
    max-width: 220px;
    margin-top: 9px;
    padding-top: 7px;
    border-top: 1px solid rgba(40, 53, 147, 0.18);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--muted);
    white-space: nowrap;
    text-transform: none;
    transition: opacity 0.3s ease, transform 0.3s ease, font-size 0.3s ease, margin-top 0.3s ease;
}

.navbar.shrink .brand-tagline {
    margin-top: 6px;
    font-size: 9px;
    opacity: 0.82;
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-left: auto;
    overflow-x: visible;
    padding-bottom: 0;
}

    .nav-links a {
        position: relative;
        font-size: 13px;
        font-weight: 600;
        color: #344054;
        transition: color 0.25s ease;
    }

        .nav-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--indigo), var(--accent));
            transition: width 0.25s ease;
        }

        .nav-links a:hover {
            color: var(--indigo);
        }

            .nav-links a:hover::after {
                width: 100%;
            }

/* HERO / LETTERHEAD-INSPIRED LAYOUT */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 180px 64px 96px;
    overflow: hidden;
    background: radial-gradient(circle at 85% 18%, rgba(40, 53, 147, 0.12), transparent 28%), radial-gradient(circle at 12% 76%, rgba(255, 45, 149, 0.09), transparent 30%), linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

    .hero::before {
        content: "";
        position: absolute;
        top: 116px;
        right: -140px;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        border: 80px solid rgba(40, 53, 147, 0.045);
    }

    .hero::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, var(--indigo), #5c6bc0, var(--accent));
    }

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: 64px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin-bottom: 22px;
    border: 1px solid #dfe5ff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--indigo);
    font-size: 14px;
    font-weight: 700;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(255, 45, 149, 0.12);
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.055em;
    color: #101828;
}

    .hero h1 span {
        background: linear-gradient(90deg, var(--indigo), var(--accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.hero-text {
    max-width: 650px;
    margin-top: 24px;
    font-size: 19px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--indigo), #5c6bc0);
    box-shadow: 0 14px 28px rgba(40, 53, 147, 0.22);
}

.btn-secondary {
    color: var(--indigo);
    background: var(--white);
    border-color: #dfe5ff;
}

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

.hero-card {
    position: relative;
    padding: 34px;
    border: 1px solid rgba(230, 234, 242, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

    .hero-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(135deg, rgba(40, 53, 147, 0.22), rgba(255, 45, 149, 0.14));
        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        mask-composite: exclude;
        pointer-events: none;
    }

    .hero-card h2 {
        font-size: 24px;
        color: var(--indigo);
        margin-bottom: 14px;
    }

    .hero-card p {
        color: var(--muted);
    }

.metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.metric {
    padding: 18px;
    border-radius: 18px;
    background: var(--indigo-soft);
    border: 1px solid #e7ebff;
}

    .metric strong {
        display: block;
        color: var(--indigo);
        font-size: 26px;
        line-height: 1;
    }

    .metric span {
        display: block;
        margin-top: 8px;
        color: var(--muted);
        font-size: 13px;
        font-weight: 600;
    }

/* SECTIONS */
section {
    scroll-margin-top: 120px;
}

.section {
    padding: 96px 64px;
}

.section-inner {
    max-width: 1220px;
    margin: 0 auto;
}

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

.section-kicker {
    margin-bottom: 10px;
    color: var(--indigo);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section h2 {
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: #101828;
}

.section-heading p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 18px;
}

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

.card {
    padding: 28px;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .card:hover {
        transform: translateY(-6px);
        border-color: #cfd7ff;
        box-shadow: var(--shadow);
    }

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--indigo), #667eea);
    font-weight: 800;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 19px;
    color: #101828;
}

.card p {
    color: var(--muted);
    font-size: 15px;
}

.solutions {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.solution-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 42px;
    align-items: center;
    padding: 42px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow);
}

.solution-list {
    display: grid;
    gap: 16px;
}

.solution-item {
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--indigo-soft);
    border: 1px solid #e7ebff;
}

    .solution-item strong {
        display: block;
        color: var(--indigo);
        margin-bottom: 4px;
    }

    .solution-item span {
        color: var(--muted);
        font-size: 15px;
    }

.about-content {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: start;
}

.about-box {
    padding: 34px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--indigo), #5c6bc0);
    color: var(--white);
    box-shadow: var(--shadow);
}

    .about-box h3 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .about-box p {
        color: rgba(255, 255, 255, 0.82);
    }

.about-text p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 17px;
}

.contact {
    background: var(--indigo-soft);
}

.contact-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 42px;
    border-radius: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-line {
    margin-top: 18px;
    color: var(--muted);
}

    .contact-line strong {
        display: block;
        color: var(--text);
        margin-bottom: 4px;
    }

.contact-form {
    display: grid;
    gap: 14px;
}

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 14px 16px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: #fbfcff;
        font: inherit;
        color: var(--text);
        outline: none;
    }

    .contact-form textarea {
        min-height: 120px;
        resize: vertical;
    }

        .contact-form input:focus,
        .contact-form textarea:focus {
            border-color: #aebcff;
            box-shadow: 0 0 0 4px rgba(40, 53, 147, 0.08);
        }

footer {
    padding: 34px 64px;
    border-top: 1px solid var(--border);
    background: var(--white);
    color: var(--muted);
}

.footer-inner {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* THEME TOGGLE */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.theme-toggle-icon {
    width: 16px;
    text-align: center;
    line-height: 1;
}

.theme-toggle-track {
    position: relative;
    width: 34px;
    height: 18px;
    border-radius: 999px;
    background: #dfe5ff;
    transition: background 0.25s ease;
}

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.2);
    transition: transform 0.25s ease, background 0.25s ease;
}

.theme-toggle-text {
    min-width: 34px;
    display: none;
}

body[data-theme="dark"] {
    --indigo: #8b5cf6;
    --indigo-light: #1f1635;
    --indigo-soft: #121826;
    --accent: #a855f7;
    --text: #f8fafc;
    --muted: #aeb6c7;
    --border: rgba(255, 255, 255, 0.12);
    --white: #0b1020;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    --navbar-bg: radial-gradient(circle at 0% 0%, rgba(129, 140, 248, 0.42), transparent 34%), radial-gradient(circle at 100% 0%, rgba(192, 132, 252, 0.34), transparent 32%), linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 82, 0.94) 45%, rgba(49, 36, 92, 0.94) 100%);
    --navbar-bg-shrink: radial-gradient(circle at 0% 0%, rgba(129, 140, 248, 0.34), transparent 30%), radial-gradient(circle at 100% 0%, rgba(192, 132, 252, 0.28), transparent 28%), linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(26, 36, 72, 0.97) 52%, rgba(42, 30, 78, 0.96) 100%);
    background: #05070f;
    color: var(--text);
}

body,
.navbar,
.hero,
.card,
.hero-card,
.solution-panel,
.solution-item,
.metric,
.contact-panel,
footer,
.theme-toggle,
.contact-form input,
.contact-form textarea {
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

    body[data-theme="dark"] .navbar {
        border-bottom-color: rgba(196, 181, 253, 0.18);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
    }

        body[data-theme="dark"] .navbar.shrink {
            box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
        }

    body[data-theme="dark"] .brand-title-main {
        color: #ffffff;
    }

    body[data-theme="dark"] .brand-title-sub {
        color: #c4b5fd;
    }

    body[data-theme="dark"] .brand-tagline {
        color: #aeb6c7;
        border-top-color: rgba(196, 181, 253, 0.28);
    }

    body[data-theme="dark"] .brand-mark {
        background: linear-gradient(180deg, transparent, rgba(196, 181, 253, 0.45), transparent);
    }

    body[data-theme="dark"] .nav-links a {
        color: #d7dce8;
    }

        body[data-theme="dark"] .nav-links a:hover {
            color: #ffffff;
        }

        body[data-theme="dark"] .nav-links a::after {
            background: linear-gradient(90deg, #8b5cf6, #c084fc);
        }

    body[data-theme="dark"] .theme-toggle {
        background: rgba(17, 24, 39, 0.86);
        border-color: rgba(196, 181, 253, 0.22);
        color: #f8fafc;
    }

    body[data-theme="dark"] .hero {
        background: radial-gradient(circle at 82% 18%, rgba(139, 92, 246, 0.25), transparent 30%), radial-gradient(circle at 10% 78%, rgba(168, 85, 247, 0.16), transparent 32%), linear-gradient(180deg, #05070f 0%, #0b1020 55%, #111827 100%);
    }

        body[data-theme="dark"] .hero::before {
            border-color: rgba(139, 92, 246, 0.08);
        }

        body[data-theme="dark"] .hero::after {
            background: linear-gradient(90deg, #8b5cf6, #c084fc, #ffffff);
        }

    body[data-theme="dark"] .eyebrow {
        color: #d8b4fe;
        background: rgba(17, 24, 39, 0.78);
        border-color: rgba(196, 181, 253, 0.24);
    }

    body[data-theme="dark"] .hero h1,
    body[data-theme="dark"] .section h2,
    body[data-theme="dark"] .card h3 {
        color: #ffffff;
    }

        body[data-theme="dark"] .hero h1 span {
            background: linear-gradient(90deg, #c4b5fd, #ffffff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

    body[data-theme="dark"] .hero-text,
    body[data-theme="dark"] .section-heading p,
    body[data-theme="dark"] .card p,
    body[data-theme="dark"] .hero-card p,
    body[data-theme="dark"] .solution-item span,
    body[data-theme="dark"] .about-text p,
    body[data-theme="dark"] .contact-line {
        color: var(--muted);
    }

    body[data-theme="dark"] .hero-card,
    body[data-theme="dark"] .card,
    body[data-theme="dark"] .solution-panel,
    body[data-theme="dark"] .contact-panel {
        background: rgba(17, 24, 39, 0.82);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: var(--shadow);
    }

        body[data-theme="dark"] .hero-card::before {
            background: linear-gradient(135deg, rgba(196, 181, 253, 0.28), rgba(168, 85, 247, 0.12));
        }

        body[data-theme="dark"] .hero-card h2,
        body[data-theme="dark"] .section-kicker,
        body[data-theme="dark"] .solution-item strong,
        body[data-theme="dark"] .metric strong {
            color: #c4b5fd;
        }

    body[data-theme="dark"] .metric,
    body[data-theme="dark"] .solution-item {
        background: rgba(15, 23, 42, 0.86);
        border-color: rgba(196, 181, 253, 0.14);
    }

    body[data-theme="dark"] .solutions,
    body[data-theme="dark"] .contact {
        background: linear-gradient(180deg, #05070f 0%, #0b1020 100%);
    }

    body[data-theme="dark"] .about-box {
        background: linear-gradient(135deg, #6d28d9, #312e81);
    }

    body[data-theme="dark"] .btn-primary {
        color: #ffffff;
        background: linear-gradient(90deg, #7c3aed, #a855f7);
        box-shadow: 0 16px 34px rgba(124, 58, 237, 0.32);
    }

    body[data-theme="dark"] .btn-secondary {
        color: #f8fafc;
        background: rgba(17, 24, 39, 0.86);
        border-color: rgba(196, 181, 253, 0.22);
    }

    body[data-theme="dark"] .contact-form input,
    body[data-theme="dark"] .contact-form textarea {
        color: #f8fafc;
        background: rgba(15, 23, 42, 0.95);
        border-color: rgba(255, 255, 255, 0.12);
    }

        body[data-theme="dark"] .contact-form input::placeholder,
        body[data-theme="dark"] .contact-form textarea::placeholder {
            color: #8f98aa;
        }

        body[data-theme="dark"] .contact-form input:focus,
        body[data-theme="dark"] .contact-form textarea:focus {
            border-color: #a855f7;
            box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18);
        }

    body[data-theme="dark"] footer {
        background: #05070f;
        border-top-color: rgba(255, 255, 255, 0.1);
        color: var(--muted);
    }

@media (max-width: 980px) {
    .navbar,
    .navbar.shrink {
        padding-left: 24px;
        padding-right: 24px;
    }

    .nav-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px 12px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .hero {
        padding: 220px 24px 72px;
    }

    .hero-inner,
    .solution-panel,
    .about-content,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 76px 24px;
    }

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

    footer {
        padding: 28px 24px;
    }
}

@media (max-width: 640px) {
    .brand-logo {
        width: 58px;
        height: 58px;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-tagline {
        max-width: 220px;
        white-space: normal;
        font-size: 9px;
        letter-spacing: 0.06em;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hero {
        padding-top: 230px;
    }

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

    .btn {
        width: 100%;
    }

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

    .solution-panel,
    .contact-panel {
        padding: 28px;
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(var(--logo-scale));
    }

    50% {
        transform: translateY(-5px) scale(var(--logo-scale));
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo {
        animation: none;
        transform: scale(var(--logo-scale));
    }
}
