/* ==========================================================
   Landing page - "colorful MLM" concept.

   Deliberately its OWN fixed multi-color brand system (indigo,
   violet, pink, orange, green), independent of the single
   --theme-primary/--theme-secondary/--theme-accent variables
   the dashboard and auth pages use. That's intentional: the
   whole point of this direction is a distinct, vivid identity
   for the public-facing page, decoupled from whatever single
   accent color the admin picks for the app in Theme/Branding.
   Only --down (bearish candle color, used by trade-chart.js)
   stays as a fixed constant here, matching the in-app red used
   for losses/rejections everywhere.
   ========================================================== */

:root {
    --down: #ef4444;
    --ink: #15161E;
    --muted: #6B7280;
    --faint: #9CA3AF;
    --line: #EEF0F5;
    --indigo: #4F46E5;  --indigo-2: #7C6DF2;
    --violet: #9333EA;  --violet-2: #C084FC;
    --pink: #EC4899;    --pink-2: #F9A8D4;
    --orange: #F97316;  --orange-2: #FDBA74;
    --green: #10B981;   --green-2: #6EE7B7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.landing {
    margin: 0;
    background: #FFFFFF;
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Purple scrollbar, not the default grey */
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet-2); }
* { scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }

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

.display {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.grad-text {
    background: linear-gradient(90deg, var(--indigo), var(--violet), var(--pink));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 46ch; }

/* This label style is reused by the Flux Web Solutions contact modal,
   which predates this redesign - kept as its own small mono+dot style. */
.eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--violet);
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.eyebrow::before {
    content: '';
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 10px var(--violet);
}

/* Pill-style eyebrow used throughout the new sections (background/color
   set inline per-section so each section can pick its own accent). */
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
}

/* ---------- Nav ---------- */
.l-nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px clamp(20px, 5vw, 56px);
    background: rgba(255,255,255,.88); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.l-nav .brand { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px; }
.l-nav .brand .badge {
    width: 34px; height: 34px; border-radius: 11px;
    background: linear-gradient(135deg, var(--indigo), var(--violet), var(--pink));
    display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800;
}
.l-nav .links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.l-nav .links a:hover { color: var(--ink); }
.l-nav .cta-group { display: flex; align-items: center; gap: 12px; }
@media (max-width: 800px) { .l-nav .links { display: none; } }

