/* ==========================================================================
   Ugenix Connect — Landing Page Stylesheet
   High-converting, mobile-first, ad-campaign optimized
   Zero external fonts · Zero frameworks · ~6KB
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
    --lp-primary: #2563eb;
    --lp-primary-hover: #1d4ed8;
    --lp-dark: #0f172a;
    --lp-dark-soft: #1e293b;
    --lp-accent: #10b981;
    --lp-accent-hover: #059669;
    --lp-bg: #ffffff;
    --lp-bg-alt: #f8fafc;
    --lp-bg-dark: #0f172a;
    --lp-text: #1e293b;
    --lp-text-muted: #64748b;
    --lp-border: #e2e8f0;
    --lp-radius: 8px;
    --lp-radius-lg: 12px;
    --lp-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --lp-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --lp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --lp-max: 1100px;
    --lp-narrow: 680px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--lp-font);
    color: var(--lp-text);
    background: var(--lp-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.lp-wrap { width: 100%; max-width: var(--lp-max); margin: 0 auto; padding: 0 20px; }
.lp-narrow { max-width: var(--lp-narrow); }

/* ==========================================================================
   HERO BLOCK — Premium dark gradient with soft glows
   ========================================================================== */
.hero-block {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99,102,241,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139,92,246,0.12) 0%, transparent 55%),
        linear-gradient(168deg, #080520 0%, #0e0b2e 18%, #191347 40%, #1e1652 58%, #16133d 78%, #0a0820 100%);
    overflow: hidden;
    color: #fff;
}
/* Ambient glow — top-right indigo */
.hero-block::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: -220px;
    right: -200px;
    background: radial-gradient(circle, rgba(99,102,241,0.14) 0%, transparent 65%);
    pointer-events: none;
}
/* Ambient glow — bottom-left teal */
.hero-block::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -60px;
    left: -180px;
    background: radial-gradient(circle, rgba(52,211,153,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.hero-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 2;
}

/* ── Hero Navbar ───────────────────────────────────────────────────────── */
.hero-nav { padding: 20px 0; }
.hero-nav .hero-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.025em;
}
.hero-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.hero-menu-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    transition: color 0.15s;
    letter-spacing: 0.005em;
}
.hero-menu-link:hover { color: #fff; }
.hero-nav-cta {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.22);
    border-radius: 50px;
    transition: border-color 0.15s, background 0.15s;
}
.hero-nav-cta:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
    color: #fff;
}

/* Mobile hamburger */
.hero-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hero-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.hero-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hero-burger.is-open span:nth-child(2) { opacity: 0; }
.hero-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Center Content ───────────────────────────────────────────────── */
.hero-center {
    flex: 1;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 56px 0 44px;
    position: relative;
}
.hero-center .hero-wrap { max-width: 760px; margin: 0 auto; }

/* Soft text glow behind heading */
.hero-center::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    background: radial-gradient(ellipse, rgba(139,92,246,0.16) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-center h1 {
    position: relative;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.08;
    color: #fff;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    z-index: 1;
}
.hero-green {
    color: #34d399;
    background: linear-gradient(135deg, #34d399, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    position: relative;
    font-size: 1.125rem;
    color: rgba(255,255,255,0.55);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.75;
    z-index: 1;
}
.hero-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Primary CTA — pill shape, green gradient */
.hero-cta-primary {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--lp-font);
    color: #0f172a;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(16,185,129,0.3);
    transition: box-shadow 0.15s, transform 0.15s;
}
.hero-cta-primary:hover {
    box-shadow: 0 6px 32px rgba(16,185,129,0.4);
    transform: translateY(-1px);
    color: #0f172a;
}

/* Secondary CTA — pill outline */
.hero-cta-secondary {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    transition: border-color 0.15s, color 0.15s;
}
.hero-cta-secondary:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

/* ── Floating Image Cards ──────────────────────────────────────────────── */
.hero-cards { padding: 0 0 56px; }
.hero-cards-track {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}
.hero-fcard {
    flex: 0 0 190px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-fcard:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

/* Staggered float offsets */
.hero-fcard--1 { transform: translateY(12px); }
.hero-fcard--2 { transform: translateY(-8px); }
.hero-fcard--3 { transform: translateY(6px); }
.hero-fcard--4 { transform: translateY(-14px); }
.hero-fcard--5 { transform: translateY(10px); }
.hero-fcard--1:hover { transform: translateY(6px); }
.hero-fcard--2:hover { transform: translateY(-14px); }
.hero-fcard--3:hover { transform: translateY(0); }
.hero-fcard--4:hover { transform: translateY(-20px); }
.hero-fcard--5:hover { transform: translateY(4px); }

/* Image area — placeholder SVGs, replaceable with <img> */
.hero-fcard-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}
.hero-fcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-fcard-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

/* Card body */
.hero-fcard-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.hero-fcard-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
}
.hero-fcard-stat {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #34d399;
    letter-spacing: 0.01em;
}

