/* ===== BASE RESET & GLOBALS ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --color-bg-primary: #09090b;
    --color-bg-secondary: #0c0c0f;
    --color-bg-card: #111114;
    --color-bg-card-hover: #16161a;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-highlight: rgba(255, 255, 255, 0.12);
    --color-text-primary: #fafafa;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    --color-accent-blue: #3b82f6;
    --color-accent-purple: #8b5cf6;
    --color-accent-gold: #f59e0b;
    --color-accent-emerald: #10b981;
    --color-gradient-start: #3b82f6;
    --color-gradient-end: #8b5cf6;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-glow-blue: 0 0 60px rgba(59, 130, 246, 0.15);
    --shadow-glow-gold: 0 0 60px rgba(245, 158, 11, 0.12);
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Apply 125% zoom to simulate browser zoom - fixes page fitting */
body {
    zoom: 1.25;
}

a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #60a5fa;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== UTILITY ===== */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-lg {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-blue);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: '';
    width: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-blue));
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text::selection {
    -webkit-text-fill-color: #fff;
    background: var(--color-gradient-start);
}

/* Disable focus outline on non-interactive elements */
h1, h2, h3, h4, h5, h6, p, span, section, div {
    outline: none;
}

/* Custom selection color for the whole page */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: inherit;
    -webkit-text-fill-color: inherit;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-highlight), transparent);
    margin: 0;
    border: none;
}

/* ===== HEADER / NAV BAR ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.logo:hover {
    color: var(--color-text-primary);
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--color-text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-github {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.header-github:hover {
    color: var(--color-text-primary);
}

.header-actions .btn {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
}

/* ===== HERO ===== */
.hero {
    padding: 7rem 0 4rem;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.08), transparent),
        var(--color-bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    max-width: 620px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.hero-eyebrow .badge {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-eyebrow .eyebrow-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hero-subtitle strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.hero-trust-signals {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.trust-item .trust-icon {
    color: var(--color-accent-emerald);
    font-weight: 700;
}

.hero-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.hero-author {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.hero-author a {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.hero-author a:hover {
    color: var(--color-text-primary);
}

.hero-footer .github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.hero-footer .github-link:hover {
    color: var(--color-text-primary);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.book-container {
    position: relative;
    perspective: 1000px;
    cursor: pointer;
}

.book-mockup {
    width: 300px;
    max-width: 100%;
    border-radius: 8px;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s ease, filter 0.4s ease;
    transform: rotateY(-6deg);
}

.book-container:hover .book-mockup {
    transform: rotateY(0deg) scale(1.03);
    filter: drop-shadow(0 32px 64px rgba(59, 130, 246, 0.3));
}

.book-glow {
    position: absolute;
    width: 280px;
    height: 380px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(40px);
    transition: opacity 0.4s ease;
}

.book-container:hover .book-glow {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 60%);
}

.book-cta {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.book-container:hover .book-cta {
    opacity: 1;
    bottom: -20px;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-eyebrow,
    .hero-trust-signals,
    .hero-footer {
        justify-content: center;
    }

    .hero-pricing-options {
        justify-content: center;
    }

    .book-mockup {
        width: 240px;
        transform: none;
    }

    .book-container:hover .book-mockup {
        transform: scale(1.02);
    }
}

/* ===== HERO PRICING OPTIONS ===== */
.hero-pricing-options {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-price-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 120px;
    position: relative;
    font-family: inherit;
}

.hero-price-btn:hover {
    border-color: var(--color-border-highlight);
    transform: translateY(-2px);
}

.hero-price-btn .price-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.hero-price-btn .price-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.hero-price-btn .price-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.hero-price-btn .price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.hero-price-btn .price-action {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent-blue);
    margin-top: 0.25rem;
}

.hero-price-btn.free {
    border-color: var(--color-border);
}

.hero-price-btn.free:hover {
    border-color: var(--color-text-muted);
}

.hero-price-btn.standard {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05), var(--color-bg-card));
}

.hero-price-btn.standard:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.hero-price-btn.premium {
    border: 2px solid rgba(245, 158, 11, 0.4);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), var(--color-bg-card));
    padding-top: 1.25rem;
}

.hero-price-btn.premium:hover {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

/* ===== HERO GITHUB LINK ===== */
.hero-github {
    margin-top: 0.5rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.github-link:hover {
    color: var(--color-text-primary);
}

.github-link svg {
    width: 20px;
    height: 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: #fff;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    color: #fff;
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
    color: #000;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-highlight);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    color: var(--color-text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    padding: 0.5rem 1rem;
}

.btn-ghost:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ===== SOCIAL PROOF BAR ===== */
.social-proof-bar {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 0;
}

.proof-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.proof-item .icon {
    font-size: 1.25rem;
}

.proof-item strong {
    color: var(--color-text-secondary);
    font-weight: 600;
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
    background: 
        radial-gradient(ellipse 50% 50% at 0% 0%, rgba(139, 92, 246, 0.06), transparent),
        var(--color-bg-primary);
}

.problem-header {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.problem-header .section-title {
    font-size: 2rem;
    line-height: 1.3;
}

.eyebrow-danger {
    color: var(--color-accent-blue);
}

.eyebrow-danger::before {
    background: linear-gradient(90deg, transparent, var(--color-accent-blue));
}

.text-danger {
    color: #f87171;
}

.problem-lead {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-top: 1rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.problem-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.problem-card:hover {
    border-color: var(--color-border-highlight);
    background: var(--color-bg-card-hover);
}

.problem-card-highlight {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(59, 130, 246, 0.02));
}

.problem-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-blue);
    flex-shrink: 0;
}

.problem-content h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.375rem;
}

.problem-content p {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.problem-stat {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.problem-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent-purple);
}

.problem-stat .stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }

    .problem-card:nth-child(5) {
        grid-column: 1;
    }

    .problem-header .section-title {
        font-size: 1.5rem;
    }
}

