/* --- 1. CSS Variables and Global Styles --- */
:root {
    --bg-color: #111217;
    --card-color: #191a21;
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a3b0;
    --accent-gradient: linear-gradient(90deg, #8A2BE2, #6A5ACD);
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* --- 2. Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
}

.section-eyebrow {
    color: #8A63D2; /* A color from the gradient */
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-heading {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* --- 3. Layout and Spacing --- */
.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* --- 4. Navigation Bar --- */
.navbar {
    background-color: rgba(17, 18, 23, 0.8); /* Opaque background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
}

/* Make navbar toggler visible on dark background */
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    position: relative;
    padding-bottom: 5px;
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

.nav-link.active::after { /* The underline for active link */
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--accent-gradient);
}


/* --- 5. Hero Section --- */
.hero-section {
    padding: 160px 0 120px 0;
    text-align: center;
    position: relative;
    /* The subtle grid background */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* --- 6. Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-gradient {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.3);
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

.btn-secondary-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary-outline:hover {
    background: var(--card-color);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* --- 7. Service Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-color);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #8A63D2;
}

.service-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .icon-wrapper i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* --- 8. LOGIN PAGE STYLES --- */
/* ... (existing login styles) ... */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background-color: var(--card-color);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* ... (other existing login styles) ... */
.form-control {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.9rem 1rem;
    border-radius: 8px;
}

.form-control:focus {
    background-color: var(--bg-color);
    color: var(--text-primary);
    border-color: #8A63D2;
    box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.25);
}

/*
=========================================
--- 9. ARTICLE PAGE STYLES (NEW SECTION) ---
=========================================
*/
.article-card {
    background-color: var(--card-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden; /* Important for the rounded corners on the image */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.article-card-image-placeholder {
    height: 220px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-image-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.article-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Makes the body take up remaining space */
}

.article-card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-card-body .meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.article-card-body .excerpt {
    flex-grow: 1; /* Pushes the 'Read More' button to the bottom */
}

.article-card-body .read-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: #8A63D2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-body .read-more-link:hover {
    color: var(--text-primary);
}/*

=========================================
--- 10. PRICING TABLE STYLES (NEW) ---
=========================================
*/
.pricing-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.pricing-header h4 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.pricing-header .price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.pricing-header .price sup {
    font-size: 1.5rem;
    top: -1.5em;
    font-weight: 500;
}

.pricing-header .price .period {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    flex-grow: 1; /* Pushes footer down */
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.pricing-features li i {
    color: #8A63D2;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.pricing-features li.disabled {
    color: var(--text-secondary);
    text-decoration: line-through;
}

.pricing-features li.disabled i {
    color: #555;
}

.pricing-footer {
    margin-top: 2rem;
}

/* Highlighted "Popular" Card */
.pricing-card.popular {
    border-width: 2px;
    border-image: var(--accent-gradient) 1;
    transform: scale(1.05);
}
.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card.popular::before {
    content: 'BEST VALUE';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/*
=========================================
--- 11. ACCORDION (FAQ) STYLES (NEW) ---
=========================================
*/
.accordion-item {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 12px !important; /* Override Bootstrap's default */
}

.accordion-header {
    border-radius: 12px;
}

.accordion-button {
    background-color: var(--card-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: none; /* Remove default blue shadow */
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.25); /* Accent color focus ring */
    border-color: #8A63D2;
}

.accordion-button::after {
    /* Custom icon for accordion arrow */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a0a3b0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    /* Custom icon for accordion arrow when open */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-secondary);
}
/*
=========================================
--- 12. PROCESS STEPS SECTION (ENHANCED) ---
=========================================
*/
.process-section {
    position: relative;
    padding: 100px 0;
    background: var(--section-bg, #111217);
}

.process-step {
    text-align: center;
    position: relative;
    padding: 0 15px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.process-step:hover {
    transform: translateY(-8px);
    filter: brightness(1.05);
}

/* Step icon container */
.process-step-icon {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--card-color, #fff);
    border: 2px solid var(--border-color, #e0e0e0);
    margin: 0 auto 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: all 0.5s ease;
    overflow: hidden;
}

/* Animated gradient border */
.process-step-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(135deg, #ff4d4d, #ff9900, #ff0066) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    transform: rotate(0deg);
    transition: transform 1s ease;
    opacity: 0.6;
}
.process-step:hover .process-step-icon::before {
    transform: rotate(360deg);
}

/* Step number */
.process-step-icon .step-number {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-secondary, #aaa);
    opacity: 0.4;
}

/* Icon inside the circle */
.process-step-icon i {
    font-size: 3rem;
    background: linear-gradient(135deg, #ff0066, #ff9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.process-step:hover .process-step-icon i {
    transform: scale(1.15);
    filter: brightness(1.2);
}

/* Step title */
.process-step h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary, #222);
    margin-bottom: 0.6rem;
}

/* Step description */
.process-step p {
    font-size: 0.95rem;
    color: var(--text-secondary, #666);
    max-width: 300px;
    margin: 0 auto;
}

/* Connecting line */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 70px;
    left: calc(50% + 70px);
    width: calc(100% - 140px);
    height: 2px;
    background: linear-gradient(90deg, rgba(255,0,102,0.2), rgba(255,153,0,0.3));
    z-index: 1;
}

/* Responsive fix */
@media (max-width: 991.98px) {
    .process-step:not(:last-child)::after {
        display: none;
    }
}

/*
=========================================
--- 13. HOMEPAGE ENHANCEMENT STYLES (NEW) ---
=========================================
*/
.hero-section h1 {
    animation: fadeInDown 1s ease-out;
}
.hero-section p {
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}
.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }


.social-proof-section {
    padding: 40px 0;
}

.social-proof-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.social-proof-logos img {
    height: 35px; /* Adjust height as needed */
    filter: grayscale(1) brightness(1.5);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.social-proof-logos img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

.cta-section {
    background: var(--accent-gradient);
    padding: 60px 0;
    border-radius: 20px;
    color: var(--text-primary);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.cta-section .btn-light-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    padding: 14px 32px;
    font-weight: 700;
}
.cta-section .btn-light-outline:hover {
    background: var(--text-primary);
    color: #111217;
}

/*
=========================================
--- 14. VIDEO TUTORIAL SECTION (NEW) ---
=========================================
*/
.video-section .section-eyebrow {
    color: var(--accent-primary); /* Use a different accent if you like */
}

.video-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.video-section .lead {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.video-section ul.feature-list {
    list-style: none;
    padding-left: 0;
}

.video-section ul.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.video-section ul.feature-list i {
    color: #8A63D2; /* Accent color from gradient */
    margin-right: 1rem;
    margin-top: 0.3rem; /* Align icon with first line of text */
}

.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*
=========================================
--- 16. PLUGIN CARD STYLES (NEW) ---
=========================================
*/
.plugin-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.plugin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.plugin-card-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.plugin-card-header img {
    height: 50px;
    width: 50px;
    border-radius: 8px;
    margin-right: 1rem;
}
.plugin-card-title h4 {
    margin-bottom: 0.25rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}
.business-model-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    background: rgba(138, 99, 210, 0.2);
    color: #cda8ff;
}
.plugin-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}
.plugin-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.plugin-price sup {
    font-size: 1.2rem;
    top: -1em;
}
.plugin-description {
    color: var(--text-secondary);
}
.plugin-card-footer {
    padding: 0 1.5rem 1.5rem 1.5rem;
}