/* ===========================================
   SELF-HOSTED FONTS
   =========================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/inter-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/inter-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/inter-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/inter-latin-800.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/playfair-display-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/playfair-display-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/jetbrains-mono-latin-400.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/jetbrains-mono-latin-500.woff2') format('woff2');
}

/* ===========================================
   CSS VARIABLES
   =========================================== */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --primary-dark: #0a0a0f;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --text: #1e293b;
    --text-light: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8f9fb;
    --border: #e2e8f0;
    --success: #38a169;
    --code-bg: #0a0a0f;
    --warning: #ed8936;
    --dark-bg: #0f172a;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* ===========================================
   RESET & BASE
   =========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

/* ===========================================
   PROGRESS BAR
   =========================================== */
/* ===========================================
   FLOATING NAV
   =========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(10, 10, 15, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===========================================
   PROGRESS BAR (sits below nav)
   =========================================== */
.progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    z-index: 1001;
    pointer-events: none;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width 0.15s ease-out;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #f1f5f9;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #f1f5f9;
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 10;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span {
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle span::before {
    top: -8px;
}

.nav-toggle span::after {
    top: 8px;
}

/* Open state: X icon */
.nav.nav-open .nav-toggle span {
    background: transparent;
}

.nav.nav-open .nav-toggle span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav.nav-open .nav-toggle span::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: rgba(10, 10, 15, 0.95);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--glass-border);
        padding: 8px 24px 20px;
    }

    .nav.nav-open .nav-links {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        font-size: 16px;
    }
}

/* ===========================================
   FAQ SUPPORT CTA
   =========================================== */
.faq-support {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: 8px;
    text-align: center;
}

.faq-support p:first-child {
    margin: 0 0 0.5rem;
    color: #e0e7ff;
    font-weight: 600;
}

.faq-support p:nth-child(2) {
    margin: 0 0 0.75rem;
    color: #a5b4fc;
    font-size: 0.95rem;
}

.faq-support a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #6366f1;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.faq-support a:hover {
    background: #4f46e5;
}

/* ===========================================
   COVER / HERO SECTION
   =========================================== */
.cover {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Subtle animated background pattern */
.cover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 100px,
        rgba(255,255,255,0.02) 100px,
        rgba(255,255,255,0.02) 200px
    );
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.cover > * {
    position: relative;
    z-index: 1;
}

.cover-badge {
    background: var(--accent);
    color: #fff;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.cover h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(42px, 10vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.cover-sub {
    font-size: clamp(17px, 3vw, 22px);
    opacity: 0.95;
    max-width: 640px;
    margin-bottom: 48px;
    font-weight: 400;
}

.cover-stats {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

.cover-stat {
    text-align: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 24px 32px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    min-width: 140px;
}

.cover-stat-num {
    font-size: 52px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.cover-stat-label {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 8px;
    font-weight: 500;
}

.cover-cta {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 18px 48px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.cover-cta:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}

/* ===========================================
   INDUSTRY STATS / SOCIAL PROOF
   =========================================== */
.industry-stats {
    background: var(--bg-alt);
    padding: 64px 24px;
    text-align: center;
}

.industry-stats-inner {
    max-width: 900px;
    margin: 0 auto;
}

.industry-stats h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
}

.industry-stats-sub {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 16px;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.stat-card-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.stat-card-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card-label {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.4;
}

.stat-card-source {
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.7;
    margin-top: 12px;
}

/* ===========================================
   CONTENT AREA
   =========================================== */
.content {
    max-width: 780px;
    margin: 0 auto;
    padding: 64px 24px;
}

/* ===========================================
   MARKDOWN STYLES
   =========================================== */
.content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 34px;
    color: var(--primary);
    margin: 72px 0 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--accent);
}
.content h1:first-child { margin-top: 0; }

.content h2 {
    font-size: 24px;
    color: var(--primary);
    margin: 48px 0 20px;
    font-weight: 600;
}

.content h3 {
    font-size: 20px;
    color: var(--primary);
    margin: 36px 0 16px;
    font-weight: 600;
}

.content h4 {
    font-size: 17px;
    color: var(--text);
    margin: 28px 0 12px;
    font-weight: 600;
}

.content p { margin-bottom: 16px; }
.content strong { color: var(--primary); font-weight: 600; }

.content ul, .content ol {
    margin: 16px 0 24px 24px;
}
.content li { margin-bottom: 10px; }

