/* ======================================
   VELTAS - Light Premium (Cream & Navy)
   ====================================== */

:root {
    /* Base - Cream Paper Theme */
    --bg-main: #fbfbf4;
    /* Matches Logo Background */
    --bg-surface: #fbfbf4;
    /* Pure white for cards */

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Palette - High Contrast */
    --color-text-main: #152340;
    /* Slate 900 - Dark Navy text */
    --color-text-secondary: #475569;
    /* Slate 600 */
    --color-text-tertiary: #94A3B8;
    /* Slate 400 */

    /* Accent - Derived from Logo Navy */
    --accent-core: #0B1120;
    /* Deep Navy Logo Color */
    --accent-vibrant: #2563EB;
    /* Royal Blue for links/tech elements */

    /* Borders & Glass */
    --border-light: rgba(21, 35, 64, 0.08);
    /* Dark subtle border */
    --border-hover: rgba(21, 35, 64, 0.2);

    /* Spacing */
    --container-width: 1100px;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ======================================
   TEXTURE (Paper Grain)
   ====================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    /* Slightly stronger on light */
    mix-blend-mode: multiply;
}

/* ======================================
   TYPOGRAPHY
   ====================================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    letter-spacing: -0.04em;
    font-weight: 700;
}

p {
    color: var(--color-text-secondary);
    letter-spacing: -0.01em;
}

.mono-label {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--accent-vibrant);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(37, 99, 235, 0.05);
    display: inline-block;
}

.mono-text {
    font-family: var(--font-mono);
}

/* ======================================
   LAYOUT
   ====================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

/* ======================================
   NAVBAR (Integrated)
   ====================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-main);
    /* Integrated seamless bg */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* The JS will toggle this logic */
/* When .scrolled is added by JS, we handle appearance changes if needed 
   BUT JS handles translate hide/show */
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    background: rgba(251, 251, 244, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--color-text-main);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 45px;
    height: auto;
}

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

.nav-link {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-core);
}

.btn-nav-primary {
    background: var(--color-text-main);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.btn-nav-primary:hover {
    transform: translateY(-1px);
    background: black;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--color-text-main);
}

/* ======================================
   HERO
   ====================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 6rem;
    position: relative;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1;
    margin: 1.25rem 0;
    color: var(--color-text-main);
}

.hero-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-major {
    background: var(--accent-core);
    /* Dark Navy */
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(11, 17, 32, 0.15);
}

.btn-major:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(11, 17, 32, 0.2);
}

.btn-minor {
    background: white;
    color: var(--color-text-main);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.btn-minor:hover {
    border-color: var(--color-text-secondary);
    background: #f8fafc;
}

/* Hero Visual - Dashboard */
.hero-visual {
    width: 100%;
    max-width: 900px;
    position: relative;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.08));
}

.dashboard-panel {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 4px;
    overflow: hidden;
}

.panel-inner {
    background: #F8FAFC;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.panel-header {
    height: 40px;
    background: white;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: 8px;
}

.win-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E2E8F0;
}

.panel-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    height: 100%;
}

.sidebar-mock {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bar-line {
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    width: 100%;
}

.bar-short {
    width: 60%;
}

.main-mock {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Animation Pulse for Automatic Badge */
.pulse-auto {
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2);
        border-color: rgba(37, 99, 235, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px 0 rgba(37, 99, 235, 0.4);
        border-color: rgba(37, 99, 235, 0.8);
        background: #F0F9FF;
        /* Subtle blue bg shift */
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
        border-color: rgba(37, 99, 235, 0.3);
    }
}

/* Flow Animation Components */
.flow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    gap: 2rem;
}

.label-manual {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #64748B;
}

.label-auto {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-core);
    border: 1px solid #E2E8F0;
    padding: 0.5rem;
    border-radius: 4px;
    background: white;
}

/* Flow lines - Improved Visibility */
.flow-anim-line {
    position: relative;
    width: 100px;
    inset: auto;
    height: 2px;
    background: #E2E8F0;
    overflow: hidden;
}

.flow-dot {
    width: 60px;
    /* Longer tail */
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-vibrant), transparent);
    position: absolute;
    animation: flowMove 1.5s infinite linear;
}

@keyframes flowMove {
    0% {
        left: -20%;
    }

    100% {
        left: 120%;
    }
}


/* ======================================
   BENTO GRID
   ====================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.bento-card:hover {
    border-color: var(--accent-vibrant);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-4 {
    grid-column: span 4;
}

.row-span-2 {
    grid-row: span 2;
}

.card-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-vibrant);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 600;
}

.bento-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.bento-card p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.card-illustration {
    margin-top: auto;
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    align-self: center;
    border-radius: 8px;
}

/* CTA CARD FIX: Light + Border instead of Block Dark */
.cta-card {
    background: white;
    /* Clean */
    border: 2px solid var(--color-text-main);
    /* Strong border for importance */
}

.cta-card .card-label {
    color: var(--color-text-main);
}

.cta-card h3 {
    color: var(--color-text-main);
}

.cta-card p {
    color: var(--color-text-secondary);
}

.cta-card a {
    color: var(--accent-vibrant);
    text-decoration: none;
    font-weight: 700;
}

.cta-card a:hover {
    text-decoration: underline;
}

/* ======================================
   MINIMAL PROCESS
   ====================================== */
.process-list {
    margin-top: 3rem;
    border-left: 1px solid var(--border-light);
}

.process-item {
    padding-left: 2.5rem;
    position: relative;
    padding-bottom: 3rem;
    border-left: 2px solid transparent;
    transition: all 0.3s;
    margin-left: -2px;
}

.process-item:hover {
    border-left-color: var(--accent-vibrant);
}

.process-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ======================================
   FOOTER (Simplified)
   ====================================== */
