/* ============================================
   SYXO SHARED DESIGN SYSTEM
   Extracted from index.html + template classes
   ============================================ */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Ink & Electric Lime */
    --ink: #0A0A0F;
    --lime: #CBEF43;
    --cream: #FAF8F5;
    --surface: #141418;
    --body: #4A4A4A;
    --cloud: #E8E8E0;
    --olive: #8B9A3E;

    /* Derived */
    --lime-hover: #B8DC30;
    --ink-hover: #18181F;
    --lime-glow: rgba(203, 239, 67, 0.25);
    --lime-glow-strong: rgba(203, 239, 67, 0.4);
    --ink-95: rgba(10, 10, 15, 0.95);
    --cream-95: rgba(250, 248, 245, 0.95);
    --border-light: rgba(10, 10, 15, 0.08);
    --border-dark: rgba(232, 232, 224, 0.1);

    /* Fonts */
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'General Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Spacing */
    --section-padding: 96px;
    --section-padding-mobile: 56px;
    --max-width: 1200px;
    --reading-width: 720px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--body);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.05;
}

h2 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
}

h3 {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
}

p {
    margin-bottom: 16px;
}

a {
    color: var(--lime);
    text-decoration: none;
}

a:hover {
    color: var(--lime-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   GRAIN TEXTURE OVERLAY
   ============================================ */
.has-grain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    z-index: 0;
}

.has-grain {
    position: relative;
}

.has-grain > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   DECORATIVE GRID PATTERN
   ============================================ */
.has-grid-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    opacity: 0.04;
    pointer-events: none;
    background-image:
        radial-gradient(circle, var(--ink) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
    z-index: 0;
}

.dark-grid::after {
    opacity: 0.12;
    background-image:
        radial-gradient(circle, var(--lime) 1px, transparent 1px);
}

/* ============================================
   UTILITY
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.reading-width {
    max-width: var(--reading-width);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--olive);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: var(--lime);
    flex-shrink: 0;
}

.text-center {
    text-align: center;
}

.text-center .section-label {
    justify-content: center;
}

.text-cloud {
    color: var(--cloud);
}

.text-lime {
    color: var(--lime);
}

.on-dark .section-label {
    color: var(--lime);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > .reveal-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > .reveal-child {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance animations */
.hero-enter {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-enter-1 { animation-delay: 0.1s; }
.hero-enter-2 { animation-delay: 0.25s; }
.hero-enter-3 { animation-delay: 0.4s; }
.hero-enter-4 { animation-delay: 0.55s; }
.hero-enter-5 { animation-delay: 0.7s; }

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

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-block;
    background-color: var(--lime);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    padding: 16px 36px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    position: relative;
}

.btn-primary:hover {
    background-color: var(--lime-hover);
    color: var(--ink);
    box-shadow: 0 4px 24px var(--lime-glow-strong);
    transform: translateY(-1px);
}

.btn-glow {
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--lime-glow); }
    50% { box-shadow: 0 0 24px 4px var(--lime-glow); }
}

.btn-glow:hover {
    animation: none;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    padding: 14px 34px;
    border-radius: 100px;
    border: 2px solid var(--ink);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: var(--ink);
    color: var(--cream);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-block;
    background-color: transparent;
    color: var(--lime);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    padding: 14px 34px;
    border-radius: 100px;
    border: 2px solid var(--lime);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
}

.btn-ghost:hover {
    background-color: var(--lime);
    color: var(--ink);
    transform: translateY(-1px);
}

.btn-sub-text {
    display: block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--cloud);
    margin-top: 12px;
    opacity: 0.5;
}

/* ============================================
   NAV
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--ink-95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
    padding: 16px 0;
    transition: box-shadow 0.3s;
}

.nav.scrolled {
    box-shadow: 0 4px 24px rgba(203, 239, 67, 0.04);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--cloud);
    letter-spacing: 0.1em;
    text-decoration: none;
}

.nav-logo .x {
    color: var(--lime);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--cloud);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--lime);
}

.nav .btn-primary {
    padding: 10px 24px;
    font-size: 14px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0;
    background-color: var(--surface);
    border-top: 1px solid var(--border-dark);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--cloud);
    letter-spacing: 0.1em;
    text-decoration: none;
}

.footer-logo .x {
    color: var(--lime);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--cloud);
    opacity: 0.5;
    text-decoration: none;
    transition: opacity 0.2s, color 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--lime);
}

.footer-legal {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--cloud);
    opacity: 0.3;
}

/* ============================================
   FAQ (REUSABLE)
   ============================================ */
