/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    line-height: 1.6; 
    color: #e0e0e0; 
    background-color: #121212; 
    /* Gold Grid */
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }
html { scroll-behavior: smooth; }

/* Canvas Background for floating light spots */
#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* Header (Glassmorphism) */
header { 
    background: rgba(18, 18, 18, 0.8); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0; 
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    position: sticky; top: 0; z-index: 100; 
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: bold; color: #FF4500; text-shadow: 0 0 10px rgba(255,69,0,0.4); letter-spacing: 1px; }

/* Navigation */
.main-nav { display: flex; gap: 25px; align-items: center; }
.main-nav a { font-size: 16px; color: #ccc; font-weight: 500; transition: all 0.3s; }
.main-nav a:hover { color: #FFD700; text-shadow: 0 0 8px rgba(255,215,0,0.6); }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; font-weight: bold; text-align: center; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { 
    background: linear-gradient(135deg, #FF4500, #FFD700); 
    color: #121212; 
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}
.btn-primary:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* Hero Section */
.hero { padding: 120px 0 80px; }
.hero .container { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.hero-content { flex: 1.2; }
.hero h1 { 
    font-size: 48px; margin-bottom: 24px; line-height: 1.2;
    background: linear-gradient(45deg, #FF4500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 4px 6px rgba(0,0,0,0.8), 0 0 30px rgba(255,69,0,0.2); /* 3D Emboss effect */
}
.hero p { font-size: 18px; margin-bottom: 40px; color: #bbb; line-height: 1.8; }
.hero-visual { flex: 0.8; display: flex; justify-content: center; align-items: center; }
.hero-visual svg { width: 100%; max-width: 450px; filter: drop-shadow(0 0 25px rgba(255,69,0,0.4)); }

/* Section Titles */
.section-title { text-align: center; font-size: 32px; margin: 80px 0 50px; color: #FFD700; text-shadow: 0 0 15px rgba(255,215,0,0.2); letter-spacing: 2px; }

/* Generic Glass Card (Glassmorphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s;
}
.glass-card:hover { border-color: rgba(255, 215, 0, 0.6); transform: translateY(-8px); box-shadow: 0 12px 40px rgba(255,69,0,0.15); }

/* Features & Media-AI */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card h3 { margin: 20px 0 15px; font-size: 22px; color: #FF4500; }
.feature-card p { color: #aaa; }

.media-ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.media-ai-card h3 { margin-bottom: 20px; font-size: 24px; color: #FFD700; }
.media-ai-card p { color: #aaa; }

/* Pricing: 3D Carousel */
.pricing-carousel-wrapper {
    perspective: 1200px;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}
.pricing-carousel {
    width: 320px;
    height: 480px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.price-card {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0; top: 0;
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,69,0,0.1);
}
.price-card h3 { font-size: 24px; margin-bottom: 15px; color: #FFD700; }
.price-card .price { font-size: 36px; font-weight: bold; color: #FF4500; margin-bottom: 20px; }
.price-card .price span { font-size: 16px; color: #888; font-weight: normal; }
.price-card ul { margin-bottom: 30px; text-align: left; }
.price-card ul li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: #ccc; }
.price-card ul li:before { content: "✦"; color: #FFD700; margin-right: 10px; }
.price-card .btn { display: block; width: 100%; margin-top: 10px; }
.carousel-controls { text-align: center; margin-top: 30px; }
.carousel-controls button {
    background: transparent; border: 1px solid #FFD700; color: #FFD700; padding: 10px 24px; border-radius: 30px; cursor: pointer; margin: 0 10px; transition: all 0.3s; font-size: 16px;
}
.carousel-controls button:hover { background: #FFD700; color: #121212; box-shadow: 0 0 15px rgba(255,215,0,0.4); }

/* Node Dashboard */
.node-dashboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.node-item { padding: 25px 15px; }
.node-item h4 { color: #fff; }
.node-item .ping { color: #00ff00; font-weight: bold; font-size: 24px; text-shadow: 0 0 10px rgba(0,255,0,0.4); margin: 15px 0; }
.node-item p { color: #888; font-size: 14px; }

/* Article Matrix */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.article-card h4 { color: #FFD700; margin-bottom: 15px; font-size: 18px; }
.article-card p { color: #aaa; font-size: 14px; line-height: 1.7; }
.article-card a { color: #FF4500; font-size: 14px; margin-top: 15px; display: inline-block; font-weight: bold; transition: color 0.3s; }
.article-card a:hover { color: #FFD700; }

/* Reviews Marquee */
.reviews-marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
    width: 100%;
}
.reviews-track {
    display: inline-flex;
    gap: 30px;
    animation: marquee 25s linear infinite;
}
.reviews-marquee-container:hover .reviews-track { animation-play-state: paused; }
.review-item {
    width: 380px;
    white-space: normal;
    flex-shrink: 0;
}
.review-text { font-style: italic; color: #ddd; margin-bottom: 20px; font-size: 15px; }
.review-author { font-weight: bold; color: #FFD700; text-align: right; }
@keyframes marquee { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(calc(-50% - 15px)); } 
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 20px; }
.faq-item h4 { font-size: 18px; margin-bottom: 10px; color: #FFD700; }
.faq-item p { color: #aaa; }

/* Footer */
footer { background: rgba(10,10,10,0.95); color: #888; padding: 50px 0 20px; margin-top: 80px; border-top: 1px solid rgba(255,215,0,0.15); }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; flex-wrap: wrap; }
.footer-links a { color: #ccc; transition: color 0.3s; font-size: 15px; }
.footer-links a:hover { color: #FF4500; }
.pbn-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; font-size: 13px; }
.pbn-links a { color: #555; transition: color 0.3s; }
.pbn-links a:hover { color: #FFD700; }
.footer-bottom { text-align: center; font-size: 14px; border-top: 1px solid #222; padding-top: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .hero .container { flex-direction: column; text-align: center; gap: 30px; }
    .hero h1 { font-size: 36px; }
    .hero-visual svg { max-width: 280px; }
    .features-grid, .media-ai-grid, .node-dashboard, .article-grid { grid-template-columns: 1fr; gap: 20px; }
    .main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
    header .container { flex-direction: column; gap: 15px; }
    .pricing-carousel-wrapper { height: 600px; }
    header .btn { display: none; }
}

/* --- Subpage & Articles Fixes --- */
.subpage-header {
    text-align: center;
    padding: 60px 20px 20px;
}
.subpage-header h1 {
    font-size: 36px;
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.4;
}

.subpage-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 40px;
    margin: 40px auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    color: #ccc;
    line-height: 1.8;
}
.subpage-content h2 {
    color: #FFD700;
    margin: 30px 0 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 10px;
}
.subpage-content p, .subpage-content li {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .subpage-header {
        padding: 40px 15px 15px;
    }
    .subpage-header h1 {
        font-size: 26px;
    }
    .subpage-content {
        padding: 20px;
    }
}

/* Phase 2 SEO & A11y Additions */
:root {
    --primary: #FF4500;
    --gold: #FFD700;
    --bg-dark: #121212;
}
.skip-link:focus {
    position: fixed !important;
    left: 10px !important;
    top: 10px !important;
    width: auto !important;
    height: auto !important;
    padding: 15px;
    background: var(--primary);
    color: #fff;
    font-weight: bold;
    z-index: 99999;
    border-radius: 5px;
    text-decoration: none;
}
h2[id], section[id] {
    scroll-margin-top: 100px;
}
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
body, .subpage-content, .article-card {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
details > summary::-webkit-details-marker {
  display: none;
}
