@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Noto+Sans+SC:wght@300;500;700&family=Outfit:wght@300;600&display=swap');

:root {
    --bg-main: #0B1418;
    --bg-panel: #10201F;
    --mint: #3FE0C5;
    --mint-glow: rgba(63, 224, 197, 0.4);
    --text-main: #EAF6F3;
    --text-body: #C6D8D4;
    --muted: #5F7A76;
    --line: #1C3230;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Faint Grid Background (4% Opacity) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 500;
}
h1, h2 { font-weight: 700; }
.font-outfit { font-family: 'Outfit', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

a {
    text-decoration: none;
    color: var(--mint);
    transition: all 0.3s ease;
}
a:hover {
    text-shadow: 0 0 8px var(--mint-glow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.text-center { text-align: center; }

/* Separators */
section {
    padding: 80px 0;
    border-bottom: 1px solid var(--line);
}
section:last-child { border-bottom: none; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-main);
}
.section-title::before { content: '~/ '; color: var(--mint); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--mint);
    color: var(--mint);
    font-family: 'JetBrains Mono', monospace;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.btn:hover {
    background: var(--mint);
    color: var(--bg-main);
    box-shadow: 0 0 15px var(--mint-glow);
    text-shadow: none;
}
.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 20, 24, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.wordmark {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
}
.wordmark:hover { text-shadow: none; }
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-menu a {
    color: var(--text-body);
    font-size: 0.95rem;
    letter-spacing: 1px;
}
.nav-menu a:hover { color: var(--mint); }

/* Hero */
.hero {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.hero-title .highlight {
    color: var(--mint);
    text-shadow: 0 0 12px var(--mint-glow);
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 50px;
    max-width: 650px;
    line-height: 1.8;
}

/* Console Window */
.console-window {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    width: 100%;
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: left;
    overflow: hidden;
}
.console-header {
    background: #0d1816;
    padding: 10px 15px;
    border-bottom: 1px dashed var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.console-title {
    margin-left: 10px;
    color: var(--muted);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}
.console-body {
    padding: 25px;
    color: var(--mint);
    font-size: 0.95rem;
}
.console-body p { margin-bottom: 12px; opacity: 0; animation: typing 0.1s forwards; }
.console-body p:nth-child(1) { animation-delay: 0.3s; }
.console-body p:nth-child(2) { animation-delay: 1.2s; }
.console-body p:nth-child(3) { animation-delay: 2.1s; }
.console-body p:nth-child(4) { animation-delay: 3s; }
.console-body span.prompt { color: var(--muted); margin-right: 12px; }
@keyframes typing { to { opacity: 1; } }

/* Cards / Features */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.card {
    background: var(--bg-panel);
    border: 1px dotted var(--line);
    padding: 40px 30px;
    transition: all 0.3s ease;
}
.card:hover {
    border-color: var(--mint);
    box-shadow: inset 0 0 30px rgba(63, 224, 197, 0.03);
}
.card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card h3::before {
    content: '>';
    color: var(--mint);
    font-family: 'JetBrains Mono', monospace;
}

/* Keyboard Key Chips */
.chip-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
}
.chip {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-main);
    background: var(--bg-main);
    box-shadow: 0 4px 0 var(--line);
    transition: all 0.1s;
    user-select: none;
}
.chip:hover {
    border-color: var(--mint);
    color: var(--mint);
}
.chip:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 var(--line);
}

/* Pricing */
.pricing .card {
    text-align: center;
    position: relative;
}
.pricing .popular {
    border: 1px solid var(--mint);
}
.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-main);
    border: 1px solid var(--mint);
    color: var(--mint);
    padding: 4px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
}
.price {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 20px 0;
}
.price span {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 300;
}
.features-list {
    list-style: none;
    margin-bottom: 35px;
    text-align: left;
}
.features-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
}
.features-list li::before {
    content: '[+]';
    color: var(--mint);
    margin-right: 12px;
    font-family: 'JetBrains Mono', monospace;
}

/* FAQ */
.faq-item {
    max-width: 800px;
    margin: 0 auto 30px auto;
    border-left: 2px solid var(--mint);
    padding-left: 20px;
    background: var(--bg-panel);
    padding-top: 15px;
    padding-bottom: 15px;
    padding-right: 15px;
}
.faq-item h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--line);
    background: var(--bg-panel);
}
.footer-links a {
    margin: 0 15px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}
.footer-links a:hover {
    color: var(--mint);
}
.copyright {
    margin-top: 25px;
    color: var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .nav-menu { display: none; }
    .hero-title { font-size: 2.2rem; }
    .btn-large { width: 100%; padding: 18px; }
    .console-window { margin-left: 15px; margin-right: 15px; width: auto; }
}

/* Articles Specific CSS */
.article-container {
    padding-top: 50px;
    padding-bottom: 100px;
}
.breadcrumb {
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: var(--muted);
}
.breadcrumb a {
    color: var(--muted);
}
.breadcrumb a:hover {
    color: var(--mint);
}
.article-meta {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--line);
    color: var(--muted);
    font-size: 0.85rem;
    display: flex;
    gap: 15px;
}
.article-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}
.article-content h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--mint);
}
.article-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
}
.article-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-content li {
    margin-bottom: 10px;
}
.related-posts {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}
.related-posts h3 {
    margin-bottom: 20px;
}
.related-posts ul {
    list-style: none;
    padding: 0;
}
.related-posts li {
    margin-bottom: 15px;
}

/* Floating Controls & Next Nav & Hero Image */
.floating-controls { position: fixed; bottom: 40px; right: 40px; display: flex; flex-direction: column; gap: 15px; z-index: 1000; }
.float-btn {
    background: rgba(11, 20, 24, 0.85); border: 1px solid var(--mint); color: var(--mint);
    width: 50px; height: 50px; display: flex; justify-content: center; align-items: center;
    border-radius: 50%; text-decoration: none; backdrop-filter: blur(8px);
    font-family: 'JetBrains Mono', monospace; font-size: 1.5rem; transition: all 0.3s ease;
}
.float-btn:hover { background: var(--mint); color: var(--bg-main); box-shadow: 0 0 15px var(--mint-glow); transform: translateY(-3px); }
.next-article-nav { margin-top: 40px; padding: 25px; border: 1px dashed var(--line); border-radius: 8px; background: rgba(63, 224, 197, 0.02); transition: border-color 0.3s; }
.next-article-nav:hover { border-color: var(--mint); }
.next-article-nav a.btn { display: block; border-color: transparent; border-bottom: 1px solid var(--mint); border-radius: 0; padding-left: 0; }
.next-article-nav a.btn:hover { background: transparent; color: var(--mint); text-shadow: 0 0 10px var(--mint-glow); padding-left: 10px; box-shadow: none; }
.hero-image-container { max-width: 900px; width: 100%; margin: 0 auto 50px auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,0.6); position: relative; }
.hero-image-container::after { content: ''; position: absolute; top:0; left:0; right:0; bottom:0; background: linear-gradient(180deg, transparent 60%, var(--bg-main) 100%); pointer-events: none; }
.hero-image-container img { width: 100%; display: block; opacity: 0.85; mix-blend-mode: screen; filter: hue-rotate(-10deg) saturate(1.5); }
@media (max-width: 768px) { .floating-controls { bottom: 20px; right: 20px; } .float-btn { width: 45px; height: 45px; font-size: 1.3rem; } }