.content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
    margin: 56px 0;
}

/* ===========================================
   TABLES - MOBILE FRIENDLY
   =========================================== */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.content th {
    background: var(--primary);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.content tr:nth-child(even) { background: var(--bg-alt); }
.content tr:last-child td { border-bottom: none; }

/* Mobile table scroll wrapper (applied by JS) */
.table-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.table-scroll-wrap table {
    margin: 0;
    box-shadow: none;
}

/* ===========================================
   BLOCKQUOTES
   =========================================== */
.content blockquote {
    background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-left: 4px solid var(--accent);
    padding: 24px 28px;
    margin: 28px 0;
    border-radius: 0 16px 16px 0;
    font-style: italic;
}
.content blockquote p { margin: 0; }
.content blockquote strong { font-style: normal; }

/* ===========================================
   CODE BLOCKS
   =========================================== */
.content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.88em;
    background: var(--bg-alt);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--primary);
}

.content pre {
    background: var(--code-bg);
    border-radius: 16px;
    padding: 28px;
    margin: 28px 0;
    overflow-x: auto;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.content pre code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.7;
    color: #e2e8f0;
    background: none;
    padding: 0;
    display: block;
    white-space: pre-wrap;
}

/* Copy Button */
.copy-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    opacity: 0;
}
.content pre:hover .copy-btn { opacity: 1; }
@media (max-width: 768px) {
    .copy-btn { opacity: 1; }
}
.copy-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}
.copy-btn.copied {
    background: var(--success);
    color: white;
}

/* ===========================================
   CHECKBOXES
   =========================================== */
.content input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: var(--success);
    cursor: pointer;
}

/* ===========================================
   PAYWALL
   =========================================== */
.paywall {
    position: relative;
    margin: 80px 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.paywall-fade {
    position: absolute;
    top: -180px;
    left: -48px;
    right: -48px;
    height: 220px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.paywall-box {
    position: relative;
    background: 
        radial-gradient(ellipse at 30% 0%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    border-radius: 28px;
    padding: 60px 48px;
    text-align: center;
    color: white;
    box-shadow: 0 30px 100px rgba(10, 10, 15, 0.6);
    overflow: hidden;
}

.paywall-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 60px,
        rgba(255,255,255,0.03) 60px,
        rgba(255,255,255,0.03) 120px
    );
    pointer-events: none;
}

.paywall-box > * {
    position: relative;
    z-index: 1;
}

.paywall-box h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    color: white;
    margin: 0 0 12px;
}

.paywall-box > p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 36px;
}

.paywall-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
    text-align: left;
}

.paywall-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 500;
}

.paywall-feature span:first-child {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.paywall-price {
    margin-bottom: 32px;
}

.paywall-price .old {
    font-size: 24px;
    text-decoration: line-through;
    opacity: 0.5;
    margin-right: 16px;
}

.paywall-price .current {
    font-size: 64px;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.paywall-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 22px 64px;
    border-radius: 14px;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.paywall-btn:hover {
    background: var(--accent-light);
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.5);
}

.paywall-guarantee {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.75;
}

/* Urgency Badge */
.paywall-urgency {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.85;
}

.trust-badge-icon {
    font-size: 16px;
}

/* Hidden states */
.paywall.hidden { display: none; }
#paid-content { display: none; }
#paid-content.unlocked { display: block; }

/* ===========================================
   STICKY CTA (MOBILE)
   =========================================== */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 16px 20px;
    z-index: 9998;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.sticky-cta.hidden { display: none !important; }

.sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
    gap: 16px;
}

.sticky-cta-text {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.sticky-cta-price {
    color: var(--accent);
    font-weight: 800;
}

.sticky-cta-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .sticky-cta { display: block; }
    body { padding-bottom: 80px; }
}

/* ===========================================
   CONTAINER
   =========================================== */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-muted);
    padding: 80px 0 40px;
}

.footer.hidden { display: none; }

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand-name {
    font-weight: 700;
    font-size: 20px;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.footer-brand-tagline {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-col h4 {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f1f5f9;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #f1f5f9;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.5;
    margin-top: 16px;
}

/* ===========================================
   UNLOCK CONFIRMATION
   =========================================== */
.unlock-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(56, 161, 105, 0.4);
    animation: slideDown 0.4s ease, fadeOut 0.4s ease 3s forwards;
}

@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

/* ===========================================
   FAQ SECTION
   =========================================== */
.faq-section {
    background: var(--bg-alt);
    padding: 80px 24px;
}

.faq-inner {
    max-width: 700px;
    margin: 0 auto;
}

.faq-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 48px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-alt);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text);
    line-height: 1.7;
}

