/* ======================================================================
   OLUULAA SYSTEMS — LANDING V2 (Dark Luxury)
   Design DNA: Linear.app + Stripe.com + Raycast.com + Tiimuu.mn
   Focus: AI-first fintech for pawnshops. "Амар амгалан" mood.
   Only used by src/index.html (v2). Old design → src/index-legacy.html.
   ====================================================================== */

/* ─── Reset + tokens ──────────────────────────────────────────────────── */
:root {
    --bg: #0a0b0f;                    /* base — deep space charcoal */
    --bg-2: #101218;                  /* elevated surface */
    --bg-3: #171a22;                  /* card / bento */
    --line: rgba(255, 255, 255, 0.08); /* subtle borders */
    --line-strong: rgba(255, 255, 255, 0.14);
    --ink: #f5f6f8;                   /* primary text */
    --ink-dim: #a3a8b4;               /* secondary */
    --ink-mute: #6b7180;              /* tertiary */

    /* Accent — Emerald + Gold + Neon Blue (Luxury tri-tone) */
    --accent: #10b981;                /* emerald — success/growth */
    --accent-2: #f9d71c;              /* signature gold */
    --accent-3: #6366f1;              /* indigo — AI */

    /* Semantic gradients */
    --grad-hero: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.20), transparent 60%),
                 radial-gradient(ellipse 60% 40% at 20% 100%, rgba(16,185,129,0.15), transparent 60%),
                 radial-gradient(ellipse 40% 30% at 80% 80%, rgba(249,215,28,0.10), transparent 60%);
    --grad-text: linear-gradient(120deg, #ffffff 0%, #a3a8b4 100%);
    --grad-cta: linear-gradient(135deg, #f9d71c 0%, #eab308 100%);

    --radius: 12px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 60px -10px rgba(99, 102, 241, 0.25);
    --shadow-card: 0 1px 0 rgba(255,255,255,0.05) inset, 0 20px 40px -20px rgba(0,0,0,0.4);
    --shadow-lift: 0 4px 20px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.08) inset;

    --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'SF Pro Display', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Glassmorphism helper — Linear/Stripe усны шилэн эффект */
.glass {
    background: rgba(23, 26, 34, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid var(--line);
}

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

/* ─── Fixed header (Linear pattern) ──────────────────────────────────── */
.l2-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 14px 0;
    background: rgba(10, 11, 15, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.l2-header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 0 24px; max-width: 1360px; margin: 0 auto; }
.l2-brand { display: flex; align-items: center; }
.l2-brand .site-logo-svg { height: 44px; width: auto; display: block; overflow: visible; }
/* Лого өнгөний SSOT — О эмблем ба текстийг тус тусад нь CSS-ээр удирдана.
   Default (footer, бусад хуудас): Emerald тусгалтай О + Slate-100 текст. */
.logo-o { fill: #0D9488; transition: fill 0.2s ease; }
.logo-text { fill: #ffffff; }
/* Header — Dark Slate дэвсгэр дээр цэвэр цагаанаар "Elite" харагдана, glow унтарна */
.l2-header .logo-o { fill: #ffffff; filter: none !important; }
.l2-header .logo-text { fill: #ffffff; }
.l2-brand-mark {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-2) 0%, #b58900 100%);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #0a0b0f; font-size: 13px; letter-spacing: -0.02em;
    box-shadow: 0 4px 12px -2px rgba(249, 215, 28, 0.35);
}
.l2-nav { display: flex; align-items: center; justify-self: center; gap: 32px; }
.l2-nav a {
    font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.55);
    transition: color 0.15s ease;
    position: relative; padding-bottom: 4px;
}
.l2-nav a:hover { color: #ffffff; }
.l2-nav a::after {
    content: ''; position: absolute; bottom: -2px; left: 20%; right: 20%;
    height: 2px; background: var(--accent, #10b981); border-radius: 1px;
    transform: scaleX(0); transition: transform 0.2s ease;
}
.l2-nav a:hover::after { transform: scaleX(1); }

/* МЭРГЭЖИЛТЭН — Expert Elite: 100% цагаан opacity (бусад цэс 55%), Emerald
   verified dot зүүн талд, letter-spacing tracking (Elite luxury). Ломбардны
   эзэнд "professional" мэдрэмж, нягтланд "priority" сэтгэгдэл өгнө. */
.l2-nav a.l2-nav-expert {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.06em;
    display: inline-flex; align-items: center; gap: 6px;
    position: relative;   /* preview absolute-ыг барих anchor */
}

/* Expert preview — Slide 3 "Expert Woman" видеог жижигхэн thumbnail-т
   hover-т үзүүлнэ. Default hidden + fade+slide 0.35s cubic-bezier luxury.
   Preview 220×140px, top: 100% + 14px, deep slate frame + emerald edge. */
.l2-nav-expert-preview {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 220px; height: 140px;
    transform: translate(-50%, -6px);
    background: #0F172A;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    box-shadow:
        0 20px 40px -12px rgba(0, 0, 0, 0.6),
        0 0 24px -4px rgba(16, 185, 129, 0.25);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 60;
}
.l2-nav-expert-preview video {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
/* Preview дээд ирмэгт жижигхэн треугольник (tooltip pointer luxury) */
.l2-nav-expert-preview::before {
    content: '';
    position: absolute; top: -6px; left: 50%;
    width: 12px; height: 12px;
    transform: translateX(-50%) rotate(45deg);
    background: #0F172A;
    border-left: 1px solid rgba(16, 185, 129, 0.25);
    border-top: 1px solid rgba(16, 185, 129, 0.25);
    z-index: -1;
}
.l2-nav a.l2-nav-expert:hover .l2-nav-expert-preview,
.l2-nav a.l2-nav-expert:focus-visible .l2-nav-expert-preview {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

/* Mobile — hover UX байхгүй тул preview бүрэн нуух */
@media (max-width: 900px) {
    .l2-nav-expert-preview { display: none; }
}
.l2-nav-expert-dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent, #10b981);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    /* Verified elite pulse — subtle, sub-conscious "живой" мэдрэмж */
    animation: expertPulse 2.4s ease-in-out infinite;
}
@keyframes expertPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.85); }
}
@media (prefers-reduced-motion: reduce) {
    .l2-nav-expert-dot { animation: none; }
}
.l2-nav-actions { display: flex; align-items: center; gap: 10px; }

/* ─── Language switch flags ────────────────────────────────────────────── */
.l2-lang-switch {
    display: flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.06); border-radius: 8px; padding: 3px;
}
.l2-lang-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 26px; border: none; background: transparent;
    border-radius: 6px; cursor: pointer; opacity: 0.45;
    transition: opacity 0.2s, background 0.2s;
}
.l2-lang-btn:hover { opacity: 0.75; background: rgba(255,255,255,0.08); }
.l2-lang-btn.is-active { opacity: 1; background: rgba(255,255,255,0.12); }
.l2-lang-btn svg { display: block; border-radius: 2px; }
.l2-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 600;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.l2-btn-ghost { color: var(--ink-dim); }
.l2-btn-ghost:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.l2-btn-primary {
    background: var(--ink); color: var(--bg);
    box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 4px 12px -2px rgba(255,255,255,0.15);
}
.l2-btn-primary:hover { background: #ffffff; transform: translateY(-1px); }
.l2-btn-gold {
    background: var(--grad-cta); color: #0a0b0f;
    box-shadow: 0 4px 20px -4px rgba(249, 215, 28, 0.4), 0 1px 0 rgba(255,255,255,0.3) inset;
    font-weight: 700;
}
.l2-btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 24px -4px rgba(249, 215, 28, 0.55), 0 1px 0 rgba(255,255,255,0.4) inset; }
.l2-btn-lg { padding: 12px 22px; font-size: 14px; }
.l2-btn-emerald-outline {
    background: transparent; color: #10b981;
    border: 1.5px solid rgba(16,185,129,0.35);
}
.l2-btn-emerald-outline:hover {
    border-color: #10b981; background: rgba(16,185,129,0.06);
    transform: translateY(-1px);
}

/* Mobile hamburger */
.l2-nav-toggle { display: none; padding: 8px; }
@media (max-width: 900px) {
    .l2-header-inner { display: flex; align-items: center; justify-content: space-between; }
    .l2-nav { display: none; }
    .l2-nav-actions { margin-left: auto; margin-right: 8px; }
    .l2-nav-toggle { display: block; }
    .l2-nav.open {
        display: flex; flex-direction: column; align-items: flex-start;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--line);
        padding: 20px 24px; gap: 16px;
    }
    .l2-nav.open a { color: rgba(255,255,255,0.7); }
    .l2-nav.open a:hover { color: #fff; }
    .l2-nav.open a::after { display: none; }
}

/* ─── Hero section ───────────────────────────────────────────────────── */
.l2-hero {
    position: relative;
    padding: 140px 24px 100px;
    overflow: hidden;
    text-align: center;
    background: var(--grad-hero), var(--bg);
}
/* Тор фон — Stripe pattern */
.l2-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 70%);
    pointer-events: none;
}
/* Hero eyebrow badge — 3D тунгалаг шилэн (glassmorphism) хэлбэр.
   Даруу slate суурин дээр backdrop-blur + top-edge highlight + drop shadow
   ашиглан нааш "хөвж" харагдах depth effect. Apple/Linear/Vercel хэлбэр. */