.faq {
    padding: var(--section-padding) 0;
    background-color: var(--cream);
}

.faq h2 {
    margin-bottom: 48px;
}

.faq-list {
    max-width: var(--reading-width);
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 24px 0;
}

.faq-item:first-child {
    border-top: 1px solid var(--border-light);
}

.faq-question {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 20px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--lime);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-question::after {
    content: '\2212';
    transform: rotate(180deg);
}

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

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 16px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
}

/* ============================================
   QUIZ CTA SECTION (REUSABLE)
   ============================================ */
.quiz-cta {
    padding: var(--section-padding) 0;
    background-color: var(--ink);
    text-align: center;
    position: relative;
}

.quiz-cta h2 {
    color: var(--cloud);
    margin-bottom: 20px;
}

.quiz-cta .description {
    color: var(--cloud);
    max-width: 600px;
    margin: 0 auto 24px;
    opacity: 0.75;
}

.quiz-cta .btn-primary {
    font-size: 18px;
    padding: 20px 44px;
}

/* ============================================
   BLOG POST TEMPLATE
   ============================================ */
.blog-hero {
    padding: calc(var(--section-padding) + 72px) 0 48px;
    background-color: var(--ink);
    color: var(--cloud);
    position: relative;
    overflow: hidden;
}

.blog-hero::after {
    content: '';
    position: absolute;
    top: 80px;
    right: -60px;
    width: 50%;
    height: 80%;
    opacity: 0.08;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--lime) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at 70% 50%, rgba(0,0,0,0.7), transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 50%, rgba(0,0,0,0.7), transparent 70%);
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-meta {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--cloud);
    opacity: 0.5;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-meta .divider {
    width: 4px;
    height: 4px;
    background: var(--lime);
    border-radius: 50%;
    opacity: 0.5;
}

.blog-hero h1 {
    color: var(--cloud);
    font-size: 48px;
    max-width: 800px;
    margin-bottom: 20px;
}

.blog-hero .subtitle {
    font-size: 20px;
    color: var(--cloud);
    opacity: 0.75;
    max-width: 640px;
}

.blog-audience-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    background-color: var(--lime);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

/* Blog article body */
.blog-body {
    padding: var(--section-padding) 0;
    background-color: var(--cream);
}

.blog-body .container {
    max-width: var(--reading-width);
}

.blog-body h2 {
    font-size: 32px;
    margin-top: 48px;
    margin-bottom: 20px;
}

.blog-body h3 {
    font-size: 24px;
    margin-top: 36px;
    margin-bottom: 16px;
}

.blog-body p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.blog-body ul, .blog-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.blog-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-body blockquote {
    border-left: 3px solid var(--lime);
    padding-left: 24px;
    margin: 32px 0;
    font-style: normal;
    color: var(--ink);
    font-weight: 500;
}

.blog-body strong {
    color: var(--ink);
    font-weight: 500;
}

.blog-body a {
    color: var(--olive);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-body a:hover {
    color: var(--ink);
}

/* Inline CTA within blog */
.inline-cta {
    background-color: var(--ink);
    border-radius: 16px;
    padding: 40px;
    margin: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inline-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--lime), transparent);
    opacity: 0.4;
}

.inline-cta h3 {
    color: var(--cloud);
    font-size: 24px;
    margin-bottom: 12px;
}

.inline-cta p {
    color: var(--cloud);
    opacity: 0.75;
    margin-bottom: 24px;
}

.inline-cta .btn-primary {
    font-size: 16px;
    padding: 16px 36px;
}

/* Related posts grid */
.related-posts {
    padding: var(--section-padding) 0;
    background-color: var(--cream);
    border-top: 1px solid var(--border-light);
}

.related-posts h2 {
    font-size: 32px;
    margin-bottom: 32px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-post-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: block;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10, 10, 15, 0.06);
}

.related-post-card .card-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--olive);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.related-post-card h3 {
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.3;
}

.related-post-card p {
    font-size: 15px;
    color: var(--body);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ============================================
   TRADE PAGE TEMPLATE (T1)
   ============================================ */
.trade-hero {
    padding: calc(var(--section-padding) + 72px) 0 var(--section-padding);
    background-color: var(--ink);
    color: var(--cloud);
    position: relative;
    overflow: hidden;
}

.trade-hero::after {
    content: '';
    position: absolute;
    top: 80px;
    right: -60px;
    width: 50%;
    height: 80%;
    opacity: 0.1;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--lime) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at 70% 50%, rgba(0,0,0,0.7), transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 50%, rgba(0,0,0,0.7), transparent 70%);
}

