/* ==========================================================================
   Zero to Hero - Claude Code Educational Website
   A terminal-inspired, editorial aesthetic
   ========================================================================== */

/* CSS Custom Properties */
:root {
    /* Colors - Dark terminal palette with glowing accents */
    --bg-deep: #0a0b0f;
    --bg-primary: #0f1115;
    --bg-elevated: #151921;
    --bg-surface: #1a1f2a;
    --bg-hover: #232a38;

    /* Text - Updated muted for better contrast (4.5:1+) */
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a9;
    --text-muted: #8b929e;

    /* Accents */
    --accent-cyan: #00f5d4;
    --accent-cyan-dim: #00c4a7;
    --accent-amber: #fbbf24;
    --accent-amber-dim: #d97706;
    --accent-red: #f87171;
    --accent-green: #4ade80;
    --accent-purple: #a78bfa;

    /* Brand Colors */
    --color-linkedin: #0077b5;

    /* Terminal Traffic Light Colors */
    --terminal-red: #ff5f57;
    --terminal-yellow: #febc2e;
    --terminal-green: #28c840;

    /* Glows */
    --glow-cyan: rgba(0, 245, 212, 0.4);
    --glow-amber: rgba(251, 191, 36, 0.3);

    /* Focus */
    --focus-ring: 0 0 0 2px var(--bg-deep), 0 0 0 4px var(--accent-cyan);

    /* Typography - Using distinctive fonts */
    --font-display: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Light Theme */
[data-theme="light"] {
    --bg-deep: #f8f9fc;
    --bg-primary: #ffffff;
    --bg-elevated: #f1f3f8;
    --bg-surface: #e8ebf2;
    --bg-hover: #dde1ea;

    --text-primary: #1a1d24;
    --text-secondary: #4a5060;
    --text-muted: #6b7280;

    --accent-cyan: #0891b2;
    --accent-cyan-dim: #0e7490;
    --accent-amber: #d97706;
    --accent-amber-dim: #b45309;
    --accent-red: #dc2626;
    --accent-green: #16a34a;
    --accent-purple: #7c3aed;

    --glow-cyan: rgba(8, 145, 178, 0.15);
    --glow-amber: rgba(217, 119, 6, 0.15);

    --focus-ring: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent-cyan);
}

/* Light theme adjustments */
[data-theme="light"] .cursor-glow {
    display: none;
}

[data-theme="light"] .hero-bg {
    opacity: 0.03;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent-cyan);
    color: var(--bg-deep);
}

/* Skip Link for Accessibility */
.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-md) var(--space-xl);
    background: var(--accent-cyan);
    color: var(--bg-deep);
    font-family: var(--font-mono);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: 10000;
    transition: top 0.3s var(--ease-out-expo);
}

.skip-link:focus {
    top: var(--space-md);
    outline: none;
}

/* Global Focus Styles */
:focus {
    outline: none;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Support */
@media (prefers-contrast: more) {
    :root {
        --bg-deep: #050505;
        --bg-primary: #0a0a0a;
        --bg-elevated: #111111;
        --bg-surface: #1a1a1a;
        --bg-hover: #2a2a2a;
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
        --text-muted: #b0b0b0;
        --accent-cyan: #00ffff;
        --accent-amber: #ffcc00;
    }

    .section,
    .step-card,
    .tip-card,
    .command-card,
    .power-card,
    .reference-card,
    .everywhere-card,
    .troubleshoot-item {
        border-width: 2px;
    }

    .quote-block {
        border-left-width: 5px;
    }
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-amber));
    z-index: 9999;
    transition: width 0.1s ease;
    pointer-events: none;
}

/* General Link Focus */
a:focus-visible {
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
    outline: none;
}

/* Cursor glow effect */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--bg-deep) 0%, transparent 100%);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
}

.brand-icon {
    color: var(--accent-cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.brand-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
    margin-right: var(--space-md);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--accent-cyan);
}

.theme-toggle:focus-visible {
    box-shadow: var(--focus-ring);
}

.theme-icon-dark,
.theme-icon-light {
    font-size: 1.25rem;
    transition: opacity 0.2s ease, transform 0.3s var(--ease-out-expo);
}

.theme-icon-light {
    display: none;
}