.l2-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 100px;
    /* Layered background: vertical gradient depth (top brighter) */
    background:
        linear-gradient(180deg, rgba(51, 65, 85, 0.55) 0%, rgba(30, 41, 59, 0.45) 100%);
    /* True glass — доор нь backdrop давхарга бүдэгрүүлж, saturate тодруулна */
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    /* 4-давхарга shadow: top edge highlight + bottom inner shadow + drop lift */
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,   /* дээд ирмэгийн гэрэл тусалт */
        0 -1px 0 rgba(0, 0, 0, 0.2) inset,        /* доод ирмэгийн бүдгэрэлт */
        0 10px 24px -10px rgba(0, 0, 0, 0.5),     /* хөвсөн үзэгдэх lift */
        0 2px 6px -2px rgba(0, 0, 0, 0.3);
    color: var(--ink-dim);
    font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
    margin-bottom: 32px;
    position: relative; z-index: 2;
    /* Micro-interaction: hover-т илүү лиф */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.l2-hero-eyebrow:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.14) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset,
        0 14px 28px -10px rgba(0, 0, 0, 0.55),
        0 2px 6px -2px rgba(0, 0, 0, 0.35);
}
.l2-hero-eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #34d399, var(--accent));
    /* Emerald glow — жижиг, тайван, гэвч 3D бөмбөрцөг хэлбэр */
    box-shadow:
        0 0 8px rgba(16, 185, 129, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.l2-hero h1 {
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    max-width: 920px; margin: 0 auto;
    position: relative; z-index: 2;
}
.l2-hero h1 .accent {
    background: linear-gradient(120deg, var(--accent-3) 0%, var(--accent) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.l2-hero-sub {
    margin: 24px auto 0; max-width: 620px;
    font-size: clamp(15px, 1.4vw, 18px);
    color: var(--ink-dim); line-height: 1.6;
    position: relative; z-index: 2;
}
.l2-hero-cta {
    margin-top: 40px; display: flex; gap: 12px; justify-content: center;
    flex-wrap: wrap;
    position: relative; z-index: 2;
}

/* Hero preview card — Linear/Stripe hero visual */
.l2-hero-preview {
    position: relative; z-index: 2;
    margin: 80px auto 0; max-width: 1080px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(23,26,34,0.9), rgba(16,18,24,0.9));
    box-shadow: var(--shadow-glow), 0 20px 60px -20px rgba(0,0,0,0.5);
    overflow: hidden;
}
.l2-hero-preview::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99,102,241,0.35), transparent 40%, transparent 60%, rgba(16,185,129,0.3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}
.l2-hero-preview-topbar {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 18px; border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
}
/* Mac-style traffic lights — Linear/Vercel хэлбэрт монохром, subtle.
   Цоглог улаан/шар/ногоон нь preview-т анхаарлыг татаад "гала" харагдана.
   Оронд нь бага opacity-тай нэг өнгө — browser chrome-ийн зөвхөн санааг үлдээнэ. */
.l2-hero-preview-topbar .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.l2-hero-preview-topbar .dot-r,
.l2-hero-preview-topbar .dot-y,
.l2-hero-preview-topbar .dot-g { /* legacy сlass үлдээв, өнгө нэгэн адил */ }
.l2-hero-preview-topbar .addr {
    margin-left: 14px; font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-mute);
}
.l2-hero-preview-body { padding: 40px 32px; }
.l2-hero-preview-body .stat {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    padding-bottom: 30px; border-bottom: 1px solid var(--line);
    margin-bottom: 30px;
}
.l2-hero-preview-body .stat-item {
    display: flex; flex-direction: column; gap: 4px;
}
.l2-hero-preview-body .stat-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--ink-mute); font-weight: 600;
}
.l2-hero-preview-body .stat-value {
    font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.l2-hero-preview-body .stat-value.accent { color: var(--accent); }
.l2-hero-preview-body .stat-delta {
    font-size: 12px; color: var(--accent); font-weight: 600;
}
.l2-hero-preview-scan {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-mono); font-size: 13px;
    color: var(--ink-dim); flex-wrap: wrap;
}
.l2-hero-preview-scan .status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 6px;
    background: rgba(16,185,129,0.1); color: var(--accent);
    font-weight: 600;
}

