/* MLL Premium Index — light theme, section-wise, desktop + mobile */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --mll-bg: #f1f5f9;
    --mll-bg-card: #ffffff;
    --mll-bg-soft: #f8fafc;
    --mll-text: #0f172a;
    --mll-text-muted: #64748b;
    --mll-text-soft: #475569;
    --mll-border: #e2e8f0;
    --mll-border-strong: #cbd5e1;
    --mll-gold: #d97706;
    --mll-gold-light: #f59e0b;
    --mll-cyan: #0891b2;
    --mll-header-h: 64px;
    --mll-safe-top: env(safe-area-inset-top, 0px);
}

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

html {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body.mll-index-body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--mll-bg);
    color: var(--mll-text);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: visible;
    line-height: 1.5;
    padding-top: var(--mll-safe-top);
}

.mll-index {
    position: relative;
    min-height: 100vh;
    padding: 0 16px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mll-index::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 55% at 50% -15%, rgba(245,158,11,.12) 0%, transparent 55%),
        radial-gradient(ellipse 55% 40% at 100% 20%, rgba(14,165,233,.08) 0%, transparent 50%),
        radial-gradient(ellipse 45% 35% at 0% 85%, rgba(99,102,241,.06) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.mll-index::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
    opacity: .45;
}

/* ── Sticky header / single-page nav ── */
.mll-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 1140px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mll-border);
    box-shadow: 0 4px 24px rgba(15,23,42,.06);
    margin-bottom: 8px;
    border-radius: 0 0 16px 16px;
}

.mll-header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 18px;
    min-height: var(--mll-header-h);
}

.mll-logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--mll-text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: auto;
    background: linear-gradient(135deg, #0f172a 0%, var(--mll-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mll-nav {
    display: none;
    align-items: center;
    gap: 6px;
}

.mll-nav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--mll-text-soft);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color .2s, background .2s;
}

.mll-nav a:hover {
    color: var(--mll-gold);
    background: rgba(245,158,11,.08);
}

.mll-nav-cta {
    background: linear-gradient(135deg, var(--mll-gold-light), var(--mll-gold)) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-weight: 700 !important;
    margin-left: 4px;
}

.mll-nav-cta:hover {
    background: linear-gradient(135deg, #fbbf24, #b45309) !important;
    color: #fff !important;
}

.mll-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid var(--mll-border);
    border-radius: 10px;
    background: var(--mll-bg-card);
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
}

.mll-nav-toggle span {
    display: block;
    height: 2px;
    background: var(--mll-text);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

.mll-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mll-nav-toggle.open span:nth-child(2) { opacity: 0; }
.mll-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mll-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    top: calc(100% + 6px);
    right: 12px;
    left: auto;
    width: max-content;
    max-width: calc(100vw - 32px);
    background: var(--mll-bg-card);
    border: 1px solid var(--mll-border);
    border-radius: 12px;
    padding: 6px 4px;
    box-shadow: 0 12px 32px rgba(15,23,42,.1);
}

.mll-nav.open a {
    width: auto;
    min-width: 100%;
    text-align: right;
    padding: 10px 16px;
    white-space: nowrap;
    border-radius: 8px;
}

.mll-nav.open .mll-nav-cta {
    text-align: right !important;
    margin-left: 0;
    background: transparent !important;
    color: var(--mll-text-soft) !important;
    -webkit-text-fill-color: var(--mll-text-soft) !important;
    font-weight: 600 !important;
    border-radius: 8px;
    width: auto;
    min-width: 100%;
}

.mll-nav.open .mll-nav-cta:hover {
    background: rgba(245,158,11,.08) !important;
    color: var(--mll-gold) !important;
    -webkit-text-fill-color: var(--mll-gold) !important;
}

.mll-site-header { position: sticky; }
.mll-header-inner { position: relative; }

@media (min-width: 900px) {
    .mll-nav-toggle { display: none; }
    .mll-logo { margin-right: 0; }
    .mll-nav {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        width: auto;
        margin-left: auto;
    }
    .mll-nav a {
        padding: 8px 14px;
        text-align: center;
    }
    .mll-nav .mll-nav-cta { margin-left: 4px; }
}

.mll-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1140px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Anchor scroll offset for sticky header + safe area */
.mll-section {
    scroll-margin-top: calc(var(--mll-header-h) + var(--mll-safe-top) + 16px);
}

/* ── Section system ── */
.mll-section {
    padding: 28px 0;
    position: relative;
}

.mll-section + .mll-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,158,11,.2), rgba(14,165,233,.15), transparent);
}

.mll-section-head {
    text-align: center;
    margin-bottom: 22px;
}

.mll-section-head--left {
    text-align: left;
}

.mll-section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mll-gold);
    margin-bottom: 8px;
}