/* ===========================================
   COMPARISON SECTION
   =========================================== */
.comparison-section {
    padding: 80px 24px;
    background: white;
}

.comparison-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.comparison-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

.comparison-sub {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 40px;
    font-style: italic;
}

.comparison-table-wrap {
    margin-bottom: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 520px;
}

.comparison-table th {
    background: var(--primary);
    color: white;
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.comparison-table td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.comparison-table tbody tr:nth-child(even) {
    background: var(--bg-alt);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
}

.comparison-highlight td {
    color: var(--primary);
    font-weight: 600;
}

.scroll-hint {
    display: none;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 12px;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .scroll-hint {
        display: block;
    }
}

/* Comparison table card layout on small screens */
@media (max-width: 520px) {
    .scroll-hint { display: none; }
    .comparison-table-wrap {
        box-shadow: none;
        overflow-x: visible;
    }
    .comparison-table { min-width: auto; }
    .comparison-table thead { display: none; }
    .comparison-table tbody tr {
        display: block;
        margin-bottom: 12px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: white;
    }
    .comparison-table tbody tr:nth-child(even) {
        background: var(--bg-alt);
    }
    .comparison-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        white-space: normal;
    }
    .comparison-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-light);
        margin-right: 16px;
        flex-shrink: 0;
    }
    .comparison-table td:first-child {
        font-weight: 600;
        color: var(--primary);
        border-bottom: 1px solid var(--border);
    }
    .comparison-highlight {
        border: 2px solid var(--accent) !important;
    }
}

.value-anchors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.value-anchor {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.value-anchor-icon {
    font-size: 24px;
}

/* ===========================================
   EXIT INTENT POPUP
   =========================================== */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.exit-popup.hidden {
    display: none;
}

.exit-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.exit-popup-content {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 100px rgba(0,0,0,0.3);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.exit-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    transition: color 0.2s;
}

.exit-popup-close:hover {
    color: var(--text);
}

.exit-popup-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 16px;
}

.exit-popup-headline {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 12px;
}

.exit-popup-headline strong {
    color: var(--primary);
}

.exit-popup-sub {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.exit-popup-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--text);
}

.exit-popup-features span {
    background: var(--bg-alt);
    padding: 8px 16px;
    border-radius: 50px;
}

.exit-popup-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.exit-popup-btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}

.exit-popup-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
}

/* ===========================================
   EMAIL CAPTURE SECTION
   =========================================== */
.email-capture-section {
    background:
        radial-gradient(ellipse at 30% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
    padding: 80px 24px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.email-capture-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.email-capture-badge {
    display: inline-block;
    background: var(--success);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.email-capture-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    margin-bottom: 16px;
    color: white;
}

.email-capture-sub {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}

.email-capture-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.email-capture-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.email-capture-item span:first-child {
    color: var(--success);
    font-weight: 700;
}

.email-capture-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.email-capture-form input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.email-capture-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

.email-capture-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    font-family: inherit;
}

.email-capture-form button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.email-capture-note {
    margin-top: 16px;
    font-size: 13px;
    opacity: 0.6;
}

.email-capture-thankyou {
    text-align: center;
    padding: 20px 0;
}

.email-capture-thankyou.hidden {
    display: none;
}

#ec-form-wrap.hidden {
    display: none;
}

.email-capture-thankyou-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.email-capture-thankyou h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    color: #38a169;
    margin-bottom: 12px;
}

.email-capture-thankyou p {
    font-size: 17px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ===========================================
   ABOUT SECTION
   =========================================== */
.about-section {
    background: var(--bg-alt);
    padding: 80px 24px;
}

.about-inner {
    max-width: 700px;
    margin: 0 auto;
}

.about-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 32px;
}

