/* ============================================================
   MEX.GIRO — Лендинг (стиль Coinbase)
   ============================================================ */

:root {
    --cb-blue: #0052ff;
    --cb-blue-dark: #0043d1;
    --cb-ink: #0a0b0d;
    --cb-gray: #5b616e;
    --cb-line: #eceef1;
    --cb-bg: #ffffff;
    --cb-soft: #f7f8fa;
    --cb-radius: 14px;
    --cb-wrap: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--cb-bg);
    color: var(--cb-ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.lp-wrap {
    max-width: var(--cb-wrap);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Кнопки ---------- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, transform .12s;
    white-space: nowrap;
}

.lp-btn:active {
    transform: translateY(1px);
}

.lp-btn-primary {
    background: var(--cb-blue);
    color: #fff;
}

.lp-btn-primary:hover {
    background: var(--cb-blue-dark);
}

.lp-btn-ghost {
    background: transparent;
    color: var(--cb-ink);
    border-color: #d3d7de;
}

.lp-btn-ghost:hover {
    border-color: var(--cb-ink);
}

.lp-btn-light {
    background: #fff;
    color: var(--cb-blue);
}

.lp-btn-light:hover {
    background: #eef3ff;
}

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

/* ---------- Header ---------- */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--cb-line);
}

.lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.lp-logo {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -.5px;
    color: var(--cb-ink);
    text-decoration: none;
}

.lp-logo span {
    color: var(--cb-blue);
}

.lp-logo-sm {
    font-size: 17px;
}

.lp-nav {
    display: flex;
    gap: 34px;
}

.lp-nav a {
    color: var(--cb-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color .15s;
}

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

/* ---------- Hero ---------- */
.lp-hero {
    padding: 84px 0 60px;
    text-align: center;
    background:
        radial-gradient(1000px 500px at 50% -10%, #eef3ff 0%, rgba(238, 243, 255, 0) 60%);
}

.lp-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--cb-blue);
    background: #eef3ff;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.lp-h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -.03em;
    font-weight: 800;
    margin-bottom: 22px;
}

.lp-accent {
    color: var(--cb-blue);
}

.lp-lead {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--cb-gray);
    max-width: 620px;
    margin: 0 auto 34px;
}

.lp-hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Мокап приложения в hero ---------- */
.lp-hero-visual {
    margin-top: 64px;
}

.lp-mock {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
    box-shadow: 0 30px 70px -30px rgba(10, 11, 13, .25), 0 8px 24px -12px rgba(10, 11, 13, .12);
    overflow: hidden;
}

.lp-mock-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--cb-line);
    background: var(--cb-soft);
}

.lp-mock-bar > span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d6d9de;
}