/* ==========================================================================
   REST OF PAGE (below hero)
   ========================================================================== */

/* ── Social Proof Bar ───────────────────────────────────────────────────── */
.lp-proof {
    padding: 32px 0;
    background: var(--lp-bg);
    border-bottom: 1px solid var(--lp-border);
}
.lp-proof-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.lp-proof-item { text-align: center; }
.lp-proof-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--lp-dark);
    line-height: 1.2;
}
.lp-proof-item span {
    font-size: 0.8125rem;
    color: var(--lp-text-muted);
    font-weight: 500;
}
.lp-proof-divider {
    width: 1px;
    height: 36px;
    background: var(--lp-border);
}

/* ── Problem / Solution ─────────────────────────────────────────────────── */
.lp-problem {
    padding: 72px 0;
    text-align: center;
    background: var(--lp-bg);
}
.lp-problem h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--lp-dark);
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.lp-problem p {
    font-size: 1.0625rem;
    color: var(--lp-text-muted);
    line-height: 1.75;
    margin-bottom: 12px;
}
.lp-problem p:last-child { margin-bottom: 0; }
.lp-problem strong { color: var(--lp-dark); }

/* ── Section Header ─────────────────────────────────────────────────────── */
.lp-section-hd {
    text-align: center;
    margin-bottom: 48px;
}
.lp-section-hd h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--lp-dark);
    letter-spacing: -0.02em;
}

/* ── Features Grid ──────────────────────────────────────────────────────── */
.lp-features {
    padding: 80px 0;
    background: var(--lp-bg-alt);
}
.lp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.lp-card {
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    padding: 32px 28px;
    box-shadow: var(--lp-shadow);
}
.lp-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--lp-radius);
    background: #eff6ff;
    color: var(--lp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.lp-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lp-dark);
    margin-bottom: 8px;
}
.lp-card p {
    font-size: 0.9375rem;
    color: var(--lp-text-muted);
    line-height: 1.65;
}

/* ── Steps ──────────────────────────────────────────────────────────────── */
.lp-steps {
    padding: 80px 0;
    background: var(--lp-bg);
}
.lp-steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}
.lp-step { position: relative; }
.lp-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--lp-primary);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.lp-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lp-dark);
    margin-bottom: 8px;
}
.lp-step p {
    font-size: 0.9375rem;
    color: var(--lp-text-muted);
    line-height: 1.65;
    max-width: 280px;
    margin: 0 auto;
}

/* ── Testimonials ───────────────────────────────────────────────────────── */
.lp-testimonials {
    padding: 80px 0;
    background: var(--lp-bg-alt);
}
.lp-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.lp-testi {
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    padding: 28px;
    box-shadow: var(--lp-shadow);
}
.lp-testi p {
    font-size: 0.9375rem;
    color: var(--lp-text);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}
.lp-testi footer {
    display: flex;
    flex-direction: column;
}
.lp-testi footer strong {
    font-size: 0.875rem;
    color: var(--lp-dark);
    font-weight: 700;
}
.lp-testi footer span {
    font-size: 0.75rem;
    color: var(--lp-text-muted);
}

