/*
Theme Name: ErgodicLabs
Theme URI: https://ergodiclabs.co
Author: ErgodicLabs
Author URI: https://ergodiclabs.co
Description: Professional dark theme for ErgodicLabs - Edge Matrix trading analysis software.
Version: 1.6.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ergodiclabs
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --bg-void: #0a0b0f;
    --bg-surface: #111318;
    --bg-elevated: #181b22;
    --bg-card: #151821;
    --accent-primary: #00ccff;
    --accent-secondary: #3b82f6;
    --accent-green: #10b981;
    --accent-gold: #f59e0b;
    --accent-red: #ef4444;
    --gradient-hero: linear-gradient(135deg, #00ccff 0%, #3b82f6 50%, #1e40af 100%);
    --gradient-cta: linear-gradient(135deg, #00ccff, #3b82f6);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;
    --border-subtle: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.1);
    --border-accent: rgba(0,204,255,0.15);
    --font-display: 'Cabinet Grotesk', 'DM Sans', sans-serif;
    --font-body: 'DM Sans', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px var(--border-subtle);
    --shadow-glow: 0 0 40px rgba(0,204,255,0.08);
    --max-width: 1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #33d6ff; }

img { max-width: 100%; height: auto; }

::selection { background: rgba(0,204,255,0.3); color: #fff; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

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

/* ============================================================
   ATMOSPHERE
   ============================================================ */
.atmo {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0,204,255,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(16,185,129,0.04) 0%, transparent 50%);
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s;
    background: transparent;
}

.site-nav.scrolled {
    background: rgba(10,11,15,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-cta);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #000;
    font-family: var(--font-mono);
}

.nav-brand-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.nav-brand-text span { color: var(--accent-primary); }

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.current { color: var(--text-primary); }

.nav-links a.current::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
}

.nav-cta {
    padding: 8px 20px;
    background: var(--gradient-cta);
    color: #000 !important;
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,204,255,0.3);
    color: #000 !important;
}

/* Mobile menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,204,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,204,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0,204,255,0.08);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero h1 .gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 18px;
}

/* Positioning tagline — sits between the subhead and the trial badge.
   Bigger than subhead, italic for voice, cyan accent for brand color.
   Behavior-framing copy (not an outcome promise). */
.hero-tagline {
    font-size: 17px;
    font-style: italic;
    color: var(--accent-primary, #00ccff);
    font-weight: 500;
    letter-spacing: 0.2px;
    margin: 0 auto 28px;
    max-width: 620px;
    line-height: 1.5;
    opacity: 0.92;
}

/* Trial / guarantee badge in hero — two equal-weight lines (subscriptions + lifetime) */
.hero-trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    margin: 0 auto 28px;
    font-size: 13px;
    color: #10b981;
    font-weight: 500;
    line-height: 1.5;
}
.hero-trial-badge strong {
    color: #10b981;
    font-weight: 700;
}
.hero-trial-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.hero-trial-line {
    font-size: 13px;
    color: #10b981;
    display: block;
}
.hero-trial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: trial-pulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes trial-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin: 36px auto 0;
    padding: 16px 28px;
    background: rgba(0,204,255,0.06);
    border: 1px solid rgba(0,204,255,0.25);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 24px rgba(0,204,255,0.08);
}

.hero-coming-soon-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-primary);
    animation: hero-coming-soon-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes hero-coming-soon-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-coming-soon-label {
    color: var(--accent-primary);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 13px;
}

.hero-coming-soon-text {
    color: var(--text-primary);
    letter-spacing: 0.4px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .hero-coming-soon {
        flex-direction: column;
        gap: 10px;
        padding: 16px 22px;
        text-align: center;
        font-size: 13px;
    }
    .hero-coming-soon-label { font-size: 11px; }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--gradient-cta);
    color: #000;
    box-shadow: 0 4px 20px rgba(0,204,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,204,255,0.35);
    color: #000;
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border-subtle);
}

.hero-stat-value {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-cta);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,204,255,0.08);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: all 0.3s;
}

.price-card.featured {
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px rgba(0,204,255,0.1);
}

.price-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--gradient-cta);
    color: #000;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 100px;
}

.price-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.price-amount {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 4px;
}

.price-amount .currency { font-size: 24px; color: var(--text-muted); }

.price-period {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.price-features {
    list-style: none;
    margin-bottom: 28px;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.price-features li:last-child { border-bottom: none; }

.price-features li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 700;
    font-size: 14px;
}

.price-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
}

.price-btn-primary {
    background: var(--gradient-cta);
    color: #000;
}

.price-btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

/* ============================================================
   TESTIMONIALS / SOCIAL PROOF
   ============================================================ */
.proof-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.proof-item {
    text-align: center;
}

.proof-value {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
}

.proof-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--accent-primary);
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '−';
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding-bottom: 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,204,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    position: relative;
}

.cta-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 64px 0 32px;
}

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

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 12px;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent-primary); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-dim);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 12px;
    color: var(--text-dim);
}

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.page-content {
    padding: 60px 0;
    background: #ffffff;
}