/* ===== SOLUTION ===== */
.solution-section {
    background: 
        radial-gradient(ellipse 50% 50% at 100% 0%, rgba(139, 92, 246, 0.08), transparent),
        var(--color-bg-secondary);
}

.solution-header {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.solution-header .section-title {
    font-size: 2rem;
}

.eyebrow-success {
    color: var(--color-accent-blue);
}

.eyebrow-success::before {
    background: linear-gradient(90deg, transparent, var(--color-accent-blue));
}

.solution-lead {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-top: 1rem;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.solution-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.solution-card:hover {
    border-color: var(--color-border-highlight);
    background: var(--color-bg-card-hover);
}

.solution-card-highlight {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(59, 130, 246, 0.02));
}

.solution-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-blue);
    flex-shrink: 0;
}

.solution-content h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.375rem;
}

.solution-content p {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.solution-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    color: var(--color-accent-blue);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .solution-grid {
        grid-template-columns: 1fr;
    }

    .solution-header .section-title {
        font-size: 1.5rem;
    }
}

/* ===== WHAT'S INCLUDED ===== */
.included-section {
    background: var(--color-bg-primary);
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.included-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s;
}

.included-item:hover {
    border-color: var(--color-border-highlight);
}

.included-item .check {
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-emerald);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.included-item .content h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 0.25rem;
}

.included-item .content p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    background: 
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(245, 158, 11, 0.06), transparent),
        var(--color-bg-secondary);
}

.pricing-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.pricing-header .section-title {
    font-size: 2rem;
}

.eyebrow-gold {
    color: #f59e0b;
}

.eyebrow-gold::before {
    background: linear-gradient(90deg, transparent, #f59e0b);
}

.pricing-lead {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-top: 0.75rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 240px 1fr 1fr;
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    position: relative;
}

.pricing-card-header {
    margin-bottom: 1.25rem;
}

.tier-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.375rem;
}

.pricing-card-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.tier-price {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.tier-price .price-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.tier-price .price-period {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}

.pricing-features li {
    padding: 0.4rem 0;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pricing-features .check {
    color: var(--color-accent-emerald);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-features strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Free Tier - Compact */
.pricing-card.tier-free {
    background: var(--color-bg-card);
    opacity: 0.85;
    padding: 1.25rem;
}

.pricing-card.tier-free .pricing-card-header h3 {
    font-size: 1rem;
}

.pricing-card.tier-free .tier-price .price-amount {
    font-size: 1.75rem;
}

.pricing-card.tier-free .pricing-features li {
    font-size: 0.75rem;
}

.pricing-card.tier-free:hover {
    border-color: var(--color-border-highlight);
    opacity: 1;
}

/* Standard Tier - Highlighted */
.pricing-card.tier-standard {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05), var(--color-bg-card));
    padding: 1.75rem;
}

.pricing-card.tier-standard .tier-price .price-amount {
    font-size: 2.5rem;
}

.pricing-card.tier-standard:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

/* Premium Tier - Featured */
.pricing-card.tier-premium {
    border: 2px solid rgba(245, 158, 11, 0.5);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.03), var(--color-bg-card));
    padding: 1.75rem;
    padding-top: 2.25rem;
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.1);
}