.mll-section-head h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.35rem, 5vw, 2rem);
    font-weight: 800;
    color: var(--mll-text);
    letter-spacing: .02em;
    margin-bottom: 8px;
    line-height: 1.15;
}

.mll-section-sub {
    font-size: 14px;
    color: var(--mll-text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.55;
}

.mll-section-head--left .mll-section-sub { margin: 0; }

.mll-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.mll-reveal.mll-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero ── */
.mll-section-hero {
    padding-top: 20px;
    padding-bottom: 36px;
}

.mll-section-hero::before { display: none; }

.mll-hero { text-align: center; }

@media (min-width: 900px) {
    .mll-section-hero {
        padding-top: 32px;
        padding-bottom: 48px;
    }
    .mll-hero {
        max-width: 820px;
        margin: 0 auto;
    }
    .mll-hero h1 { font-size: 3.5rem; }
    .mll-hero-tagline { font-size: 17px; }
}

.mll-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.35);
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.mll-hero-badge span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,.5);
    animation: mllPulse 2s infinite;
}

@keyframes mllPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.35); }
}

.mll-hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2.25rem, 9vw, 3.25rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: .04em;
    background: linear-gradient(135deg, #0f172a 0%, #b45309 55%, var(--mll-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}

.mll-hero-tagline {
    font-size: 15px;
    color: var(--mll-text-muted);
    max-width: 560px;
    margin: 0 auto 20px;
    line-height: 1.65;
}

.mll-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.mll-trust-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--mll-text-soft);
    background: var(--mll-bg-card);
    border: 1px solid var(--mll-border);
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
}

/* ── Why cards ── */
.mll-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 399px) {
    .mll-why-grid { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
    .mll-why-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.mll-why-card {
    position: relative;
    padding: 22px 18px 20px;
    border-radius: 16px;
    background: var(--mll-bg-card);
    border: 1px solid var(--mll-border);
    box-shadow: 0 4px 20px rgba(15,23,42,.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
    overflow: hidden;
}

.mll-why-card:hover {
    transform: translateY(-4px);
    border-color: var(--mll-border-strong);
    box-shadow: 0 16px 40px rgba(15,23,42,.1);
}

.mll-why-card--gold:hover { box-shadow: 0 16px 40px rgba(245,158,11,.15); border-color: rgba(245,158,11,.35); }
.mll-why-card--cyan:hover { box-shadow: 0 16px 40px rgba(14,165,233,.12); border-color: rgba(14,165,233,.35); }
.mll-why-card--violet:hover { box-shadow: 0 16px 40px rgba(139,92,246,.12); border-color: rgba(139,92,246,.35); }
.mll-why-card--green:hover { box-shadow: 0 16px 40px rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); }

.mll-why-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: transform .25s ease;
}

.mll-why-card:hover .mll-why-icon { transform: scale(1.08); }

.mll-why-icon svg { width: 28px; height: 28px; }

.mll-why-card--gold .mll-why-icon { background: rgba(245,158,11,.12); color: #b45309; }
.mll-why-card--cyan .mll-why-icon { background: rgba(14,165,233,.12); color: #0891b2; }
.mll-why-card--violet .mll-why-icon { background: rgba(139,92,246,.12); color: #7c3aed; }
.mll-why-card--green .mll-why-icon { background: rgba(34,197,94,.12); color: #16a34a; }

.mll-why-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--mll-text);
    letter-spacing: .02em;
    margin-bottom: 8px;
    line-height: 1.2;
}

.mll-why-line {
    font-size: 12px;
    color: var(--mll-text-muted);
    line-height: 1.45;
    font-weight: 500;
}

.mll-why-line + .mll-why-line { margin-top: 2px; }

/* ── Desktop: auth + demo side by side ── */
@media (min-width: 900px) {
    .mll-desktop-row {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 24px;
        align-items: start;
    }
    .mll-section-auth,
    .mll-section-demo {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .mll-section-auth::before,
    .mll-section-demo::before { display: none; }
    .mll-section-demo .mll-section-head { text-align: left; }
    .mll-section-demo .mll-section-sub { margin: 0; }
}

/* ── Auth ── */
.mll-auth {
    background: var(--mll-bg-card);
    border: 1px solid var(--mll-border);
    border-radius: 20px;
    padding: 24px 22px 26px;
    box-shadow: 0 8px 32px rgba(15,23,42,.08);
}

.mll-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    background: var(--mll-bg-soft);
    border: 1px solid var(--mll-border);
    border-radius: 12px;
}

.mll-tab {
    flex: 1;
    padding: 11px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--mll-text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .25s ease;
}

.mll-tab.active {
    background: linear-gradient(135deg, var(--mll-gold-light), var(--mll-gold));
    color: #fff;
    box-shadow: 0 4px 14px rgba(245,158,11,.3);
}

.mll-form-panel { display: none; }
.mll-form-panel.active { display: block; animation: mllFadeIn .3s ease; }

@keyframes mllFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.mll-field { margin-bottom: 14px; }

.mll-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--mll-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

.mll-field input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--mll-border-strong);
    background: var(--mll-bg-soft);
    color: var(--mll-text);
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.mll-field input:focus {
    border-color: var(--mll-gold-light);
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
    background: #fff;
}

.mll-btn-primary {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mll-gold-light) 0%, #ea580c 100%);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(245,158,11,.25);
    transition: transform .15s, box-shadow .15s;
}

.mll-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(245,158,11,.35);
}
.mll-btn-primary:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.mll-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    outline: none;
}

