:root {
    --bg-dark: #020617;
    --card-bg: rgba(255, 255, 255, 0.012);
    --card-border: rgba(139, 92, 246, 0.1);
    --accent: #8b5cf6;
    --accent-secondary: #d9f99d;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-blur: blur(8px);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Deep Space Foundations */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
}

.bg-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

.bg-aura::before, .bg-aura::after {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    will-change: transform;
}

.bg-aura::before { background: var(--accent); top: -10%; left: -10%; animation: pulse-top 25s infinite alternate; }
.bg-aura::after { background: var(--accent-secondary); bottom: -10%; right: -10%; animation: pulse-bottom 30s infinite alternate; }

@keyframes pulse-top { to { transform: translate(150px, 80px); } }
@keyframes pulse-bottom { to { transform: translate(-150px, -80px); } }

/* Navbar */
.navbar { min-height: 70px; background: transparent; border-bottom: none; position: sticky !important; top: 0; z-index: 1030; }
.navbar-brand { font-weight: 800; font-size: 1.3rem; color: white !important; display: flex; align-items: center; gap: 10px; }
.nav-link { color: rgba(255, 255, 255, 0.7) !important; margin: 0 12px; font-weight: 500; transition: 0.3s; font-size: 0.95rem; }
.nav-link:hover { color: white !important; transform: translateY(-1px); }

/* Hero Section */
.hero-section {
    position: relative;
    background-image: url('../img/first-screen-background.png');
    background-size: cover;
    background-position: center right;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    z-index: 10;
}


/* ══════════════════════════════════════════
   HAMBURGER — animated bars
   ══════════════════════════════════════════ */
.nx-toggler {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    transition: background 0.25s;
}
.nx-toggler:hover { background: rgba(139, 92, 246, 0.2) !important; }
.nx-toggler:focus { background: rgba(139, 92, 246, 0.15) !important; }

.nx-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                opacity   0.25s ease,
                width     0.3s ease;
}
/* Closed → Open animation */
.nx-toggler[aria-expanded="true"] .nx-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nx-toggler[aria-expanded="true"] .nx-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nx-toggler[aria-expanded="true"] .nx-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Premium Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover { border-color: rgba(139, 92, 246, 0.3); transform: translateY(-6px); background: rgba(255, 255, 255, 0.025); box-shadow: 0 30px 60px -12px rgba(0,0,0,0.5); }

/* Ecosystem 16 */
.ecosystem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1.2rem; }
.ecosystem-card { 
    background: rgba(255, 255, 255, 0.015); 
    border: 1px solid var(--card-border); 
    border-radius: 20px; 
    padding: 1.8rem 1rem; 
    text-align: center; 
    transition: 0.4s; 
    filter: grayscale(1) opacity(0.5); 
}
.ecosystem-card:hover { filter: grayscale(0) opacity(1); border-color: var(--accent-secondary); transform: scale(1.05); background: rgba(217, 249, 157, 0.05); }
.ecosystem-card i { font-size: 2.2rem; margin-bottom: 0.8rem; display: block; color: var(--text-primary); }
.ecosystem-card span { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Pipeline Mindmap (redesign) ───────────────── */
.complex-mindmap { position: relative; padding: 1.5rem 0; }
.mindmap-row { position: relative; z-index: 10; }

/* Compact pipeline node */
.mindmap-pill {
    background: rgba(8,12,40,.88);
    border: 1px solid rgba(99,102,241,.22);
    border-radius: 10px;
    padding: 10px 14px;
    width: 185px;
    display: flex; align-items: center; gap: 10px;
    position: relative;
    transition: border-color .25s, transform .2s;
    backdrop-filter: blur(8px);
}
.mindmap-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(99,102,241,.48);
}

