/* ==========================================================================
   ClientFlow Pro - Master Stylesheet (Funnel & UI Core)
   Stack: Native CSS3, Mobile-First, Zero-Bloat
   ========================================================================== */

:root {
    --bg-base: #07090e;
    --bg-surface: #0d111a;
    --bg-surface-elevated: #131926;
    --border-color: #212d42;
    --border-bright: #324467;
    
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --accent: #ccff00;
    --accent-hover: #b3e600;
    --accent-dim: rgba(204, 255, 0, 0.1);
    
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --max-width: 1200px;
    --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for sticky CTA on mobile */
}

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

ul {
    list-style: none;
}

/* --- Layout Wrappers --- */
.wrap {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Announcement Bar --- */
.announce {
    background: var(--accent);
    color: #000;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    padding: 10px 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Navigation Topbar --- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.brand em {
    color: var(--accent);
    font-style: normal;
}

.brand-mark {
    width: 28px;
    height: 28px;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-mark span {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
}

.nav {
    display: none;
}

@media(min-width: 768px) {
    .nav {
        display: flex;
        align-items: center;
        gap: 24px;
        font-size: 14px;
        color: var(--text-muted);
        font-weight: 500;
    }
    .nav a:hover {
        color: var(--text-main);
    }
}

/* --- Buttons & CTAs --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-bright);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: var(--border-color);
}

.button-wide {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 60px 0 80px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, var(--border-color) 1px, transparent 1px),
                      linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media(min-width: 992px) {
    .hero-content {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.kicker {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(204, 255, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.lede {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 540px;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

@media(min-width: 480px) {
    .actions {
        flex-direction: row;
        align-items: center;
    }
}

.hero-meta {
    font-size: 13px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-meta span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* --- Pure CSS VSL Animation Component --- */
.vsl-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.vsl-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: radial-gradient(circle at center, #1a2333 0%, #07090e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Geometric CSS motion graphics inside VSL box */
.vsl-screen::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px dashed rgba(204, 255, 0, 0.25);
    border-radius: 50%;
    animation: vslSpin 20s linear infinite;
}

.vsl-screen::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    animation: vslPulse 3s ease-in-out infinite;
}

@keyframes vslSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes vslPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.play {
    position: relative;
    z-index: 3;
    width: 70px;
    height: 70px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.4);
}

.play span {
    color: #000;
    font-size: 22px;
    margin-left: 3px;
}

.play:hover {
    transform: scale(1.1);
    background: #fff;
}

.vsl-caption {
    padding: 15px 20px;
    background: var(--bg-surface-elevated);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* --- Stats Ribbon --- */
.stats {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.stats .wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-color);
}

@media(min-width: 768px) {
    .stats .wrap {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat {
    background: var(--bg-base);
    padding: 24px 20px;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.stat span {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- Content Sections & Cards --- */
.section {
    padding: 90px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-dark {
    background: var(--bg-surface);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
}

@media(min-width: 768px) {
    .section-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section h2 em {
    color: var(--accent);
    font-style: normal;
}

.intro {
    max-width: 480px;
    color: var(--text-muted);
    font-size: 15px;
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media(min-width: 768px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--border-bright);
    transform: translateY(-3px);
}

.card .num {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 15px;
    display: block;
}

.card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

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

.card .arrow {
    margin-top: auto;
    padding-top: 20px;
    color: var(--accent);
    font-weight: 700;
}

/* --- Pricing Section --- */
.pricing {
    padding: 90px 0;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 840px;
    margin: 0 auto;
}

@media(min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.price-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card.featured {
    border-color: var(--accent);
    background: var(--bg-surface-elevated);
    box-shadow: 0 0 40px rgba(204, 255, 0, 0.08);
}

.price-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 30px;
    background: var(--accent);
    color: #000;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.price-card .mini {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.price-card h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
}

.price {
    font-size: 44px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price small {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.price-card ul {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.price-card li {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-card li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 900;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
}

/* --- FAQ Accordions --- */
.faq {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq details {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    transition: var(--transition);
}

.faq details[open] {
    border-color: var(--border-bright);
    background: var(--bg-surface-elevated);
}

.faq summary {
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    font-size: 20px;
    color: var(--accent);
    font-weight: 400;
    transition: var(--transition);
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq p {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Sticky Mobile CTA --- */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    z-index: 99;
    text-align: center;
    display: block;
}

@media(min-width: 768px) {
    .sticky-cta {
        display: none;
    }
}

.sticky-cta a {
    display: block;
    background: var(--accent);
    color: #000;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Floating Interactive Lead/Support Widget --- */
.floating-chat {
    position: fixed;
    bottom: 75px;
    right: 20px;
    z-index: 1000;
}

@media(min-width: 768px) {
    .floating-chat {
        bottom: 30px;
    }
}

.chat-launch {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(204, 255, 0, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-launch:hover {
    transform: scale(1.08);
}

.chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-panel.active {
    display: flex;
}

.chat-head {
    background: var(--bg-base);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-head strong {
    display: block;
    font-size: 14px;
}

.chat-head small {
    font-size: 11px;
    color: var(--text-muted);
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.chat-messages {
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.bubble {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    max-width: 85%;
    line-height: 1.4;
}

.bubble.bot {
    background: var(--bg-base);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    align-self: flex-start;
}

.lead-form {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lead-form input {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
}

.lead-form input:focus {
    border-color: var(--accent);
}

.lead-form button {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.lead-status {
    font-size: 11px;
    color: var(--accent);
    text-align: center;
}

.chat-form {
    display: none; /* Secondary text input fallback */
}

/* --- Footer --- */
.footer {
    background: var(--bg-base);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.footer-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
}

@media(min-width: 768px) {
    .footer-row {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer a {
    color: var(--text-main);
    text-decoration: underline;
}