/* ─── Section base ───────────────────────────────────────────────────── */
.l2-section { padding: 100px 0; position: relative; }
/* Section eyebrow — Stripe/Ramp/Mercury түвшний banking-professional flat label.
   Ердийн navigation aid — hero glass badge-с ялгарч, section title-т нүд өгнө.
   5 section дээр ижил subtle gray — content өөрөө ялгаа үүрэг (Bento icon,
   Migration gradient, Pricing featured border гэх мэт). */
.l2-section-eyebrow {
    display: inline-block; padding: 4px 12px; border-radius: 100px;
    background: rgba(255,255,255,0.03);          /* маш нимгэн pill */
    border: 1px solid rgba(255,255,255,0.06);    /* бараг үл харагдах хүрээ */
    color: var(--ink-mute);                       /* #6b7180 — subtle gray */
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.l2-section-title {
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
    max-width: 720px;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.l2-section-sub {
    margin-top: 16px; max-width: 620px;
    color: var(--ink-dim); font-size: 16px; line-height: 1.65;
}
.l2-section-head { text-align: center; margin: 0 auto 60px; max-width: 820px; }
.l2-section-head .l2-section-title,
.l2-section-head .l2-section-sub { margin-left: auto; margin-right: auto; }

/* ─── Bento box (Tiimuu/Vercel/Linear pattern) ───────────────────────── */
.l2-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.l2-bento-card {
    position: relative;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    overflow: hidden;
    transition:
        border-color 0.35s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease;
    will-change: transform;
}
.l2-bento-card:hover {
    border-color: rgba(255,255,255,0.20);
    transform: translateY(-5px) scale(1.006);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.07),
        0 24px 64px -16px rgba(0,0,0,0.55),
        0 8px 24px -8px rgba(99,102,241,0.18);
}
/* Cursor-т дагасан spotlight — Linear/Vercel pattern */
.l2-bento-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(circle 260px at var(--mx,50%) var(--my,120%), rgba(255,255,255,0.09), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.l2-bento-card:hover::before { opacity: 1; }
/* Emerald→gold эргэлдэх зураас — border-radius-ийг бүрэн дагана */
@property --ba {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes cardBorderSpin {
    to { --ba: 360deg; }
}
.l2-bento-card::after {
    content: ''; position: absolute;
    inset: 0; border-radius: inherit; padding: 1.5px;
    background: conic-gradient(from var(--ba), rgba(16,185,129,0) 0%, #10b981 18%, #f9d71c 45%, #10b981 72%, rgba(16,185,129,0) 80%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.l2-bento-card:hover::after { opacity: 0; }

/* Layout: 2×3 асимметрик — эхний card 3 col, 2 дахь 3 col, доор 3 card 2×3 */
.l2-bento-card.span-3 { grid-column: span 3; }
.l2-bento-card.span-2 { grid-column: span 2; }
.l2-bento-card.span-6 { grid-column: span 6; }
@media (max-width: 900px) {
    /* Container padding-ыг цуцлаж, scroll container дүүрэн өргөнтэй болгоно */
    .l2-bento {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 14px;
        margin: 0 -24px;
        padding: 4px 24px 24px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        /* grid override */
        grid-template-columns: unset;
    }
    .l2-bento::-webkit-scrollbar { display: none; }
    /* Карт бүр viewport-ын 88% — 12% нь дараагийн картын цухуйсан зах */
    .l2-bento-card,
    .l2-bento-card.span-3,
    .l2-bento-card.span-2,
    .l2-bento-card.span-6 {
        flex: 0 0 calc(100vw - 72px);
        width: calc(100vw - 72px);
        grid-column: unset;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

.l2-bento-icon,
.l2-bento-icon.emerald,
.l2-bento-icon.gold {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.35);
    margin-bottom: 20px;
}
.l2-bento-card h3 {
    font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
    line-height: 1.3; margin-bottom: 8px;
}
.l2-bento-card p {
    color: var(--ink-dim); font-size: 14px; line-height: 1.6;
}
.l2-bento-visual {
    margin-top: 24px; padding: 18px;
    background: rgba(0,0,0,0.35); border-radius: 12px;
    border: 1px solid var(--line);
    font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim);
    line-height: 1.6;
    /* Terminal текст нимгэн light-weight + emerald soft glow (Authority feel).
       Mono шрифт-т font-weight 300 нь "цэвэрхэн, техник" мэдрэмж өгнө. */
    font-weight: 300;
    letter-spacing: 0.2px;
}
.l2-bento-visual .k {
    color: rgba(16, 185, 129, 0.7);
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.25);
    font-weight: 400;
}
.l2-bento-visual .v {
    color: rgba(226, 232, 240, 0.85);
    text-shadow: 0 0 4px rgba(16, 185, 129, 0.12);
}
.l2-bento-visual .ok {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.45);
    font-weight: 500;
}

/* ─── Migration Zero (шилжихэд 0₮) ────────────────────────────────────── */
.l2-migration {
    padding: 80px 40px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(99,102,241,0.06) 100%);
    border: 1px solid var(--line-strong);
    position: relative; overflow: hidden;
    text-align: center;
    transition: border-color 0.35s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
    will-change: transform;
}
.l2-migration::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 100% 60% at 50% 100%, rgba(16,185,129,0.15), transparent 60%);
    pointer-events: none;
}
.l2-migration h2 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
    max-width: 720px; margin: 0 auto;
    position: relative; z-index: 1;
}
.l2-migration .zero {
    display: inline-block;
    background: linear-gradient(120deg, var(--accent-2) 0%, #fde68a 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font-size: 1.4em; padding: 0 8px;
    font-weight: 900;
}
.l2-migration-sub {
    margin: 20px auto 32px; max-width: 560px;
    color: var(--ink-dim); font-size: 16px;
    position: relative; z-index: 1;
}
.l2-migration-perks {
    display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
    margin-top: 40px;
    position: relative; z-index: 1;
}
.l2-migration-perk {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 100px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--line);
    font-size: 13px; color: var(--ink); font-weight: 500;
}
.l2-migration-perk svg { color: var(--accent); flex-shrink: 0; }
.l2-migration:hover {
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-4px) scale(1.004);
    box-shadow: 0 24px 64px -16px rgba(0,0,0,0.45), 0 8px 24px -8px rgba(16,185,129,0.15);
}

/* ─── Institutional Gate hover ───────────────────────────────────────── */
.inst-gate {
    transition: border-color 0.35s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
    will-change: transform;
}
.inst-gate:hover {
    border-color: rgba(201,167,105,0.35) !important;
    transform: translateY(-4px) scale(1.004);
    box-shadow: 0 24px 64px -16px rgba(0,0,0,0.5), 0 8px 24px -8px rgba(201,167,105,0.12);
}

/* ─── Shared section hover spotlight — cursor дагах glow ─────────────── */
.l2-migration::after,
.l2-cta::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(circle 350px at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.06), transparent 60%);
    opacity: 0; transition: opacity 0.4s ease; pointer-events: none; z-index: 0;
}
.l2-migration:hover::after,
.l2-cta:hover::after { opacity: 1; }