[data-theme="light"] .theme-icon-dark {
    display: none;
}

[data-theme="light"] .theme-icon-light {
    display: block;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-out-expo);
}

.nav-toggle:focus-visible {
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
}

/* Nav toggle active state */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--bg-hover);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out-expo);
}

.mobile-nav.active {
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-nav-list {
    list-style: none;
    padding: var(--space-md);
}

.mobile-nav-list li {
    border-bottom: 1px solid var(--bg-hover);
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list a {
    display: block;
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.mobile-nav-list a:hover,
.mobile-nav-list a:focus {
    color: var(--accent-cyan);
    background: var(--bg-hover);
}

.mobile-nav-list a:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}

/* Table of Contents */
.toc {
    position: fixed;
    left: var(--space-xl);
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    max-height: 80vh;
    overflow-y: auto;
}

.toc-header {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    padding-left: var(--space-sm);
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.toc-link {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s var(--ease-out-quart);
}

.toc-link:hover {
    color: var(--text-secondary);
    border-left-color: var(--bg-hover);
}

.toc-link.active {
    color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
}

.toc-link:focus-visible {
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--space-4xl) var(--space-xl);
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--bg-surface) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-surface) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 10s ease-in-out infinite;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--glow-cyan);
    top: 10%;
    left: 20%;
    opacity: 0.3;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: var(--glow-amber);
    bottom: 20%;
    right: 20%;
    opacity: 0.2;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s var(--ease-out-expo) backwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s var(--ease-out-expo) backwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.3s; }

.title-accent {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s backwards;
}

.hero-authors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s backwards;
}

.author-divider {
    color: var(--accent-cyan);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-cyan-dim) 100%);
    color: var(--bg-deep);
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease-out-expo);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s backwards;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--glow-cyan);
}

.hero-cta:focus-visible {
    box-shadow: var(--focus-ring), 0 10px 40px var(--glow-cyan);
}

.hero-cta svg {
    animation: bounce 2s ease-in-out 3;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.8s var(--ease-out-expo) 1s backwards;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* Main Content */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

/* Sections */
.section {
    padding: var(--space-4xl) 0;
    border-top: 1px solid var(--bg-surface);
}

.section-alt {
    background: var(--bg-primary);
    margin: 0 calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + var(--space-xl));
    padding-right: calc(50vw - 50% + var(--space-xl));
}

.section-warning {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.05) 0%, transparent 50%);
}

.section-header {
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    opacity: 0.7;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title-link {
    color: inherit;
    text-decoration: none;
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.2s ease;
}

.section-title-link:hover {
    opacity: 0.8;
}

.section-title-link:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.section-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.section-badge.highlight {
    background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-amber-dim) 100%);
    color: var(--bg-deep);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* Quote Blocks */
.quote-block {
    padding: var(--space-xl);
    background: var(--bg-surface);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-xl) 0;
}

.quote-block.featured-quote {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
    border-left-width: 4px;
}

.quote-block.warning-quote {
    border-left-color: var(--accent-red);
}

.quote-block blockquote {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-primary);
}

.quote-block cite {
    display: block;
    margin-top: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-style: normal;
    color: var(--text-muted);
}

/* Content Grid */
.content-grid {
    display: grid;
    gap: var(--space-xl);
}

.content-text p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.content-text p.highlight-text,
.highlight-text {
    color: var(--accent-amber);
    font-weight: 500;
}

/* Analogy Card */
.analogy-card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.analogy-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.analogy-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.analogy-list {
    list-style: none;
    margin: var(--space-lg) 0;
}

.analogy-list li {
    padding: var(--space-sm) 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--bg-hover);
}

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

.tool-bad { color: var(--accent-red); }
.tool-mid { color: var(--accent-amber); }
.tool-good { color: var(--accent-green); }

.analogy-footer {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.analogy-footer strong {
    color: var(--accent-cyan);
}

/* Steps Grid */
.steps-grid {
    display: grid;
    gap: var(--space-lg);
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    transition: all 0.3s var(--ease-out-expo);
}

.step-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.step-number {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: var(--space-md);
    padding-right: 40px;
}

.step-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.step-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Code Blocks */
.code-block {
    background: var(--bg-deep);
    border: 1px solid var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: var(--space-md) 0;
}

.code-block.small {
    margin: var(--space-sm) 0;
}

.code-block.large pre {
    padding: var(--space-xl);
}

.code-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--bg-hover);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-hover);
}

