:root {
    --primary: #00d2d3;
    --primary-glow: rgba(0, 210, 211, 0.4);
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-navbar: rgba(15, 23, 42, 0.9);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    /* Optimized for contrast */
    --text-muted-dark: #94a3b8;
    /* Optimized for contrast */
    --border-glass: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-muted {
    color: #e7fafa !important;
}

/* Accessibility: Focus States */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

body.js-loading {
    overflow: hidden;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.6s ease-out, visibility 0.6s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(0, 210, 211, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-img-internal {
    width: 60px;
    height: auto;
    z-index: 2;
    animation: pulse-soft 2s infinite ease-in-out;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-soft {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
.navbar-brand {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.fw-black {
    font-weight: 900;
}

.text-gradient {
    background: linear-gradient(135deg, #00d2d3 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar Customization */
.navbar {
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0, 210, 211, 0.2));
    animation: logo-glow 3s infinite ease-in-out;
}

@keyframes logo-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(0, 210, 211, 0.3));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(0, 210, 211, 0.6));
        transform: scale(1.03);
    }
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Premium Buttons */
.btn-primary {
    background: var(--primary) !important;
    border: none !important;
    color: #0f172a !important;
    padding: 0.8rem 2rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 4px 15px var(--primary-glow) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow) !important;
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-glass) !important;
    color: white !important;
    padding: 0.8rem 2rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: var(--transition-smooth) !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-3px);
}

.btn-login {
    color: white;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-login:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.gradient-sphere {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.3;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.sphere-2 {
    width: 300px;
    height: 300px;
    background: #4f46e5;
    bottom: 50px;
    left: -50px;
}

.badge {
    padding: 0.6rem 1.2rem;
    background: rgba(0, 210, 211, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 210, 211, 0.2);
    border-radius: 50px;
    font-weight: 600;
}

/* Glassmorphism Cards */
.feature-card,
.price-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: rgba(0, 210, 211, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
}

.feature-card:hover .feature-icon span {
    color: #0f172a;
}

.feature-icon span {
    color: var(--primary);
    font-size: 1.8rem;
    transition: var(--transition-smooth);
}

/* Pricing Refinement */
.price-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 30px 60px rgba(0, 210, 211, 0.2);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #0f172a;
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px var(--primary-glow);
}

/* Mockup UI */
.mockup-container {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 28px;
    padding: 12px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 30px 70px -12px rgba(0, 0, 0, 0.7);
    max-width: 550px;
    min-height: 350px;
    overflow: visible;
}

.mockup-img {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #1e293b;
    display: block;
}

.floating-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    padding: 1.2rem;
    border-radius: 18px;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.card-1 {
    top: 15%;
    left: -40px;
}

.card-2 {
    bottom: 15%;
    right: -40px;
}

/* Contact Section */
.form-control {
    border-radius: 12px !important;
    padding: 1rem !important;
    transition: var(--transition-smooth) !important;
    color: #ffffff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px var(--primary-glow) !important;
    color: white !important;
}

/* Footer Refined */
.footer {
    padding: 8rem 0 3rem;
    background: linear-gradient(to bottom, transparent, rgba(0, 210, 211, 0.05));
    border-top: 1px solid var(--border-glass);
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1.2rem;
}

.footer-links a {
    color: var(--text-muted-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--primary);
    color: #0f172a;
    transform: translateY(-5px) rotate(8deg);
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted-dark);
    font-size: 0.9rem;
}

/* GEO Optimization: AI Summary Box */
.hero-ai-summary {
    position: relative;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary) !important;
    transition: var(--transition-smooth);
}

.hero-ai-summary p {
    color: #ffffff !important;
    opacity: 1 !important;
}

.hero-ai-summary:hover {
    background: rgba(15, 23, 42, 1) !important;
}

/* FAQ Styles (Accordion) */
.faq {
    position: relative;
}

.accordion-item {
    background: var(--bg-card) !important;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
    border: 1px solid var(--border-glass) !important;
}