.pricing-card.tier-premium .tier-price .price-amount {
    font-size: 2.75rem;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card.tier-premium:hover {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.2);
    transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.guarantee-icon {
    font-size: 1.25rem;
}

.guarantee-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.guarantee-text strong {
    font-size: 0.875rem;
    color: var(--color-text-primary);
}

.guarantee-text span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.tier-premium {
        order: -1;
        transform: none;
    }

    .pricing-card.tier-premium:hover {
        transform: none;
    }

    .pricing-card.tier-standard {
        order: 0;
    }

    .pricing-card.tier-free {
        order: 1;
        opacity: 1;
    }
}

/* ===== CURRICULUM ===== */
.curriculum-section {
    background: var(--color-bg-primary);
}

.curriculum-header {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
}

.curriculum-header .section-title {
    font-size: 2rem;
}

.curriculum-lead {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-top: 0.75rem;
}

.curriculum-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.curriculum-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.curriculum-tab .tab-icon {
    font-size: 1rem;
}

.curriculum-tab:hover {
    border-color: var(--color-border-highlight);
    color: var(--color-text-primary);
}

.curriculum-tab.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
    border-color: var(--color-accent-blue);
    color: var(--color-text-primary);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.curriculum-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.curriculum-card:hover {
    border-color: var(--color-border-highlight);
    background: var(--color-bg-card-hover);
}

.curriculum-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-accent-blue);
    background: rgba(59, 130, 246, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.curriculum-content h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 0.25rem;
}

.curriculum-content p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.curriculum-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.curriculum-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .curriculum-grid {
        grid-template-columns: 1fr;
    }

    .curriculum-stats {
        gap: 2rem;
    }
}

/* ===== TECH STACK ===== */
.tech-section {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.tech-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.tech-item .tech-icon {
    width: 56px;
    height: 56px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.2s;
}

.tech-item:hover .tech-icon {
    border-color: var(--color-border-highlight);
    transform: translateY(-2px);
}

.tech-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* ===== AUTHOR ===== */
.author-section {
    background: var(--color-bg-primary);
}

.author-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar .avatar-img {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--color-border);
}

.author-avatar .avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
}

.author-info .author-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-blue);
    margin-bottom: 0.5rem;
}

.author-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.author-info .author-title {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.author-info .author-bio {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.author-info .author-bio strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.author-credentials {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.credential .icon {
    font-size: 1rem;
}

.credential svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.credential-link {
    padding: 0.4rem 0.75rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.credential-link:hover {
    border-color: var(--color-border-highlight);
    background: var(--color-bg-card-hover);
    color: var(--color-text-primary);
}

.author-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all 0.2s;
}

.social-link:hover {
    border-color: var(--color-border-highlight);
    background: var(--color-bg-card-hover);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--color-bg-secondary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.faq-item h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ===== FINAL CTA ===== */
.final-cta {
    padding: 6rem 0;
    background: 
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(59, 130, 246, 0.1), transparent),
        var(--color-bg-primary);
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.final-cta p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.final-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand .logo {
    font-size: 1rem;
    justify-content: center;
}

.footer-brand .logo-mark {
    width: 28px;
    height: 28px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-text-secondary);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ===== MODAL ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
    /* Compensate for body zoom to center correctly */
    zoom: calc(1 / 1.25);
    transform-origin: center center;
}

.modal-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: slideUp 0.3s ease;
    /* Scale back up to match body zoom */
    zoom: 1.25;
}

.modal-content.toc-modal {
    max-width: 900px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--color-bg-card-hover);
    color: var(--color-text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    display: block;
    width: 100%;
}

.modal-header .modal-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    display: block;
    margin: 0;
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.modal-content .modal-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.modal-footer {
    margin-top: 1.5rem;
    text-align: center;
}

/* TOC Grid Layout */
.toc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.toc-part {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1rem;
}

.toc-part-highlight {
    grid-column: span 2;
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), var(--color-bg-secondary));
}

