/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease-out);
    backdrop-filter: blur(0px);
}

.nav.scrolled {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-card);
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    letter-spacing: 4px;
    font-size: 1.5rem;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.nav-highlight {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lang-toggle {
    border: 1px solid var(--border-card);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    transition: border-color 0.3s ease;
}

.lang-toggle:hover {
    border-color: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* === Hero Section === */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
}

.section-hero .container {
    width: 100%;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1.15;
    max-width: 900px;
    margin: 0 auto 24px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

.hero-trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.accent {
    color: var(--accent);
}

/* === Trust Bar === */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px 0;
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
    background: rgba(0, 212, 170, 0.02);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trust-icon {
    font-size: 1.2rem;
}

/* === Cards (reusable) === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--card-radius);
    padding: 40px 32px;
    transition: all 0.4s var(--ease-out);
}

.card:hover {
    border-color: rgba(0, 212, 170, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease-out);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* === Section Shared === */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    font-style: italic;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
}

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

.text-center .section-subtitle {
    margin: 0 auto 48px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links,
    .nav-actions .lang-toggle {
        display: none;
    }

    .cards-row {
        grid-template-columns: 1fr;
    }

    .trust-bar {
        gap: 24px;
        padding: 24px 16px;
    }

    .hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .section {
        padding: 60px 0;
    }

    .card {
        padding: 28px 20px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   SECTION STYLES — Prompt 3 (append)
   Why This Matters | Requirements | Features
   Empire | Audiences | Blog
   Pricing | Dedicated | Final CTA | Footer
   ============================================= */

/* === Why This Matters Section === */
.section-why {
    padding: 120px 0;
}

.card-warning {
    border-left: 3px solid var(--accent);
}

.card-warning .card-icon {
    background: rgba(0, 212, 170, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* === Requirements Section === */
.section-requirements .requirements-list {
    max-width: 700px;
    margin: 0 auto 40px;
}

.req-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-card);
    transition: all 0.3s;
}

.req-item:hover {
    background: rgba(0, 212, 170, 0.02);
    padding-left: 12px;
}

.req-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.req-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.req-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.section-requirements .text-center {
    text-align: center;
}

/* === Features Section === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 32px 24px;
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

/* === Zelicra Empire Section === */
.section-empire {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(0, 212, 170, 0.03) 50%, var(--bg-primary) 100%);
}

.empire-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.empire-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
}

.empire-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
}

.empire-arbiter::before {
    background: linear-gradient(90deg, transparent, var(--arbiter), transparent);
}

.empire-warden::before {
    background: linear-gradient(90deg, transparent, var(--warden), transparent);
}

.empire-sentinel::before {
    background: linear-gradient(90deg, transparent, var(--sentinel), transparent);
}

.empire-card:hover {
    transform: translateY(-8px);
}

.empire-arbiter:hover {
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.1);
}

.empire-warden:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.1);
}

.empire-sentinel:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.1);
}

.empire-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
    margin-bottom: 12px;
}

.badge-soon {
    background: rgba(59, 130, 246, 0.15);
    color: var(--sentinel);
}

.empire-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.empire-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 16px;
}

.empire-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .empire-grid {
        grid-template-columns: 1fr;
    }
}

/* === Audiences Section === */
/* Reuses .cards-row and .card styles already defined above */

/* === Blog Section === */
.card-blog {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.card-blog:hover h3 {
    color: var(--accent);
}

.blog-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
    padding: 4px 10px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 4px;
}

.card-blog h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.card-blog p {
    font-size: 0.9rem;
}

/* === Pricing Section === */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.pricing-toggle span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-card);
    border-radius: 13px;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    bottom: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .toggle-slider {
    background: var(--accent);
}

input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.save-badge {
    font-size: 0.75rem;
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 12px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--card-radius);
    padding: 36px 28px;
    position: relative;
    transition: all 0.4s var(--ease-out);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 170, 0.15);
}

.pricing-popular {
    border-color: rgba(0, 212, 170, 0.3);
    background: rgba(0, 212, 170, 0.03);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 12px;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-amount {
    margin-bottom: 24px;
}

.pricing-amount .price {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-amount span {
    font-size: 1rem;
    color: var(--text-secondary);
}

.period {
    font-size: 0.85rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 28px;
    padding: 0;
}

.pricing-card li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-card .btn-primary,
.pricing-card .btn-ghost {
    width: 100%;
    text-align: center;
    display: block;
}

.pricing-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 32px;
}

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

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* === Dedicated Deployment Section === */
.section-dedicated {
    background: var(--bg-secondary);
    border-radius: 24px;
}

.section-badge {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    text-align: center;
}

.dedicated-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.dedicated-item {
    padding: 24px;
}

.dedicated-item span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 12px;
}

