/* VynMES (PrePPSE) — matches the Vyn family: blue/navy, Inter, pill buttons, rounded cards */
:root {
    --blue: #3B82F6;
    --blue-deep: #2563EB;
    --navy: #15206A;
    --head: #15206A;
    --bg: #fff;
    --bg-alt: #F5F9FF;
    --surface: #fff;
    --text: #1E2A4A;
    --muted: #5B6B8C;
    --border: #DCE6F5;
    --run: #00D697;
    --stop: #E5484D;
    --mnt: #F59E0B;
    --wa: #25D366;
    --shadow: 0 10px 30px rgba(21, 32, 106, .10);
    --font: 'Inter', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --r: 16px;
    color-scheme: light dark
}

:root[data-theme=dark] {
    --head: #fff;
    --bg: #0b1230;
    --bg-alt: #101a42;
    --surface: #141f4d;
    --text: #e6ecff;
    --muted: #9fb0d9;
    --border: #243263;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4)
}

@media(prefers-color-scheme:dark) {
    :root:not([data-theme]) {
        --head: #fff;
        --bg: #0b1230;
        --bg-alt: #101a42;
        --surface: #141f4d;
        --text: #e6ecff;
        --muted: #9fb0d9;
        --border: #243263;
        --shadow: 0 10px 30px rgba(0, 0, 0, .4)
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

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

button {
    font: inherit;
    border: 0;
    background: none;
    cursor: pointer;
    color: inherit
}

ol {
    list-style: none
}

h1,
h2,
h3 {
    color: var(--head);
    letter-spacing: -.025em;
    line-height: 1.15
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background .2s, box-shadow .2s
}

.nav.scrolled {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border)
}

.nav-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 70px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    color: var(--head)
}

.brand img {
    display: block;
    object-fit: contain;
}

.links {
    display: flex;
    gap: 26px;
    font-weight: 500;
    font-size: .95rem;
    color: var(--muted)
}

.links a:hover {
    color: var(--blue-deep)
}

.tools {
    display: flex;
    align-items: center;
    gap: 8px
}

.seg {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    background: var(--surface)
}

.lang-btn {
    padding: 6px 13px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--muted)
}

.lang-btn.active {
    background: var(--blue-deep);
    color: #fff
}

.icon-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    font-size: 1.1rem
}

.burger {
    display: none
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 999px;
    transition: transform .2s, box-shadow .2s, background .2s
}

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

.btn-lg {
    padding: 16px 28px;
    font-size: 1rem
}

.btn-sm {
    min-height: 38px;
    padding: 8px 18px;
    font-size: .88rem
}

.btn-primary {
    background: var(--blue-deep);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .32)
}

.btn-ghost {
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--head)
}

.btn-wa {
    background: var(--wa);
    color: #06361b;
    box-shadow: 0 6px 18px rgba(37, 211, 102, .35)
}

.hero {
    padding: clamp(40px, 7vw, 88px) 0;
    background: radial-gradient(900px 400px at 80% 0, color-mix(in srgb, var(--blue) 14%, transparent), transparent)
}

.hero-in {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--blue-deep);
    background: color-mix(in srgb, var(--blue) 14%, transparent);
    padding: 6px 14px;
    border-radius: 999px
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue)
}

h1 {
    font-size: clamp(2.2rem, 5.4vw, 3.9rem);
    font-weight: 800;
    margin: 18px 0
}

.hl {
    color: var(--blue-deep);
    background: linear-gradient(transparent 68%, color-mix(in srgb, var(--blue) 30%, transparent) 68%)
}

.sub {
    font-size: clamp(1.02rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 52ch
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px
}

.plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 20px;
    box-shadow: var(--shadow)
}

.plan-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .85rem;
    margin-bottom: 14px;
    color: var(--head)
}

.legend {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted)
}

.legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-left: 6px
}

.plan {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px
}

.m {
    border-radius: 12px;
    padding: 22px 8px;
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    color: #062b1f;
    border: 1px solid transparent
}

.wide {
    grid-column: span 2
}

.run {
    background: var(--run)
}

.stop {
    background: var(--stop);
    color: #fff
}

.mnt {
    background: var(--mnt);
    color: #3b2600
}

.legend .run,
.legend .stop,
.legend .mnt {
    padding: 0
}

.m.stop {
    animation: pulse 2.4s ease-in-out infinite
}

@keyframes pulse {
    50% {
        box-shadow: 0 0 0 7px color-mix(in srgb, var(--stop) 25%, transparent)
    }
}

.sec {
    padding: clamp(56px, 8vw, 96px) 0
}

.alt {
    background: var(--bg-alt)
}

.sec h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    max-width: 22ch;
    margin-bottom: 36px
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

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

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 26px;
    box-shadow: 0 2px 8px rgba(21, 32, 106, .06);
    transition: transform .2s, box-shadow .2s
}

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

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px
}

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

.prob {
    margin-bottom: 10px
}

.sol {
    color: var(--text) !important;
    font-weight: 500;
    padding-top: 12px;
    border-top: 1px dashed var(--border)
}

.flow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    counter-reset: s
}

.flow li {
    counter-increment: s;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px 12px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--head)
}

.flow li::before {
    content: counter(s);
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--blue-deep);
    color: #fff;
    font-size: .8rem;
    margin-bottom: 8px
}

.cmp .hi {
    border-color: var(--blue);
    box-shadow: var(--shadow)
}

.cta {
    background: linear-gradient(135deg, #15206A, #2563EB);
    text-align: center;
    color: #fff
}

.cta h2 {
    color: #fff;
    margin-inline: auto
}

.cta p {
    max-width: 50ch;
    margin: -12px auto 28px;
    color: #dbe7ff
}

footer {
    padding: 36px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .92rem
}

.foot {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 56px;
    justify-content: space-between
}

.foot b {
    color: var(--head)
}

.foot a {
    border-bottom: 1px solid var(--border)
}

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

.fade-up.visible {
    opacity: 1;
    transform: none
}

@media(max-width:1024px) {
    .flow {
        grid-template-columns: repeat(4, 1fr)
    }

    .hero-in {
        gap: 32px
    }
}

@media(max-width:768px) {

    .hero-in,
    .grid3,
    .grid2 {
        grid-template-columns: 1fr
    }

    .flow {
        grid-template-columns: repeat(2, 1fr)
    }

    .burger {
        display: inline-block
    }

    .links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 8px 24px
    }

    .links.open {
        display: flex
    }

    .links a {
        padding: 14px 0;
        min-height: 44px
    }

    .btn-lg {
        width: 100%
    }
}

@media(max-width:480px) {
    .container {
        padding: 0 16px
    }

    .tools {
        gap: 6px
    }

    .icon-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: .82rem
    }

    .m {
        padding: 16px 4px;
        font-size: .7rem
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }

    html {
        scroll-behavior: auto
    }

    .fade-up {
        opacity: 1;
        transform: none
    }
}