@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --m-primary: #6366f1;
    --m-primary-dark: #4f46e5;
    --m-violet: #7c3aed;
    --m-text: #0f172a;
    --m-muted: #64748b;
    --m-bg: #f8fafc;
    --m-border: #e2e8f0;
    --m-radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--m-text);
    background: #fff;
    line-height: 1.6;
}

.m-container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

.m-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgb(255 255 255 / 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--m-border);
}
.m-nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem;
    min-height: 56px;
    padding: 0.5rem 0;
}
.m-nav-brand {
    display: flex; align-items: center; flex-shrink: 0;
    text-decoration: none;
    min-width: 0;
}
.m-nav-brand img { display: block; height: 36px; width: auto; max-width: 140px; }
.m-nav-toolbar {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.m-nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
}
.m-nav-page {
    color: var(--m-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}
.m-nav-page:hover { color: var(--m-primary); }
.m-nav-menu .m-btn,
.m-nav-toolbar .m-btn {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}
.m-nav-cta-menu { display: inline-flex; }
.m-nav-cta-bar { display: none; }
.m-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--m-border);
    border-radius: 10px;
    background: #fff;
    color: var(--m-text);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.m-nav-toggle:hover { border-color: var(--m-primary); color: var(--m-primary); }
.m-nav-icon-close { display: none; }
.m-nav-overlay {
    position: fixed;
    inset: 0;
    top: 56px;
    background: rgb(15 23 42 / 0.4);
    z-index: 45;
}
body.m-nav-open { overflow: hidden; }

@media (min-width: 769px) {
    .m-nav-inner { min-height: 64px; padding: 0.625rem 0; }
    .m-nav-brand img { height: 40px; max-width: 160px; }
    .m-hero { padding: 5rem 0 4rem; }
}

