:root {
    --bg: #fbfbfd;
    --surface: #ffffff;
    --ink: #17151f;
    --muted: #696675;
    --line: #e8e5ee;
    --purple: #7c3aed;
    --purple-dark: #5b21b6;
    --purple-soft: #f3eefe;
    --shadow: 0 18px 55px rgba(38, 25, 65, .10);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

/* =========================
   HEADER
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 76px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(251, 251, 253, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

    .brand-mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

    .nav a {
        color: var(--muted);
        font-size: 15px;
        font-weight: 600;
        transition: color .2s ease, opacity .2s ease;
    }

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

    .nav .language-switch {
        color: var(--purple);
        font-weight: 800;
    }

/* Hamburger */

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

    .menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        border-radius: 2px;
        background: var(--ink);
        transition: transform .2s ease, opacity .2s ease;
    }

    .menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


/* =========================
   GENERAL
   ========================= */

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

.section {
    width: min(1180px, 90%);
    margin: 0 auto;
    padding: 105px 0;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 25px;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 1.03;
    letter-spacing: -.055em;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

h3 {
    font-size: 20px;
    line-height: 1.25;
}

p {
    color: var(--muted);
}


/* =========================
   BUTTONS
   ========================= */

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 13px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 750;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn-primary {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 12px 28px rgba(124, 58, 237, .22);
}

    .btn-primary:hover {
        background: var(--purple-dark);
    }

.btn-secondary {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
}

    .btn-secondary:hover {
        box-shadow: var(--shadow);
    }

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* =========================
   HERO
   ========================= */

.hero {
    width: min(1180px, 90%);
    margin: 0 auto;
    min-height: calc(100vh - 76px);
    padding: 72px 0 85px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
    align-items: center;
    gap: 70px;
}

.hero-copy {
    min-width: 0;
}

    .hero-copy > p {
        max-width: 640px;
        margin-bottom: 30px;
        font-size: 18px;
        line-height: 1.75;
    }

.hero h1 span {
    color: var(--purple);
}

.hero-visual {
    min-width: 0;
}


/* =========================
   DASHBOARD PREVIEW
   ========================= */

.dashboard {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dashboard-title {
    font-size: 14px;
    font-weight: 800;
}

.dashboard-dots {
    display: flex;
    gap: 5px;
}

    .dashboard-dots span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #d8d3e2;
    }

.dash-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dash-card {
    min-height: 115px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
}

    .dash-card strong {
        display: block;
        margin-bottom: 7px;
        font-size: 28px;
        line-height: 1;
    }

    .dash-card span {
        color: var(--muted);
        font-size: 12px;
    }

.chart-card {
    grid-column: 1 / -1;
    min-height: 190px;
}

.chart {
    height: 110px;
    display: flex;
    align-items: end;
    gap: 9px;
    margin-top: 20px;
}

    .chart span {
        flex: 1;
        min-width: 8px;
        border-radius: 7px 7px 2px 2px;
        background: var(--purple);
        opacity: .75;
    }


/* =========================
   FEATURE GRID
   ========================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 55px;
}

.feature-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(30, 20, 50, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
    }

.feature-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 16px;
    background: var(--purple-soft);
    color: var(--purple);
    font-size: 26px;
}

    .feature-icon img {
        width: 30px;
        height: 30px;
    }

.feature-card h3 {
    margin-bottom: 9px;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.65;
}


/* =========================
   AI SECTION
   ========================= */

.ai-section {
    width: min(1180px, 90%);
    margin: 0 auto;
    padding: 90px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .8fr);
    gap: 70px;
    align-items: center;
}

    .ai-section p {
        max-width: 650px;
        font-size: 17px;
    }

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

.ai-card-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 17px;
    background: var(--purple);
    color: #fff;
    font-size: 27px;
}


/* =========================
   SERVICES
   ========================= */

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 50px;
}

.solution-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

    .solution-card h3 {
        margin-bottom: 12px;
    }

    .solution-card p {
        margin-bottom: 0;
    }


/* =========================
   WEBSITE / CRM BANNER
   ========================= */

.web-crm-banner {
    margin-top: 70px;
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    background: var(--ink);
    color: #fff;
    border-radius: 28px;
}

    .web-crm-banner p {
        max-width: 620px;
        margin-bottom: 0;
        color: rgba(255,255,255,.72);
    }


/* =========================
   PRICING
   ========================= */

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 50px;
}

.price-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

    .price-card.featured {
        border-color: rgba(124,58,237,.45);
        box-shadow: 0 18px 55px rgba(124,58,237,.13);
    }

.price {
    margin: 20px 0;
    font-size: 38px;
    font-weight: 850;
    letter-spacing: -.04em;
}

    .price small {
        color: var(--muted);
        font-size: 14px;
        font-weight: 500;
    }

.price-card ul {
    margin: 0 0 28px;
    padding-left: 19px;
    color: var(--muted);
}

.price-card li {
    margin-bottom: 8px;
}


/* =========================
   CUSTOM BOX
   ========================= */

.custom-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
    gap: 55px;
    align-items: center;
    padding: 55px;
    background: var(--purple-soft);
    border: 1px solid #e6dcfb;
    border-radius: 30px;
}

    .custom-box p {
        max-width: 680px;
    }


/* =========================
   CONTACT
   ========================= */

.contact {
    display: grid;
    grid-template-columns: .75fr 1fr;
    gap: 65px;
    align-items: start;
}