.code-dot:nth-child(1) { background: var(--terminal-red); }
.code-dot:nth-child(2) { background: var(--terminal-yellow); }
.code-dot:nth-child(3) { background: var(--terminal-green); }

.code-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: var(--space-sm);
    flex: 1;
}

.copy-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-hover);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-deep);
}

.copy-btn:focus-visible {
    box-shadow: var(--focus-ring);
}

.code-block pre {
    padding: var(--space-md);
    overflow-x: auto;
    /* Scroll fade indicator */
    background:
        linear-gradient(to right, var(--bg-deep), var(--bg-deep)) local,
        linear-gradient(to right, var(--bg-deep), transparent) scroll,
        linear-gradient(to left, var(--bg-deep), transparent) scroll,
        linear-gradient(to left, var(--bg-deep), var(--bg-deep)) local;
    background-position: left, left, right, right;
    background-size: 20px 100%, 20px 100%, 20px 100%, 20px 100%;
    background-repeat: no-repeat;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-cyan);
    line-height: 1.6;
    word-break: break-word;
}

/* Better code block handling on mobile */
@media (max-width: 480px) {
    .code-block code {
        font-size: 0.8rem;
    }

    .code-block pre {
        padding: var(--space-sm);
    }

    .code-block.prompt-block code {
        white-space: pre-wrap;
        word-wrap: break-word;
    }
}

.prompt-block code {
    color: var(--text-primary);
}

.code-comment {
    color: var(--text-muted);
}

/* Warning Box */
.warning-box {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.warning-box strong {
    color: var(--accent-red);
}

.warning-box code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--bg-deep);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    color: var(--accent-cyan);
}

/* Checklist */
.checklist {
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.checklist li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

/* Keyboard */
kbd {
    display: inline-block;
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: 0.8em;
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 0 var(--bg-hover);
}

/* Command Table */
.command-table {
    width: 100%;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--bg-hover);
    border-collapse: separate;
    border-spacing: 0;
}

.command-row {
    display: table-row;
}

.command-cell {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--bg-hover);
}

.command-row:last-child .command-cell {
    border-bottom: none;
}

.command-row.header-row {
    background: var(--bg-elevated);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.command-cell code {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

.command-cell:nth-child(2) {
    color: var(--text-secondary);
}

.command-cell:nth-child(3) code {
    color: var(--text-muted);
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.tip-card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    transition: all 0.3s var(--ease-out-expo);
}

.tip-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.tip-icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: var(--space-sm);
}

.tip-card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
}

.tip-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tip-card code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-amber);
}

/* Workflow Steps */
.workflow-steps {
    position: relative;
}

.workflow-step {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.workflow-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.marker-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-cyan);
}

.marker-line {
    width: 2px;
    flex: 1;
    min-height: 40px;
    background: linear-gradient(to bottom, var(--accent-cyan), transparent);
    margin-top: var(--space-sm);
}

.workflow-content {
    flex: 1;
    padding-top: var(--space-xs);
}

.workflow-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.workflow-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.workflow-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Permission Options */
.permission-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.permission-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.permission-option:hover {
    border-color: var(--text-muted);
}

.permission-option.recommended {
    border-color: var(--accent-green);
    background: rgba(74, 222, 128, 0.05);
}

.option-label {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
}

.option-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
}

.recommended-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 8px;
    background: var(--accent-green);
    color: var(--bg-deep);
    border-radius: 100px;
}

