:root {
    --bg-color: #000000;
    --surface: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-primary: #e8e8e8;
    --text-secondary: #6b6b6b;
    --accent: #00d4ff;
    --accent-dim: rgba(0, 212, 255, 0.15);
    --accent-glow: rgba(0, 212, 255, 0.25);
    --success: #34d399;
    --danger: #f87171;
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', sans-serif;
    --max: 760px;
}

/* Reset and core styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 4rem;
}
h1, h2, h3 {
    font-family: var(--font-mono);
    color: var(--text-primary);
}
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
    color: #fff;
    opacity: 0.9;
}

/* Background glows */
.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.06;
}
.orb-1 {
    top: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--accent);
}
.orb-2 {
    bottom: -15%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: var(--accent);
}

/* Scroll progress bar */
.progress, #progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #00a3cc);
    width: 0%;
    z-index: 1000;
    transition: width .1s linear;
}

/* Nav header styling (matches main and blog pages) */
header.nav {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}
.nav-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}
.logo span {
    color: var(--accent);
}
.bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}
.bars span {
    width: 3px;
    background: var(--accent);
    border-radius: 1px;
    display: block;
    animation: pulse 1.6s ease-in-out infinite;
}
.bars span:nth-child(1) { height: 5px; animation-delay: 0s; }
.bars span:nth-child(2) { height: 9px; animation-delay: .15s; }
.bars span:nth-child(3) { height: 13px; animation-delay: .3s; }
.bars span:nth-child(4) { height: 16px; animation-delay: .45s; }

@keyframes pulse {
    0%, 100% { opacity: .35; }
    50% { opacity: 1; }
}

nav.links, .nav-links {
    display: flex;
    gap: 28px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}
nav.links a, .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: var(--font-mono);
}
nav.links a:hover, .nav-links a:hover {
    color: var(--text-primary);
}
.cta-btn, .nav-cta {
    background: var(--accent);
    color: #000 !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    font-family: var(--font-mono);
    box-shadow: 0 4px 12px var(--accent-dim);
    transition: all 0.2s ease;
}
.cta-btn:hover, .nav-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--accent-glow);
}

@media (max-width: 720px) {
    nav.links, .nav-links {
        display: none;
    }
}

/* Central Blog Index styles */
.blog-header {
    text-align: center;
    padding: 4rem 1.5rem 2.5rem;
    max-width: var(--max);
    margin: 0 auto;
}
.blog-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #fff 40%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.blog-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 4rem;
}
.blog-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.08);
}
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.blog-badge {
    background: var(--accent-dim);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.blog-read-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.blog-card-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}
.blog-card h2 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    font-family: var(--font-mono);
    color: #fff;
}
.blog-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.blog-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: auto;
}
.blog-card-footer span {
    transition: transform 0.2s ease;
}
.blog-card:hover .blog-card-footer span {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual Blog Article page styles */
.article-header {
    padding: 4.5rem 24px 2rem;
    max-width: var(--max);
    margin: 0 auto;
    text-align: left;
}
h1.title {
    font-size: clamp(24px, 5vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}
.dek, .intro {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Stat card styles (both formats) */
.stat-card {
    max-width: var(--max);
    margin: 1.5rem auto 2.5rem;
    padding: 0 24px;
}
.stat-card-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
}
.stat {
    padding: 18px 20px;
    text-align: left;
    border-right: 1px solid var(--card-border);
}
.stat:last-child {
    border-right: none;
}
.stat-label, .stat .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.stat-value, .stat .val {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-value span.unit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 3px;
}

/* Format B (1st blog format) */
.stat-card.format-b {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
.stat-card.format-b .stat {
    text-align: center;
    border-right: none;
    padding: 8px;
}
.stat-card.format-b .stat .val {
    font-size: 2rem;
}
.stat-card.format-b::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(0, 212, 255, 0.08), transparent 55%);
}
.stat-cta {
    grid-column: 1/-1;
    text-align: center;
    margin-top: 6px;
    position: relative;
}
.stat-cta a {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.88rem;
    box-shadow: 0 4px 12px var(--accent-dim);
}

@media (max-width: 560px) {
    .stat-card-inner {
        grid-template-columns: 1fr;
    }
    .stat {
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }
    .stat:last-child {
        border-bottom: none;
    }
    .stat-card.format-b {
        grid-template-columns: 1fr;
    }
}

/* Article Content & Typography */
article.content {
    padding: 0 24px 2rem;
    max-width: var(--max);
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-primary);
}
article.content h2 {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 2.8rem 0 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.4rem;
}
article.content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0 0.8rem;
    color: var(--text-primary);
}
article.content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: #c4c4c4;
}
article.content ul, article.content ol {
    margin: 0 0 1.5rem;
    padding-left: 22px;
}
article.content li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
    color: #c4c4c4;
}
article.content strong {
    color: #fff;
    font-weight: 600;
}

/* Pull quotes */
blockquote.pull, blockquote {
    margin: 2.5rem 0;
    padding: 0.5rem 0 0.5rem 20px;
    border-left: 3px solid var(--accent);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
    color: #fff;
    line-height: 1.5;
}

/* Table styles */
.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0 2.5rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--surface);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 480px;
}
thead tr {
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid var(--card-border);
}
th, td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--card-border);
}
th {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-weight: 700;
}
tbody tr:last-child td {
    border-bottom: none;
}
td {
    font-family: var(--font-main);
    color: #c4c4c4;
}
td:first-child {
    font-family: var(--font-mono);
    color: #fff;
    font-weight: 500;
}

/* Checklist box */
.checklist {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 24px;
    margin: 2rem 0;
}
.checklist ul {
    margin-bottom: 0;
}
.checklist li {
    list-style-type: none;
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}
.checklist li:last-child {
    margin-bottom: 0;
}
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 4px;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Divider line */
.divider, hr {
    height: 1px;
    background: var(--card-border);
    margin: 3rem 0;
    border: none;
}

/* Footer CTA box */
.footer-cta {
    max-width: var(--max);
    margin: 2rem auto 4rem;
    padding: 0 24px;
}
.cta-box {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(0, 212, 255, 0.05), transparent 60%);
    pointer-events: none;
}
.cta-box h2, .cta-box h3 {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff;
}
.cta-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.cta-box a.run, .cta-box a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--accent-dim);
    transition: all 0.25s ease;
}
.cta-box a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
    background: #fff;
    color: #000;
}

/* Site Footer */
footer.site, footer {
    border-top: 1px solid var(--card-border);
    padding: 2rem 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    background-color: var(--bg-color);
}

/* Sidebar and Top Ads for Blog Pages */
.ad-sidebar {
    position: fixed;
    top: 140px;
    width: 300px;
    height: 250px;
    z-index: 10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ad-left {
    left: calc(50% - 380px - 330px);
}
.ad-right {
    right: calc(50% - 380px - 330px);
}

@media (max-width: 1440px) {
    .ad-sidebar {
        display: none;
    }
}

.ad-top-section {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0 24px;
}
.ad-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    max-width: var(--max);
}
.ad-tag {
    font-size: 0.55rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}
.ad-placeholder {
    width: 100%;
    height: 190px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--card-border);
}

