@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;700&family=Unbounded:wght@400;700;900&display=swap');

:root {
    --dusk-purple: #0E0B16;
    --moon-white: #EDE6FF;
    --neon-teal: #00E5C7;
    --signal-magenta: #FF3D8A;
    --haze: #6E6590;
    --panel-border: #241C3A;
    
    --font-heading: 'Unbounded', sans-serif;
    --font-ui: 'Chakra Petch', sans-serif;
}

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

body {
    background-color: var(--dusk-purple);
    color: var(--moon-white);
    font-family: var(--font-ui);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* 4% Scanline Texture */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(rgba(14,11,22,0) 50%, rgba(0,0,0,0.25) 50%), linear-gradient(90deg, rgba(255,0,0,0.06), rgba(0,255,0,0.02), rgba(0,0,255,0.06));
    background-size: 100% 4px, 3px 100%;
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: var(--neon-teal);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--moon-white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.section { padding: 80px 0; }
.section-title { font-size: 2.2rem; margin-bottom: 50px; text-transform: uppercase; letter-spacing: 2px; }
.text-haze { color: var(--haze); }
.text-magenta { color: var(--signal-magenta); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--neon-teal);
    border-radius: 50px;
    color: var(--neon-teal);
    font-family: var(--font-ui);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 229, 199, 0.1);
}
.btn:hover {
    background: var(--neon-teal);
    color: var(--dusk-purple);
    box-shadow: 0 0 20px rgba(0, 229, 199, 0.6);
}
.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}
.btn-magenta {
    border-color: var(--signal-magenta);
    color: var(--signal-magenta);
    box-shadow: 0 0 10px rgba(255, 61, 138, 0.1);
}
.btn-magenta:hover {
    background: var(--signal-magenta);
    color: var(--dusk-purple);
    box-shadow: 0 0 20px rgba(255, 61, 138, 0.6);
}

/* Header Navigation */
.navbar {
    border-bottom: 1px solid var(--panel-border);
    background: rgba(14, 11, 22, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--moon-white);
}
.logo-svg {
    filter: drop-shadow(0 0 8px rgba(0,229,199,0.5));
}
.navbar nav a {
    margin: 0 15px;
    color: var(--moon-white);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-weight: 500;
}
.navbar nav a:hover {
    color: var(--neon-teal);
    text-shadow: 0 0 8px rgba(0,229,199,0.5);
}