.contact-form {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        margin-bottom: 7px;
        font-size: 13px;
        font-weight: 750;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 13px 15px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        color: var(--ink);
        outline: none;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            border-color: var(--purple);
            box-shadow: 0 0 0 4px rgba(124,58,237,.10);
        }

    .form-group textarea {
        min-height: 145px;
        resize: vertical;
    }

.validation-message {
    color: #b42318;
    font-size: 12px;
}

.form-success {
    padding: 13px 16px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #ecfdf3;
    color: #027a48;
    font-size: 14px;
    font-weight: 650;
}

.form-error {
    padding: 13px 16px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #fef3f2;
    color: #b42318;
    font-size: 14px;
    font-weight: 650;
}


/* =========================
   LEGAL
   ========================= */

.legal-page {
    width: min(900px, 90%);
    margin: 0 auto;
    padding: 85px 0 110px;
}

.legal-content h1 {
    margin-bottom: 20px;
}

.legal-content h2 {
    margin-top: 48px;
    margin-bottom: 12px;
    font-size: 25px;
}

.legal-content p {
    margin-bottom: 18px;
}

.legal-lead {
    max-width: 760px;
    font-size: 18px;
}

.inline-link {
    color: var(--purple);
    font-weight: 700;
}

.notice-box {
    margin: 35px 0;
    padding: 22px 25px;
    background: var(--purple-soft);
    border: 1px solid #e6dcfb;
    border-radius: 18px;
}

    .notice-box strong {
        display: block;
        margin-bottom: 6px;
    }

    .notice-box p {
        margin-bottom: 0;
    }


/* =========================
   FOOTER
   ========================= */

.footer {
    width: 100%;
    margin: 0;
    padding: 48px 5%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
    border-top: 1px solid var(--line);
}

    .footer .brand {
        font-size: 20px;
    }

    .footer p {
        margin: 0;
        align-self: center;
        font-size: 15px;
        text-align: left;
    }

.footer-links {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-self: end;
}

.footer .footer-copyright {
    grid-column: 1 / -1;
    margin: -8px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

    .footer-links a {
        color: var(--muted);
        font-size: 15px;
    }

        .footer-links a:hover {
            color: var(--ink);
        }


/* =========================
   RESPONSIVE — TABLET
   ========================= */

@media (max-width: 1000px) {

    .hero {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-top: 55px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-visual {
        max-width: 760px;
    }

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

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

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

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


/* =========================
   RESPONSIVE — MOBILE NAV
   ========================= */

@media (max-width: 900px) {

    .site-header {
        height: 76px;
        padding: 0 24px;
    }

    .menu-btn {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        z-index: 1001;
        width: 100%;
        margin: 0;
        padding: 16px 24px 22px;
        background: rgba(251,251,253,.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 35px rgba(17,19,26,.08);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        visibility: hidden;
        pointer-events: none;
    }

        .nav.open {
            display: flex;
            visibility: visible;
            pointer-events: auto;
        }

        .nav a {
            display: block;
            padding: 14px 0;
            border-bottom: 1px solid var(--line);
            font-size: 15px;
        }

            .nav a:last-child {
                border-bottom: 0;
            }

    .hero {
        min-height: auto;
        padding-top: 55px;
        padding-bottom: 70px;
    }

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

    .web-crm-banner {
        display: block;
    }

        .web-crm-banner .btn {
            margin-top: 22px;
        }
}


/* =========================
   RESPONSIVE — SMALL MOBILE
   ========================= */

@media (max-width: 600px) {

    .site-header {
        height: 68px;
        padding: 0 18px;
    }

    .brand {
        font-size: 20px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .nav {
        top: 68px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .section {
        width: min(100% - 36px, 1180px);
        padding: 72px 0;
    }

    .hero {
        width: min(100% - 36px, 1180px);
        padding-top: 42px;
        padding-bottom: 65px;
        gap: 35px;
    }

        h1,
        .hero h1 {
            font-size: clamp(43px, 13vw, 58px);
        }

    h2 {
        font-size: 36px;
    }

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

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

        .button-row .btn {
            width: 100%;
        }

    .dashboard {
        padding: 13px;
        border-radius: 20px;
    }

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

    .chart-card {
        grid-column: auto;
    }

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

    .feature-card {
        padding: 25px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 27px;
    }

    .ai-section {
        width: min(100% - 36px, 1180px);
        padding: 70px 0;
    }

    .ai-card {
        padding: 27px;
    }

    .web-crm-banner {
        padding: 28px 24px;
        border-radius: 23px;
    }

    .custom-box {
        padding: 32px 24px;
        border-radius: 23px;
    }

    .contact-form {
        padding: 24px;
    }

    .legal-page {
        width: min(100% - 36px, 900px);
        padding: 65px 0 85px;
    }

    .legal-content h2 {
        font-size: 23px;
        margin-top: 40px;
    }

    .footer {
        width: 100%;
        grid-template-columns: 1fr;
        padding: 38px 18px;
    }

    .footer-links {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
        justify-self: end;
    }

    .footer-copyright {
        grid-column: auto;
        margin: 16px 0 0;
        color: var(--muted);
        font-size: 13px;
        justify-self: stretch;
        text-align: center;
    }
}


/* =========================
   ACCESSIBILITY
   ========================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

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

:focus-visible {
    outline: 3px solid rgba(124,58,237,.35);
    outline-offset: 3px;
}
