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

:root {
    --bg-dark: #06070a;
    --bg-card: rgba(13, 16, 27, 0.7);
    --border-color: rgba(255, 255, 255, 0.07);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --primary: #00f2fe;
    --primary-rgb: 0, 242, 254;
    --secondary: #4facfe;
    --accent: #bd00ff;
    --accent-rgb: 189, 0, 255;
    --green-glow: #39ff14;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    background-image: linear-gradient(rgba(6, 7, 10, 0.45), rgba(6, 7, 10, 0.75)), url('../images/sunset_bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background elements */
.bg-glow-1 {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -2;
    pointer-events: none;
}

.bg-glow-2 {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(189, 0, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -2;
    pointer-events: none;
}

/* Cursor Trail Canvas */
#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

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

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    background: rgba(6, 7, 10, 0.7);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo svg {
    width: 38px;
    height: 38px;
}

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

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

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

.cta-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

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

.hero-tag {
    display: inline-block;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

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

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.secondary-btn {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

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

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(189, 0, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

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

/* Pricing Section - WITH GLOWING EFFECT ("亮下亮下的那种") */
.pricing {
    padding: 100px 0;
    position: relative;
}

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

.pricing-card {
    position: relative;
    background: rgba(13, 16, 27, 0.85);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    z-index: 1;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}

/* Glowing Border Effect ("亮下亮下的") */
.pricing-card.glow-card {
    border-color: rgba(0, 242, 254, 0.4);
}

/* The neon shining/pulse animations */
.pricing-card.glow-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 250%;
    height: 250%;
    background: conic-gradient(
        from 0deg,
        transparent 20%,
        var(--primary) 40%,
        var(--accent) 60%,
        transparent 80%
    );
    animation: rotate-glow 6s linear infinite;
    z-index: -2;
    opacity: 0.7;
}

.pricing-card.glow-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0d101b;
    border-radius: 22px;
    z-index: -1;
}

/* Second card has a pulsing green-cyan edge glow for variance */
.pricing-card.glow-card-green {
    border-color: rgba(57, 255, 20, 0.4);
}

.pricing-card.glow-card-green::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 250%;
    height: 250%;
    background: conic-gradient(
        from 180deg,
        transparent 20%,
        var(--green-glow) 40%,
        var(--primary) 60%,
        transparent 80%
    );
    animation: rotate-glow 8s linear infinite;
    z-index: -2;
    opacity: 0.7;
}

.pricing-card.glow-card-green::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0d101b;
    border-radius: 22px;
    z-index: -1;
}

/* Subtler glow for others */
.pricing-card:not(.glow-card):not(.glow-card-green):hover {
    border-color: var(--secondary);
    box-shadow: 0 0 25px rgba(79, 172, 254, 0.2);
}

.pricing-card:hover {
    transform: translateY(-8px);
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.plan-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.plan-features {
    list-style: none;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.plan-features svg {
    color: var(--primary);
    flex-shrink: 0;
}

.pricing-card .cta-btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* Articles Section */
.articles-section {
    padding: 100px 0;
    background: rgba(6, 7, 10, 0.4);
    backdrop-filter: blur(10px);
}

.articles-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1rem 0;
}

.articles-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll-marquee 45s linear infinite;
}

.articles-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

.article-card {
    width: 360px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1);
}

.article-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

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

.article-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    gap: 15px;
}

.article-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s;
}

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

.article-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* User Reviews (Testimonials) */
.testimonials {
    padding: 100px 0;
}

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

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.testimonial-rating {
    color: #ffb800;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-style: italic;
}

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

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

.user-details h4 {
    font-size: 1rem;
    font-weight: 600;
}

.user-details span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* FAQs */
.faq {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.005);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1.2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    user-select: none;
    transition: color 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 0px solid transparent;
    padding: 0 2rem;
}

.faq-item.active {
    border-color: rgba(79, 172, 254, 0.3);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s;
}

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

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

/* Article Detail Page Layout */
.article-page {
    padding: 150px 0 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

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

.article-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.article-body {
    font-size: 1.1rem;
    color: #e5e7eb;
    line-height: 1.8;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 2.5rem 0 1.2rem 0;
    color: var(--text-primary);
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

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

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

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

.article-body a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
    transition: all 0.3s;
}

.article-body a:hover {
    color: var(--secondary);
    border-bottom-style: solid;
}

.article-navigation {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-article-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    max-width: 48%;
}

.nav-article-link span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.nav-article-link p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* Footer & PBN Links */
footer {
    border-top: 1px solid var(--border-color);
    background: #040507;
    padding: 5rem 0 3rem 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
}

.footer-logo svg {
    width: 32px;
    height: 32px;
}

.footer-pbn-links {
    font-size: 0.8rem;
    color: #4b5563; /* Low-key color to blend with footer background */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-pbn-links span {
    color: #374151;
}

.footer-pbn-links a {
    color: #4b5563; /* Blends in, readable but not flashy */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-pbn-links a:hover {
    color: var(--text-secondary);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .navbar .cta-btn {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-ctas .cta-btn, .hero-ctas .secondary-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}