/* Kit Overview */
.kit-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.kit-item {
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.kit-item h4 {
    font-family: var(--font-display);
    color: var(--accent-cyan);
    margin-bottom: var(--space-sm);
}

.kit-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.kit-item code {
    font-family: var(--font-mono);
    color: var(--accent-amber);
}

/* Install Options */
.install-options {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.install-option {
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.install-option h4 {
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.tag-recommended {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 400;
    padding: 2px 8px;
    background: var(--accent-green);
    color: var(--bg-deep);
    border-radius: 100px;
}

.install-option p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.install-option code {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

/* Critical Warning */
.critical-warning {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.1) 0%, transparent 50%);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.warning-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.warning-icon {
    font-size: 1.5rem;
}

.warning-header h4 {
    font-family: var(--font-display);
    color: var(--accent-red);
}

.critical-warning > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.critical-warning code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-cyan);
}

.fix-steps {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.fix-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-green);
    display: block;
    margin-bottom: var(--space-sm);
}

.fix-steps ol {
    margin-left: var(--space-lg);
    color: var(--text-secondary);
}

.fix-steps li {
    margin-bottom: var(--space-xs);
}

/* Commands Showcase */
.commands-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.command-card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all 0.3s var(--ease-out-expo);
}

.command-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.command-name {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: var(--space-sm);
}

.command-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.command-when {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Audit Section */
.audit-section {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.audit-section h3 {
    font-family: var(--font-display);
    margin-bottom: var(--space-md);
}

.audit-section > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.audit-breakdown {
    display: grid;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.audit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--bg-hover);
}

.audit-item.priority-0 { border-left-color: var(--accent-red); }
.audit-item.priority-1 { border-left-color: var(--accent-amber); }
.audit-item.priority-2 { border-left-color: var(--text-muted); }

.audit-label {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
}

.audit-example, .audit-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Numbered Steps */
.numbered-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.numbered-step {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-cyan);
    opacity: 0.5;
    flex-shrink: 0;
    padding-top: 2px;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: var(--space-sm);
}

/* Problem/Solution */
.problem-solution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.problem-box, .solution-box {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.problem-box {
    background: rgba(248, 113, 113, 0.05);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.solution-box {
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.problem-box h4 {
    color: var(--accent-red);
    font-family: var(--font-display);
    margin-bottom: var(--space-md);
}

.solution-box h4 {
    color: var(--accent-green);
    font-family: var(--font-display);
    margin-bottom: var(--space-md);
}

.problem-box p, .solution-box p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.problem-box ul, .solution-box ul {
    margin-left: var(--space-lg);
    color: var(--text-muted);
}

.problem-box li, .solution-box li {
    margin-bottom: var(--space-xs);
}

/* GitHub Steps */
.github-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.github-step {
    display: flex;
    gap: var(--space-lg);
}

.step-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.step-info {
    flex: 1;
}

.step-info h4 {
    font-family: var(--font-display);
    margin-bottom: var(--space-sm);
}

.step-info p {
    color: var(--text-secondary);
}

.step-info ul {
    list-style: none;
    color: var(--text-secondary);
}

.step-info li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
}

.step-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.step-info a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.step-info a:hover {
    text-decoration: underline;
}

.info-box {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.info-box strong {
    color: var(--text-secondary);
}

.workflow-mini {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.workflow-item {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.workflow-item code {
    color: var(--accent-cyan);
}

.workflow-arrow {
    color: var(--text-muted);
}

/* Pipeline Visual */
.pipeline-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
}

.pipeline-icon {
    font-size: 2rem;
}

.pipeline-step span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pipeline-step.auto {
    background: rgba(0, 245, 212, 0.1);
    border-radius: var(--radius-md);
}

.pipeline-step.auto span {
    color: var(--accent-cyan);
}

.pipeline-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--bg-hover), var(--accent-cyan), var(--bg-hover));
}

/* Netlify Steps */
.netlify-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.netlify-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
}

.netlify-step .step-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-cyan);
    border-radius: 50%;
    color: var(--bg-deep);
    font-weight: 700;
    flex-shrink: 0;
    opacity: 1;
    padding: 0;
}

.netlify-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.netlify-step a {
    color: var(--accent-cyan);
}

/* Deploy Steps (generic) */
.deploy-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.deploy-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
}

.deploy-step .step-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-cyan);
    border-radius: 50%;
    color: var(--bg-deep);
    font-weight: 700;
    flex-shrink: 0;
}

.deploy-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Hosting Options Grid */
.hosting-options {
    margin-bottom: var(--space-xl);
}

.hosting-intro {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    text-align: center;
}

.hosting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.hosting-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.hosting-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.hosting-card strong {
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.hosting-card span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

/* Install Steps */
.install-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.install-step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-secondary);
}

