@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-primary: #060713;
    --bg-secondary: #0c0e27;
    --bg-glass: rgba(13, 15, 41, 0.7);
    --border-glass: rgba(138, 43, 226, 0.15);
    --border-glass-hover: rgba(0, 242, 254, 0.4);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --color-purple: #8a2be2;
    --color-cyan: #00f2fe;
    --color-indigo: #4f46e5;
    --grad-primary: linear-gradient(135deg, var(--color-purple) 0%, var(--color-indigo) 50%, var(--color-cyan) 100%);
    --grad-text: linear-gradient(to right, #00f2fe, #a855f7, #ec4899);
    --shadow-purple: 0 0 25px rgba(138, 43, 226, 0.35);
    --shadow-cyan: 0 0 25px rgba(0, 242, 254, 0.35);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Common Styles */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 600;
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--grad-primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation Bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(6, 7, 19, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 45px;
    object-fit: contain;
}

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

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

.nav-links a:hover {
    color: var(--color-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--color-cyan);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-meta {
    display: flex;
    gap: 3rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
}

.meta-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.25) 0%, rgba(0, 242, 254, 0.05) 70%, transparent 100%);
    filter: blur(40px);
    border-radius: 50%;
    animation: pulse 8s infinite alternate;
}

.hero-graphic {
    width: 100%;
    max-width: 400px;
    height: 400px;
    border: 2px dashed rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    position: relative;
    animation: spin 30s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-graphic-inner {
    width: 80%;
    height: 80%;
    border: 2px solid rgba(0, 242, 254, 0.2);
    border-radius: 50%;
    animation: spin-reverse 20s linear infinite;
}

/* Highlight Banner */
.highlight-banner {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.15), rgba(0, 242, 254, 0.15));
    border: 1px solid var(--border-glass-hover);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 500;
}

.highlight-tag {
    background: var(--color-cyan);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

/* Pricing Grid (All in the same row) */
.pricing-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.price-card.popular {
    border-color: var(--color-purple);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.15);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--grad-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 35px;
    transform: rotate(45deg);
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    min-height: 40px;
}

.card-price {
    margin-bottom: 2rem;
}

.price-currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-cyan);
}

.price-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
}

.price-period {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.card-features li svg {
    color: var(--color-cyan);
    flex-shrink: 0;
}

.card-action {
    margin-top: auto;
}

.card-action .btn {
    width: 100%;
    text-align: center;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 3rem 2rem;
    text-align: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--color-cyan);
    border: 1px solid rgba(0, 242, 254, 0.2);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(0, 242, 254, 0.15);
    box-shadow: var(--shadow-cyan);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

/* Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-tag {
    color: var(--color-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.article-body h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-body h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.article-body h3 a:hover {
    color: var(--color-cyan);
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.article-link {
    color: var(--color-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.article-link:hover {
    color: var(--color-cyan);
    gap: 10px;
}

/* Article Template Styling (for separate pages) */
.article-page {
    padding-top: 10rem;
    padding-bottom: 6rem;
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 3rem;
}

.article-meta-info {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem 0;
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: var(--color-cyan);
}

.article-content a {
    color: var(--color-purple);
    text-decoration: none;
    border-bottom: 1px dashed var(--color-purple);
    transition: var(--transition);
}

.article-content a:hover {
    color: var(--color-cyan);
    border-bottom-color: var(--color-cyan);
}

.back-home {
    margin-top: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-home:hover {
    color: var(--color-cyan);
}

/* Reviews / Testimonials */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    padding: 2.5rem 2rem;
}

.review-stars {
    display: flex;
    gap: 5px;
    color: #ffb703;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.review-details h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.review-details span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Interactive FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-glass);
    transition: var(--transition);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--color-cyan);
}

.faq-toggle-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
    stroke: var(--color-cyan);
}

.faq-item.active {
    border-color: var(--border-glass-hover);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

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

.faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Call To Action Footer Banner */
.cta-banner {
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.cta-banner-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-radius: 24px;
}

.cta-banner h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Footer & Backlinks */
footer {
    background: #04050e;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--color-cyan);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.9) rotate(0deg);
        filter: blur(40px);
    }
    100% {
        transform: scale(1.1) rotate(180deg);
        filter: blur(60px);
    }
}

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

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

/* Responsive Rules */
@media (max-width: 1024px) {
    .pricing-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid, .articles-grid, .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-image-wrapper {
        order: -1;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-meta {
        justify-content: center;
    }
    .nav-links {
        display: none; /* In a real project, we would use a mobile menu toggle, but let's keep it simple for landing */
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pricing-row {
        grid-template-columns: 1fr;
    }
    .features-grid, .articles-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