.site-footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 0 2rem;
    background: var(--bg-main);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-secondary);
    /* Lighter footer text */
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* Minimal Form - No Box */
.form-box {
    margin: 3rem auto;
    text-align: center;
    max-width: 600px;
}

.form-box h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.form-minimal-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-text-main);
    padding: 0.8rem 0.5rem;
    font-size: 1.1rem;
    color: var(--color-text-main);
    outline: none;
    font-family: var(--font-body);
    resize: vertical;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-bottom-color: var(--accent-vibrant);
    background: rgba(255, 255, 255, 0.5);
}

.form-btn {
    background: var(--color-text-main);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 1;
    border-radius: 4px;
    align-self: flex-end;
    transition: all 0.2s;
}

.form-btn:hover {
    opacity: 1;
}

/* Mobile & Tablet Optimization */
@media (max-width: 900px) {

    /* Layout Adjustments */
    .container {
        padding: 0 1.25rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        /* Prevent horizontal scroll triggers */
    }

    .section {
        padding: 3rem 0;
        /* More compact on mobile */
    }

    /* Navbar */
    .navbar {
        padding: 0.8rem 0;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero */
    .hero {
        padding-top: 5rem;
        text-align: center;
        align-items: center;
        overflow-x: hidden;
        /* Ensure hero doesn't overflow */
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 3rem);
        /* Slightly smaller clamping */
        margin: 1rem 0;
        padding: 0 0.5rem;
        /* Prevent text touching edges */
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        align-items: center;
        padding: 0 1rem;
    }

    .btn-major,
    .btn-minor {
        width: 100%;
        padding: 0.9rem 1rem;
        /* Slightly reduced padding */
    }

    /* Hero Visual - Ensure it doesn't overflow */
    .hero-visual {
        margin-top: 2rem;
        width: 100%;
        max-width: 100%;
        /* Force constraint */
        padding: 0 0.5rem;
    }

    .dashboard-panel {
        max-width: 100%;
    }

    .panel-body {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
        /* Ensure padding doesn't add width */
    }

    .sidebar-mock {
        display: none;
    }

    /* Flow Animation Mobile Fixes */
    .flow-container {
        gap: 0.5rem;
        /* Drastically reduce gap */
        height: auto;
        padding: 1rem 0;
        flex-wrap: nowrap;
        /* Prevent wrapping implies scaling down */
        width: 100%;
    }

    .flow-anim-line {
        width: 40px;
        /* Much smaller line */
        flex-shrink: 1;
        /* Allow shrinking */
    }

    .label-manual,
    .label-auto {
        font-size: 0.65rem;
        /* Smaller text */
        white-space: nowrap;
    }

    .label-auto {
        padding: 0.3rem 0.5rem;
    }

    /* Bento Grid */
    .bento-grid {
        display: flex;
        /* Use flex col instead of grid for simpler stacking */
        flex-direction: column;
        gap: 1.5rem;
    }

    .bento-card {
        padding: 1.5rem;
        min-height: auto;
    }

    /* Process List */
    .process-list {
        margin-top: 2rem;
        padding-left: 0;
    }

    .process-item {
        padding-bottom: 2rem;
    }

    /* Form */
    .form-box {
        margin: 3rem auto;
        padding: 0 1rem;
    }

    .form-minimal-wrapper {
        width: 100%;
        max-width: 100%;
    }

    /* Footer */
    .site-footer {
        padding: 3rem 0 2rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
    }
}

/* ======================================
   FAQ Styles (Balanced with Bento Grid)
   ====================================== */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.faq-item:hover {
    border-color: var(--accent-vibrant);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

.faq-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--color-text-tertiary);
    flex-shrink: 0;
}

.faq-item.active {
    border-color: var(--accent-vibrant);
    background: #ffffff;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 2rem;
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
    max-width: 90%;
}

/* Badge WIP */
.badge-wip {
    display: inline-block;
    background: rgba(255, 165, 0, 0.1);
    color: #e67e22;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75em;
    margin-right: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ======================================
   BLOG — Index Page
   ====================================== */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.blog-card:hover {
    border-color: var(--accent-vibrant);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-card-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-text-tertiary);
    letter-spacing: 0.04em;
}

.blog-card-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-vibrant);
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.18);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--color-text-main);
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.blog-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin: 0;
    flex-grow: 1;
}

.blog-card-arrow {
    font-size: 0.9rem;
    color: var(--accent-vibrant);
    font-weight: 700;
    font-family: var(--font-mono);
    margin-top: 0.5rem;
    display: inline-block;
    transition: transform 0.2s;
}

.blog-card:hover .blog-card-arrow {
    transform: translateX(4px);
}

/* ======================================
   BLOG — Article Page
   ====================================== */
.article-hero {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-text-tertiary);
    letter-spacing: 0.04em;
}

.article-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-vibrant);
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.18);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.article-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    max-width: 800px;
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 650px;
    line-height: 1.6;
}

/* Article Body */
.article-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
}

.article-body p {
    font-family: var(--font-mono);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.75rem;
    color: var(--color-text-secondary);
    letter-spacing: -0.01em;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-text-main);
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-text-main);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body strong {
    color: var(--color-text-main);
    font-weight: 600;
}

.article-body a {
    color: var(--accent-vibrant);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 3rem 0;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s;
    margin-bottom: 2rem;
    display: block;
}

.article-back:hover {
    color: var(--accent-vibrant);
}

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

    .article-hero {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .article-body {
        padding: 2.5rem 0 4rem;
    }
}

/* ======================================
   SUBSTACK INTEGRATION
   ====================================== */
.loading {
    font-family: var(--font-mono);
    color: var(--color-text-tertiary);
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeIn 0.5s ease forwards;
}