/* Google Fonts Import for modern typography */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #050409;
    --bg-secondary: #0c0b14;
    --bg-card: rgba(18, 16, 32, 0.7);
    --bg-card-hover: rgba(26, 24, 48, 0.85);
    
    --primary: #a855f7;        /* Neon Purple */
    --primary-rgb: 168, 85, 247;
    --secondary: #06b6d4;      /* Neon Cyan */
    --secondary-rgb: 6, 182, 212;
    --accent: #f43f5e;         /* Neon Rose */
    --accent-rgb: 244, 63, 94;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    
    --border: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(168, 85, 247, 0.25);
    
    /* Fonts */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows & Glows */
    --glow-primary: 0 0 20px rgba(168, 85, 247, 0.25);
    --glow-secondary: 0 0 20px rgba(6, 182, 212, 0.25);
    --glow-accent: 0 0 20px rgba(244, 63, 94, 0.25);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

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

/* Cyber Backdrop Layout */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(244, 63, 94, 0.06) 0%, transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.004) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.004) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    z-index: -2;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.6);
}

/* Typography Selection */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #ffffff 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-dual {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(5, 4, 9, 0.75);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-normal);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(5, 4, 9, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

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

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    border: none;
    box-shadow: var(--glow-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5), 0 0 10px rgba(244, 63, 94, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 9999px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 600px;
    margin: 0 auto;
    gap: 24px;
    padding: 24px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.stat-item h3 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Glassmorphism Card System */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0) var(--y, 0), rgba(255,255,255,0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 40px -15px rgba(168, 85, 247, 0.15), var(--shadow-card);
}

/* Features Section */
.features {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 24px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.feature-icon.purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.feature-icon.rose {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.feature-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 14px;
}

/* Interactive Pricing Style */
.pricing {
    padding: 80px 0;
    position: relative;
}

.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.toggle-label.active {
    color: #ffffff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--primary);
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.price-card.popular {
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(168, 85, 247, 0.25), var(--shadow-card);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.price-header {
    margin-bottom: 24px;
}

.price-name {
    font-size: 24px;
    margin-bottom: 12px;
}

.price-value-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.price-currency {
    font-size: 24px;
    font-weight: 700;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.price-period {
    color: var(--text-muted);
    font-size: 15px;
}

.price-info {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.price-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

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

.price-features li.pro-only svg {
    color: var(--accent);
}

/* User Reviews Section */
.reviews {
    padding: 80px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-stars {
    display: flex;
    gap: 4px;
    color: #eab308;
    font-size: 16px;
}

.review-content {
    color: var(--text-muted);
    font-size: 15px;
    font-style: italic;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.author-info h4 {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-info p {
    font-size: 12px;
    color: var(--text-light);
}

.verified-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* FAQs Accordion Style */
.faq {
    padding: 80px 0;
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    font-family: var(--font-heading);
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--primary);
}

.faq-icon {
    font-size: 18px;
    transition: transform var(--transition-normal);
    color: var(--text-muted);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal) ease-out;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid transparent;
}

.faq-item.active {
    border-color: var(--border-glow);
    box-shadow: var(--glow-primary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

/* Blog Index / Articles Grid */
.blog {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-tag {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: block;
}

.blog-title {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card:hover .read-more {
    color: var(--accent);
    gap: 8px;
}

/* Article Template Layout */
.article-page {
    padding-top: 140px;
    padding-bottom: 100px;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.article-category {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.article-title {
    font-size: 42px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.article-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

.article-body {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(12px);
}

.article-body h2 {
    font-size: 26px;
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.article-body h3 {
    font-size: 20px;
    margin: 24px 0 12px;
}

.article-body p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.article-body ul, .article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: var(--text-muted);
}

.article-body li {
    margin-bottom: 8px;
}

.article-body strong {
    color: #ffffff;
}

.article-cta-box {
    margin: 40px 0;
    padding: 32px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    text-align: center;
}

.article-cta-box h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.article-cta-box p {
    font-size: 14px;
    margin-bottom: 20px;
}

.article-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(12px);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.related-posts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-post-item a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    line-height: 1.4;
}

.related-post-item a:hover {
    color: var(--primary);
}

.related-post-item span {
    font-size: 11px;
    color: var(--text-light);
    display: block;
    margin-top: 4px;
}

/* Footer Section */
footer {
    background: #030206;
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    margin-top: 60px;
}

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

.footer-logo-box p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 16px;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 32px;
    font-size: 13px;
    color: var(--text-light);
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(168, 85, 247, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
    }
}

/* Responsive Grid / Flex Adjustments */
@media (max-width: 992px) {
    .article-container {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 38px;
    }
    .hero-desc {
        font-size: 15px;
    }
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .nav-menu {
        display: none; /* In a real site we would add a hamburger, but for landing we keep it simple or compact */
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