.dedicated-item h4 {
    font-weight: 600;
    margin-bottom: 8px;
}

.dedicated-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.dedicated-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
}

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

/* === Final CTA Section === */
.section-cta-final {
    text-align: center;
    padding: 160px 0;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.whatsapp-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s;
    text-decoration: none;
}

.whatsapp-link:hover {
    color: #25D366;
}

/* === Footer === */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-card);
}

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

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.3s;
    text-decoration: none;
}

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

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border-card);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

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

    .section-cta-final {
        padding: 80px 0;
    }

    .dedicated-ctas {
        flex-direction: column;
        align-items: center;
    }
}

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

/* ============================================
   HOTFIX 2 — Critical visibility & layout fixes
   ============================================ */

/* Fix: Mobile menu must be hidden on desktop */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 24px 24px;
}
.mobile-menu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.mobile-menu-links a {
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: color 0.3s;
}
.mobile-menu-links a:hover {
    color: var(--accent);
}

/* Fix: Mobile hamburger hidden on desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* Fix nav layout — ensure center links + actions are properly aligned */
.nav-inner {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.nav-highlight {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   RTL / Arabic Support
   ============================================ */

[dir="rtl"] {
    font-family: 'Cairo', 'DM Sans', system-ui, sans-serif;
}

[dir="rtl"] .section-title,
[dir="rtl"] .hero-title,
[dir="rtl"] .empire-card h3 {
    font-family: 'Cairo', system-ui, sans-serif;
    font-style: normal; /* Arabic doesn't use italic */
}

[dir="rtl"] .nav-logo {
    letter-spacing: 2px; /* reduce for RTL */
}

[dir="rtl"] .nav-links {
    direction: rtl;
}

[dir="rtl"] .hero-ctas,
[dir="rtl"] .cta-buttons,
[dir="rtl"] .dedicated-ctas {
    direction: rtl;
}

[dir="rtl"] .req-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .card-warning {
    border-left: none;
    border-right: 3px solid var(--accent);
}

[dir="rtl"] .footer-grid {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .footer-col a {
    text-align: right;
}

[dir="rtl"] .blog-tag {
    direction: rtl;
}

[dir="rtl"] .pricing-card ul {
    text-align: right;
}

[dir="rtl"] .empire-code {
    direction: ltr; /* keep ZX-2 etc as LTR */
}

[dir="rtl"] .trust-bar {
    direction: rtl;
}

[dir="rtl"] .pricing-amount .price {
    direction: ltr; /* numbers stay LTR */
    display: inline-block;
}

/* ============================================
   Final Polish
   ============================================ */

/* Smooth scroll for the whole page */
html {
    scroll-behavior: smooth;
}

/* Better link focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* WhatsApp floating button (bottom right) */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s var(--ease-out);
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}
[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 24px;
}

/* Ensure pricing popular card has higher z-index */
.pricing-popular {
    z-index: 1;
    position: relative;
}

/* Loading state for page */
body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ============================================
   Immersive 3D Scroll — CSS Perspective & Transforms
   ============================================ */

/* Enable 3D perspective on all sections */
.section {
    perspective: 1200px;
    overflow: visible;
}

.section .container {
    transform-style: preserve-3d;
}

/* Cards get 3D transform-style */
.cards-row,
.features-grid,
.empire-grid,
.pricing-grid,
.dedicated-grid,
.requirements-list {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card,
.feature-card,
.empire-card,
.pricing-card,
.req-item {
    transform-style: preserve-3d;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Enhanced card hover — 3D tilt effect */
.card:hover,
.feature-card:hover,
.empire-card:hover,
.pricing-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg) scale(1.02) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease !important;
}

/* Glow intensifies on hover */
.empire-arbiter:hover {
    box-shadow: 0 25px 80px rgba(0, 212, 170, 0.2), 0 0 40px rgba(0, 212, 170, 0.1) !important;
}
.empire-warden:hover {
    box-shadow: 0 25px 80px rgba(168, 85, 247, 0.2), 0 0 40px rgba(168, 85, 247, 0.1) !important;
}
.empire-sentinel:hover {
    box-shadow: 0 25px 80px rgba(59, 130, 246, 0.2), 0 0 40px rgba(59, 130, 246, 0.1) !important;
}

/* Smooth section transitions — gradient dividers */
.section-why::before,
.section-features::before,
.section-empire::before,
.section-pricing::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

/* Animated gradient border on empire section */
.section-empire {
    position: relative;
}

/* Hero section depth layering */
.section-hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    will-change: transform, opacity;
    transform-style: preserve-3d;
}

/* Feature grid — subtle perspective tilt on whole grid */
.features-grid {
    perspective: 1200px;
}

/* Pricing popular card — extra elevation */
.pricing-popular {
    transform: scale(1.03);
    z-index: 2;
}
.pricing-popular:hover {
    transform: translateY(-12px) scale(1.05) !important;
}

/* Section titles get 3D transform support */
.section-title,
.section-subtitle {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Smooth scroll for immersive feel */
html {
    scroll-behavior: auto !important; /* GSAP handles smooth scrolling, not CSS */
}

/* Mouse-following glow cursor effect */
body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease, top 0.3s ease;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
}

/* Minimal GSAP fallback — content visible if JS fails */
@media (scripting: none) {
    .section-title,
    .section-subtitle,
    .card,
    .feature-card,
    .empire-card,
    .pricing-card {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   READABILITY FIX — Dark backgrounds behind content
   ============================================ */

/* All sections get a solid dark background so particles don't bleed through text */
.section {
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

/* Hero is special — keep transparent so particles show, but add a gradient overlay */
.section-hero {
    background: transparent;
    position: relative;
}
.section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(10, 14, 26, 0.4) 0%, rgba(10, 14, 26, 0.8) 70%);
    z-index: 0;
    pointer-events: none;
}
.section-hero .container {
    position: relative;
    z-index: 1;
}

/* Trust bar */
.trust-bar {
    background: rgba(10, 14, 26, 0.95);
    position: relative;
    z-index: 1;
}

/* "Why This Matters" — solid bg */
.section-why {
    background: var(--bg-primary);
}

/* Requirements */
.section-requirements {
    background: var(--bg-secondary, #0f1425);
}

/* Features */
.section-features {
    background: var(--bg-primary);
}

/* Empire — keep the gradient but make it darker */
.section-empire {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(10, 14, 26, 0.98) 50%, var(--bg-primary) 100%);
}

/* Audiences */
.section-audiences {
    background: var(--bg-secondary, #0f1425);
}

/* Blog */
.section-blog {
    background: var(--bg-primary);
}

/* Pricing */
.section-pricing {
    background: var(--bg-secondary, #0f1425);
}

/* Dedicated */
.section-dedicated {
    background: var(--bg-primary);
}

/* Final CTA — transparent so particles show, but with gradient overlay */
.section-cta-final {
    background: transparent;
    position: relative;
}
.section-cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(10, 14, 26, 0.5) 0%, rgba(10, 14, 26, 0.85) 70%);
    z-index: 0;
    pointer-events: none;
}
.section-cta-final .container {
    position: relative;
    z-index: 1;
}

/* Cards — ensure strong background */
.card,
.feature-card,
.pricing-card,
.empire-card {
    background: rgba(15, 20, 37, 0.95) !important;
    backdrop-filter: blur(8px);
}

/* Footer */
.footer {
    background: var(--bg-secondary, #0f1425);
    position: relative;
    z-index: 1;
}

/* Nav stays above everything */
.nav {
    z-index: 1000;
}
.nav.scrolled {
    background: rgba(10, 14, 26, 0.95);
}

/* Text shadow for extra readability on transparent sections */
.section-hero .hero-title,
.section-hero .hero-subtitle,
.section-cta-final .section-title,
.section-cta-final .section-subtitle {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* ============================================
   FINAL READABILITY & BEAUTIFICATION
   ============================================ */

/* === Section backgrounds — solid dark, no particle bleed === */
.section {
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

/* Hero: transparent with dark vignette so particles show BUT text is readable */
.section-hero {
    background: transparent !important;
}
.section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top,
        rgba(10, 14, 26, 0.3) 0%,
        rgba(10, 14, 26, 0.7) 60%,
        rgba(10, 14, 26, 0.9) 100%);
    z-index: 0;
    pointer-events: none;
}
.section-hero .container { position: relative; z-index: 1; }

/* Hero text: visible by default, strong contrast */
.hero-title {
    opacity: 1;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
    opacity: 1;
    text-shadow: 0 1px 15px rgba(0, 0, 0, 0.5);
}
.hero-ctas { opacity: 1; }
.hero-trust { opacity: 1; }

/* Alternating section backgrounds for visual rhythm */
.section-why { background: var(--bg-primary); }
.section-requirements { background: var(--bg-secondary, #0f1425); }
.section-features { background: var(--bg-primary); }
.section-empire { background: var(--bg-secondary, #0f1425); }
.section-audiences { background: var(--bg-primary); }
.section-blog { background: var(--bg-secondary, #0f1425); }
.section-pricing { background: var(--bg-primary); }
.section-dedicated { background: var(--bg-secondary, #0f1425); }

/* Final CTA: transparent with vignette (like hero) */
.section-cta-final {
    background: transparent !important;
}
.section-cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
        rgba(10, 14, 26, 0.4) 0%,
        rgba(10, 14, 26, 0.85) 70%);
    z-index: 0;
    pointer-events: none;
}
.section-cta-final .container { position: relative; z-index: 1; }
.section-cta-final .section-title { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }

/* Trust bar: solid */
.trust-bar {
    background: rgba(10, 14, 26, 0.95) !important;
    position: relative;
    z-index: 1;
}

/* Footer: solid */
.footer {
    background: var(--bg-secondary, #0f1425) !important;
    position: relative;
    z-index: 1;
}

/* Nav: ensure above everything */
.nav { z-index: 1000; }
.nav.scrolled { background: rgba(10, 14, 26, 0.95) !important; }

/* === Card readability — strong dark backgrounds === */
.card,
.card-warning,
.feature-card,
.pricing-card,
.empire-card,
.card-blog {
    background: rgba(15, 20, 37, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* === 3D perspective (keep from Prompt 5) === */
.section { perspective: 1200px; }
.cards-row, .features-grid, .empire-grid, .pricing-grid, .dedicated-grid {
    transform-style: preserve-3d;
}
.card, .feature-card, .empire-card, .pricing-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* === Mobile menu: hidden on desktop === */
.mobile-menu { display: none; }
.mobile-menu-toggle { display: none; }

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .nav-links { display: none !important; }
}

/* === WhatsApp float === */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ============================================
   DEFINITIVE READABILITY FIX
   ============================================ */

/* Force ALL sections above the particle canvas */
.section,
.trust-bar,
.footer,
.section-cta-final {
    position: relative;
    z-index: 2;
}

/* Force particle canvas behind everything */
#three-canvas {
    z-index: 0 !important;
    opacity: 0.6; /* dim the whole canvas */
}

/* Hero: MUCH stronger overlay — 85% opaque */
.section-hero {
    background: transparent !important;
    z-index: 2;
}
.section-hero::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(ellipse at center top,
        rgba(10, 14, 26, 0.6) 0%,
        rgba(10, 14, 26, 0.85) 50%,
        rgba(10, 14, 26, 0.95) 100%) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

/* ALL content sections: fully opaque dark backgrounds */
.section-why,
.section-features,
.section-audiences,
.section-pricing,
.section-dedicated {
    background: #0a0e1a !important;
}

.section-requirements,
.section-empire,
.section-blog {
    background: #0f1425 !important;
}

.trust-bar {
    background: #0a0e1a !important;
}

.footer {
    background: #0f1425 !important;
}

/* Final CTA: stronger overlay */
.section-cta-final {
    background: transparent !important;
}
.section-cta-final::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(ellipse at center,
        rgba(10, 14, 26, 0.7) 0%,
        rgba(10, 14, 26, 0.92) 60%) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

/* Hero text: strong text shadows for contrast */
.hero-title {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.8), 0 0 80px rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
}
.hero-subtitle {
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.7) !important;
    color: #d0d0d0 !important;
}
.hero-trust span {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* Section titles: white and bold */
.section-title {
    color: #ffffff !important;
}
.section-subtitle {
    color: #99aabb !important;
}

/* Cards: fully opaque dark background with visible border */
.card,
.card-warning,
.feature-card,
.pricing-card,
.empire-card,
.card-blog,
.req-item {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Card text: ensure readable */
.card h3, .feature-card h3, .empire-card h3, .pricing-card h3, .card-blog h3,
.card-warning h3, .req-item h4 {
    color: #f0f0f0 !important;
}
.card p, .feature-card p, .empire-card p, .pricing-card p, .card-blog p,
.card-warning p, .req-item p, .pricing-desc {
    color: #8899aa !important;
}

/* Pricing numbers */
.pricing-amount .price {
    color: #ffffff !important;
}

/* Nav: always readable */
.nav {
    z-index: 1000 !important;
}
.nav:not(.scrolled) {
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(10px);
}
.nav.scrolled {
    background: rgba(10, 14, 26, 0.97) !important;
}

/* Button contrast */
.btn-primary {
    background: var(--accent) !important;
    color: #0a0e1a !important;
    font-weight: 700 !important;
}
.btn-ghost {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #e0e0e0 !important;
}

/* CTA text in final section */
.section-cta-final .section-title {
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
}

/* Accent color stays vibrant */
.accent, .nav-highlight, .blog-tag, .empire-badge, .req-num {
    color: var(--accent) !important;
}
.req-num {
    background: var(--accent) !important;
    color: #0a0e1a !important;
}

/* Popular badge */
.popular-badge {
    background: var(--accent) !important;
    color: #0a0e1a !important;
}
.pricing-popular {
    border-color: rgba(0, 212, 170, 0.3) !important;
}