.page-content .container {
    max-width: 800px;
}

.prose {
    font-size: 16px;
    color: #374151;
    line-height: 1.85;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 48px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8ecf0;
}

.prose h3 {
    font-size: 19px;
    font-weight: 600;
    color: #1e293b;
    margin: 32px 0 12px;
}

.prose h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 24px 0 8px;
}

.prose p { margin-bottom: 20px; }

.prose ul, .prose ol {
    margin: 16px 0 20px;
    padding-left: 28px;
}

.prose li { margin-bottom: 10px; color: #374151; }

.prose strong { color: #0f172a; font-weight: 600; }

.prose em { color: #374151; font-style: italic; }

.prose a { color: var(--accent-primary); text-decoration: underline; }

.prose blockquote {
    border-left: 3px solid var(--accent-primary);
    padding: 12px 20px;
    margin: 24px 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
}

.prose code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
}

.prose hr {
    border: none;
    border-top: 1px solid #e8ecf0;
    margin: 40px 0;
}

/* ============================================================
   BLOG
   ============================================================ */

/* Search bar */
.blog-search-wrap {
    max-width: 480px;
    margin: 0 auto 48px;
    position: relative;
}
.blog-search-wrap input {
    width: 100%;
    padding: 13px 48px 13px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color .2s;
}
.blog-search-wrap input:focus { border-color: var(--accent-primary); }
.blog-search-wrap input::placeholder { color: var(--text-dim); }
.blog-search-wrap button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout: articles + sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* ── Hero card (latest post) ── */
.hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    color: inherit;
    margin-bottom: 24px;
    transition: border-color .3s, transform .3s;
}
.hero-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.hero-card:hover .hero-card-title { color: var(--accent-primary); }
.hero-card-img {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    background: var(--bg-elevated);
}
.hero-card-img img { width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s; }
.hero-card:hover .hero-card-img img { transform: scale(1.04); }
.hero-img-placeholder { width:100%;height:100%;background:linear-gradient(135deg,rgba(0,204,255,0.08),rgba(59,130,246,0.04)); }
.hero-card-badge {
    position: absolute; top:16px; left:16px;
    background: var(--accent-primary); color: #0a0e17;
    font-family: var(--font-mono); font-size:10px; font-weight:700;
    letter-spacing:1.5px; text-transform:uppercase;
    padding: 5px 12px; border-radius:100px;
}
.hero-card-body {
    padding: 40px 36px;
    display: flex; flex-direction: column; justify-content: center;
}
.hero-card-title {
    font-size: 26px; font-weight: 800; line-height: 1.25;
    letter-spacing: -.4px; color: var(--text-primary);
    margin: 12px 0 14px; transition: color .2s;
}
.hero-card-excerpt {
    font-size: 14px; color: var(--text-muted); line-height: 1.75;
    margin-bottom: 20px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-card-link { font-family:var(--font-mono);font-size:12px;font-weight:700;color:var(--accent-primary);letter-spacing:.5px; }

/* ── Secondary row (posts 2 & 3) ── */
.secondary-row { display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:40px; }
.secondary-card {
    border-radius:16px;overflow:hidden;background:var(--bg-card);
    border:1px solid var(--border-subtle);text-decoration:none;color:inherit;
    transition:border-color .3s,transform .3s;display:flex;flex-direction:column;
}
.secondary-card:hover { border-color:var(--border-accent);transform:translateY(-2px); }
.secondary-card:hover .secondary-card-title { color:var(--accent-primary); }
.secondary-card-img { height:200px;overflow:hidden;background:var(--bg-elevated); }
.secondary-card-img img { width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s; }
.secondary-card:hover .secondary-card-img img { transform:scale(1.04); }
.secondary-img-placeholder { width:100%;height:100%;background:linear-gradient(135deg,rgba(0,204,255,0.06),rgba(59,130,246,0.03)); }
.secondary-card-body { padding:22px 24px 26px;flex:1; }
.secondary-card-title { font-size:17px;font-weight:700;line-height:1.35;color:var(--text-primary);margin:10px 0 8px;transition:color .2s; }
.secondary-card-excerpt {
    font-size:13px;color:var(--text-muted);line-height:1.65;
    display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}

/* ── More Articles label ── */
.list-section-label {
    font-family:var(--font-mono);font-size:11px;letter-spacing:2px;text-transform:uppercase;
    color:var(--text-dim);margin-bottom:4px;padding-bottom:14px;border-bottom:1px solid var(--border-subtle);
}

/* ── Article list (posts 4+) ── */
.article-list { display:flex;flex-direction:column;gap:0; }
.article-item {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all .3s;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.article-item:hover .article-title { color: var(--accent-primary); }
.article-item:hover .article-thumb img { transform: scale(1.04); }
.article-thumb { border-radius:12px;overflow:hidden;height:175px;background:var(--bg-elevated); }
.article-thumb img { width:100%;height:100%;object-fit:cover;transition:transform .4s; }
.article-thumb-placeholder { width:100%;height:100%;background:linear-gradient(135deg,rgba(0,204,255,0.06),rgba(59,130,246,0.03)); }

.article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.article-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: .3px;
}
.article-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-primary);
    background: rgba(0,204,255,0.08);
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: .3px;
}
.article-read {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
}
.article-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    transition: color .2s;
    color: var(--text-primary);
}
.article-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-number { display: none; }

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 24px;
    overflow: hidden;
}
.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* MC CTA sidebar card */
.mc-cta {
    background: linear-gradient(160deg, rgba(0,204,255,0.07), rgba(59,130,246,0.04));
    border-color: var(--border-accent);
}
.mc-cta-icon {
    width: 44px;
    height: 44px;
    background: rgba(0,204,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.mc-cta h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
.mc-cta p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}
.mc-cta-btn {
    display: block;
    text-align: center;
    padding: 11px 20px;
    background: var(--accent-primary);
    color: #0a0e17;
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .2s;
}
.mc-cta-btn:hover { transform: translateY(-2px); }

/* Edge Matrix CTA sidebar card */
.edge-cta h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}
.edge-cta p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}
.edge-cta-btn {
    display: block;
    text-align: center;
    padding: 10px 20px;
    background: transparent;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid var(--border-accent);
    text-decoration: none;
    transition: all .2s;
}
.edge-cta-btn:hover {
    background: rgba(0,204,255,0.06);
    transform: translateY(-2px);
}

