/* Import Outfit font from Google Fonts for a modern, sleek premium feel */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #0B0914;
    --bg-card: rgba(20, 17, 34, 0.7);
    --bg-card-hover: rgba(30, 26, 50, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(37, 99, 235, 0.4);
    
    --text-primary: #FFFFFF;
    --text-secondary: #A09EAE;
    --text-muted: #6B6978;
    
    --primary: #2563EB;
    --primary-glow: rgba(37, 99, 235, 0.3);
    --accent: #1D4ED8;
    --accent-glow: rgba(29, 78, 216, 0.25);
    --success: #00E676;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Gradients (Decorative blobs) */
.gradient-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}
.blob-1 {
    top: -100px;
    left: -100px;
    background: var(--primary);
}
.blob-2 {
    top: 600px;
    right: -100px;
    background: var(--accent);
}
.blob-3 {
    bottom: -100px;
    left: 20%;
    background: var(--primary);
}

/* Typography & Links */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #FFF 30%, #A09EAE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Common Layout Elements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

section {
    padding: 100px 0;
    position: relative;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 9, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 15px var(--primary-glow);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

nav a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 15px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.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 {
    background: var(--accent);
    box-shadow: 0 6px 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(255, 0, 127, 0.05);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

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

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--primary);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

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

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-badge-group {
    display: flex;
    gap: 24px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.hero-badge svg {
    color: var(--accent);
}

/* Card glass effect styling */
.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.stat-item {
    margin-bottom: 24px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-val {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stat-val span {
    font-size: 16px;
    color: var(--accent);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Features Grid */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

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

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(108, 92, 231, 0.15);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #FFFFFF;
    box-shadow: 0 0 20px var(--primary-glow);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.2);
    background: rgba(25, 20, 45, 0.8);
}

.pricing-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 24px;
    right: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.price-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.price-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.price-num {
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
}

.price-num span {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-billing {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

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

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

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

/* User Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.review-stars {
    color: #FFB300;
    margin-bottom: 16px;
    display: flex;
    gap: 4px;
}

.review-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

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

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #FFFFFF;
}

.user-info h4 {
    font-size: 15px;
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--text-primary);
}

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

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

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

.faq-question {
    padding: 24px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question svg {
    transition: var(--transition);
    color: var(--text-secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background: rgba(0, 0, 0, 0.15);
    color: var(--text-secondary);
    font-size: 15px;
    border-top: 0 solid var(--border-color);
}

.faq-answer-content {
    padding: 24px;
}

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

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* high value for auto height smooth transition */
    border-top: 1px solid var(--border-color);
    transition: max-height 0.3s cubic-bezier(0.8, 0, 1, 1);
}

/* Articles List Layout */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
}

.article-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2) 0%, rgba(255, 0, 127, 0.2) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-img-placeholder svg {
    color: rgba(255,255,255,0.3);
    width: 48px;
    height: 48px;
}

.article-body {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(255, 0, 127, 0.1);
    padding: 2px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.article-body h3 {
    font-size: 20px;
    margin-bottom: 12px;
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-body p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

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

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

.article-card:hover .article-link {
    color: var(--accent);
}

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

.article-wrapper {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 48px;
}

.article-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    backdrop-filter: blur(10px);
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta {
    display: flex;
    gap: 24px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-content h1 {
    font-size: 38px;
    margin-bottom: 20px;
    line-height: 1.25;
}

/* Inside Article Typography */
.article-body-text {
    font-size: 16px;
    color: #E2E1E9;
    line-height: 1.8;
}

.article-body-text p {
    margin-bottom: 24px;
}

.article-body-text h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 16px;
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--text-primary);
    border-left: 4px solid var(--primary);
    padding-left: 16px;
}

.article-body-text h3 {
    font-size: 20px;
    margin-top: 28px;
    margin-bottom: 12px;
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--text-primary);
}

.article-body-text ul, .article-body-text ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

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

.article-body-text blockquote {
    background: rgba(108, 92, 231, 0.05);
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-body-text strong {
    color: #FFFFFF;
    font-weight: 600;
}

/* Custom code snippets or lists within articles */
.article-body-text code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.widget-register {
    text-align: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(255, 0, 127, 0.15));
    border: 1px solid var(--primary);
}

.widget-register h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.widget-register p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.widget-links-list {
    list-style: none;
}

.widget-links-list li {
    margin-bottom: 16px;
    font-size: 14px;
}

.widget-links-list li:last-child {
    margin-bottom: 0;
}

.widget-links-list a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-links-list a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.widget-links-list svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Footer styling */
footer {
    background: #06050C;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
    color: var(--text-secondary);
}

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

.footer-info p {
    font-size: 14px;
    margin-top: 16px;
    color: var(--text-muted);
}

.footer-col h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 24px;
    background: none;
    -webkit-text-fill-color: initial;
}

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

.footer-col li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

/* Mobile responsive fixes */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-title {
        font-size: 44px;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-badge-group {
        justify-content: center;
    }
    .hero-card {
        max-width: 500px;
        margin: 0 auto;
    }
    .article-wrapper {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 32px;
    }
    .header-container {
        height: 70px;
    }
    nav {
        display: none; /* simple hidden menu or you can toggle it via js */
    }
    .btn-header {
        display: none;
    }
    .article-content {
        padding: 24px;
    }
    .article-content h1 {
        font-size: 28px;
    }
}