/* ─── Pricing ─────────────────────────────────────────────────────────── */
.l2-pricing {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
    max-width: 880px; margin: 0 auto;
}
@media (max-width: 720px) { .l2-pricing { grid-template-columns: 1fr; } }

.l2-price-card {
    padding: 36px 32px; border-radius: var(--radius-lg);
    background: var(--bg-3); border: 1px solid var(--line);
    position: relative; overflow: hidden;
    /* Luxury Authority timing — Apple-style cubic-bezier, тайван 0.5s */
    transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shared "Luxury Line" pattern — .featured default active, regular hover-т идэвхжинэ.
   Default paused + opacity 0; .featured эсвэл :hover үед running + opacity 1.
   luxurySlide keyframe animations.css-т зарлагдсан. */
.l2-price-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg,
        rgba(16,185,129,0), #10b981 25%, #f9d71c 50%, #10b981 75%, rgba(16,185,129,0));
    background-size: 200% 100%;
    pointer-events: none;
    opacity: 0;
    animation: luxurySlide 10s ease-in-out infinite;
    animation-play-state: paused;
    /* Luxury glow transition — тайван 0.6s (High-end smoothness) */
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* "Мэргэжилтний сонголт" tag — Business картын дээд талд */
.l2-price-expert-tag { font-size:0.625rem; font-weight:700; letter-spacing:0.8px;
    text-transform:uppercase; color:#10b981; margin-bottom:10px; }

/* Featured card — default active state (Recommended). */
.l2-price-card.featured {
    background: linear-gradient(180deg, rgba(16,185,129,0.06), rgba(23,26,34,1));
    border-color: rgba(16,185,129,0.4);
}
.l2-price-card.featured::before {
    opacity: 1;
    animation-play-state: running;
}

/* Regular card hover — featured pattern-ыг зээлэн активчилна.
   .l2-price-card:hover шүүлт нь featured-т мөн хамаарна, гэвч featured
   default active тул өөрчлөгдөхгүй; regular card default idle-с ажиллана. */
.l2-price-card:hover {
    border-color: rgba(16,185,129,0.4);
    background: linear-gradient(180deg, rgba(16,185,129,0.06), rgba(23,26,34,1));
}
.l2-price-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

/* Parent group hover — non-featured card дээр hover хийхэд featured card
   идэвхээ түр буулгаж, "focus switch" үзүүлнэ. Modern browser :has()
   selector — Chrome 105+, Safari 15.4+, Firefox 121+. Дэмждэггүй хуучин
   хөтөчт featured хэвээр active (backward-safe).
   Deactivated featured нь БҮРЭН idle regular card-т мөнх ижил болно
   (opacity 0, border neutral) — "зузаан саарал зөрчил" арилна. */
.l2-pricing:has(.l2-price-card:not(.featured):hover) .l2-price-card.featured,
.l2-plans:has(.l2-price-card:not(.featured):hover) .l2-price-card.featured {
    background: var(--bg-3);
    border-color: var(--line);
}
.l2-pricing:has(.l2-price-card:not(.featured):hover) .l2-price-card.featured::before,
.l2-plans:has(.l2-price-card:not(.featured):hover) .l2-price-card.featured::before {
    /* Opacity 0 — бүрэн арилах. 0.15 үлдээсэн нь "саарал зузаан зураас"
       харагдаж, regular card default-тай зөрж байсныг зассан. Transition
       0.6s cubic-bezier тул snap болохгүй, тайван уусна. */
    opacity: 0;
    animation-play-state: paused;
}

/* ─── CTA state-swap — эцэг картын active state-с хамааран автомат синхрон.
   HTML-т class hardcoded (l2-btn-gold, l2-btn-emerald-outline) хэвээр,
   CSS override зөвхөн switch state-т нөлөөлнө (Authority "Active Parent
   Dependency" зарчим). Transition smooth (0.35s). ─── */
.l2-price-card .l2-btn-lg {
    /* Luxury Authority timing — 0.5s bg/color/border, 0.6s shadow, 0.4s transform.
       Apple cubic-bezier — smooth ease-in-out, "snappy" мэдрэмж арилна. */
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Deactivated featured card CTA — .l2-btn-gold-с .l2-btn-emerald-outline рүү. */
.l2-pricing:has(.l2-price-card:not(.featured):hover) .l2-price-card.featured .l2-btn-gold,
.l2-plans:has(.l2-price-card:not(.featured):hover) .l2-price-card.featured .l2-btn-gold,
.l2-pricing:has(.l2-price-card:not(.featured):hover) .l2-price-card.featured .l2-btn-gold:hover,
.l2-plans:has(.l2-price-card:not(.featured):hover) .l2-price-card.featured .l2-btn-gold:hover {
    background: transparent;
    color: #10b981;
    border: 1.5px solid rgba(16,185,129,0.35);
    box-shadow: none;
    font-weight: 600;
    transition: background 0.15s ease, color 0s, border-color 0.15s ease,
                box-shadow 0.15s ease, transform 0.15s ease;
}

/* Activated regular card CTA — .l2-btn-emerald-outline-с .l2-btn-gold рүү. */
.l2-pricing:has(.l2-price-card:not(.featured):hover)
    .l2-price-card:not(.featured):hover .l2-btn-emerald-outline,
.l2-plans:has(.l2-price-card:not(.featured):hover)
    .l2-price-card:not(.featured):hover .l2-btn-emerald-outline,
.l2-pricing:has(.l2-price-card:not(.featured):hover)
    .l2-price-card:not(.featured):hover .l2-btn-emerald-outline:hover,
.l2-plans:has(.l2-price-card:not(.featured):hover)
    .l2-price-card:not(.featured):hover .l2-btn-emerald-outline:hover {
    background: var(--grad-cta);
    color: #0a0b0f;
    border: 1.5px solid transparent;
    box-shadow: 0 4px 20px -4px rgba(249,215,28,0.4),
                0 1px 0 rgba(255,255,255,0.3) inset;
    font-weight: 700;
    transition: background 0.15s ease, color 0s, border-color 0.15s ease,
                box-shadow 0.15s ease, transform 0.15s ease;
}
.l2-price-name {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--ink-dim); margin-bottom: 12px;
}
.l2-price-desc {
    font-size: 14px; color: var(--ink-dim); margin-bottom: 24px;
    line-height: 1.55;
}
.l2-price-amount {
    display: flex; align-items: baseline; gap: 6px;
    margin-bottom: 8px;
}
.l2-price-amount .num {
    font-size: 42px; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
}
.l2-price-amount .unit { font-size: 14px; color: var(--ink-dim); font-weight: 500; }
.l2-price-note { font-size: 12px; color: var(--ink-mute); margin-bottom: 24px; }
.l2-price-feats { list-style: none; padding: 0; margin: 24px 0 32px; }
.l2-price-feats li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; font-size: 14px; color: var(--ink);
}
.l2-price-feats li svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
/* Эрэмбэ — эхний 3 үзүүлэлт тод, үлдсэн нь бүдэг. Захирлын нүд картын хамгийн
   үнэ цэнтэй зүйл дээр эхэлж буудна. */
.l2-price-feats li.is-key { font-weight: 700; color: var(--ink); }
.l2-price-feats li:not(.is-key) { color: var(--ink-dim); }
/* Featured (Business) карт — гол өнгө нь Gold тул түлхүүр чагт нь Gold */
.l2-price-card.featured .l2-price-feats li.is-key svg { color: var(--accent-2); }

/* ─── Plans (Үйлчилгээний түвшин — Starter/Professional/Enterprise) ─────
   .l2-pricing-тэй ЯГ ИЖИЛ .l2-price-card стиль ашиглана (SSOT, зөвхөн grid
   өргөнийг 3 багана болгосон). */
.l2-plans {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    max-width: 1080px; margin: 0 auto;
}
/* 1080px-с нарийн дэлгэцэнд 3 багана нь үзүүлэлтийн мөрийг таслах хэмжээнд
   шахагддаг тул нэг багана болно (үзүүлэлт бүр нэг мөрөнд багтах шаардлага). */
@media (max-width: 1080px) { .l2-plans { grid-template-columns: 1fr; max-width: 480px; } }
.l2-plans .l2-price-amount .num { font-size: 34px; }
.l2-plans .l2-price-feats { margin: 20px 0 8px; }
/* Нэг үзүүлэлт 2 мөрөнд сунжирахыг хориглоно — эрэмбэ алдагдаж, картууд
   тэгш бус өндөртэй болдог. Текст богино байхаар бичигдсэн; хэт нарийн
   дэлгэцэнд багасгаж багтаана. */
.l2-plans .l2-price-feats li {
    padding: 6px 0; font-size: 13.5px;
    align-items: center; white-space: nowrap;
}
.l2-plans .l2-price-feats li svg { margin-top: 0; }
.l2-plans .l2-price-feats li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ─── Accounting feature cards ────────────────────────────────────────── */
.l2-feat-card {
    background: var(--bg-3); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 28px 24px;
    transition: border-color .2s, box-shadow .2s;
}
.l2-feat-card:hover {
    border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}
.l2-feat-num {
    font-size: 2rem; font-weight: 800; color: var(--accent);
    letter-spacing: -1px; line-height: 1; margin-bottom: 12px;
}
.l2-feat-title {
    font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px;
}
.l2-feat-desc { font-size: 0.875rem; color: var(--ink-dim); line-height: 1.65; }

/* ─── Trust / Security row ────────────────────────────────────────────── */
.l2-trust {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px; text-align: center;
}
.l2-trust-item .num {
    font-size: 40px; font-weight: 800; letter-spacing: -0.02em;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    line-height: 1;
}
.l2-trust-item .lbl {
    margin-top: 8px; font-size: 13px; color: var(--ink-dim);
    font-weight: 500;
}

/* ─── Comparison table ────────────────────────────────────────────────── */
.l2-compare {
    background: var(--bg-3); border: 1px solid var(--line); border-radius: 20px;
    padding: 30px; overflow-x: auto;
}
.l2-compare table { width: 100%; border-collapse: collapse; }
.l2-compare th, .l2-compare td {
    padding: 14px 18px; text-align: left; font-size: 14px;
    border-bottom: 1px solid var(--line);
}
.l2-compare thead th {
    text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px;
    color: var(--ink-mute); font-weight: 700;
}
.l2-compare td:not(:first-child) { text-align: center; }
.l2-compare .col-us { color: var(--accent); font-weight: 600; }
.l2-compare .col-us-head { color: var(--accent-2); }
.l2-compare .col-other { color: var(--ink-mute); }
.l2-compare svg { display: inline-block; vertical-align: middle; }
.l2-compare .compare-section-row td {
    padding: 18px 18px 10px; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent); border-bottom: 1px solid var(--line-strong, rgba(255,255,255,0.12));
    background: rgba(255,255,255,0.02);
}
.l2-compare small { display: block; font-size: 11px; color: var(--ink-mute); font-weight: 400; margin-top: 2px; }