.install-step .step-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border-radius: 50%;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.install-step a {
    color: var(--accent-cyan);
}

.install-option-full {
    grid-column: span 2;
}

.install-alt {
    margin-top: var(--space-md);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.accent-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
}

.accent-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .install-option-full {
        grid-column: span 1;
    }
}

/* Result Box */
.result-box {
    background: rgba(0, 245, 212, 0.05);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}

.result-box code {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    background: var(--bg-surface);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.result-box p.result-highlight,
.result-highlight {
    color: var(--accent-cyan);
    font-weight: 500;
    margin-top: var(--space-md);
}

/* Everywhere Grid */
.everywhere-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.everywhere-card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.card-header svg {
    color: var(--accent-cyan);
}

.card-header h4 {
    font-family: var(--font-display);
}

.everywhere-card > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.card-list {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.card-list li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.card-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

.card-list a {
    color: var(--accent-cyan);
}

.card-list code {
    font-family: var(--font-mono);
    color: var(--accent-amber);
}

.use-cases, .example-box {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.use-cases > span, .example-box > span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.use-cases ul {
    list-style: none;
    margin-top: var(--space-sm);
}

.use-cases li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: var(--space-xs) 0;
}

.example-box p {
    margin-top: var(--space-sm);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Troubleshooting */
.troubleshoot-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.troubleshoot-item {
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.troubleshoot-item summary {
    padding: var(--space-lg);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

.troubleshoot-item summary::-webkit-details-marker {
    display: none;
}

.troubleshoot-item summary::before {
    content: '+';
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-right: var(--space-md);
    transition: transform 0.2s ease;
}

.troubleshoot-item[open] summary::before {
    transform: rotate(45deg);
}

.troubleshoot-item summary:hover {
    background: var(--bg-hover);
}

.troubleshoot-item summary:focus-visible {
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-md);
    outline: none;
}

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

.troubleshoot-content {
    padding: 0 var(--space-lg) var(--space-lg);
    padding-left: calc(var(--space-lg) + 1.2rem + var(--space-md));
}

.troubleshoot-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.troubleshoot-content strong {
    color: var(--text-primary);
}

.troubleshoot-content code {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

/* Power Grid */
.power-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.power-card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.3s var(--ease-out-expo);
}

.power-card:hover {
    border-color: var(--accent-cyan);
}

.power-shortcut {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.power-shortcut code {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--accent-cyan);
}

.power-card h4 {
    font-family: var(--font-display);
    margin-bottom: var(--space-sm);
}

.power-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.power-warning {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: rgba(251, 191, 36, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--accent-amber);
}

.power-example {
    display: block;
    margin-top: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-amber);
}

/* Reality Grid */
.reality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.reality-card {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.reality-card.gives {
    background: rgba(0, 245, 212, 0.05);
    border: 1px solid rgba(0, 245, 212, 0.2);
}

.reality-card.requires {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.reality-card.gives h4 {
    color: var(--accent-cyan);
}

.reality-card.requires h4 {
    color: var(--accent-amber);
}

.reality-card h4 {
    font-family: var(--font-display);
    margin-bottom: var(--space-md);
}

.reality-card ul {
    list-style: none;
}

.reality-card li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.reality-card li::before {
    content: '•';
    position: absolute;
    left: 0;
}

.reality-card.gives li::before {
    color: var(--accent-cyan);
}

.reality-card.requires li::before {
    color: var(--accent-amber);
}

.reality-note {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.reality-note p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* Workflow Tabs */
.workflow-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--bg-hover);
    padding-bottom: var(--space-md);
}

.workflow-tab {
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.workflow-tab:hover {
    color: var(--text-secondary);
    background: var(--bg-surface);
}

.workflow-tab.active {
    color: var(--accent-cyan);
    background: var(--bg-surface);
}

.workflow-tab:focus-visible {
    box-shadow: var(--focus-ring);
}

.workflow-panel {
    display: none;
}

.workflow-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
}

/* Reference Grid */
.reference-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-deep) 100%);
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.reference-card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.reference-card h4 {
    font-family: var(--font-display);
    color: var(--accent-cyan);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--bg-hover);
}

.ref-table {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.ref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xs) 0;
}

.ref-row code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.ref-row span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
}