.accordion-button {
    box-shadow: none !important;
    color: white !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(0, 210, 211, 0.1) !important;
    color: var(--primary) !important;
}

.accordion-button::after {
    filter: invert(1);
}

.border-glass {
    border: 1px solid var(--border-glass) !important;
}

/* Anime.js Initial States */
.js-ready [data-anime="reveal-top"] {
    opacity: 0;
    transform: translateY(-40px);
}

.js-ready [data-anime="fade-in-up"] {
    opacity: 0;
    transform: translateY(40px);
}

.js-ready [data-anime="fade-in-left"] {
    opacity: 0;
    transform: translateX(-40px);
}

.js-ready [data-anime="fade-in-right"] {
    opacity: 0;
    transform: translateX(40px);
}

.js-ready [data-anime="fade-in"] {
    opacity: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

@media (max-width: 991px) {
    .hero {
        padding-top: 8rem;
        text-align: center;
        overflow: hidden;
    }

    .hero-content {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem 0;
        margin: 0;
    }
    
    .hero-stats .col-4 {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-btns {
        flex-direction: column !important;
        width: 100%;
        gap: 1rem !important;
    }

    .hero-btns .btn {
        width: 100% !important;
        margin: 0 !important;
    }

    .hero-ai-summary {
        padding: 1.25rem !important;
        margin-bottom: 2.5rem !important;
        text-align: left;
        background: rgba(15, 23, 42, 0.6) !important;
        border-left: 4px solid var(--primary) !important;
    }

    .hero-ai-summary p {
        color: var(--text-main) !important;
        opacity: 1 !important;
    }

    .gradient-sphere {
        display: none; /* Hide spheres on mobile to prevent overflow */
    }

    .price-card.featured {
        transform: scale(1);
        margin: 2.5rem 0;
    }

    .navbar-collapse {
        background: var(--bg-navbar);
        backdrop-filter: blur(30px);
        margin-top: 1.5rem;
        padding: 2.5rem;
        border-radius: 24px;
        border: 1px solid var(--border-glass);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .card-1,
    .card-2 {
        position: static;
        transform: none !important;
        margin: 1rem auto;
        display: flex !important;
        width: fit-content;
    }

    .mockup-container {
        margin-top: 2rem;
        min-height: auto;
        padding: 8px;
    }

    .display-3 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    /* FAQ Mobile Refinement */
    .accordion-button {
        padding: 1.25rem 1rem !important;
        font-size: 0.95rem;
    }

    .features, .pricing, .faq, .contact {
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: hidden;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Multi-Page Styles */
.resource-section { 
    padding: 100px 0; 
    border-bottom: 1px solid var(--border-glass); 
}

.resource-section:nth-child(even) { 
    background: rgba(255,255,255,0.01); 
}

.icon-box-lg { 
    width: 80px; 
    height: 80px; 
    background: rgba(0, 210, 211, 0.1); 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 2rem; 
}

.icon-box-lg span { 
    font-size: 2.5rem; 
    color: var(--primary); 
}

.audit-step { 
    border-left: 2px dashed var(--border-glass); 
    padding-left: 2rem; 
    position: relative; 
    margin-bottom: 3rem; 
}

.audit-step::before { 
    content: ""; 
    width: 12px; 
    height: 12px; 
    background: var(--primary); 
    border-radius: 50%; 
    position: absolute; 
    left: -7px; 
    top: 5px; 
    box-shadow: 0 0 10px var(--primary-glow); 
}

.security-hero { 
    background: radial-gradient(circle at top, rgba(0, 210, 211, 0.05), transparent); 
    padding: 120px 0; 
}

.security-banner {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
}

@media (max-width: 991px) {
    .resource-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .resource-section .d-flex {
        justify-content: center;
        text-align: left;
    }
}
    .hero {
        padding-top: 7rem;
    }
    
    .logo-img {
        height: 32px;
    }

    .btn-primary, .btn-secondary {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.9rem;
    }

    .price-card {
        padding: 2rem 1.5rem !important;
    }
}