/* ---------- Buttons ---------- */
.btn-l {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-l-primary { background: linear-gradient(90deg, var(--indigo), var(--violet)); color: #fff; box-shadow: 0 10px 24px rgba(124,58,237,.3); }
.btn-l-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(124,58,237,.4); }
.btn-l-ghost { background: #F4F5F9; color: var(--ink); }
.btn-l-ghost:hover { background: #EAECF3; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px clamp(20px, 6vw, 64px) 66px; overflow: hidden; }
.hero-wash { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.wash-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; }
.wb1 { width: 460px; height: 460px; background: var(--indigo); top: -160px; right: -8%; }
.wb2 { width: 400px; height: 400px; background: var(--pink); bottom: -140px; left: -6%; }
.hero-inner {
    position: relative; z-index: 1; max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: #F4F0FE; color: var(--violet); font-size: 12.5px; font-weight: 700;
    padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 0 0 16px; }
.hero .lede { font-size: 17px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-chip {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(16,24,40,.06);
    border-radius: 12px; padding: 9px 14px; font-size: 12.5px; font-weight: 600;
}
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

/* ---------- Hero network illustration ---------- */
.network-art { position: relative; aspect-ratio: 1 / 1; max-width: 420px; margin: 0 auto; }
.network-art svg { width: 100%; height: 100%; }
.node-label {
    position: absolute; background: #fff; border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(16,24,40,.08); border-radius: 10px; padding: 6px 10px;
    font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 6px;
}

/* ---------- Sections ---------- */
.l-section { padding: 90px clamp(20px, 6vw, 64px); max-width: 1180px; margin: 0 auto; }
.l-section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.l-section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0 0; }
.l-section-head .lede { margin: 14px auto 0; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 30px 26px; border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 30px rgba(16,24,40,.05); }
.step-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 18px; }
.step h3 { font-size: 17px; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Live signal demo ---------- */
.demo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.demo-panel {
    background: #fff; border: 1px solid var(--line); border-radius: 20px;
    padding: 22px; box-shadow: 0 30px 80px rgba(79,70,229,.12);
}
.demo-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.demo-panel-head .live-dot { display: inline-flex; align-items: center; gap: 7px; font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.demo-panel-head .live-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.demo-result { margin-top: 14px; text-align: center; font-family: 'DM Mono', monospace; font-size: 13px; color: var(--faint); min-height: 20px; }
.demo-result.won { color: var(--green); font-weight: 700; }
.demo-note { font-size: 12px; color: var(--faint); margin-top: 10px; text-align: center; }
.demo-copy .lede { margin-bottom: 22px; }
.demo-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.demo-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.demo-list li .ico { color: var(--violet); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 900px) { .demo-wrap { grid-template-columns: 1fr; } }

/* ---------- Trust grid ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-card { padding: 26px 22px; border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: 0 8px 22px rgba(16,24,40,.05); }
.trust-card .ico-box { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 16px; }
.trust-card h3 { font-size: 15.5px; margin: 0 0 6px; }
.trust-card p { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }
@media (max-width: 980px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Referral ladder ---------- */
.ladder-wrap { background: linear-gradient(160deg, #FBF8FF, #FFFFFF); border-radius: 28px; border: 1px solid var(--line); padding: 44px clamp(20px, 4vw, 48px); }
.ladder { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin: 0 auto; }
.rung { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; box-shadow: 0 6px 16px rgba(16,24,40,.05); }
.rung-level { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.rung-label { flex: 1; font-weight: 600; font-size: 14.5px; }
.rung-pct { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px; }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-band .num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 34px; }
.stat-band .lbl { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-weight: 600; }
@media (max-width: 700px) { .stat-band { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }

/* ---------- Final CTA ---------- */
.final-cta {
    margin: 20px clamp(20px, 6vw, 64px) 0; padding: 64px clamp(24px, 6vw, 64px);
    border-radius: 28px; text-align: center;
    background: linear-gradient(120deg, var(--indigo), var(--violet), var(--pink)); color: #fff;
    display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.final-cta h2 { font-size: clamp(26px, 4vw, 40px); margin: 0; max-width: 22ch; }
.final-cta p { opacity: .9; max-width: 50ch; margin: 0; }
.final-cta .btn-l-primary { background: #fff; color: var(--violet); box-shadow: 0 10px 24px rgba(0,0,0,.2); }

/* ---------- Footer ---------- */
.l-footer { padding: 44px clamp(20px, 6vw, 64px) 34px; border-top: 1px solid var(--line); margin-top: 50px; }
.l-footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.l-footer .brand { display: flex; align-items: center; gap: 9px; font-family: 'Poppins', sans-serif; font-weight: 700; }
.l-footer-links { display: flex; gap: 24px; font-size: 13.5px; color: var(--muted); }
.l-footer-disclaimer { font-size: 12px; color: var(--faint); line-height: 1.7; max-width: 900px; }
.l-footer-bottom { margin-top: 20px; font-size: 12px; color: var(--faint); }
.l-dev-credit {
    background: none; border: none; padding: 0; color: var(--faint); font-size: 12px;
    font-family: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.l-dev-credit:hover { color: var(--violet); }

/* ---------- Flux contact modal ---------- */
.l-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 60;
    background: rgba(21,22,30,.55); backdrop-filter: blur(2px);
    align-items: center; justify-content: center; padding: 20px;
}
.l-modal-overlay.open { display: flex; }
.l-modal-box {
    width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow-y: auto;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 28px; position: relative; box-shadow: 0 24px 70px rgba(16,24,40,.25);
    animation: l-modal-pop .15s ease;
}
@keyframes l-modal-pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.l-modal-close {
    position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%;
    background: #F4F5F9; border: 1px solid var(--line);
    color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.l-modal-close:hover { background: #EAECF3; }
.l-modal-title { font-family: 'Poppins', sans-serif; font-size: 21px; margin: 10px 0 4px; }
.l-modal-sub { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 18px; max-width: none; }

.l-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.l-form-group { margin-bottom: 14px; }
.l-form-group label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.l-form-group input, .l-form-group textarea {
    width: 100%; padding: 10px 13px; border-radius: 10px; font-family: inherit; font-size: 14px;
    background: #F9FAFB; border: 1px solid #D0D5DD; color: var(--ink); resize: vertical;
}
.l-form-group input:focus, .l-form-group textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(147,51,234,.12); }
.l-form-error { font-size: 12.5px; color: #B42318; background: #FCE9E9; border-radius: 8px; padding: 9px 12px; margin-bottom: 14px; }

.l-success-tick {
    width: 62px; height: 62px; border-radius: 50%; margin: 0 auto;
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    color: #fff; display: flex; align-items: center; justify-content: center;
}
.l-success-tick svg { width: 30px; height: 30px; }

@media (max-width: 480px) { .l-form-row { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; }
    .demo-panel-head .live-dot::before { animation: none; }
}