/* Final Section */
.section-final {
    background: var(--bg-deep);
    padding: var(--space-4xl) 0;
    border-top: none;
}

.final-content {
    max-width: 700px;
    margin: 0 auto;
}

.mindset-block {
    margin-bottom: var(--space-3xl);
}

.mindset-block h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mindset-block > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.mindset-block p.mindset-closing,
.mindset-closing {
    font-size: 1.1rem;
    color: var(--accent-amber);
    font-weight: 500;
    margin-top: var(--space-lg);
}

.dragon-block {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-3xl);
}

.dragon-quote {
    position: relative;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--accent-cyan);
    opacity: 0.2;
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
}

.dragon-quote p {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.dragon-quote cite {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-style: normal;
    color: var(--text-muted);
}

.dragon-cta {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: var(--space-xl);
}

.guide-footer {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--bg-surface);
}

.guide-footer p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .toc {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }

    .main-nav {
        padding: var(--space-md);
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .hero {
        padding: var(--space-3xl) var(--space-md);
    }

    /* Increase touch targets on mobile */
    .toc-link,
    .workflow-tab {
        min-height: 44px;
        min-width: 44px;
        padding: var(--space-md);
    }

    .copy-btn {
        min-height: 44px;
        min-width: 44px;
        padding: var(--space-sm) var(--space-md);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
    }

    .main-content {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .section-alt {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .command-table thead {
        display: none;
    }

    .command-table,
    .command-table tbody,
    .command-table tr,
    .command-table td {
        display: block;
    }

    .command-row {
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--bg-hover);
    }

    .command-cell {
        padding: var(--space-xs) var(--space-lg);
        border-bottom: none;
    }

    .command-cell:first-child {
        padding-top: var(--space-md);
    }

    .command-cell:last-child {
        padding-bottom: var(--space-md);
    }

    .kit-overview {
        grid-template-columns: 1fr;
    }

    .workflow-tabs {
        flex-wrap: wrap;
    }

    .pipeline-visual {
        flex-direction: column;
    }

    .pipeline-connector {
        width: 2px;
        height: 20px;
    }

    .ref-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .ref-row span {
        text-align: left;
    }

    .dragon-quote p {
        font-size: 1.5rem;
    }

    .quote-mark {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.7rem;
    }

    .hero-authors {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .author-divider {
        display: none;
    }

    .steps-grid {
        gap: var(--space-md);
    }

    .step-card {
        padding: var(--space-lg);
    }

    .workflow-step {
        gap: var(--space-md);
    }

    .github-step {
        flex-direction: column;
    }

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

/* Print Styles */
@media print {
    /* Print-specific colors */
    :root {
        --print-border: #ccc;
        --print-text: #333;
        --print-bg-subtle: #f0f0f0;
        --print-border-dark: #999;
    }

    .main-nav,
    .toc,
    .cursor-glow,
    .hero-bg,
    .scroll-indicator,
    .progress-bar,
    .copy-btn,
    .mobile-nav {
        display: none !important;
    }

    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

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

    .hero-title,
    .section-title,
    .title-accent {
        background: none !important;
        -webkit-text-fill-color: black !important;
    }

    a {
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }

    .code-block {
        border: 1px solid var(--print-border) !important;
        page-break-inside: avoid;
    }

    .code-block code {
        color: var(--print-text) !important;
    }

    .section {
        break-inside: avoid;
        page-break-inside: avoid;
        border-top: 1px solid var(--print-border);
    }

    .section-alt {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .step-card,
    .tip-card,
    .command-card,
    .power-card,
    .reference-card {
        border: 1px solid var(--print-border) !important;
        page-break-inside: avoid;
    }

    .troubleshoot-item {
        border: 1px solid var(--print-border) !important;
    }

    .troubleshoot-item[open] {
        page-break-inside: avoid;
    }

    kbd {
        border: 1px solid var(--print-border-dark) !important;
        background: var(--print-bg-subtle) !important;
    }
}

/* ==========================================================================
   Chat Widget
   ========================================================================== */

.chat-widget {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 9000;
    font-family: var(--font-body);
}

.chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-cyan-dim) 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-deep);
    box-shadow: 0 4px 20px var(--glow-cyan);
    transition: all 0.3s var(--ease-out-expo);
}

.chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px var(--glow-cyan);
}