.mll-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.mll-alert.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.mll-signup-note {
    font-size: 12px;
    color: var(--mll-text-muted);
    text-align: center;
    margin-top: 12px;
}

.mll-trial-badge {
    color: #047857 !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

/* ── Demo ── */
.mll-demo-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mll-demo-card {
    background: linear-gradient(135deg, #ecfeff 0%, #f0fdf4 100%);
    border: 1px solid #a5f3fc;
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
}

@media (min-width: 900px) {
    .mll-demo-card {
        padding: 32px 24px;
        min-height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.mll-demo-card p {
    font-size: 14px;
    color: var(--mll-text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.mll-demo-btn {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(8,145,178,.25);
    transition: all .25s;
}

.mll-demo-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(8,145,178,.35);
}

.mll-demo-btn:disabled { opacity: .6; cursor: wait; }

/* ── Theme ── */
.mll-theme {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--mll-border);
    background: var(--mll-bg-card);
    box-shadow: 0 8px 32px rgba(15,23,42,.08);
}

@media (min-width: 900px) {
    .mll-theme-frame-wrap { min-height: 280px; }
}

.mll-theme-head {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--mll-border);
    background: var(--mll-bg-soft);
}

.mll-theme-head h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--mll-text);
    letter-spacing: .03em;
}

.mll-theme-head a {
    font-size: 12px;
    font-weight: 600;
    color: var(--mll-gold);
    text-decoration: none;
}

.mll-theme-frame-wrap {
    position: relative;
    width: 100%;
    min-height: 100px;
    overflow: hidden;
    background: #1e293b;
}

.mll-theme-frame-wrap iframe {
    border: none;
    display: block;
    pointer-events: none;
}

.mll-theme-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
    background: var(--mll-bg-soft);
}

.mll-theme-chip {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--mll-bg-card);
    border: 1px solid var(--mll-border);
    color: var(--mll-text-muted);
    cursor: pointer;
    transition: all .2s;
}

.mll-theme-chip.active,
.mll-theme-chip:hover {
    background: rgba(245,158,11,.12);
    border-color: rgba(245,158,11,.4);
    color: #b45309;
}

/* ── Ad ── */
.mll-ad {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--mll-border);
    background: var(--mll-bg-card);
    box-shadow: 0 4px 16px rgba(15,23,42,.06);
}

.mll-ad #mann-ad-rotator { width: 100%; border-radius: 16px; }

/* ── Footer ── */
.mll-footer {
    text-align: center;
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}

.mll-footer a {
    font-size: 12px;
    color: var(--mll-text-muted);
    text-decoration: none;
    transition: color .2s;
}

.mll-footer a:hover { color: var(--mll-gold); }

.mll-copy {
    text-align: center;
    font-size: 11px;
    color: var(--mll-text-muted);
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    margin-top: 8px;
}

/* ── Modals ── */
.mll-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.mll-overlay.open { display: flex; }

.mll-modal {
    background: var(--mll-bg-card);
    border: 1px solid var(--mll-border);
    border-radius: 18px;
    padding: 24px 22px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 64px rgba(15,23,42,.15);
}

.mll-modal h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--mll-text);
    margin-bottom: 8px;
}

.mll-modal p {
    font-size: 13px;
    color: var(--mll-text-muted);
    margin-bottom: 16px;
}

.mll-dup-info {
    background: var(--mll-bg-soft);
    border: 1px solid var(--mll-border);
    border-radius: 12px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--mll-text-soft);
}

.mll-dup-title {
    color: #b45309;
    text-align: center;
}

.mll-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.mll-modal-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    border: none;
}

.mll-modal-cancel {
    background: var(--mll-bg-soft);
    color: var(--mll-text-muted);
    border: 1px solid var(--mll-border) !important;
}

.mll-modal-confirm {
    background: linear-gradient(135deg, var(--mll-gold-light), var(--mll-gold));
    color: #fff;
}

.mll-demo-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 8px;
    display: none;
}