.toc-part-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.toc-part-header .part-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.toc-part-header .part-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.toc-chapters {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-chapters li {
    padding: 0.375rem 0;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.toc-chapters .ch-num {
    color: var(--color-accent-blue);
    font-weight: 700;
    font-size: 0.6875rem;
    flex-shrink: 0;
    min-width: 1.5rem;
}

@media (max-width: 768px) {
    .toc-grid {
        grid-template-columns: 1fr;
    }

    .toc-part-highlight {
        grid-column: span 1;
    }
}

/* ===== EMAIL FORM ===== */
.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-form input[type="email"] {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--color-text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.email-form input[type="email"]::placeholder {
    color: var(--color-text-muted);
}

.email-form input[type="email"]:focus {
    border-color: var(--color-accent-blue);
}

.email-success {
    color: var(--color-accent-emerald);
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-author-note {
        margin-left: auto;
        margin-right: auto;
        border-left: none;
        border-top: 2px solid var(--color-border-highlight);
        padding-left: 0;
        padding-top: 1rem;
    }

    .hero-pricing-options {
        justify-content: center;
    }

    .hero-github {
        text-align: center;
    }

    .hero-meta {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .book-mockup {
        width: 280px;
        transform: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .pricing-card.tier-premium {
        transform: none;
        order: -1;
    }

    .pricing-card.tier-premium:hover {
        transform: translateY(-4px);
    }

    .pricing-card.tier-free {
        order: 1;
    }

    .solution-grid {
        grid-template-columns: 1fr;
    }

    .curriculum-grid {
        grid-template-columns: 1fr;
    }

    .included-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .author-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .author-credentials {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 6rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-pricing-options {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-price-btn {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.875rem 1.25rem;
        min-width: unset;
    }

    .hero-price-btn .price-badge {
        position: static;
        transform: none;
        order: -1;
    }

    .hero-price-btn .price-label {
        margin-bottom: 0;
    }

    .hero-price-btn .price-amount {
        font-size: 1.25rem;
    }

    .hero-author-note {
        font-size: 0.875rem;
    }

    .final-cta h2 {
        font-size: 1.75rem;
    }

    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .header-nav {
        display: none;
    }

    .proof-content {
        gap: 1.5rem;
    }

    .tech-grid {
        gap: 1.5rem;
    }

    .credential-link {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    width: 22px;
    height: 22px;
}

.theme-toggle:hover {
    color: var(--color-text-primary);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f7f8fa;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #f3f4f6;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-highlight: rgba(0, 0, 0, 0.15);
    --color-text-primary: #111827;
    --color-text-secondary: #4b5563;
    --color-text-muted: #6b7280;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow-blue: 0 0 60px rgba(59, 130, 246, 0.08);
    --shadow-glow-gold: 0 0 60px rgba(245, 158, 11, 0.06);
}

[data-theme="light"] a:hover {
    color: #2563eb;
}

[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .hero {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.05), transparent),
        var(--color-bg-primary);
}

[data-theme="light"] .hero::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .book-mockup {
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.15));
}

[data-theme="light"] .book-container:hover .book-mockup {
    filter: drop-shadow(0 32px 64px rgba(59, 130, 246, 0.2));
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-ghost:hover {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .problem-section {
    background:
        radial-gradient(ellipse 50% 50% at 0% 0%, rgba(139, 92, 246, 0.04), transparent),
        var(--color-bg-primary);
}

[data-theme="light"] .solution-section {
    background:
        radial-gradient(ellipse 50% 50% at 100% 0%, rgba(139, 92, 246, 0.05), transparent),
        var(--color-bg-secondary);
}

[data-theme="light"] .pricing-section {
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(245, 158, 11, 0.04), transparent),
        var(--color-bg-secondary);
}

[data-theme="light"] .final-cta {
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(59, 130, 246, 0.06), transparent),
        var(--color-bg-primary);
}

[data-theme="light"] .problem-card,
[data-theme="light"] .solution-card,
[data-theme="light"] .curriculum-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .pricing-card,
[data-theme="light"] .author-card,
[data-theme="light"] .tech-item .tech-icon {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hero-price-btn {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .gradient-text::selection {
    -webkit-text-fill-color: var(--color-text-primary);
}

[data-theme="light"] .modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
}

/* ===== CAPSTONE PROJECT SECTION ===== */
.capstone-section {
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(245, 158, 11, 0.08), transparent),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(139, 92, 246, 0.06), transparent),
        var(--color-bg-primary);
    padding: 5rem 0 4rem;
}

.capstone-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.capstone-header .section-title {
    font-size: 2rem;
    line-height: 1.3;
}

.capstone-lead {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.capstone-lead strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Intro */
.capstone-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.capstone-intro-text h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.capstone-intro-text p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.capstone-intro-text .capstone-emphasis {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(139, 92, 246, 0.05));
    border-left: 3px solid var(--color-accent-gold);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Image Blocks */
.capstone-image-block {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.capstone-image-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.capstone-image-label .label-icon {
    font-size: 1rem;
}

.capstone-image-wrapper {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.capstone-img {
    width: 100%;
    height: auto;
    display: block;
}

.capstone-image-caption {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
}

.capstone-architecture,
.capstone-workflow,
.capstone-observability {
    margin-bottom: 3rem;
}

/* Subheadings */
.capstone-subheading {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Highlights Grid */
.capstone-highlights {
    margin-bottom: 3rem;
}

.capstone-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.capstone-highlight-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.capstone-highlight-card:hover {
    border-color: var(--color-border-highlight);
    background: var(--color-bg-card-hover);
    transform: translateY(-2px);
}

.capstone-highlight-card .highlight-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.capstone-highlight-card h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.375rem;
}

.capstone-highlight-card p {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Agent Cards */
.capstone-agents {
    margin-bottom: 3rem;
}

.capstone-agents-lead {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    text-align: center;
    max-width: 700px;
    margin: -0.5rem auto 1.5rem;
    line-height: 1.6;
}

.capstone-agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.capstone-agent-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.capstone-agent-card:hover {
    border-color: var(--color-border-highlight);
    background: var(--color-bg-card-hover);
}

.agent-triage {
    border-top: 3px solid var(--color-accent-blue);
}

.agent-it {
    border-top: 3px solid var(--color-accent-purple);
}

.agent-hr {
    border-top: 3px solid var(--color-accent-emerald);
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.agent-header .agent-icon {
    font-size: 1.5rem;
}

.agent-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.2;
}

.agent-header .agent-role {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.capstone-agent-card > p {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

.agent-behavior {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.agent-behavior .behavior-label {
    font-weight: 700;
    color: var(--color-accent-blue);
    margin-right: 0.25rem;
}

.agent-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.tool-tag {
    font-size: 0.625rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', monospace;
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-accent-blue);
    border-radius: 4px;
    letter-spacing: 0.02em;
}

/* Conversation Example */
.capstone-example {
    margin-bottom: 3rem;
}

.capstone-conversation {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.convo-message {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.convo-role {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.375rem;
}

.convo-tool {
    display: inline-block;
    font-size: 0.6875rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-accent-blue);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.375rem;
    margin-right: 0.25rem;
}

.convo-message p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.convo-user {
    border-left: 3px solid var(--color-text-muted);
}

.convo-user p {
    font-style: italic;
}

.convo-triage {
    border-left: 3px solid var(--color-accent-blue);
}

.convo-it {
    border-left: 3px solid var(--color-accent-purple);
}

.convo-hr {
    border-left: 3px solid var(--color-accent-emerald);
}

.convo-note {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 600px;
    margin: 1rem auto 0;
    line-height: 1.6;
    font-style: italic;
}

/* Request Flow Steps */
.capstone-flow {
    margin-bottom: 3rem;
}

.capstone-flow-lead {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    text-align: center;
    max-width: 700px;
    margin: -0.5rem auto 1.5rem;
    line-height: 1.6;
}

.capstone-flow-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.flow-step:hover {
    border-color: var(--color-border-highlight);
    background: var(--color-bg-card-hover);
}

.flow-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-accent-gold);
    background: rgba(245, 158, 11, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flow-content h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 0.25rem;
}

.flow-content p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Tech Stack */
.capstone-tech {
    margin-bottom: 3rem;
}

.capstone-tech-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.capstone-tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.875rem 0.5rem;
    text-align: center;
    transition: border-color 0.2s;
}

.capstone-tech-item:hover {
    border-color: var(--color-border-highlight);
}

.capstone-tech-item .tech-label {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.capstone-tech-item .tech-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* CTA Block */
.capstone-cta {
    margin-top: 1rem;
}

.capstone-cta-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(139, 92, 246, 0.04));
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
}

.capstone-cta-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.capstone-cta-inner h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.capstone-cta-inner p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.capstone-cta-inner p strong {
    color: var(--color-text-primary);
}

.capstone-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .capstone-highlights-grid,
    .capstone-agents-grid {
        grid-template-columns: 1fr;
    }

    .capstone-flow-steps {
        grid-template-columns: 1fr;
    }

    .capstone-tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .capstone-header .section-title {
        font-size: 1.5rem;
    }

    .capstone-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .capstone-cta-inner {
        padding: 2rem 1.25rem;
    }

    .capstone-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Light theme for capstone */
[data-theme="light"] .capstone-section {
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(245, 158, 11, 0.05), transparent),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(139, 92, 246, 0.04), transparent),
        var(--color-bg-primary);
}

[data-theme="light"] .capstone-image-block,
[data-theme="light"] .capstone-highlight-card,
[data-theme="light"] .capstone-agent-card,
[data-theme="light"] .convo-message,
[data-theme="light"] .flow-step,
[data-theme="light"] .capstone-tech-item {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ===== BLAZOR OVERRIDES ===== */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 8px;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}