/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #05070f;
    --bg-deep: #0a0d1d;
    --bg-card: rgba(15, 20, 42, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    --primary: #a78bfa; /* Lavender */
    --primary-glow: rgba(167, 139, 250, 0.15);
    --secondary: #f472b6; /* Rose Pink */
    --accent: #60a5fa; /* Sky Blue */
    --gold: #fbbf24;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    
    --font-sans: 'Noto Sans SC', sans-serif;
    --font-decor: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

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

/* Background canvas setup */
#bg-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0c112b 0%, #05070f 80%);
}

#bg-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

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

/* Neon & Glassmorphism Utilities */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition);
}

.glass:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--primary-glow);
}

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

/* Header & Navigation */
header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    background: rgba(5, 7, 15, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(5, 7, 15, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

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

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

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav-register {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
}

.btn-nav-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(167, 139, 250, 0.5);
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-family: var(--font-decor);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.85rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.4);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(167, 139, 250, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.85rem 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
    font-family: var(--font-decor);
    font-weight: 700;
}

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

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

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(167, 139, 250, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-sans);
}

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

/* Pricing Section */
.pricing {
    padding: 5rem 0;
}

.pricing-switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.pricing-switch-container span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-switch-container span.active {
    color: var(--text-main);
    font-weight: bold;
}

.switch-label {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch-label 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.15);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

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

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

.grid-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(167, 139, 250, 0.2);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-family: var(--font-decor);
    font-weight: 800;
    margin: 1.5rem 0;
    display: flex;
    align-items: baseline;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

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

.pricing-features li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

.btn-pricing {
    width: 100%;
    text-align: center;
    padding: 0.85rem 0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.pricing-card.popular .btn-pricing {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

.pricing-card:not(.popular) .btn-pricing {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.pricing-card:not(.popular) .btn-pricing:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

/* Articles Section */
.articles-sec {
    padding: 5rem 0;
}

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

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

.article-meta {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
}

.article-card h3 {
    padding: 0 1.5rem;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.read-more-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.read-more-btn:hover {
    color: var(--secondary);
    gap: 0.5rem;
}

/* Testimonials / Reviews Section */
.reviews {
    padding: 5rem 0;
}

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

.review-card {
    padding: 2rem;
}

.review-stars {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 1rem;
}

.user-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.user-info p {
    font-size: 0.8rem;
    color: var(--text-dark);
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
    user-select: none;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active {
    border-color: var(--border-hover);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

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

/* Footer Section */
footer {
    background: rgba(5, 7, 15, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 250px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer-links ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* --- Article Detail Pages Layout --- */
.article-detail-page {
    padding: 4rem 0 6rem 0;
}

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

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.article-back-link:hover {
    color: var(--primary);
}

.article-title-h1 {
    font-size: 2.75rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article-meta-info {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.8;
}

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

.article-body h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1.25rem 0;
    color: var(--primary);
}

.article-body h3 {
    font-size: 1.35rem;
    margin: 2rem 0 1rem 0;
    color: var(--secondary);
}

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

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

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

.article-cta-box {
    margin-top: 3rem;
    padding: 3rem 2.5rem;
    text-align: center;
}

.article-cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.article-cta-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Related articles sidebar/widget */
.related-articles {
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real product we'd do a mobile menu, but for landing page simple is great, or show just Register button */
    }
    
    .hero {
        padding: 4rem 0 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.75rem 2rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .cta-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .grid-features, .grid-pricing, .grid-articles, .grid-reviews {
        grid-template-columns: 1fr;
    }
    
    .article-title-h1 {
        font-size: 2rem;
    }
}