.lp-mock-bar > span:first-child { background: #ff5f57; }
.lp-mock-bar > span:nth-child(2) { background: #febc2e; }
.lp-mock-bar > span:nth-child(3) { background: #28c840; }

.lp-mock-title {
    margin-left: 12px;
    font-size: 12px;
    color: var(--cb-gray);
    font-family: "IBM Plex Mono", monospace;
}

.lp-mock-body {
    display: flex;
    min-height: 260px;
}

.lp-mock-side {
    width: 168px;
    border-right: 1px solid var(--cb-line);
    padding: 16px 10px;
    background: #fcfcfd;
}

.lp-mock-nav-item {
    font-size: 13px;
    color: var(--cb-gray);
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.lp-mock-nav-item.active {
    background: #eef3ff;
    color: var(--cb-blue);
    font-weight: 600;
}

.lp-mock-main {
    flex: 1;
    padding: 16px;
}

.lp-mock-row {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.2fr 1.2fr;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    padding: 11px 8px;
    border-bottom: 1px solid var(--cb-line);
}

.lp-mock-row-head {
    color: var(--cb-gray);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

.lp-chip {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    justify-self: start;
}

.lp-chip-in { background: #e6f7ee; color: #0f9d58; }
.lp-chip-out { background: #fdecec; color: #e5484d; }

.lp-in { color: #0f9d58; font-weight: 600; text-align: right; }
.lp-out { color: #e5484d; font-weight: 600; text-align: right; }

/* ---------- Stats ---------- */
.lp-stats {
    padding: 40px 0 20px;
}

.lp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: 1px solid var(--cb-line);
    border-bottom: 1px solid var(--cb-line);
    padding: 36px 0;
}

.lp-stat-num {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 4px;
}

.lp-stat-label {
    font-size: 13.5px;
    color: var(--cb-gray);
}

/* ---------- Features ---------- */
.lp-features {
    padding: 80px 0;
}

.lp-h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.lp-sub {
    color: var(--cb-gray);
    font-size: 18px;
    margin-bottom: 48px;
}

.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lp-feature {
    background: var(--cb-soft);
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    padding: 28px 26px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.lp-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -24px rgba(10, 11, 13, .25);
    border-color: #dfe3ea;
}

.lp-ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
}

.lp-ico-blue { background: #eef3ff; color: var(--cb-blue); }
.lp-ico-green { background: #e6f7ee; color: #0f9d58; }
.lp-ico-purple { background: #f3edff; color: #7c3aed; }
.lp-ico-orange { background: #fff2e3; color: #e08000; }
.lp-ico-cyan { background: #e3f6fb; color: #0891b2; }
.lp-ico-slate { background: #eef0f3; color: #475569; }

.lp-feature h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}

.lp-feature p {
    color: var(--cb-gray);
    font-size: 15px;
}

/* ---------- How ---------- */
.lp-how {
    padding: 80px 0;
    background: var(--cb-soft);
    border-top: 1px solid var(--cb-line);
    border-bottom: 1px solid var(--cb-line);
}

.lp-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 44px;
}

.lp-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cb-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 16px;
}

.lp-step h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lp-step p {
    color: var(--cb-gray);
    font-size: 14.5px;
}

.lp-step code {
    font-family: "IBM Plex Mono", monospace;
    background: #eef3ff;
    color: var(--cb-blue);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 13px;
}

/* ---------- Security ---------- */
.lp-security {
    padding: 80px 0;
}

.lp-security-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
}

.lp-checks {
    list-style: none;
    margin-top: 24px;
}

.lp-checks li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 14px;
    font-size: 16px;
    color: #2b2f36;
}

.lp-checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    background: #e6f7ee;
    color: #0f9d58;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.lp-security-card {
    background: var(--cb-blue);
    color: #fff;
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
}

.lp-lock {
    font-size: 44px;
    margin-bottom: 16px;
}

.lp-security-card p {
    font-size: 19px;
    font-weight: 600;
}

/* ---------- CTA ---------- */
.lp-cta {
    padding: 20px 0 80px;
}

.lp-cta-inner {
    background: var(--cb-ink);
    border-radius: 24px;
    padding: 64px 32px;
    text-align: center;
    color: #fff;
}

.lp-cta-inner h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -.025em;
    margin-bottom: 12px;
}

.lp-cta-inner p {
    color: #b9bdc6;
    font-size: 17px;
    margin-bottom: 30px;
}

/* ---------- Footer ---------- */
.lp-footer {
    border-top: 1px solid var(--cb-line);
    padding: 32px 0;
}

.lp-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lp-footer-copy {
    font-size: 13.5px;
    color: var(--cb-gray);
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    .lp-nav { display: none; }
    .lp-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-steps { grid-template-columns: repeat(2, 1fr); }
    .lp-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .lp-security-inner { grid-template-columns: 1fr; }
    .lp-mock-side { display: none; }
}

@media (max-width: 560px) {
    .lp-feature-grid { grid-template-columns: 1fr; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-hero { padding: 56px 0 40px; }
    .lp-features, .lp-how, .lp-security { padding: 56px 0; }
    .lp-mock-row { grid-template-columns: 1fr 1fr; }
    .lp-mock-row span:nth-child(3) { display: none; }
}