/* Monospaced Ticker */
.ticker {
    background: var(--panel-border);
    color: var(--neon-teal);
    font-family: monospace;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--neon-teal);
}
.ticker-content {
    display: inline-block;
    animation: ticker 30s linear infinite;
}
@keyframes ticker {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* Hero */
.hero {
    padding: 120px 0 100px;
    background: radial-gradient(circle at 50% 50%, rgba(36,28,58,0.5) 0%, var(--dusk-purple) 100%);
    border-bottom: 1px solid var(--panel-border);
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255,255,255,0.1);
}
.hero .subtitle {
    font-size: 1.2rem;
    color: var(--haze);
    max-width: 800px;
    margin: 0 auto 50px;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Grid & Panels (Dark panels with corner brackets) */
.grid {
    display: grid;
    gap: 40px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.panel {
    background: rgba(20, 15, 30, 0.4);
    border: 1px solid var(--panel-border);
    padding: 35px;
    position: relative;
    transition: all 0.3s ease;
}
.panel::before, .panel::after {
    content: ''; 
    position: absolute; 
    width: 20px; 
    height: 20px; 
    border: 2px solid var(--haze);
    transition: border-color 0.3s;
}
.panel::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.panel::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.panel:hover {
    background: rgba(20, 15, 30, 0.8);
    border-color: var(--neon-teal);
    box-shadow: inset 0 0 20px rgba(0,229,199,0.05);
}
.panel:hover::before, .panel:hover::after {
    border-color: var(--neon-teal);
}

.panel h3 {
    margin-bottom: 15px;
    color: var(--moon-white);
    font-size: 1.3rem;
}

.panel .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* Pricing Special */
.pricing-card {
    text-align: center;
}
.pricing-card .price {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--neon-teal);
    margin: 20px 0;
    text-shadow: 0 0 10px rgba(0,229,199,0.3);
}
.pricing-card .price span {
    font-size: 1.2rem;
    color: var(--haze);
}
.pricing-card ul {
    list-style: none;
    margin-bottom: 35px;
}
.pricing-card ul li {
    margin-bottom: 12px;
    color: var(--moon-white);
    border-bottom: 1px dashed var(--panel-border);
    padding-bottom: 8px;
}

/* Signal Magenta used once per screen (Highlight popular plan) */
.pricing-card.popular {
    border-color: var(--signal-magenta);
}
.pricing-card.popular::before, .pricing-card.popular::after {
    border-color: var(--signal-magenta);
}
.pricing-card.popular:hover {
    border-color: var(--signal-magenta);
    box-shadow: inset 0 0 20px rgba(255,61,138,0.1);
}
.pricing-card.popular .price {
    color: var(--signal-magenta);
    text-shadow: 0 0 10px rgba(255,61,138,0.3);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 30px;
}
.faq-item h4 {
    color: var(--neon-teal);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--panel-border);
    padding: 50px 0 30px;
    text-align: center;
    background: #0a080f;
}
.footer-links {
    margin-bottom: 25px;
}
.footer-links a {
    color: var(--haze);
    margin: 0 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.footer-links a:hover {
    color: var(--neon-teal);
}
.copyright {
    color: var(--panel-border);
    font-family: monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-content { flex-direction: column; gap: 20px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; gap: 15px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .btn-large { width: 100%; box-sizing: border-box; text-align: center; }
    .navbar nav a { display: block; margin: 10px 0; text-align: center; }
}

/* Article Styles */
.article-container { max-width: 900px; margin: 60px auto; padding: 50px; background: rgba(20, 15, 30, 0.6); border: 1px solid var(--panel-border); box-shadow: inset 0 0 30px rgba(0,229,199,0.03); border-radius: 8px; position: relative; z-index: 10; backdrop-filter: blur(5px); }
.article-container::before, .article-container::after { content: ''; position: absolute; width: 25px; height: 25px; border: 2px solid var(--neon-teal); }
.article-container::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.article-container::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.article-header { border-bottom: 1px dashed var(--panel-border); padding-bottom: 25px; margin-bottom: 35px; text-align: center; }
.article-header h1 { font-size: 2.2rem; color: var(--neon-teal); text-shadow: 0 0 10px rgba(0,229,199,0.2); line-height: 1.4; margin-bottom: 15px; }
.article-meta { color: var(--haze); font-family: monospace; font-size: 0.95rem; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.article-content h2 { color: var(--signal-magenta); font-size: 1.6rem; margin: 45px 0 25px; border-left: 4px solid var(--signal-magenta); padding-left: 15px; text-transform: uppercase; letter-spacing: 1px; }
.article-content h3 { color: var(--moon-white); font-size: 1.3rem; margin: 30px 0 15px; }
.article-content p { margin-bottom: 22px; font-size: 1.05rem; line-height: 1.8; color: #c4bcd4; }
.article-content ul, .article-content ol { margin: 0 0 25px 40px; color: #c4bcd4; font-size: 1.05rem; line-height: 1.8; }
.article-content li { margin-bottom: 12px; }
.article-content a { color: var(--neon-teal); text-decoration: none; border-bottom: 1px dashed var(--neon-teal); padding-bottom: 2px; transition: all 0.3s; }
.article-content a:hover { color: var(--signal-magenta); border-bottom-color: var(--signal-magenta); text-shadow: 0 0 8px rgba(255,61,138,0.4); }
.breadcrumb { margin-bottom: 30px; font-family: var(--font-ui); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.breadcrumb a { color: var(--neon-teal); border-bottom: none; }
.breadcrumb a:hover { color: var(--moon-white); }
.breadcrumb span { color: var(--haze); margin: 0 10px; }
.breadcrumb .current { color: var(--signal-magenta); }
.news-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.news-card .meta { font-family: monospace; font-size: 0.85rem; color: var(--haze); margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center;}
.news-card h3 { font-size: 1.25rem; margin-bottom: 15px; color: var(--moon-white); line-height: 1.4; }
.news-card p { color: var(--haze); font-size: 0.95rem; margin-bottom: 25px; flex-grow: 1; line-height: 1.6; }
.news-card .category { background: rgba(0, 229, 199, 0.1); color: var(--neon-teal); padding: 4px 10px; border-radius: 4px; border: 1px solid var(--neon-teal); font-size: 0.8rem; font-weight: bold; }
.related-articles { margin-top: 60px; border-top: 1px solid var(--panel-border); padding-top: 40px; }
.related-articles h3 { color: var(--neon-teal); margin-bottom: 20px; text-transform: uppercase; font-family: var(--font-heading); }
.related-articles ul { list-style: none; margin: 0; padding: 0; }
.related-articles li { margin-bottom: 15px; }
.related-articles a { color: var(--moon-white); text-decoration: none; border: none; font-size: 1.1rem; transition: color 0.3s; }
.related-articles a:hover { color: var(--signal-magenta); }

/* Floating Button (Back to Top) */
.floating-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(14, 11, 22, 0.85);
    border: 2px solid var(--neon-teal);
    border-radius: 50%;
    color: var(--neon-teal);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0,229,199,0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}
.floating-btn:hover {
    background: var(--neon-teal);
    color: var(--dusk-purple);
    box-shadow: 0 0 25px rgba(0,229,199,0.8);
    transform: translateY(-5px);
}
/* Next Article Box */
.next-article-box {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed var(--panel-border);
    text-align: right;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}
@media (max-width: 768px) {
    .floating-btn { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 1.2rem; }
    .next-article-box { flex-direction: column; text-align: center; justify-content: center; }
}