.trade-hero .container {
    position: relative;
    z-index: 1;
}

.trade-hero h1 {
    color: var(--cloud);
    margin-bottom: 24px;
    max-width: 780px;
}

.trade-hero h1 .accent {
    color: var(--lime);
}

.trade-hero .subheadline {
    font-size: 20px;
    line-height: 1.6;
    color: var(--cloud);
    max-width: 620px;
    margin-bottom: 40px;
    opacity: 0.85;
}

.trade-hero .btn-primary {
    font-size: 18px;
    padding: 20px 44px;
}

.trade-hero .hero-sub {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--cloud);
    margin-top: 16px;
    opacity: 0.5;
}

/* Pain points section */
.trade-pain {
    padding: var(--section-padding) 0;
    background-color: var(--cream);
    position: relative;
}

.trade-pain h2 {
    margin-bottom: 32px;
}

.trade-pain .pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
}

.pain-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px;
}

.pain-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.pain-card p {
    font-size: 16px;
    color: var(--body);
    margin-bottom: 0;
}

/* Services grid */
.trade-services {
    padding: var(--section-padding) 0;
    background-color: var(--ink);
    color: var(--cloud);
    position: relative;
}

.trade-services h2 {
    color: var(--cloud);
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card .card-number {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--lime);
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 22px;
    color: var(--cloud);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 16px;
    color: var(--cloud);
    opacity: 0.7;
    margin-bottom: 0;
}

/* How it works (trade) */
.trade-process {
    padding: var(--section-padding) 0;
    background-color: var(--cream);
    position: relative;
}

.trade-process h2 {
    text-align: center;
    margin-bottom: 56px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.67% + 12px);
    right: calc(16.67% + 12px);
    height: 2px;
    background: linear-gradient(90deg, var(--lime), var(--olive), var(--lime));
    opacity: 0.3;
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-step .step-number {
    font-family: var(--font-mono);
    font-size: 44px;
    color: var(--lime);
    line-height: 1;
    margin-bottom: 20px;
}

.process-step h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 16px;
    color: var(--body);
    margin-bottom: 0;
}

/* Trade CTA */
.trade-cta {
    padding: var(--section-padding) 0;
    background-color: var(--ink);
    text-align: center;
    position: relative;
}

.trade-cta h2 {
    color: var(--cloud);
    margin-bottom: 20px;
}

.trade-cta p {
    color: var(--cloud);
    max-width: 600px;
    margin: 0 auto 36px;
    opacity: 0.75;
}

.trade-cta .btn-primary {
    font-size: 18px;
    padding: 20px 44px;
}

/* Related trades */
.related-trades {
    padding: var(--section-padding) 0;
    background-color: var(--cream);
}

.related-trades h2 {
    margin-bottom: 32px;
}

.related-trades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.related-trade-link {
    display: block;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px 24px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}

.related-trade-link:hover {
    transform: translateY(-2px);
    border-color: var(--lime);
    color: var(--ink);
}

/* ============================================
   PILLAR PAGE TEMPLATE
   ============================================ */
.pillar-hero {
    padding: calc(var(--section-padding) + 72px) 0 var(--section-padding);
    background-color: var(--ink);
    color: var(--cloud);
    position: relative;
    overflow: hidden;
}

.pillar-hero::after {
    content: '';
    position: absolute;
    top: 80px;
    right: -60px;
    width: 50%;
    height: 80%;
    opacity: 0.1;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--lime) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at 70% 50%, rgba(0,0,0,0.7), transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 50%, rgba(0,0,0,0.7), transparent 70%);
}

.pillar-hero .container {
    position: relative;
    z-index: 1;
}

.pillar-hero h1 {
    color: var(--cloud);
    margin-bottom: 24px;
    max-width: 800px;
}

.pillar-hero h1 .accent {
    color: var(--lime);
}

.pillar-hero .subheadline {
    font-size: 20px;
    line-height: 1.6;
    color: var(--cloud);
    max-width: 640px;
    margin-bottom: 40px;
    opacity: 0.85;
}

/* Table of contents */
.toc {
    padding: 48px 0;
    background-color: var(--cream);
    border-bottom: 1px solid var(--border-light);
}

.toc-inner {
    max-width: var(--reading-width);
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
}

.toc h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.toc ol {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
}