.chat-toggle:focus-visible {
    box-shadow: var(--focus-ring), 0 4px 20px var(--glow-cyan);
}

.chat-toggle .close-icon {
    display: none;
}

.chat-widget.active .chat-toggle .chat-icon {
    display: none;
}

.chat-widget.active .chat-toggle .close-icon {
    display: block;
}

.chat-window {
    position: absolute;
    bottom: calc(100% + var(--space-md));
    right: 0;
    width: 380px;
    max-width: calc(100vw - var(--space-xl) * 2);
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.3s var(--ease-out-expo);
}

.chat-widget.active .chat-window {
    display: flex;
}

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

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--bg-hover);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.chat-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-minimize {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-minimize:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.chat-minimize:focus-visible {
    box-shadow: var(--focus-ring);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-height: 350px;
    min-height: 200px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    max-width: 85%;
    animation: messageIn 0.3s var(--ease-out-expo);
}

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

.chat-message.user {
    align-self: flex-end;
}

.chat-message.assistant {
    align-self: flex-start;
}

.message-content {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-cyan-dim) 100%);
    color: var(--bg-deep);
    border-bottom-right-radius: var(--radius-sm);
}

.chat-message.assistant .message-content {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--bg-hover);
    border-bottom-left-radius: var(--radius-sm);
}

.message-content code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg-deep);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    color: var(--accent-cyan);
}

.chat-message.user .message-content code {
    background: rgba(0, 0, 0, 0.2);
    color: var(--bg-deep);
}

.message-content pre {
    background: var(--bg-deep);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: var(--space-sm) 0;
}

.message-content pre code {
    background: none;
    padding: 0;
}

.chat-input-form {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-top: 1px solid var(--bg-hover);
}

.chat-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-deep);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.chat-send {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-cyan);
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-deep);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-send:hover {
    background: var(--accent-cyan-dim);
}

.chat-send:focus-visible {
    box-shadow: var(--focus-ring);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading state */
.chat-message.loading .message-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Error state */
.chat-message.error .message-content {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
    color: var(--accent-red);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .chat-widget {
        bottom: var(--space-md);
        right: var(--space-md);
    }

    .chat-window {
        width: calc(100vw - var(--space-md) * 2);
        max-height: 70vh;
    }

    .chat-messages {
        max-height: 50vh;
    }
}

/* Hide in print */
@media print {
    .chat-widget {
        display: none !important;
    }
}

/* ==========================================================================
   About the Authors Section
   ========================================================================== */

.authors-section {
    background: var(--bg-deep);
    padding: var(--space-4xl) var(--space-xl);
    position: relative;
    overflow: hidden;
}

.authors-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-amber), transparent);
    opacity: 0.4;
}

.authors-container {
    max-width: 1000px;
    margin: 0 auto;
}

.authors-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.authors-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(0, 245, 212, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(0, 245, 212, 0.2);
}

.authors-heading {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.authors-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.author-card {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

.author-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-amber));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.author-card:hover::before {
    opacity: 1;
}

.author-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 245, 212, 0.12);
    border-color: transparent;
}

/* Photo wrapper with gradient border */
.author-photo-wrapper {
    flex-shrink: 0;
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-amber));
}

.author-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg-surface);
}

.author-photo {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
}

/* Tilted photo effect for Peter */
.author-photo-tilted {
    transform: rotate(-8deg);
    transition: transform 0.4s var(--ease-out-expo);
}

.author-card:hover .author-photo-tilted {
    transform: rotate(-4deg) scale(1.05);
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.author-name a {
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: color 0.2s ease;
}

.author-name a:hover {
    color: var(--accent-cyan);
}

.author-name a:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.author-name svg {
    color: var(--color-linkedin);
    transition: transform 0.2s ease;
}

.author-name a:hover svg {
    transform: scale(1.2);
}

.author-role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-amber);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.author-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.author-bio strong {
    color: var(--text-primary);
    font-weight: 600;
}

.author-bio em {
    color: var(--accent-cyan);
    font-style: normal;
}