/* Icon box — unified indigo style for all nodes */
.pm-icon-box {
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
    background: rgba(99,102,241,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; color: #6366f1;
}
.pm-node-label { font-size: .77rem; font-weight: 700; color: #fff; line-height: 1.25; }
.pm-node-sub   { font-size: .62rem; color: rgba(255,255,255,.35); margin-top: 2px; line-height: 1.3; }

/* Core / engine node */
.core-pill {
    width: 230px;
    border-color: rgba(99,102,241,.48) !important;
    background: rgba(99,102,241,.07) !important;
    box-shadow: 0 0 32px rgba(99,102,241,.22);
}
.core-pill .pm-icon-box {
    width: 34px; height: 34px; font-size: .85rem;
    background: rgba(99,102,241,.2);
}

/* Output nodes — subtle green accent */
.pm-out-node { border-color: rgba(34,197,94,.18); }
.pm-out-node .pm-icon-box { background: rgba(34,197,94,.1); color: #22c55e; }
.pm-out-node:hover { border-color: rgba(34,197,94,.4); }

/* Vertical connector */
.mm-flow-vertical {
    height: 36px; width: 1px; margin: 0 auto;
    background: linear-gradient(180deg, rgba(99,102,241,.5), rgba(99,102,241,.15));
    position: relative;
}

/* Branch fork */
.mm-flow-branches {
    display: flex; justify-content: center;
    position: relative; height: 40px;
}
.mm-flow-branches::before {
    content: '';
    position: absolute; top: 0;
    width: 418px; height: 1px;
    background: rgba(99,102,241,.35);
}
.mm-branch-line {
    position: absolute; width: 1px; height: 40px; top: 0;
    background: linear-gradient(180deg, rgba(99,102,241,.35), rgba(99,102,241,.1));
}
.mm-branch-line.left   { left: 50%; margin-left: -209px; }
.mm-branch-line.center { left: 50%; margin-left: 0; }
.mm-branch-line.right  { left: 50%; margin-left: 209px; }

/* Level 2 (same color) */
.mm-flow-branches.level-2::before { width: 418px; background: rgba(99,102,241,.28); }
.mm-flow-branches.level-2 .mm-branch-line { background: linear-gradient(180deg, rgba(99,102,241,.28), rgba(99,102,241,.08)); }

/* Flowing data dot */
.data-packet {
    position: absolute;
    width: 5px; height: 5px; border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 8px 2px rgba(99,102,241,.7);
    left: -2px; top: 0; opacity: 0;
    animation: travel-down 2.4s ease-in-out infinite;
}
.data-packet.purple { animation-delay: 1.2s; }

@keyframes travel-down {
    0%   { top: 0;    opacity: 0; }
    8%   { opacity: 1; }
    88%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Gap between nodes in a row */
.pm-gap { gap: 24px; }

/* SVG connector wrappers */
.pm-cw { display: flex; justify-content: center; line-height: 0; }
.pm-fw { /* fork width matches nodes row */ }

@media (max-width: 991px) {
    .hero-title { font-size: 3.2rem !important; }
    .section-padding { padding-top: 80px !important; padding-bottom: 80px !important; }

    /* Mindmap mobile */
    .mindmap-pill, .core-pill { width: 100% !important; max-width: 260px; margin: 0 auto; }
    .mindmap-row { flex-direction: column; gap: 0 !important; align-items: center !important; }
    .pm-gap { gap: 10px !important; }
    /* Prevent 603px SVG from causing horizontal scroll */
    .pm-cw { overflow: hidden; max-width: 100%; }
    /* Fork connector: force block, hide SVG, show 1px center line via ::after */
    .pm-fw {
        display: block !important;
        position: relative !important;
        height: 28px !important;
        width: 100%;
    }
    .pm-fw svg { display: none !important; }
    .pm-fw::after {
        content: '';
        position: absolute; top: 0; left: 50%;
        width: 1px; height: 100%;
        background: rgba(99,102,241,.4);
    }
}

/* ── Security features list ────────────────────── */
.sec-features {
    list-style: none; padding: 0; margin: 1.4rem 0 0;
    display: flex; flex-direction: column; gap: 16px;
}
.sec-features li { display: flex; align-items: flex-start; gap: 12px; }
.sf-label { font-size: .83rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.sf-sub   { font-size: .72rem; color: rgba(255,255,255,.36); line-height: 1.5; }

/* Code window accent for sec block */
.sec-code { border-color: rgba(99,102,241,.22); }
.sec-code .code-header { background: rgba(99,102,241,.07); align-items: center; }

/* Typography */
.hero-title { font-size: clamp(2.8rem, 9vw, 4.8rem); font-weight: 900; color: #fff; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-title span { color: #a78bfa; }
.text-accent { color: var(--accent-secondary) !important; }

/* Buttons — navbar signup (glass) */
a.btn-premium.ms-lg-3.nav-link {
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    backdrop-filter: blur(10px) !important;
    color: #fff !important;
    padding: 1rem 1.4rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    transition: .3s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-transform: capitalize !important;
    margin: 0 !important;
}
a.btn-premium.ms-lg-3.nav-link:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.4);
    transform: translateY(-2px);
}
a.btn-premium.ms-lg-3.nav-link:active {
    background: rgba(255,255,255,.18);
    transform: translateY(0);
}

.btn-outline-white { background: transparent; color: #fff !important; padding: 0.9rem 2.4rem; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: 0.3s; border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px); }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }


/* ── Ready Solutions Block ─────────────────────── */
.solutions-badge {
    display: inline-block;
    font-size: .65rem; font-weight: 700; letter-spacing: .15em;
    text-transform: uppercase; color: rgba(129,140,248,.6);
    margin-bottom: 1rem;
}
.solution-sec-title {
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: .8rem;
}
.solution-sec-desc {
    font-size: .85rem; color: rgba(255,255,255,.42); line-height: 1.7; margin-bottom: 1.4rem;
}
.solution-features {
    list-style: none; padding: 0; margin: 0 0 .5rem;
    display: flex; flex-direction: column; gap: 8px;
}
.solution-features li {
    display: flex; align-items: center; gap: 8px;
    font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.4;
}
.solution-features li::before { content: '✓'; color: #4ade80; font-weight: 700; flex-shrink: 0; }
.solution-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #6366f1; color: #fff !important;
    padding: .85rem 1.8rem; border-radius: 12px;
    font-weight: 700; font-size: .9rem;
    text-decoration: none; transition: .3s; align-self: flex-start;
    border: none; cursor: pointer;
}
.solution-btn:hover { background: #4f46e5; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(99,102,241,.4); }
.solution-btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #6366f1 !important;
    border: 1px solid rgba(99,102,241,.5); padding: .85rem 1.8rem; border-radius: 12px;
    font-weight: 700; font-size: .9rem;
    text-decoration: none; transition: .3s; align-self: flex-start;
}
.solution-btn-outline:hover { background: rgba(99,102,241,.1); border-color: #6366f1; transform: translateY(-2px); }
/* Card */
.solution-card {
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(99,102,241,.22);
    border-radius: 20px; overflow: hidden; position: relative;
}
.solution-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 15% 50%, rgba(99,71,255,.1) 0%, transparent 60%);
    pointer-events: none;
}
.solution-icon {
    width: 68px; height: 68px; border-radius: 16px; flex-shrink: 0;
    background: linear-gradient(135deg, #229ED9, #1565c0);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #fff;
    box-shadow: 0 0 35px rgba(34,158,217,.45), 0 0 70px rgba(34,158,217,.15);
}
.solution-card-top {
    display: flex; align-items: center; gap: 20px;
    padding: 28px 32px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    position: relative; z-index: 1;
}
.solution-name { font-size: 1.05rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.solution-desc { font-size: .78rem; color: rgba(255,255,255,.38); line-height: 1.6; }
.solution-card-bottom { padding: 24px 32px; position: relative; z-index: 1; }
.solution-plans-label {
    font-size: .62rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: rgba(255,255,255,.25);
    margin-bottom: 14px;
}
.solution-chip-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.solution-chip {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; padding: 14px 14px;
    transition: border-color .2s;
}
.solution-chip:hover { border-color: rgba(34,158,217,.25); }
.solution-chip-featured {
    border-color: rgba(34,158,217,.32) !important;
    background: rgba(34,158,217,.07) !important;
}
.solution-chip-popular {
    font-size: .58rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: #229ED9; margin-bottom: .2rem;
}
.solution-chip-price { font-size: 1.35rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: .2rem; }
.solution-chip-price span { font-size: .7rem; font-weight: 400; color: rgba(255,255,255,.35); }
.solution-chip-name { font-size: .73rem; font-weight: 600; color: rgba(255,255,255,.6); margin-bottom: .15rem; }
.solution-chip-desc { font-size: .65rem; color: rgba(255,255,255,.28); line-height: 1.4; }
.solution-note { font-size: .7rem; color: rgba(255,255,255,.2); }
@media (max-width: 991px) {
    .solution-card-top { padding: 22px 24px; }
    .solution-card-bottom { padding: 20px 24px; }
}
@media (max-width: 767px) {
    .solution-card-top { gap: 14px; padding: 18px 20px; }
    .solution-card-bottom { padding: 18px 20px; }
    .solution-chip-row { grid-template-columns: 1fr; gap: 8px; }
    .solution-icon { width: 52px; height: 52px; font-size: 1.4rem; border-radius: 12px; }
}

/* Code Window */
.code-window { background: #0f172a; border: 1px solid var(--card-border); border-radius: 20px; overflow: hidden; }
.code-header { background: #1e293b; padding: 12px 18px; display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; } .dot-yellow { background: #ffbd2e; } .dot-green { background: #27c93f; }

.section-padding { padding-top: 140px !important; padding-bottom: 140px !important; }

/* Mega Footer */
.footer { background: #07071a !important; border-top-color: var(--card-border) !important; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-tight { letter-spacing: -0.02em; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: 0.3s ease; display: inline-block; }
.footer-links a:hover { color: var(--accent); transform: translateX(5px); }
.status-indicator { border: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.02); }
.status-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 10px #22c55e; animation: status-pulse 2s infinite; }
@keyframes status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.footer-social-links a { font-size: 1.2rem; margin-left: 1.2rem; }
.hover-white:hover { color: #fff !important; }
.footer-legal a { color: var(--text-secondary); text-decoration: none; transition: 0.3s; }
.footer-legal a:hover { color: var(--accent); }

/* Branding */
img[alt*="Logo"], .navbar-brand img { }

@media (max-width: 767px) {

    /* ── Container: boost side padding from Bootstrap's default 12px ── */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* ── Cards: reduce inner padding ── */
    .glass-card { padding: 1.75rem; }

    /* ── Code blocks: horizontal scroll ── */
    .code-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* ── Ecosystem grid ── */
    .ecosystem-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.75rem;
    }

}

@media (max-width: 575px) {
    /* Vertical section spacing */
    .section-padding { padding-top: 60px !important; padding-bottom: 60px !important; }

    /* Container: 1.25rem on small phones too — don't go tighter */
    .container { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

    /* Hero title */
    .hero-title { font-size: 2.2rem !important; line-height: 1.1; margin-bottom: 1.5rem; }

    /* Hero buttons: stack vertically, full width */
    .site-index .d-flex.flex-wrap.gap-4 {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem !important;
    }
    .btn-premium { padding: 0.875rem 2rem; width: 100%; text-align: center; display: block; max-width: 340px; }
    .btn-google { width: 100% !important; max-width: 340px; justify-content: center; }

    /* Cards */
    .glass-card { padding: 1.25rem; border-radius: 16px; }

    /* Section headings */
    .display-4 { font-size: 1.85rem !important; }

    /* Security section: reduce rounded corners so padding isn't eaten visually */
    .rounded-5 { border-radius: 1.25rem !important; }

    /* Sentinel */
    .sentinel-shield { width: 150px; height: 150px; margin-bottom: 2rem; }
    .sentinel-core { font-size: 4rem; }

    /* Footer social links: allow wrapping */
    .footer-social-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
    .footer-social-links a { margin-left: 0 !important; }
}

/* ===========================
   PREMIUM AUTH FORMS
   =========================== */

/* M-TEH Input Field */
.M-TEH-field-wrap {
    position: relative;
    margin-bottom: 0.9rem;
}
.M-TEH-field-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.M-TEH-input {
    width: 100%;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: 14px !important;
    color: #fff !important;
    font-size: 1rem;
    padding: 0.7rem 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
    box-shadow: none !important;
}
.M-TEH-input::placeholder {
    color: rgba(148,163,184,0.4);
    font-size: 0.95rem;
}
.M-TEH-input:focus {
    background: rgba(139, 92, 246, 0.07) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), 0 2px 12px rgba(139, 92, 246, 0.12) !important;
}
.M-TEH-input.is-invalid {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12) !important;
}
.M-TEH-field-error {
    font-size: 0.8rem;
    color: #f43f5e;
    margin-top: 0.35rem;
    display: block;
}

/* Checkbox */
.M-TEH-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 6px !important;
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
    background: rgba(255,255,255,0.04) !important;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}

/* Google Button (improved) */
.M-TEH-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 14px;
    background: #fff;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.M-TEH-google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    color: #1a1a1a;
}

/* Divider с текстом */
.M-TEH-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a5568;
    font-size: 0.85rem;
}
.M-TEH-divider::before,
.M-TEH-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* Also apply M-TEH-input styles to signup page fields */
.site-signup .form-control,
.site-login .form-control {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: 14px !important;
    color: #fff !important;
    padding: 0.85rem 1.2rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-signup .form-control:focus,
.site-login .form-control:focus {
    background: rgba(139, 92, 246, 0.07) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
}
.site-signup .form-label,
.site-login .form-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

@media (max-width: 575px) {
    /* Auth form: full-width Google button container */
    .M-TEH-google-btn { padding: 0.75rem 1rem; font-size: 0.9rem; }
}

/* ===========================
   LOGIN — сплит-экран
   =========================== */
.login-shell { position: relative; display: flex; min-height: calc(100vh - 72px); }
.login-brand {
    position: relative;
    overflow: hidden;
    flex: 0 0 44%;
    max-width: 620px;
    background: linear-gradient(165deg, #1b0f3d 0%, #0a0620 60%, #020617 100%);
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 64px;
}
.login-brand-grid {
    position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: linear-gradient(rgba(139,92,246,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(139,92,246,.06) 1px, transparent 1px);
    background-size: 64px 64px;
}
.login-brand-glow {
    position: absolute; width: 480px; height: 480px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(139,92,246,.28), transparent 68%); filter: blur(20px); top: -160px; left: -140px;
}
.login-brand-glow2 {
    position: absolute; width: 400px; height: 400px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(217,249,157,.10), transparent 70%); filter: blur(30px); bottom: -140px; right: -90px;
}
.login-brand-mid { position: relative; max-width: 400px; }
.login-brand-mid h1 { font-size: 2.15rem; font-weight: 800; line-height: 1.18; letter-spacing: -.02em; margin: 0 0 16px; color: #fff; }
.login-brand-mid p { color: var(--text-secondary); font-size: .95rem; line-height: 1.6; margin: 0; }

.login-flow { position: relative; margin-top: 34px; height: 150px; }
.login-flow svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-flow .node {
    position: absolute; width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
}
.login-flow .node svg { width: 20px; height: 20px; stroke: var(--accent-secondary); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-flow .n1 { top: 6px; left: 0; }
.login-flow .n2 { top: 70px; left: 150px; background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.3); }
.login-flow .n2 svg { stroke: #fff; }
.login-flow .n3 { top: 0; left: 300px; }
.login-flow .n4 { top: 88px; left: 355px; }

.login-brand-foot { position: relative; display: flex; align-items: center; gap: 26px; color: #5b6a85; font-size: .78rem; margin-top: 40px; }
.login-brand-foot b { color: #fff; font-size: 1.05rem; font-weight: 800; display: block; }
.login-brand-foot span { display: block; margin-top: 2px; }

.login-auth { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-auth-col { width: 100%; max-width: 360px; }
.login-auth-col h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px; color: #fff; }
.login-auth-col .login-sub { color: var(--text-secondary); font-size: .86rem; margin: 0 0 26px; }

/* Строка внешней авторизации (Telegram, TON) — единый нейтральный контрол:
   не бренд-цвет, тон формы, акцент только в стрелке при наведении. Так оба
   способа входа выглядят как один и тот же тип контрола, а не два разных стиля. */
.auth-row {
    display: flex; align-items: center; gap: 11px; width: 100%; padding: .72rem .9rem;
    border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(139,92,246,.18);
    text-decoration: none; transition: border-color .2s ease, background .2s ease; cursor: pointer;
}
.auth-row:hover { background: rgba(255,255,255,.06); border-color: rgba(139,92,246,.32); }
.auth-row-badge { width: 26px; height: 26px; border-radius: 9px; background: rgba(255,255,255,.09); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-row-badge svg { width: 14px; height: 14px; fill: #e2e8f0; }
.auth-row-text { flex: 1; text-align: left; font-size: .9rem; font-weight: 600; color: #fff; }
.auth-row-text small { display: block; font-size: .72rem; font-weight: 500; color: var(--text-secondary); margin-top: 1px; }
.auth-row-arrow { width: 14px; height: 14px; stroke: #5b6a85; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.login-other-toggle {
    text-align: center; color: #5b6a85; font-size: .78rem; font-weight: 600; display: flex;
    align-items: center; justify-content: center; gap: 5px; background: none; border: none; width: 100%; padding: .4rem; cursor: pointer;
}
.login-other-toggle svg { width: 12px; height: 12px; stroke: #5b6a85; fill: none; stroke-width: 2; transition: transform .2s ease; }
.login-other-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (max-width: 991px) {
    .login-brand { display: none; }
}
@media (max-width: 575px) {
    .login-auth { padding: 24px 18px; }
}

/* ===========================
   ВЫБОР ПРОДУКТА — сплит на две карточки
   =========================== */
.choose-shell { position: relative; display: flex; flex-direction: column; min-height: calc(100vh - 72px); }
.choose-head { text-align: center; padding: 44px 24px 28px; }
.choose-head h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; color: #fff; }
.choose-head p { color: var(--text-secondary); font-size: .92rem; margin: 0; }

.choose-paths { position: relative; flex: 1; display: flex; }
.choose-path {
    position: relative; overflow: hidden; flex: 1; display: flex; flex-direction: column;
    padding: 44px 64px 48px; border-right: 1px solid var(--card-border);
}
.choose-path:last-child { border-right: none; }
.choose-path-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; top: -140px; filter: blur(30px); pointer-events: none; }
.choose-path.api .choose-path-glow { background: radial-gradient(circle, rgba(139,92,246,.22), transparent 70%); left: -100px; }
.choose-path.tg .choose-path-glow { background: radial-gradient(circle, rgba(34,158,217,.20), transparent 70%); right: -100px; }

.choose-path-icon { position: relative; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.choose-path.api .choose-path-icon { background: rgba(139,92,246,.14); border: 1px solid rgba(139,92,246,.3); }
.choose-path.tg .choose-path-icon { background: rgba(34,158,217,.14); border: 1px solid rgba(34,158,217,.3); }
.choose-path-icon svg { width: 26px; height: 26px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.choose-path.api .choose-path-icon svg { stroke: var(--accent); }
.choose-path.tg .choose-path-icon svg { stroke: #229ED9; }

.choose-path h2 { position: relative; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 10px; max-width: 380px; color: #fff; }
.choose-path .choose-desc { position: relative; color: var(--text-secondary); font-size: .92rem; line-height: 1.6; margin: 0 0 26px; max-width: 380px; }

.choose-feat { position: relative; display: flex; flex-direction: column; gap: 12px; margin-bottom: auto; max-width: 380px; }
.choose-feat div { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: #fff; }
.choose-feat svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.choose-path.api .choose-feat svg { stroke: var(--accent-secondary); }
.choose-path.tg .choose-feat svg { stroke: #229ED9; }

.choose-cta {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 380px;
    padding: .85rem 1rem; border-radius: 13px; color: #fff; font-weight: 700; font-size: .92rem; margin-top: 30px; text-decoration: none;
    transition: filter .2s ease;
}
.choose-cta:hover { color: #fff; filter: brightness(1.1); }
.choose-path.api .choose-cta { background: linear-gradient(135deg, var(--accent), #6d28d9); box-shadow: 0 14px 30px -10px rgba(139,92,246,.55); }
.choose-path.tg .choose-cta { background: linear-gradient(135deg, #2AABEE, #229ED9); box-shadow: 0 14px 30px -10px rgba(34,158,217,.55); }
.choose-cta svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.choose-orbadge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4;
    min-width: 44px; height: 44px; padding: 0 8px; border-radius: 999px; background: #0a0f1f; border: 1px solid var(--card-border);
    display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: #5b6a85;
    white-space: nowrap; text-transform: lowercase;
}
.choose-ordiv { display: none; }

.choose-foot { position: relative; text-align: center; padding: 24px; color: var(--text-secondary); font-size: .84rem; }
.choose-foot a { color: var(--accent-secondary); font-weight: 700; }

@media (max-width: 767px) {
    .choose-paths { flex-direction: column; gap: 16px; padding: 0 18px 20px; }
    .choose-path { border-right: none; border: 1px solid var(--card-border); border-radius: 20px; padding: 26px 22px; }
    .choose-orbadge { display: none; }
    .choose-ordiv {
        display: flex; align-items: center; gap: 12px; color: #5b6a85; font-size: .78rem; margin: 0 18px;
    }
    .choose-ordiv::before, .choose-ordiv::after { content: ''; flex: 1; height: 1px; background: var(--card-border); }
    .choose-path h2 { font-size: 1.2rem; }
    .choose-path-icon { width: 48px; height: 48px; margin-bottom: 18px; }
    .choose-path-icon svg { width: 22px; height: 22px; }
}

/* ── Home: added sections (pricing model / transparency / faq / cta) ───────── */
.mh-band {
    position: relative;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    background-color: #060615;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.mh-band + .mh-band { border-top: none; }
.mh-band + .mh-band.mh-cta { border-top: 1px solid var(--card-border); }
.mh-band--pricing { background-image: url('../img/mh-bg-pricing.svg'); }
.mh-band--transp  { background-image: url('../img/mh-bg-transp.svg'); }
.mh-band--faq     { background-image: url('../img/mh-bg-faq.svg'); }

/* pricing section: keep heading + table on one centered axis */
.mh-band--pricing .container { text-align: center; }
.mh-band--pricing .mh-lead { margin-left: auto; margin-right: auto; }

.mh-kicker {
    display: inline-block;
    font-size: .65rem; font-weight: 700; letter-spacing: .22em;
    text-transform: uppercase; color: rgba(129, 140, 248, .65);
    margin-bottom: 1rem;
}
.mh-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.02em;
    margin: 0 0 .8rem;
}
.mh-lead {
    font-size: .92rem; color: rgba(255, 255, 255, .45); line-height: 1.7;
    max-width: 620px; margin: 0 0 2.4rem;
}

/* spec table */
.mh-spec {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(4px);
}
.mh-spec-row {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(139, 92, 246, .09);
}
.mh-spec-row:last-child { border-bottom: none; }
.mh-spec-key { font-size: .9rem; color: rgba(255, 255, 255, .75); }
.mh-spec-val {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: .82rem; color: var(--text-secondary); text-align: right;
}
.mh-spec-val.is-free { color: var(--accent-secondary); }

/* transparency invoice card */
.mh-invoice {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 28px;
    backdrop-filter: blur(4px);
}
.mh-invoice-label {
    font-size: .62rem; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: rgba(255, 255, 255, .3);
    margin-bottom: 16px;
}
.mh-invoice-row {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 11px 0; border-bottom: 1px solid rgba(139, 92, 246, .09);
    font-size: .86rem; color: rgba(255, 255, 255, .72);
}
.mh-invoice-row .num { font-family: ui-monospace, Menlo, monospace; color: var(--text-secondary); }
.mh-invoice-row.is-discount, .mh-invoice-row.is-discount .num { color: var(--accent-secondary); }
.mh-invoice-total {
    display: flex; justify-content: space-between; gap: 16px;
    padding-top: 16px; font-size: .98rem; font-weight: 800; color: #fff;
}
.mh-invoice-total .num { font-family: ui-monospace, Menlo, monospace; }
.mh-invoice-foot {
    margin-top: 10px; font-size: .64rem; color: rgba(255, 255, 255, .28);
    font-family: ui-monospace, Menlo, monospace;
}

/* faq */
.mh-faq-item { padding: 22px 0; border-top: 1px solid var(--card-border); }
.mh-faq-item:last-child { border-bottom: 1px solid var(--card-border); }
.mh-faq-q { font-size: 1.02rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.mh-faq-a { font-size: .86rem; color: rgba(255, 255, 255, .5); line-height: 1.65; }

/* final cta */
.mh-cta {
    text-align: center;
    background-image: url('../img/mh-bg-cta.svg');
}
.mh-cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900; color: #fff; letter-spacing: -.03em; line-height: 1.1;
    margin: 0 0 1rem;
}
.mh-cta-desc { font-size: .95rem; color: rgba(255, 255, 255, .5); margin: 0 0 2rem; }
.mh-cta-note {
    margin-top: 1.2rem; font-size: .72rem; color: rgba(255, 255, 255, .3);
    font-family: ui-monospace, Menlo, monospace;
}

@media (max-width: 767px) {
    .mh-spec-row { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; }
    .mh-spec-val { text-align: left; }
    .mh-invoice { padding: 22px 20px; }
}

/* ══════════════════════════════════════════
   MOBILE MENU — slide-in offcanvas (< md)
   ══════════════════════════════════════════ */
.mnav {
    --mnav-bg: linear-gradient(180deg, rgba(10, 7, 24, 0.98), rgba(4, 4, 12, 0.98));
    width: min(87vw, 380px);
    background: #05041a;
    background: var(--mnav-bg);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    border-inline-start: 1px solid rgba(139, 92, 246, 0.16);
    color: var(--text-primary);
}
.mnav .offcanvas-body.mnav-body { padding: 0.5rem 1.1rem 1.75rem; overflow-y: auto; }

.mnav-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1.05rem 1.1rem 0.95rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}
.mnav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: #fff;
}
.mnav-close {
    margin-inline-start: auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.2s, color 0.2s;
}
.mnav-close:hover { background: rgba(139, 92, 246, 0.22); color: #fff; }

.mnav-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(139, 92, 246, 0.7);
    padding: 0 0.4rem;
    margin: 1.5rem 0 0.5rem;
}
.mnav-label:first-child { margin-top: 1rem; }

.mnav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 0.85rem 0.7rem;
    border-radius: 14px;
    font-size: 1.02rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.82);
    text-decoration: none;
    border: 1px solid transparent;
    background: none;
    text-align: start;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.mnav-link:hover, .mnav-link:focus {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.28);
    color: #fff;
}
.mnav-ic {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent);
    font-size: 0.9rem;
}
.mnav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.95rem 1.4rem;
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #08040f;
    background: linear-gradient(120deg, var(--accent-secondary), #b8f06a);
    box-shadow: 0 12px 34px -12px rgba(217, 249, 157, 0.45);
    transition: transform 0.18s, box-shadow 0.25s;
}
.mnav-cta:hover {
    transform: translateY(-1px);
    color: #08040f;
    box-shadow: 0 16px 42px -12px rgba(217, 249, 157, 0.6);
}

.mnav-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem 0.4rem 0;
}
.mnav-lang {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.16);
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.mnav-lang:hover { background: rgba(139, 92, 246, 0.2); color: #fff; }
.mnav-lang.is-active {
    background: rgba(139, 92, 246, 0.24);
    color: var(--accent-secondary);
    border-color: rgba(139, 92, 246, 0.5);
}

.mnav.show .mnav-label,
.mnav.show .mnav-link,
.mnav.show .mnav-cta,
.mnav.show .mnav-langs {
    animation: mnav-in 0.34s cubic-bezier(0.22, 1, 0.32, 1) both;
}
.mnav.show .mnav-body > *:nth-child(2) { animation-delay: 0.03s; }
.mnav.show .mnav-body > *:nth-child(3) { animation-delay: 0.06s; }
.mnav.show .mnav-body > *:nth-child(4) { animation-delay: 0.09s; }
.mnav.show .mnav-body > *:nth-child(5) { animation-delay: 0.12s; }
.mnav.show .mnav-body > *:nth-child(6) { animation-delay: 0.15s; }
.mnav.show .mnav-body > *:nth-child(n+7) { animation-delay: 0.18s; }
@keyframes mnav-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}