/* ── Final CTA ──────────────────────────────────────────────────────────── */
.lp-final-cta {
    padding: 80px 0;
    text-align: center;
    background: var(--lp-bg-dark);
    color: #fff;
}
.lp-final-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.lp-final-cta p {
    font-size: 1rem;
    opacity: 0.75;
    margin-bottom: 28px;
}
.lp-final-cta .lp-microcopy {
    color: rgba(255,255,255,0.55);
    margin-top: 16px;
}
.lp-final-cta .lp-cta {
    background: var(--lp-accent);
    box-shadow: 0 2px 8px rgba(16,185,129,0.35);
}
.lp-final-cta .lp-cta:hover {
    background: var(--lp-accent-hover);
    box-shadow: 0 4px 14px rgba(16,185,129,0.4);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.lp-footer {
    padding: 28px 0;
    text-align: center;
    border-top: 1px solid var(--lp-border);
}
.lp-footer p {
    font-size: 0.75rem;
    color: var(--lp-text-muted);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
    .lp-grid,
    .lp-steps-row,
    .lp-testi-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-center h1 { font-size: 2.75rem; }
    .hero-fcard { flex: 0 0 168px; }
}

/* Mobile */
@media (max-width: 640px) {
    /* Hero block */
    .hero-block { min-height: auto; }
    .hero-wrap { padding: 0 20px; }

    /* Mobile nav */
    .hero-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(8,5,32,0.97);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        z-index: 50;
    }
    .hero-menu.is-open { display: flex; }
    .hero-burger { display: flex; }
    .hero-nav-cta { display: none; }

    /* Hero content */
    .hero-center { padding: 36px 0 28px; }
    .hero-center h1 { font-size: 2rem; letter-spacing: -0.03em; }
    .hero-center::before { width: 300px; height: 140px; }
    .hero-sub { font-size: 0.9375rem; margin-bottom: 28px; }
    .hero-btns { flex-direction: column; gap: 12px; }
    .hero-cta-primary,
    .hero-cta-secondary { width: 100%; text-align: center; padding: 15px 28px; }

    /* Floating cards — horizontal scroll */
    .hero-cards {
        padding: 0 0 36px;
        overflow: visible;
    }
    .hero-cards .hero-wrap { padding: 0; }
    .hero-cards-track {
        justify-content: flex-start;
        gap: 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 8px 20px 12px;
        scrollbar-width: none;
    }
    .hero-cards-track::-webkit-scrollbar { display: none; }
    .hero-fcard {
        flex: 0 0 152px;
        scroll-snap-align: start;
    }
    /* Remove stagger on small screens for cleaner scroll */
    .hero-fcard--1,
    .hero-fcard--2,
    .hero-fcard--3,
    .hero-fcard--4,
    .hero-fcard--5 { transform: none; }
    .hero-fcard-body { padding: 10px 12px; }

    /* Rest of page */
    .lp-problem { padding: 48px 0; }
    .lp-problem h2 { font-size: 1.375rem; }
    .lp-features,
    .lp-steps,
    .lp-testimonials { padding: 56px 0; }
    .lp-section-hd h2 { font-size: 1.5rem; }
    .lp-grid,
    .lp-steps-row,
    .lp-testi-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .lp-proof-items { gap: 20px; }
    .lp-proof-divider { display: none; }
    .lp-proof-items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
    .lp-proof-item strong { font-size: 1.25rem; }
    .lp-final-cta { padding: 56px 0; }
    .lp-final-cta h2 { font-size: 1.5rem; }
    .lp-card { padding: 24px 20px; }
}
/* ==========================================================================
   DEMO MODAL
   ========================================================================== */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-backdrop.is-open {
    display: flex;
}
.modal-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    padding: 36px 32px;
    width: 100%;
    max-width: 460px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--lp-text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.modal-close:hover { color: var(--lp-text); }

.modal-card h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--lp-dark);
    margin-bottom: 6px;
}
.modal-sub {
    font-size: 0.875rem;
    color: var(--lp-text-muted);
    margin-bottom: 24px;
}

/* ── Modal form elements (self-contained) ─────────────────────────────── */
.modal-card .form-group { margin-bottom: 16px; }
.modal-card .form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lp-text);
    margin-bottom: 5px;
}
.label-opt {
    font-weight: 400;
    color: var(--lp-text-muted);
}
.modal-card .form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9375rem;
    font-family: var(--lp-font);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    background: #fff;
    color: var(--lp-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-card .form-input:focus {
    outline: none;
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}
.modal-card .form-input.error {
    border-color: #ef4444;
}
.modal-card .form-input::placeholder {
    color: var(--lp-text-muted);
    opacity: 0.6;
}
.modal-card .form-textarea {
    resize: vertical;
    min-height: 72px;
}
.modal-card .form-error {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 4px;
    display: none;
}
.modal-card .form-error.visible { display: block; }

.modal-card .alert {
    padding: 10px 14px;
    border-radius: var(--lp-radius);
    font-size: 0.8125rem;
    margin-bottom: 16px;
    display: none;
}
.modal-card .alert.visible { display: block; }
.modal-card .alert-error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}
.modal-card .alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}

.modal-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--lp-font);
    border-radius: var(--lp-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    line-height: 1.4;
}
.modal-card .btn:disabled { opacity: 0.6; cursor: not-allowed; }
.modal-card .btn-primary {
    background: var(--lp-primary);
    color: #fff;
    border-color: var(--lp-primary);
}
.modal-card .btn-primary:hover {
    background: var(--lp-primary-hover);
    border-color: var(--lp-primary-hover);
}
.modal-card .btn-block { display: flex; width: 100%; margin-top: 20px; }

/* ── Modal success state ──────────────────────────────────────────────── */
.modal-success {
    text-align: center;
    padding: 20px 0;
}
.modal-success-icon {
    margin-bottom: 16px;
}
.modal-success-icon svg { margin: 0 auto; }
.modal-success h2 {
    margin-bottom: 10px;
}
.modal-success p {
    font-size: 0.9375rem;
    color: var(--lp-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}
.modal-close-btn {
    min-width: 140px;
}

/* ── Button spinner (shared) ──────────────────────────────────────────── */
.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: uc-spin 0.5s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}
@keyframes uc-spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; }

/* Mobile modal */
@media (max-width: 640px) {
    .modal-card {
        padding: 28px 20px;
        max-height: 95vh;
    }
}
/* ── Accessibility ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