/* ─── Compare — mobile overflow засвар ──────────────────────────────── */
@media (max-width: 900px) {
    .l2-compare { padding: 20px; border-radius: 16px; }
    .l2-compare th, .l2-compare td { padding: 12px 14px; font-size: 13px; }
}
@media (max-width: 600px) {
    .l2-compare { padding: 12px; border-radius: 14px; }
    .l2-compare th, .l2-compare td {
        padding: 10px 10px; font-size: 12px;
        word-break: break-word;
    }
    .l2-compare thead th { font-size: 10px; letter-spacing: 0.04em; }
    .l2-compare .compare-section-row td { padding: 12px 10px 7px; font-size: 10px; }
    .l2-compare small { font-size: 10px; }
}

/* ─── CTA footer — Hybrid Strip Layout ───────────────────────────────── */
.l2-cta {
    padding: 72px 40px;
    background: #1a1d23;
    background-image: radial-gradient(ellipse 50% 80% at 30% 0%, rgba(16,185,129,0.12), transparent 60%);
    border-top: 1px solid rgba(16,185,129,0.15);
    border-bottom: 1px solid rgba(16,185,129,0.15);
    position: relative; overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.l2-cta:hover {
    border-color: rgba(16,185,129,0.3);
    box-shadow: 0 0 80px -20px rgba(16,185,129,0.1);
}
.l2-cta-grid {
    display: grid; grid-template-columns: 1fr 380px; gap: 48px;
    max-width: 1100px; margin: 0 auto; align-items: center;
}
.l2-cta-left { text-align: left; }
.l2-cta-eyebrow {
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: #10b981; margin-bottom: 14px;
}
.l2-cta h2 {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800; letter-spacing: -0.02em; line-height: 1.18;
    color: #f1f5f9; margin: 0;
}
.l2-cta p { margin: 16px 0 28px; color: #94a3b8; font-size: 15px; line-height: 1.7; max-width: 520px; }
/* Glassmorphism Feature Card */
.l2-cta-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px; padding: 28px 26px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
}
.l2-cta-card-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 22px; padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.l2-cta-card-badge {
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #10b981;
    background: rgba(16,185,129,0.1); padding: 4px 10px; border-radius: 6px;
}
.l2-cta-card-price {
    font-size: 2rem; font-weight: 800; color: #f1f5f9; letter-spacing: -0.02em;
}
.l2-cta-card-price small { font-size: 0.8125rem; font-weight: 500; color: #64748b; margin-left: 2px; }
.l2-cta-card-rows { display: flex; flex-direction: column; gap: 14px; }
.l2-cta-card-row {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.875rem; color: #cbd5e1; line-height: 1.5;
}
.l2-cta-card-row b { color: #f1f5f9; font-weight: 600; }
.l2-cta-card-check {
    flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px;
    background: rgba(16,185,129,0.12); color: #10b981;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; margin-top: 1px;
}
@media (max-width: 860px) {
    .l2-cta-grid { grid-template-columns: 1fr; gap: 32px; }
    .l2-cta-left { text-align: center; }
    .l2-cta p { margin-left: auto; margin-right: auto; }
    .l2-cta-left .reveal:last-child { display: flex; justify-content: center; }
    .l2-cta-card { max-width: 400px; margin: 0 auto; }
}

/* ─── Footer ──────────────────────────────────────────────────────────── */
.l2-footer {
    padding: 60px 24px 30px;
    background: #050609;
    border-top: 1px solid var(--line);
}
.l2-footer-inner {
    max-width: 1200px; margin: 0 auto;
    /* 5 багана: Brand (1.4) | Бүтээгдэхүүн | Ашиглах | Эрх зүй | Холбоо. Эрх зүй
       багана нэмэгдсэн тул grid тэнцвэрийг шинэчлэв. */
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.15fr; gap: 36px;
}
@media (max-width: 960px) {
    .l2-footer-inner { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
    .l2-footer-inner { grid-template-columns: 1fr 1fr; }
}
/* Багануудын гарчиг — Slate-500 саарал + weight 700 (Authority уур) */
.l2-footer h4 {
    font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.1em;                 /* Luxury minimalism — 0.5px илүү */
    color: #64748b;                        /* Slate-500 */
    font-weight: 700;
    margin-bottom: 14px;
}
.l2-footer ul { list-style: none; padding: 0; }
.l2-footer li {
    padding: 5px 0;
    font-size: 13px; color: var(--ink-dim);
    line-height: 1.55;
    letter-spacing: 0.02em;                /* Luxury minimalism tracking */
}
.l2-footer li a {
    font-size: 13px; color: var(--ink-dim);
    letter-spacing: 0.02em;
    transition: color 0.15s;
}
.l2-footer li a:hover { color: var(--ink); }

/* Contact list — icon текстийн зүүн талд нэг шугаманд jагссан (Luxury minimal).
   Бүх icon ижил Slate-500 stroke — SSOT (multi-color icon ХОРИГЛОСОН). */
.l2-footer-contact li {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0;
    flex-wrap: wrap;                        /* narrow-т baj mөр солино */
}
.l2-footer-icon {
    width: 16px; height: 16px;              /* 14→16px тод харагдана */
    flex-shrink: 0;
    color: #94a3b8;                         /* Slate-400 — icon SSOT color, ilүү тод */
    transition: color 0.15s ease;
    stroke-width: 2;
}
.l2-footer-contact li:hover .l2-footer-icon { color: var(--accent); }

/* Phone number — Monospace (Trust anchor), нэг мөрөнд заавал багтана */
.l2-footer-phone {
    font-family: 'SF Mono', 'JetBrains Mono', 'Roboto Mono', 'Menlo', 'Consolas', monospace !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Badge SSOT — PRO, 0₮, 24/7 SUPPORT бүгд ижил pill стандарт:
   height 20px, nariin border, dark bg, Emerald text default. */
.l2-footer-badge {
    display: inline-flex; align-items: center; justify-content: center;
    height: 20px;
    padding: 0 8px;
    margin-left: 8px;
    border-radius: 6px;
    border: 1px solid #334155;              /* Slate-700 nariин hurэ */
    background: rgba(15, 23, 42, 0.6);      /* deep slate soft */
    color: var(--accent);                    /* Emerald default */
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}
.l2-footer-badge.accent {
    /* .accent variant — "0₮" илүү тод emerald tint bg */
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--accent);
}
.l2-footer-brand { max-width: 320px; }
/* Footer лого — Header-ээс ~1.7x том (Платформын тунхаглал, Brand identity) */
.l2-footer-brand .site-logo-svg { height: 60px; }
.l2-footer-brand .l2-tagline {
    font-size: 11px; color: var(--ink-mute); letter-spacing: 0.02em;
    margin-top: 10px;
}
.l2-footer-brand p {
    color: var(--ink-mute); font-size: 13px; line-height: 1.6; margin: 12px 0 20px;
}
.l2-footer-copy {
    max-width: 1200px; margin: 40px auto 0;
    padding-top: 24px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 12px; color: var(--ink-mute);
}

/* ─── Auth-aware header (нэвтэрсэн хэрэглэгч) ─────────────────────────── */
.l2-user-pill {
    display: flex; align-items: center; gap: 8px;
}
.l2-user-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: #10b981; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; letter-spacing: 0;
}
.l2-user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l2-user-name {
    font-size: 13px; font-weight: 600; color: var(--ink);
    max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 600px) { .l2-user-name { display: none; } }

/* ─── Reveal animation (IntersectionObserver-т ажиллана) ─────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.show { opacity: 1; transform: translateY(0); }

/* ─── Reduced motion (хөдөлгөөн хязгаарлалт) ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .l2-bento-card::after,
    .l2-price-card::before { animation: none; }
    .reveal { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SLIDER — 3 слайд (Видео / Dashboard / Түншлэл)
   Autoplay 6s, cross-fade transition, keyboard + dots + arrows
   ═══════════════════════════════════════════════════════════════════ */
.l2-hero-slider {
    position: relative;
    /* Full-screen banner — Stripe/Linear стандарт.
       100vh — legacy fallback (эсвэл dvh дэмждэггүй хөтөч).
       100dvh — dynamic viewport (iOS Safari address bar, Android Chrome
       nav bar-с үл хамааран бодит харагдах хэсгийг барина). Гар утаст 100vh
       нь Safari-т хаягдалт өгдөг тул dvh заавал. */
    min-height: 100vh;
    height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: #0F172A;              /* Deep Slate — content ачаалахаас өмнөх байдал */
}
.l2-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 100px 8vw 90px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.8s ease, visibility 0s linear 0.8s, transform 0.8s ease;
    pointer-events: none;
}
.l2-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.8s ease, visibility 0s, transform 0.8s ease;
    pointer-events: auto;
}
/* Content хэсэг — text баруунд, media зүүнд (Slide 2 бол dashboard баруунд) */
.l2-slide .l2-slide-content {
    order: 1;
    z-index: 2;
    max-width: 620px;
    animation: none;
}
.l2-slide.is-active .l2-slide-content > * {
    animation: l2SlideText 0.9s ease both;
}
.l2-slide.is-active .l2-slide-content > *:nth-child(1) { animation-delay: 0.15s; }
.l2-slide.is-active .l2-slide-content > *:nth-child(2) { animation-delay: 0.30s; }
.l2-slide.is-active .l2-slide-content > *:nth-child(3) { animation-delay: 0.45s; }
.l2-slide.is-active .l2-slide-content > *:nth-child(4) { animation-delay: 0.60s; }
@keyframes l2SlideText {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.l2-slide .l2-slide-media {
    order: 2;
    position: relative;
    height: 100%;
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
}

/* Slide 1 — Видео (default: боксонд байрлана) */
.l2-slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    background: #0F172A;   /* Deep Slate — видеоны дэвсгэрийн шилжилтгүй өнгө */
    opacity: 0;
    transition: opacity 1s ease;
}
.l2-slide-video.is-ready { opacity: 1; }
.l2-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.55) 100%),
        linear-gradient(90deg, rgba(10,10,18,0.60) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

/* ═══ Slide 1 — FULL-BLEED вариант (текст видеоны ДЭЭР давхарлана) ═══
   Slide 1-т `.l2-slide-fullbleed` class нэмэгдвэл: video slide-ийн БҮХ талбарыг
   эзэлж, text зүүн талд overlay-ээр сууна. Deep Slate → transparent gradient
   text-ийг тод харуулж, видеоны баруун тал бүрэн нээлттэй үлдэнэ. */
.l2-slide-fullbleed {
    display: block;
    padding: 0;
    background: #0F172A;   /* Хуудас "бэлэн" мэдрэмж (video ачаалахаас өмнө) */
}
.l2-slide-fullbleed .l2-slide-media {
    position: absolute;
    inset: 0;
    min-height: unset;
    height: 100%;
    width: 100%;
    border-radius: 0;
    z-index: 0;
}
.l2-slide-fullbleed .l2-slide-video {
    border-radius: 0;
}
/* Overlay — deep slate зүүнээс 30%-40% хүртэл, дараа transparent баруун талд */
.l2-slide-fullbleed .l2-slide-overlay {
    background:
        linear-gradient(90deg,
            rgba(15, 23, 42, 0.92) 0%,
            rgba(15, 23, 42, 0.75) 25%,
            rgba(15, 23, 42, 0) 55%),
        linear-gradient(180deg,
            rgba(15, 23, 42, 0.35) 0%,
            transparent 30%,
            rgba(15, 23, 42, 0.55) 100%);
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
/* Slide 2/3-т media өөрөө overlay-гүй тул тусад нь нэмнэ */
.l2-slide-fullbleed .l2-slide-media-dashboard::after,
.l2-slide-fullbleed .l2-slide-media-partner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(15, 23, 42, 0.85) 0%,
            rgba(15, 23, 42, 0.55) 30%,
            rgba(15, 23, 42, 0) 60%);
    z-index: 2;
    pointer-events: none;
}
.l2-slide-fullbleed .l2-slide-media-dashboard,
.l2-slide-fullbleed .l2-slide-media-partner {
    position: absolute;
    inset: 0;
    z-index: 0;
}
/* Content — зүүн 6vw-с эхлээд 52% өргөн, вертикал төвд */
.l2-slide-fullbleed .l2-slide-content {
    position: absolute;
    left: 6vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 620px;
    width: 52%;
    padding: 0;
    color: #fff;
}
/* Гарчиг: маш үл ялиг emerald hint саарал, luxury text shadow */
.l2-slide-fullbleed .l2-slide-content h1 {
    color: #dcfce7;                   /* Emerald hint саарал (mint-tone off-white) */
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.l2-slide-fullbleed .l2-slide-content h1 .accent {
    color: #f9d71c;                   /* Gold accent — highlight хэсэг */
    text-shadow: 0 10px 24px rgba(249, 215, 28, 0.35);
}
.l2-slide-fullbleed .l2-slide-content .l2-hero-sub {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.l2-slide-fullbleed .l2-slide-content .l2-hero-eyebrow {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    color: #dcfce7;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Slider dots — Slide 1 (fullbleed) идэвхтэй үед зүүн талд, текстний доор */
.l2-hero-slider:has(.l2-slide-fullbleed.is-active) .l2-slider-dots {
    left: 6vw;
    transform: none;
    bottom: 40px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Slide 2 — Dashboard preview ТОМ full-bleed background */
.l2-slide-media-dashboard {
    background:
        radial-gradient(ellipse at 70% 40%, rgba(16, 185, 129, 0.18), transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(99, 102, 241, 0.12), transparent 60%),
        #0F172A;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    padding: 0 4vw 0 40vw;   /* Preview баруун 60% талд байрлана, зүүн 40% текстэд */
}
.l2-slide-media-dashboard .l2-hero-preview {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 900px;
    transform: perspective(1800px) rotateY(-14deg) rotateX(6deg) scale(1.08);
    transform-origin: right center;
    box-shadow:
        0 40px 100px rgba(16, 185, 129, 0.35),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(16, 185, 129, 0.15);
}
.l2-slide-radial {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.35), transparent 60%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
    animation: l2Pulse 4s ease-in-out infinite;
}
@keyframes l2Pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* Slide 3 — 3D зоос full-bleed background */
.l2-slide-media-partner {
    background:
        radial-gradient(ellipse at 65% 50%, rgba(249, 215, 28, 0.28), transparent 60%),
        radial-gradient(ellipse at 30% 20%, rgba(249, 215, 28, 0.12), transparent 50%),
        linear-gradient(135deg, #0F172A, #1e1b4b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.l2-slide-coins {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.l2-coin {
    position: absolute;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #fef9c3, #f9d71c 45%, #a16207 100%);
    box-shadow:
        inset -6px -6px 12px rgba(0, 0, 0, 0.35),
        inset 6px 6px 12px rgba(255, 255, 255, 0.5),
        0 12px 40px rgba(249, 215, 28, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.3);
    animation: l2CoinFloat 5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(120, 90, 20, 0.7);
    font-weight: 900;
    text-shadow: 0 2px 3px rgba(255, 255, 255, 0.5);
}
/* Slide 3-т илүү олон, том зоос дэлгэц зорьсон бүтэн эзэлнэ */
.l2-coin-1 { top: 8%;   left: 55%; width: 180px; height: 180px; font-size: 82px; animation-delay: 0s;   }
.l2-coin-2 { top: 30%;  left: 75%; width: 140px; height: 140px; font-size: 64px; animation-delay: 0.5s; }
.l2-coin-3 { top: 55%;  left: 50%; width: 120px; height: 120px; font-size: 56px; animation-delay: 1.0s; }
.l2-coin-4 { top: 12%;  left: 82%; width: 100px; height: 100px; font-size: 44px; animation-delay: 1.5s; }
.l2-coin-5 { top: 62%;  left: 78%; width: 160px; height: 160px; font-size: 72px; animation-delay: 2.0s; }
.l2-coin-6 { top: 42%;  left: 62%; width: 90px;  height: 90px;  font-size: 40px; animation-delay: 2.5s; }
.l2-coin::before {
    content: '₮';
    display: block;
    line-height: 1;
}
@keyframes l2CoinFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-24px) rotate(180deg); }
}

/* Slide 4 — Газрын зураг (SVG) full-bleed */
.l2-slide-media-map {
    background:
        radial-gradient(ellipse at 60% 50%, rgba(16,185,129,0.12), transparent 65%),
        linear-gradient(135deg, #05070a, #0d1117 50%, #10151c);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.l2-slide-media-map::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(15,23,42,0.88) 0%,
            rgba(15,23,42,0.5) 30%,
            rgba(15,23,42,0) 55%);
    z-index: 2;
    pointer-events: none;
}
.l2-slide-map-svg {
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%) scale(0.92);
    width: 65%;
    height: auto;
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.22,1,0.36,1);
    z-index: 1;
}
.l2-slide-map-svg > svg {
    width: 100%;
    height: auto;
    display: block;
}
.l2-slide.is-active .l2-slide-map-svg {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Slide 5 — Discovery placeholder */
.l2-slide-media-discovery {
    background:
        radial-gradient(ellipse at 65% 50%, rgba(16,185,129,0.15), transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(249,215,28,0.06), transparent 50%),
        linear-gradient(135deg, #0F172A, #0c1322);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.l2-slide-media-discovery::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(15,23,42,0.88) 0%,
            rgba(15,23,42,0.5) 30%,
            rgba(15,23,42,0) 55%);
    z-index: 2;
    pointer-events: none;
}
.l2-discovery-placeholder {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 560px;
    border-radius: 40px;
    border: 2px solid rgba(255,255,255,0.08);
    background: rgba(15,23,42,0.6);
    box-shadow: 0 32px 80px -16px rgba(0,0,0,0.6);
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.22,1,0.36,1);
}
.l2-slide.is-active .l2-discovery-placeholder {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Dots — Active indicator safe margin (Executive стандарт 40-60px).
   iOS Safari home indicator + Android nav bar-с үл хамаарч харагдах ёстой
   тул env(safe-area-inset-bottom) plus baseline 42px. */
.l2-slider-dots {
    position: absolute;
    bottom: calc(42px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 8px 14px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.l2-slider-dot {
    width: 32px;
    height: 4px;
    border-radius: 99px;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, width 0.3s ease;
}
.l2-slider-dot:hover { background: rgba(255, 255, 255, 0.6); }
.l2-slider-dot.is-active { background: var(--gold, #f9d71c); width: 48px; }

/* Arrows */
.l2-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: 0.2s ease;
    opacity: 0.7;
}
.l2-slider-arrow:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.55);
    transform: translateY(-50%) scale(1.08);
}
.l2-slider-arrow-prev { left: 24px; }
.l2-slider-arrow-next { right: 24px; }

/* Responsive: tablet 1024, mobile 768 */
@media (max-width: 1024px) {
    .l2-slide:not(.l2-slide-fullbleed) {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 80px 6vw 90px;
    }
    .l2-slide:not(.l2-slide-fullbleed) .l2-slide-content { order: 1; max-width: 100%; }
    .l2-slide:not(.l2-slide-fullbleed) .l2-slide-media { order: 2; min-height: 320px; }
    .l2-slide-media-dashboard { padding: 0 4vw 0 6vw; align-items: center; justify-content: center; }
    .l2-slide-media-dashboard .l2-hero-preview {
        transform: perspective(1400px) rotateY(-10deg) scale(0.95);
        transform-origin: center;
    }
    .l2-coin-1 { width: 130px; height: 130px; font-size: 60px; }
    .l2-coin-2 { width: 100px; height: 100px; font-size: 46px; }
    .l2-coin-5 { width: 120px; height: 120px; font-size: 54px; }
    .l2-slide-map-svg { width: 55%; right: 0; }
    .l2-discovery-placeholder { width: 260px; height: 460px; right: 5%; }
}
@media (max-width: 768px) {
    /* Mobile Full-Screen — iOS Safari address bar-с хамаарлаар dvh заавал.
       vh нь Safari-т bottom-т хаягдал өгдөг, dvh dynamic-т ажилладаг. */
    .l2-hero-slider {
        min-height: 100vh; height: 100vh;
        min-height: 100dvh; height: 100dvh;
        padding-top: 0;
    }
    .l2-slider-arrow { display: none; }   /* mobile-д зөвхөн dots */
    .l2-coin-2, .l2-coin-6 { display: none; }
    .l2-slide-media-dashboard { padding: 0 4vw; }
    .l2-slide-media-dashboard .l2-hero-preview {
        transform: none;
        max-width: 100%;
        opacity: 0.35;                    /* Mobile-т decoration болгож бууруулна */
    }
    .l2-coin { opacity: 0.5; }            /* Mobile — decoration */
    .l2-slide-map-svg { width: 90%; right: -10%; opacity: 0.3; }
    .l2-discovery-placeholder { width: 200px; height: 360px; right: 4%; opacity: 0.25; }
}

/* ═══ Fullbleed slide — responsive ═══ */
@media (max-width: 1024px) {
    .l2-slide-fullbleed .l2-slide-content {
        width: 68%;
        max-width: 560px;
        left: 5vw;
    }
}
@media (max-width: 768px) {
    .l2-slide-fullbleed .l2-slide-content {
        width: 88%;
        max-width: 100%;
        left: 5vw;
        top: 44%;
    }
    .l2-slide-fullbleed .l2-slide-overlay {
        background:
            linear-gradient(180deg,
                rgba(15, 23, 42, 0.55) 0%,
                rgba(15, 23, 42, 0.85) 100%);
    }
    .l2-hero-slider:has(.l2-slide-fullbleed.is-active) .l2-slider-dots {
        left: 50%;
        transform: translateX(-50%);
        /* Mobile fullbleed dots — Home indicator + Safari nav bar safe area */
        bottom: calc(36px + env(safe-area-inset-bottom, 0px));
    }
}

/* ─── Inst-gate top golden line glow on hover ─── */
.inst-top-line { pointer-events: none; }
.inst-gate:hover .inst-top-line {
    width: 480px !important;
    opacity: 1;
    filter: brightness(1.8) drop-shadow(0 0 8px rgba(201,167,105,0.5));
}

.inst-gate:hover{border-color:rgba(201,167,105,0.4);}

/* ─── Inst-gate CTA shimmer wave on hover ─── */
@keyframes instShimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}
.inst-gate-cta::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(201,167,105,0.18) 40%, rgba(212,175,55,0.28) 50%, rgba(201,167,105,0.18) 60%, transparent 100%);
    transform: translateX(-100%); pointer-events: none; z-index: 0;
}
.inst-gate-cta:hover::before {
    animation: instShimmer 1.6s ease infinite;
}
.inst-gate-cta:hover{border-color:rgba(212,175,55,0.85);color:#D4AF37;background:transparent;}
.inst-gate-cta:hover .inst-arrow{transform:translateX(4px);}