/* Categories list */
.cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.cat-item:last-child { border-bottom: none; }
.cat-item a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .2s;
}
.cat-item a:hover { color: var(--accent-primary); }
.cat-count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Legacy blog-grid (kept for search.php / archive.php) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}
.blog-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}
.blog-card-img {
    height: 200px;
    background: var(--bg-elevated);
    overflow: hidden;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-body { padding: 24px; }
.blog-card-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.blog-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.blog-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}
.blog-card h3 a:hover { color: var(--accent-primary); }
.blog-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #0a0b0f;
        padding: 32px 24px;
        gap: 18px;
        border-top: 1px solid var(--border-subtle);
        overflow-y: auto;
        z-index: 9998;
    }
    body.has-launch-banner .nav-links.open { top: 96px; }
    .hero h1 { letter-spacing: -1px; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .hero-tagline {
        font-size: 14.5px;
        padding: 0 12px;
    }
    .hero-trial-badge {
        font-size: 11.5px;
        padding: 10px 14px;
        max-width: 92%;
        text-align: left;
    }
    .hero-trial-line {
        font-size: 11.5px;
    }
    .features-grid,
    .pricing-grid,
    .blog-grid { grid-template-columns: 1fr; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .hero-card { grid-template-columns: 1fr; }
    .hero-card-img { min-height: 240px; }
    .hero-card-body { padding: 28px 24px; }
    .hero-card-title { font-size: 22px; }
    .secondary-row { grid-template-columns: 1fr; }
    .article-item { grid-template-columns: 1fr; }
    .article-thumb { height: 180px; }
    .article-number { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .proof-bar { flex-direction: column; gap: 24px; }
    .section { padding: 64px 0; }
}

@media (max-width: 520px) {
    .blog-sidebar { grid-template-columns: 1fr; }
}

/* ============================================================
   DISCLAIMER BAR
   ============================================================ */
.disclaimer-bar {
    background: rgba(245,158,11,0.06);
    border-top: 1px solid rgba(245,158,11,0.15);
    padding: 12px 0;
    text-align: center;
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ============================================================
   WORDPRESS SPECIFIC
   ============================================================ */
.wp-block-image { margin: 24px 0; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }

/* Comments */
.comment-list { list-style: none; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--border-subtle); }
.comment-author { font-weight: 600; }
.comment-content { font-size: 14px; color: var(--text-secondary); }

/* ============================================================
   FEATURES PAGE — SPLIT LAYOUTS
   ============================================================ */
.feat-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.feat-split--reverse { direction: rtl; }
.feat-split--reverse > * { direction: ltr; }
.feat-number {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-primary);
    letter-spacing: 2px;
    margin-bottom: 12px;
    opacity: 0.7;
}
.feat-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.feat-lead {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}
.feat-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.feat-detail-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.feat-detail-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,204,255,0.06);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
}
.feat-detail-item strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.feat-detail-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.feat-card-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.feat-card-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.feat-card-stat-row:last-child { border-bottom: none; }
.fcs-label {
    font-size: 13px;
    color: var(--text-muted);
}
.fcs-value {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.feat-score-display {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.feat-score-circle {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}
.feat-score-num {
    font-family: var(--font-mono);
    font-size: 56px;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1;
}
.feat-score-grade {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}
.feat-score-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feat-bar-row {
    display: grid;
    grid-template-columns: 110px 1fr 32px;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}
.feat-bar {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
}
.feat-bar-fill {
    height: 100%;
    border-radius: 3px;
}
.feat-bar-row span:last-child {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: right;
}
@media (max-width: 768px) {
    .feat-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .feat-split--reverse { direction: ltr; }
}