.about-content p {
    color: var(--text);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.about-value {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-value-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.about-value strong {
    display: block;
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 4px;
}

.about-value p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ===========================================
   TESTIMONIALS SECTION
   =========================================== */
.testimonials-section {
    padding: 80px 24px;
    background: white;
}

.testimonials-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 48px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    text-align: left;
}

.testimonial-card {
    background: var(--bg-alt);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
    color: var(--primary);
}

.testimonial-author span {
    font-size: 13px;
    color: var(--text-light);
}

/* ===========================================
   GUARANTEE BADGE (Paywall)
   =========================================== */
.paywall-guarantee-badge {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    margin-top: 32px;
    padding: 24px;
    background: rgba(56, 161, 105, 0.1);
    border: 1px solid rgba(56, 161, 105, 0.3);
    border-radius: 16px;
}

.guarantee-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.paywall-guarantee-badge strong {
    display: block;
    font-size: 16px;
    color: #68d391;
    margin-bottom: 4px;
}

.paywall-guarantee-badge p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
    margin: 0;
}

/* ===========================================
   SCROLL ANIMATIONS
   =========================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .cover {
        padding: 60px 20px;
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .cover-stats {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }

    .cover-stat {
        width: 100%;
        max-width: 280px;
        padding: 20px 24px;
    }

    .cover-stat-num {
        font-size: 40px;
    }

    .industry-stats {
        padding: 48px 20px;
    }

    .stat-cards {
        gap: 16px;
    }

    .stat-card {
        padding: 24px 20px;
    }

    .stat-card-num {
        font-size: 36px;
    }

    .email-capture-section {
        padding: 60px 20px;
    }

    .email-capture-form {
        flex-direction: column;
    }

    .email-capture-form button {
        width: 100%;
    }

    .about-section {
        padding: 60px 20px;
    }

    .testimonials-section {
        padding: 60px 20px;
    }
}

@media (max-width: 640px) {
    .content { padding: 48px 20px; }
    .content h1 { font-size: 28px; margin: 48px 0 20px; }
    .content h2 { font-size: 21px; margin: 36px 0 16px; }
    .content pre { padding: 20px; }
    .content pre code { font-size: 13px; }
    .content blockquote { padding: 18px 20px; }

    .paywall { margin: 60px 16px; }
    .paywall-box { padding: 40px 24px; }
    .paywall-features { grid-template-columns: 1fr; }
    .paywall-box h2 { font-size: 28px; }
    .paywall-price .current { font-size: 48px; }
    .paywall-btn { padding: 18px 40px; font-size: 17px; width: 100%; }

    .trust-badges {
        flex-direction: column;
        gap: 12px;
    }

    .faq-section { padding: 60px 20px; }
    .faq-section h2 { font-size: 26px; }
    .faq-question { padding: 20px; font-size: 15px; }
    .faq-answer p { padding: 0 20px 20px; font-size: 15px; }

    .comparison-section { padding: 60px 20px; }
    .comparison-section h2 { font-size: 26px; }
    .value-anchors { flex-direction: column; gap: 16px; }

    .exit-popup-content { padding: 36px 24px; }
    .exit-popup-content h3 { font-size: 24px; }
    .exit-popup-features { flex-direction: column; gap: 8px; }

    .email-capture-section h2 { font-size: 26px; }
    .about-section h2 { font-size: 26px; }
    .testimonials-section h2 { font-size: 26px; }

    .footer { padding: 40px 20px 100px; }
}

@media (min-width: 1024px) {
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    }
}

/* ===========================================
   CONTACT FORM
   =========================================== */
.page-top {
    padding-top: 120px;
}

.page-header {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    padding: 140px 24px 48px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: white;
    margin: 0 0 8px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin: 0;
}
.contact-form {
    max-width: 500px;
    margin: 0 auto;
}
.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 15px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.contact-form button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}
.contact-form.hidden {
    display: none;
}
.contact-form .honeypot {
    display: none !important;
}
.contact-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}
.contact-success.visible {
    display: block;
}
.contact-success h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--success);
    margin-bottom: 12px;
}
.contact-success p {
    color: var(--text-light);
    font-size: 17px;
}
.back-link {
    display: inline-block;
    margin-top: 48px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    transition: all 0.2s ease;
}
.back-link:hover {
    background: var(--primary);
    color: #fff;
}

/* ===========================================
   PERFORMANCE: reduce GPU cost on mobile
   =========================================== */
@media (max-width: 767px) {
    .nav {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .cover-stat {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.12);
    }
}

/* ===========================================
   PRINT
   =========================================== */
@media print {
    .progress-wrap, .paywall, .copy-btn, .sticky-cta, .industry-stats, .faq-section, .comparison-section, .exit-popup, .email-capture-section, .testimonials-section { display: none; }
    .cover { min-height: auto; padding: 40px; }
}
