/* Mojie.net - style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #07040d;
    --bg-gradient: radial-gradient(circle at 50% 50%, #150a2e 0%, #07040d 100%);
    --primary: #9d4edd;
    --primary-glow: rgba(157, 78, 221, 0.6);
    --secondary: #c77dff;
    --accent: #e0aaff;
    --dark-purple: #3c096c;
    --deep-purple: #100520;
    --text-color: #e0d6f2;
    --text-muted: #9e8cb8;
    --text-bright: #ffffff;
    --glass-bg: rgba(18, 9, 36, 0.65);
    --glass-border: rgba(157, 78, 221, 0.15);
    --glass-glow: rgba(157, 78, 221, 0.05);
    --transition-speed: 0.3s;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

body {
    background-color: transparent !important;
    min-height: 100vh;
    line-height: 1.6;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--dark-purple);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Layout Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 0 20px var(--glass-glow);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background var(--transition-speed);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-bright);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-ring {
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
    display: inline-block;
    position: relative;
    animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); box-shadow: 0 0 5px var(--primary-glow); }
    50% { transform: scale(1.1); box-shadow: 0 0 15px var(--secondary); }
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color var(--transition-speed);
}

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

/* Primary CTA Button */
.cta-button {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary) 100%);
    color: var(--text-bright);
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    border: 1px solid rgba(224, 170, 255, 0.2);
    transition: all var(--transition-speed);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary), 0 0 10px var(--secondary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--text-bright);
    border-radius: 2px;
    transition: all var(--transition-speed);
}

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

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

.hero-content {
    z-index: 2;
}

.hero-badge {
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid rgba(157, 78, 221, 0.4);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 56px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.secondary-button {
    background: transparent;
    color: var(--text-bright);
    border: 1px solid var(--primary);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-speed);
}

.secondary-button:hover {
    background: rgba(157, 78, 221, 0.15);
    border-color: var(--secondary);
    box-shadow: 0 0 10px var(--primary-glow);
}

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

/* Static fallback graphic overlaying canvas representation in desktop */
.ring-glow-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(157,78,221,0.1) 0%, rgba(0,0,0,0) 70%);
}

.ring-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px double var(--primary);
    box-shadow: 0 0 30px var(--primary-glow), inset 0 0 30px var(--primary-glow);
    animation: spin-ring 20s linear infinite;
}

.ring-rune {
    position: absolute;
    color: var(--accent);
    font-size: 12px;
    font-family: serif;
    letter-spacing: 2px;
    white-space: nowrap;
    text-shadow: 0 0 8px var(--secondary);
    opacity: 0.7;
}

@keyframes spin-ring {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Sections Base */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    transition: all var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(157, 78, 221, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(157, 78, 221, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--dark-purple) 0%, rgba(157,78,221,0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--accent);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-bright);
}

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

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.pricing-card.featured {
    border-color: rgba(199, 125, 255, 0.4);
    box-shadow: 0 10px 40px rgba(157, 78, 221, 0.15);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-bright);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 10px;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 20px;
    color: var(--text-bright);
    margin-bottom: 15px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
    display: flex;
    align-items: baseline;
}

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

.pricing-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

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

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

.pricing-features svg {
    width: 18px;
    height: 18px;
    fill: var(--secondary);
    flex-shrink: 0;
}

.pricing-card .cta-button {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
}

/* Articles Section (SEO Grid) */
.articles-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.articles-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    padding: 30px 20px;
}

.articles-sidebar h3 {
    font-size: 18px;
    color: var(--text-bright);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.articles-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.articles-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed);
    padding: 8px 12px;
    border-left: 2px solid transparent;
}

.articles-nav a.active,
.articles-nav a:hover {
    color: var(--accent);
    border-left-color: var(--primary);
    background: rgba(157, 78, 221, 0.05);
    border-radius: 0 6px 6px 0;
}

.articles-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.seo-article {
    padding: 40px;
    scroll-margin-top: 100px;
}

.seo-article h2 {
    font-size: 26px;
    color: var(--text-bright);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    border-bottom: 1px dashed var(--glass-border);
    padding-bottom: 12px;
}

.seo-article p {
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-color);
    text-align: justify;
}

.seo-article h3 {
    font-size: 18px;
    color: var(--accent);
    margin-top: 28px;
    margin-bottom: 14px;
}

.seo-article ul, .seo-article ol {
    margin-bottom: 20px;
    padding-left: 24px;
    font-size: 15px;
    color: var(--text-color);
}

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

.seo-article a {
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.seo-article a:hover {
    color: var(--accent);
}

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

.review-card {
    padding: 30px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--dark-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--accent);
    border: 1px solid var(--primary);
}

.review-info h4 {
    color: var(--text-bright);
    font-size: 16px;
}

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

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

.review-stars svg {
    width: 16px;
    height: 16px;
    fill: #ffb703;
}

.review-card p {
    color: var(--text-color);
    font-size: 14px;
    font-style: italic;
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    overflow: hidden;
    transition: all var(--transition-speed);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    color: var(--text-bright);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-question span {
    padding-right: 20px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    fill: var(--secondary);
    transition: transform var(--transition-speed);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Footer Section */
footer {
    background: #040208;
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 15px;
    font-size: 14px;
    max-width: 320px;
}

.footer-links h4 {
    color: var(--text-bright);
    margin-bottom: 20px;
    font-size: 16px;
}

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

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(157, 78, 221, 0.08);
    padding-top: 30px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .articles-layout {
        grid-template-columns: 1fr;
    }
    
    .articles-sidebar {
        display: none; /* Hide navigation sidebar on mobile, let them scroll naturally or use standard header links */
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 32px;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 38px;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-graphic {
        display: none; /* Rely entirely on background canvas */
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(7, 4, 13, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: left 0.4s ease;
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