.toc li {
    counter-increment: toc-counter;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.toc li:last-child {
    border-bottom: none;
}

.toc a {
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 12px;
    transition: color 0.2s;
}

.toc a::before {
    content: counter(toc-counter, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--lime);
    flex-shrink: 0;
}

.toc a:hover {
    color: var(--olive);
}

/* Pillar body */
.pillar-body {
    padding: var(--section-padding) 0;
    background-color: var(--cream);
}

.pillar-body .container {
    max-width: var(--reading-width);
}

.pillar-body h2 {
    font-size: 32px;
    margin-top: 56px;
    margin-bottom: 20px;
    padding-top: 24px;
}

.pillar-body h3 {
    font-size: 24px;
    margin-top: 36px;
    margin-bottom: 16px;
}

.pillar-body p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.pillar-body ul, .pillar-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.pillar-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.pillar-body strong {
    color: var(--ink);
    font-weight: 500;
}

.pillar-body a {
    color: var(--olive);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pillar-body a:hover {
    color: var(--ink);
}

/* Internal link grid */
.internal-links {
    padding: var(--section-padding) 0;
    background-color: var(--cream);
    border-top: 1px solid var(--border-light);
}

.internal-links h2 {
    margin-bottom: 32px;
}

.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.internal-link-card {
    display: block;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.internal-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10, 10, 15, 0.06);
}

.internal-link-card h3 {
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 8px;
}

.internal-link-card p {
    font-size: 15px;
    color: var(--body);
    margin-bottom: 0;
}

/* ============================================
   BLOG INDEX PAGE
   ============================================ */
.blog-index-hero {
    padding: calc(var(--section-padding) + 72px) 0 48px;
    background-color: var(--ink);
    color: var(--cloud);
    position: relative;
}

.blog-index-hero h1 {
    color: var(--cloud);
    margin-bottom: 16px;
}

.blog-index-hero p {
    color: var(--cloud);
    opacity: 0.75;
    max-width: 600px;
}

.blog-listing {
    padding: var(--section-padding) 0;
    background-color: var(--cream);
}

.blog-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
    background: white;
    color: var(--body);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--ink);
    color: var(--cloud);
    border-color: var(--ink);
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.blog-card {
    display: block;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10, 10, 15, 0.06);
}

.blog-card .card-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--olive);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 22px;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card p {
    font-size: 16px;
    color: var(--body);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ============================================
   FORM STYLES (FREE AUDIT)
   ============================================ */
.form-section {
    padding: var(--section-padding) 0;
    background-color: var(--cream);
}

.form-container {
    max-width: 560px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 48px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 16px;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--cream);
    color: var(--ink);
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--lime);
}

.form-group .helper {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--body);
    opacity: 0.6;
    margin-top: 6px;
}

.form-container .btn-primary {
    width: 100%;
    text-align: center;
    font-size: 18px;
    padding: 18px 36px;
    margin-top: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 22px;
    }

    .nav-links {
        display: none;
    }

    /* Blog */
    .blog-hero h1 {
        font-size: 32px;
    }

    .blog-body h2 {
        font-size: 26px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .inline-cta {
        padding: 28px;
    }

    .inline-cta .btn-primary {
        width: 100%;
    }

    /* Trade */
    .trade-pain .pain-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-steps::before {
        display: none;
    }

    /* Blog index */
    .blog-cards {
        grid-template-columns: 1fr;
    }

    /* Form */
    .form-container {
        padding: 28px;
    }

    /* General sections */
    .blog-hero,
    .trade-hero,
    .pillar-hero {
        padding: calc(var(--section-padding-mobile) + 64px) 0 var(--section-padding-mobile);
    }

    .blog-body,
    .trade-pain,
    .trade-services,
    .trade-process,
    .trade-cta,
    .related-trades,
    .related-posts,
    .pillar-body,
    .toc,
    .internal-links,
    .faq,
    .quiz-cta,
    .blog-listing,
    .form-section {
        padding: var(--section-padding-mobile) 0;
    }

    .trade-hero .btn-primary,
    .trade-cta .btn-primary,
    .quiz-cta .btn-primary {
        font-size: 16px;
        padding: 16px 32px;
        width: 100%;
        text-align: center;
    }

    .footer .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    .container {
        padding: 0 16px;
    }

    .blog-hero h1 {
        font-size: 28px;
    }

    .related-trades-grid {
        grid-template-columns: 1fr;
    }

    .internal-links-grid {
        grid-template-columns: 1fr;
    }
}