@media (max-width: 768px) {
    .m-nav-toolbar { display: flex; }
    .m-nav-cta-bar { display: inline-flex; }
    .m-nav-cta-menu { display: none; }
    .m-nav-menu {
        position: fixed;
        top: 56px;
        right: 0;
        z-index: 50;
        width: min(280px, 88vw);
        height: calc(100dvh - 56px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0.75rem;
        background: #fff;
        border-left: 1px solid var(--m-border);
        box-shadow: -8px 0 32px rgb(15 23 42 / 0.12);
        transform: translateX(100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }
    .m-nav-menu.is-open { transform: translateX(0); }
    .m-nav-page {
        padding: 0.85rem 1rem;
        border-radius: 10px;
        font-size: 1rem;
    }
    .m-nav-page:hover { background: #f8fafc; }
    .m-nav-toggle { display: inline-flex; }
    body.m-nav-open .m-nav-icon-menu { display: none; }
    body.m-nav-open .m-nav-icon-close { display: block; }
    .m-btn-sm { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
    .m-nav-cta-text { max-width: 7.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 380px) {
    .m-nav-brand img { height: 32px; max-width: 110px; }
    .m-nav-cta-text { display: none; }
    .m-nav-cta-bar { padding: 0.5rem; }
}

.m-btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
}
.m-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem; border-radius: 10px; font-weight: 600; font-size: 0.875rem;
    text-decoration: none; border: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.m-btn-primary {
    background: linear-gradient(135deg, var(--m-primary), var(--m-violet));
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 4px 14px rgb(99 102 241 / 0.35);
}
.m-btn-primary:hover {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgb(99 102 241 / 0.4);
}
.m-demo .m-btn-primary { color: #fff !important; }
.m-btn-ghost {
    background: #fff; color: var(--m-text); border: 1px solid var(--m-border);
}
.m-btn-ghost:hover { border-color: var(--m-primary); color: var(--m-primary); }

.m-hero {
    position: relative;
    padding: 3rem 0 2.5rem;
    background: linear-gradient(180deg, #eef2ff 0%, #fff 55%);
    overflow: hidden;
}
.m-hero::before,
.m-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.m-hero::before {
    width: 420px; height: 420px;
    top: -120px; right: -80px;
    background: radial-gradient(circle, rgb(99 102 241 / 0.12) 0%, transparent 70%);
}
.m-hero::after {
    width: 280px; height: 280px;
    bottom: -60px; left: -40px;
    background: radial-gradient(circle, rgb(124 58 237 / 0.1) 0%, transparent 70%);
}
.m-hero .m-container { position: relative; z-index: 1; }
.m-hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.85rem 0.35rem 0.5rem;
    background: #fff; border: 1px solid #c7d2fe;
    border-radius: 999px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--m-primary); margin: 0 0 1rem;
    box-shadow: 0 2px 8px rgb(99 102 241 / 0.1);
}
.m-hero-badge i { color: var(--m-violet); }
.m-hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.m-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15;
    letter-spacing: -0.03em; margin: 0 0 1rem;
}
.m-hero h1 span {
    background: linear-gradient(135deg, var(--m-primary), var(--m-violet));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.m-hero-lead { font-size: 1.125rem; color: var(--m-muted); margin: 0 0 1.75rem; max-width: 32rem; }
.m-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.m-mockup {
    background: linear-gradient(145deg, #1e1b4b, #312e81);
    border-radius: var(--m-radius);
    padding: 1rem;
    box-shadow: 0 24px 48px rgb(30 27 75 / 0.25);
    transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
}
@media (max-width: 768px) {
    .m-mockup { transform: none; }
    .m-hero { padding: 2.5rem 0 2rem; }
    .m-section { padding: 3rem 0; }
    .m-section-head { margin-bottom: 2rem; }
    .m-section-head h2 { font-size: 1.5rem; }
    .m-demo { padding: 1.5rem; border-radius: 16px; }
    .m-container { padding: 0 1rem; }
}
.m-mockup-bar {
    display: flex; gap: 6px; margin-bottom: 0.75rem;
}
.m-mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.25); }
.m-mockup-body { background: #f8fafc; border-radius: 10px; padding: 1rem; min-height: 220px; }
.m-mockup-kpi {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 0.75rem;
}
.m-mockup-kpi div {
    background: #fff; border: 1px solid var(--m-border); border-radius: 8px;
    padding: 0.5rem; font-size: 0.65rem; color: var(--m-muted);
}
.m-mockup-kpi strong { display: block; font-size: 0.85rem; color: var(--m-primary); }
.m-mockup-timeline {
    height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; margin-top: 0.5rem;
}
.m-mockup-timeline span {
    display: block; height: 100%; width: 72%;
    background: linear-gradient(90deg, var(--m-primary), #a5b4fc);
}
.m-mockup-chart {
    display: flex; align-items: flex-end; gap: 6px; height: 48px; margin-top: 0.75rem;
}
.m-mockup-chart span {
    flex: 1; border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--m-primary), #a5b4fc);
    opacity: 0.85;
}
.m-mockup-chart span:nth-child(2) { height: 55%; opacity: 0.65; }
.m-mockup-chart span:nth-child(3) { height: 80%; }
.m-mockup-chart span:nth-child(4) { height: 45%; opacity: 0.5; }
.m-mockup-chart span:nth-child(5) { height: 92%; }

.m-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
}
@media (max-width: 768px) { .m-split { grid-template-columns: 1fr; } }
.m-illustration,
.m-highlight-box img {
    width: 100%; max-width: 100%; height: auto; display: block;
    border-radius: var(--m-radius);
    box-shadow: 0 16px 40px rgb(15 23 42 / 0.1);
    border: 1px solid #c7d2fe;
    background: #fff;
}
.m-highlight-box img {
    width: min(320px, 100%);
    flex-shrink: 0;
}
.m-illustration-wrap {
    position: relative;
}
.m-illustration-wrap::after {
    content: '';
    position: absolute; inset: 8% -4% -8% 4%;
    border-radius: var(--m-radius);
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    z-index: -1;
}

.m-section { padding: 4.5rem 0; position: relative; }
.m-section-pattern {
    background-image: radial-gradient(rgb(99 102 241 / 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}
.m-section-alt { background: var(--m-bg); }
.m-section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.m-section-head h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.m-section-head p { color: var(--m-muted); margin: 0; font-size: 1.05rem; }

.m-stat {
    text-align: center; padding: 2rem;
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
    border-radius: var(--m-radius); border: 1px solid #c7d2fe;
}
.m-stat strong { font-size: 3rem; font-weight: 800; color: var(--m-primary); display: block; line-height: 1; }
.m-stat span { color: var(--m-muted); font-size: 0.95rem; }

.m-pillars {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}
@media (max-width: 900px) { .m-pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .m-pillars { grid-template-columns: 1fr; } }

.m-pillar {
    background: #fff; border: 1px solid var(--m-border); border-radius: var(--m-radius);
    padding: 1.25rem; transition: box-shadow 0.2s, transform 0.2s;
}
.m-pillar:hover { box-shadow: 0 12px 24px rgb(15 23 42 / 0.08); transform: translateY(-4px); }
.m-pillar-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: #eef2ff; color: var(--m-primary);
    display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem;
}
.m-pillar h3 { font-size: 0.9rem; font-weight: 700; margin: 0 0 0.35rem; }
.m-pillar p { font-size: 0.8rem; color: var(--m-muted); margin: 0; }

.m-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .m-cards { grid-template-columns: 1fr; } .m-hero-grid { grid-template-columns: 1fr; } }

.m-card {
    background: #fff; border: 1px solid var(--m-border); border-radius: var(--m-radius);
    padding: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.m-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 12px 28px rgb(99 102 241 / 0.08);
}
.m-card-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    color: var(--m-primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.m-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.m-card p { margin: 0; color: var(--m-muted); font-size: 0.9rem; }

.m-highlight-box {
    display: flex; gap: 1.5rem; align-items: center;
    max-width: 900px; margin: 0 auto;
    padding: 2rem; background: #fff;
    border: 1px solid #c7d2fe; border-radius: var(--m-radius);
    box-shadow: 0 12px 32px rgb(99 102 241 / 0.1);
}
@media (max-width: 768px) { .m-highlight-box { flex-direction: column; text-align: center; } }

.m-stat-icon {
    width: 56px; height: 56px; margin: 0 auto 1rem;
    border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center;
    color: var(--m-primary); box-shadow: 0 4px 12px rgb(99 102 241 / 0.15);
}

.m-features {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
@media (max-width: 768px) { .m-features { grid-template-columns: 1fr; } }

.m-feature {
    background: #fff; border-radius: var(--m-radius); padding: 1.5rem;
    border: 1px solid var(--m-border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.m-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgb(15 23 42 / 0.08);
    border-color: #c7d2fe;
}
.m-feature-head {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem;
}
.m-feature-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--m-primary), var(--m-violet));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.m-feature h3 { margin: 0; font-size: 1rem; }
.m-feature ul { margin: 0; padding-left: 1.1rem; color: var(--m-muted); font-size: 0.875rem; }

.m-demo {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 20px; padding: 2.5rem; color: #fff;
}
.m-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 768px) { .m-demo-grid { grid-template-columns: 1fr; } }
.m-demo h2 { margin: 0 0 0.75rem; font-size: 1.75rem; }
.m-demo p { color: #c7d2fe; margin: 0 0 1rem; font-size: 0.95rem; }
.m-form label { display: block; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.35rem; color: #e0e7ff; }
.m-form input, .m-form textarea {
    width: 100%; padding: 0.65rem 0.85rem; border-radius: 8px; border: 1px solid rgb(255 255 255 / 0.2);
    background: rgb(255 255 255 / 0.08); color: #fff; font-family: inherit; font-size: 0.9rem;
    margin-bottom: 0.85rem;
}
.m-form input:focus, .m-form textarea:focus {
    outline: none; border-color: #a5b4fc; box-shadow: 0 0 0 3px rgb(99 102 241 / 0.3);
}
.m-form input::placeholder, .m-form textarea::placeholder { color: #94a3b8; }
.m-alert-success {
    background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0;
    padding: 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.9rem;
}

.m-footer {
    padding: 2.5rem 0 2rem;
    border-top: 1px solid var(--m-border);
    background: var(--m-bg);
    font-size: 0.875rem;
    color: var(--m-muted);
}
.m-footer a {
    color: var(--m-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.m-footer a:hover { color: var(--m-primary-dark); text-decoration: underline; }
.m-footer-grid {
    display: flex; flex-wrap: wrap;
    align-items: flex-start; justify-content: space-between;
    gap: 1.5rem 2rem;
}
.m-footer-brand {
    display: flex; flex-direction: column; gap: 0.35rem;
}
.m-footer-brand strong {
    color: var(--m-text); font-size: 0.95rem; font-weight: 700;
}
.m-footer-brand a { font-size: 0.875rem; }
.m-footer-copy {
    margin: 1.25rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--m-border);
    font-size: 0.8rem;
    color: var(--m-muted);
    text-align: center;
}
.m-footer-links {
    display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
    align-items: center;
}
@media (max-width: 640px) {
    .m-footer-grid { flex-direction: column; }
    .m-footer-links { flex-direction: column; align-items: flex-start; }
}

.m-legal { padding: 3rem 0 4rem; max-width: 720px; margin: 0 auto; }
.m-legal h1 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.m-legal h2 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.m-legal p, .m-legal li { color: var(--m-muted); font-size: 0.9rem; }

.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