.author-bio .bio-link {
    color: var(--accent-amber);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.author-bio .bio-link:hover {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

.author-bio .bio-link:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Hero author links */
.hero-authors .author-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-authors .author-link:hover {
    color: var(--accent-cyan);
}

@media (max-width: 900px) {
    .authors-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .authors-section {
        padding: var(--space-2xl) var(--space-lg);
    }

    .authors-heading {
        font-size: 1.75rem;
    }

    .authors-intro {
        font-size: 1rem;
    }

    .author-card {
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .author-photo-wrapper {
        width: 80px;
        height: 80px;
    }

    .author-name {
        font-size: 1.2rem;
    }

    .author-bio {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .author-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .author-photo-tilted {
        transform: rotate(-5deg);
    }

    .author-name a {
        justify-content: center;
    }
}

/* ==========================================================================
   Combined CTA Section (Feedback + Newsletter)
   ========================================================================== */

.cta-section {
    background: var(--bg-primary);
    border-top: 1px solid var(--bg-hover);
    padding: var(--space-4xl) var(--space-xl);
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-header {
    margin-bottom: var(--space-xl);
}

.cta-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 0 20px var(--glow-amber));
}

.cta-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.cta-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Topic Chips */
.topic-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.topic-chip {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topic-chip:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 245, 212, 0.05);
}

.topic-chip:focus-visible {
    box-shadow: var(--focus-ring);
}

.topic-chip.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-deep);
}

/* CTA Form */
.cta-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cta-textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    resize: none;
    text-align: center;
    transition: all 0.2s ease;
}

.cta-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--glow-cyan);
    text-align: left;
}

.cta-textarea::placeholder {
    color: var(--text-muted);
}

.cta-input-row {
    display: flex;
    gap: var(--space-sm);
}

.cta-email {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.cta-email:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--glow-cyan);
}

.cta-email::placeholder {
    color: var(--text-muted);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--accent-cyan);
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cta-btn:hover {
    background: var(--accent-cyan-dim);
    transform: translateY(-1px);
}

.cta-btn:focus-visible {
    box-shadow: var(--focus-ring);
}

.cta-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cta-note svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

/* ==========================================================================
   Simplified Footer
   ========================================================================== */

.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--bg-hover);
    padding: var(--space-xl) var(--space-xl);
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md) var(--space-xl);
}

.footer-nav a,
.footer-link-btn {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.footer-nav a:hover,
.footer-link-btn:hover {
    color: var(--accent-cyan);
}

.footer-nav a:focus-visible,
.footer-link-btn:focus-visible {
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Form Error States */
.form-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    color: var(--accent-red);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.form-error[hidden] {
    display: none;
}

/* Input error state */
.cta-email.error,
.cta-textarea.error,
.modal-input.error {
    border-color: var(--accent-red);
    background: rgba(248, 113, 113, 0.05);
}

.cta-email.error:focus,
.cta-textarea.error:focus,
.modal-input.error:focus {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

/* CTA responsive */
@media (max-width: 600px) {
    .cta-input-row {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }

    .topic-chips {
        gap: var(--space-xs);
    }

    .topic-chip {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }

    .footer-nav {
        gap: var(--space-sm) var(--space-md);
    }
}

/* Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.download-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-deep);
}

.download-btn:focus-visible {
    box-shadow: var(--focus-ring);
}

.section-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* ==========================================================================
   Email Gate Modal
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 15, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: var(--space-xl);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s var(--ease-out-expo);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-close:focus-visible {
    box-shadow: var(--focus-ring);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--glow-cyan), var(--glow-amber));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

.modal-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.modal-content > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.modal-input {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.2s ease;
}

.modal-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--glow-cyan);
}

.modal-input::placeholder {
    color: var(--text-muted);
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--accent-cyan);
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn:hover {
    background: var(--accent-cyan-dim);
    transform: translateY(-1px);
}

.modal-btn:focus-visible {
    box-shadow: var(--focus-ring);
}

.modal-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
}

/* Success state for modal */
.modal-form.success {
    display: none;
}

.modal-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
}

.modal-form.success + .modal-success {
    display: flex;
}

.modal-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
}

.modal-success h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-success p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-download-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--accent-green);
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: var(--space-sm);
}

.modal-download-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-links {
        gap: var(--space-2xl);
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-btn {
        margin-left: 0;
    }
}
