/* ==========================================================================
    Modern Font Loading with Performance Optimization
    ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Logo / brand styles - responsive and accessible */
.site-logo-link {
    display: inline-block;
    line-height: 0;
    margin-block-end: var(--spacing-8);
    text-decoration: none;
}

.site-logo {
    display: block;
    width: clamp(120px, 18vw, 220px);
    height: auto;
    max-height: 6.5rem;
    transition: transform 180ms ease, opacity 180ms ease;
}

.site-logo-link:hover {
    transform: translateY(-2px);
}

.site-logo-link:focus-visible {
    outline: 3px solid var(--color-primary-600);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* Ensure hero content doesn't crowd the logo on very small screens */
.hero .site-logo-link {
    margin-block-end: var(--spacing-6);
}

@media (max-width: 420px) {
    .site-logo {
        width: clamp(96px, 28vw, 140px);
        max-height: 4.5rem;
    }
    .hero .hero-title {
        font-size: clamp(1.5rem, 6.5vw, 2rem);
        margin-block-start: var(--spacing-4);
    }
}



/* ==========================================================================
    Base Styles & Reset
    ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* ==========================================================================
    Accessibility & Focus Management
    ========================================================================== */
.skip-link {
    position: absolute;
    top: calc(-1 * var(--spacing-24));
    left: var(--spacing-2);
    background: var(--color-text-dark);
    color: var(--color-text-inverse);
    padding: var(--spacing-3) var(--spacing-4);
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: 0;
}

/* Modern focus styles with better visibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Remove default focus outline for elements that use focus-visible */
:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
    Typography
    ========================================================================== */
.hero-title, .section-title, .person-name, .book-title, .air-title {
    font-family: var(--font-display);
    line-height: var(--line-height-tight);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.hero-title {
    font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
    margin-block-end: var(--spacing-8);
    max-inline-size: 15ch;
    margin-inline: auto;
    color: var(--color-secondary-800);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
}

.section-title {
    font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-4xl));
    text-align: center;
    margin-block-end: var(--spacing-20);
    color: var(--color-text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(var(--font-size-lg), 2.5vw, var(--font-size-xl));
    color: var(--color-text-light);
    font-weight: 400;
    margin-block-end: var(--spacing-16);
    line-height: var(--line-height-relaxed);
    max-inline-size: 50ch;
    margin-inline: auto;
    text-align: center;
}

/* ==========================================================================
    Hero Section
    ========================================================================== */
.hero {
    background: var(--gradient-hero);
    color: var(--color-text-dark);
    padding: var(--spacing-24) var(--spacing-12);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
    z-index: -1;
}


.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-12);
    flex-wrap: wrap;
    margin-block-start: var(--spacing-8);
    position: relative;
    z-index: 1;
    min-height: 2rem;
    width: 100%;
}

#rotating-stat {
    padding: var(--spacing-3) var(--spacing-5);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-secondary-900);
}

/* ==========================================================================
    Layout Components
    ========================================================================== */
.about-section {
    padding: var(--spacing-24) var(--spacing-12);
    max-inline-size: var(--container-max);
    margin-inline: auto;
    background: var(--color-background-subtle);
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
    gap: var(--spacing-12);
    margin-block-start: var(--spacing-12);
}

/* ==========================================================================
    Card Components
    ========================================================================== */
.person-card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-12);
    box-shadow: var(--shadow-base);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: var(--transition-all);
}

.person-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.person-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    opacity: 0;
    transition: var(--transition-base);
}



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

.person-photo {
    inline-size: 8rem;
    block-size: 8rem;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-block-end: var(--spacing-6);
    border: 3px solid var(--color-primary);
    transition: var(--transition-all);
    box-shadow: var(--shadow-sm);
}

.person-card:hover .person-photo {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.person-name {
    font-size: var(--font-size-xl);
    color: var(--color-text-dark);
    margin-block-end: var(--spacing-2);
    font-weight: 700;
}

.person-title {
    color: var(--color-text-muted);
    font-weight: 500;
    margin-block-end: var(--spacing-6);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.person-description {
    margin-block-end: var(--spacing-8);
    color: var(--color-text-light);
    line-height: var(--line-height-relaxed);
    max-inline-size: var(--content-max-width);
}

/* ==========================================================================
    Utility Classes
    ========================================================================== */
.hover-lift {
    transition: var(--transition-all);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.hover-lift-subtle {
    transition: var(--transition-all);
}

.hover-lift-subtle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-base);
}

.shimmer-effect:hover::before {
    left: 100%;
}

/* ==========================================================================
    Button & Link Components
    ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    color: white;
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition-all);
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-base);
}

.btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn:hover::before {
    left: 100%;
}

/* ==========================================================================
    Air Section
    ========================================================================== */
.air-section {
    padding: var(--spacing-24) var(--spacing-12);
    background: var(--color-background);
    max-inline-size: var(--container-max);
    margin-inline: auto;
    position: relative;
    overflow: hidden;
}

.air-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2306b6d4' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: -1;
}

.air-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-20);
    align-items: center;
}

@media (max-width: 768px) {
    .air-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-12);
    }
}

.air-title {
    font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-3xl));
    color: var(--color-text-dark);
    margin-block-end: var(--spacing-6);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.air-description {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-light);
    margin-block-end: var(--spacing-12);
    max-inline-size: var(--content-max-width);
}

.air-buttons {
    display: flex;
    gap: var(--spacing-4);
    flex-wrap: wrap;
}

/* ==========================================================================
    Elite AI Section (layout + responsive fixes)
    ========================================================================== */
.elite-ai-section {
    padding: var(--spacing-24) var(--spacing-12);
    background: var(--color-background-subtle);
    max-inline-size: var(--container-max);
    margin-inline: auto;
    position: relative;
}

.elite-ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-20);
    align-items: start;
    align-items: center;
}

.conversion-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-12);
}

.elite-ai-title {
    font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-3xl));
    color: var(--color-text-dark);
    margin-block-end: var(--spacing-6);
    font-weight: 700;
}

.elite-ai-content {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0));
    padding: var(--spacing-12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.elite-ai-description {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-light);
    margin-block-end: var(--spacing-8);
    max-inline-size: var(--content-max-width);
}

.elite-ai-buttons {
    margin-top: var(--spacing-6);
}

.elite-ai-buttons .btn {
    padding: calc(var(--spacing-3) + 2px) var(--spacing-8);
    font-size: var(--font-size-md);
}

.testimonials {
    margin-block-end: var(--spacing-8);
}

.benefits-hero-title {
    font-size: clamp(var(--font-size-lg), 2.2vw, var(--font-size-2xl));
    margin-block-end: var(--spacing-4);
    color: var(--color-text-dark);
    font-weight: 800;
}

/* Card-like benefit list */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-4);
}

.benefits-list li {
    display: flex;
    gap: var(--spacing-4);
    align-items: flex-start;
    padding: var(--spacing-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-all);
}

.benefits-list li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-500);
}

.benefit-emoji {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, rgba(99,102,241,0.06), rgba(6,182,212,0.03));
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.benefit-title {
    font-weight: 700;
    color: var(--color-text-dark);
    margin-block-end: var(--spacing-1);
}

.benefit-desc {
    color: var(--color-text-light);
    margin: 0;
    line-height: var(--line-height-relaxed);
}

@media (max-width: 768px) {
    .benefits-list {
        grid-template-columns: 1fr;
    }
    .benefit-emoji {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.special-offer {
    background: linear-gradient(90deg, rgba(99,102,241,0.06), rgba(6,182,212,0.04));
    padding: var(--spacing-6);
    margin-top: var(--spacing-6);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(0,0,0,0.03);
}

/* Elite AI link styles - subtle and non-spammy */
.elite-ai-title-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

.elite-ai-title-link:hover {
    color: var(--color-primary-600);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.urgency-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    transition: color var(--transition-base);
}

.urgency-link:hover {
    color: var(--color-primary-600);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.benefit-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

.benefit-link:hover {
    color: var(--color-primary-600);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

@media (max-width: 768px) {
    .elite-ai-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-12);
    }

    .elite-ai-section {
        padding: var(--spacing-5xl) var(--spacing-lg);
    }
}



/* ==========================================================================
    Code Display
    ========================================================================== */
.code-container {
    background: var(--color-slate-900);
    border: 1px solid var(--color-slate-700);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.code-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2rem;
    background: var(--color-slate-800);
    display: flex;
    align-items: center;
    padding-left: var(--spacing-4);
}

.code-container::after {
    content: '● ● ●';
    position: absolute;
    top: 0;
    left: var(--spacing-4);
    height: 2rem;
    display: flex;
    align-items: center;
    color: var(--color-slate-500);
    font-size: var(--font-size-xs);
    z-index: 1;
}

.code-block {
    background: var(--color-slate-900);
    color: var(--color-slate-100);
    padding: var(--spacing-12);
    padding-top: calc(var(--spacing-12) + 2rem);
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    margin: 0;
    overflow-x: auto;
    white-space: pre;
}

/* ==========================================================================
    Books Section
    ========================================================================== */
.books-section {
    padding: var(--spacing-24) var(--spacing-12);
    background: var(--color-background-subtle);
    max-inline-size: var(--container-max);
    margin-inline: auto;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: var(--spacing-12);
    margin-block-start: var(--spacing-12);
}

.book-card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-base);
    border: 1px solid var(--color-border);
    position: relative;
    transition: var(--transition-all);
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: var(--transition-base);
}

.book-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-secondary);
}

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

.book-cover {
    inline-size: 100%;
    block-size: 16rem;
    object-fit: cover;
    display: block;
    transition: var(--transition-all);
}

.book-card:hover .book-cover {
    transform: scale(1.05);
}

.book-content {
    padding: var(--spacing-12);
}

.book-title {
    font-size: var(--font-size-xl);
    color: var(--color-text-dark);
    margin-block-end: var(--spacing-4);
    font-weight: 700;
}

.book-description {
    color: var(--color-text-light);
    margin-block-end: var(--spacing-8);
    line-height: var(--line-height-relaxed);
    max-inline-size: var(--content-max-width);
}

/* Improved book card layout and responsiveness */
.book-card {
    /* Use a subtle layered card with consistent padding for all sizes */
    display: block;
    padding: 0; /* padding handled by .book-content for stacked layout */
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0));
}

/* Desktop / large tablet: show cover to the left and content to the right */
@media (min-width: 900px) {
    .book-card {
        display: grid;
        grid-template-columns: 14rem 1fr;
        gap: var(--spacing-6);
        align-items: center;
        padding: var(--spacing-6);
    }

    .book-cover {
        inline-size: 14rem;
        block-size: 20rem;
        border-radius: var(--radius-lg);
        box-shadow: 0 8px 22px rgba(10, 10, 20, 0.06);
        flex: 0 0 auto;
        height: auto;
        object-fit: cover;
    }

    .book-content {
        padding: 0 var(--spacing-6);
    }

    .book-title {
        font-size: clamp(var(--font-size-lg), 1.6vw, var(--font-size-2xl));
        margin-block-end: var(--spacing-3);
    }

    .book-description {
        margin-block-end: var(--spacing-4);
    }
}

/* Tweak hover to feel lighter and more polished */
.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
    border-color: rgba(0,0,0,0.04);
}

/* Ensure mobile stacked cards remain centered and readable */
@media (max-width: 768px) {
    .book-card {
        padding: var(--spacing-6);
        text-align: left;
    }

    .book-cover {
        max-width: 200px;
        margin-inline: auto;
        height: auto;
        block-size: auto;
        border-radius: var(--radius-lg);
    }

    .book-content {
        padding-top: var(--spacing-4);
    }
}

/* Fix medium-narrow widths where large content padding causes odd centering (e.g. ~700px) */
@media (max-width: 900px) {
    .book-content {
        /* reduce horizontal padding so cover and content align better */
        padding: var(--spacing-4) var(--spacing-6);
    }

    /* prefer left-aligned cover when there is room, rather than centered */
    .book-cover {
        margin-inline: 0;
        display: inline-block;
    }
}

/* ==========================================================================
    Footer
    ========================================================================== */
.footer {
    background: var(--color-slate-900);
    color: var(--color-text-inverse);
    padding: var(--spacing-12);
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-8);
    margin-block-end: var(--spacing-8);
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--color-text-inverse);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-all);
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-md);
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.footer-nav a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.footer-nav a:hover::after {
    width: 100%;
}

.copyright {
    font-size: var(--font-size-sm);
    opacity: 0.7;
    color: var(--color-slate-400);
}

/* ==========================================================================
    Responsive Design
    ========================================================================== */

/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Adjust hero section for tablets */
    .hero {
        padding: var(--spacing-32) var(--spacing-16);
    }

    .hero-title {
        font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
    }

    .hero-subtitle {
        font-size: clamp(var(--font-size-base), 2vw, var(--font-size-lg));
    }

    /* Optimize two-column layouts for tablets */
    .elite-ai-grid,
    .air-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-16);
    }

    /* Adjust section padding for tablets */
    .about-section,
    .air-section,
    .books-section,
    .elite-ai-section {
        padding: var(--spacing-20) var(--spacing-16);
    }

    /* Improve card layouts for tablets */
    .person-card,
    .book-card {
        padding: var(--spacing-8);
    }

    .person-photo {
        inline-size: 6rem;
        block-size: 6rem;
    }

    /* Adjust button sizes for tablet touch */
    .btn {
        padding: var(--spacing-4) var(--spacing-8);
        font-size: var(--font-size-base);
    }

    /* Optimize benefits list for tablets */
    .benefits-list {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }

    .benefits-list li {
        padding: var(--spacing-8);
    }

    /* Optimize hero stats for tablets */
    .hero-stats {
        gap: var(--spacing-8);
        justify-content: center;
        flex-wrap: wrap;
        max-width: 100%;
    }

    #rotating-stat {
        padding: var(--spacing-4) var(--spacing-6);
        font-size: var(--font-size-base);
        min-width: fit-content;
    }

    /* Improve footer navigation for tablets */
    .footer-nav {
        gap: var(--spacing-6);
        flex-wrap: wrap;
    }

    /* Optimize code blocks for tablets */
    .code-block {
        font-size: var(--font-size-base);
        padding: var(--spacing-8);
        padding-top: calc(var(--spacing-8) + 2rem);
    }

    .code-container::before {
        height: 2.5rem;
    }

    /* Optimize elite AI content for tablets */
    .elite-ai-content {
        padding: var(--spacing-8);
    }

    .elite-ai-description {
        font-size: var(--font-size-base);
        margin-block-end: var(--spacing-6);
    }

    .benefits-hero-title {
        font-size: clamp(var(--font-size-base), 2vw, var(--font-size-xl));
    }

    /* Handle inline grid layouts for book pages */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-12) !important;
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --font-size-base: 1rem;
    }

    /* More compact mobile hero spacing and height */
    .hero {
        padding: var(--spacing-8) var(--spacing-4);
        min-height: 50vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-content {
        text-align: center;
        margin-bottom: var(--spacing-8);
    }

    .hero-title {
        font-size: clamp(var(--font-size-3xl), 8vw, var(--font-size-4xl));
        margin-bottom: var(--spacing-6);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(var(--font-size-lg), 4vw, var(--font-size-xl));
        margin-bottom: var(--spacing-8);
        max-width: none;
    }

    .hero-stats {
        gap: var(--spacing-lg);
        justify-content: center;
        margin-top: var(--spacing-6);
    }

    .hero-stat {
        font-size: var(--font-size-sm);
        padding: var(--spacing-sm) var(--spacing-lg);
        white-space: nowrap;
    }

    /* Better mobile stats display */
    #rotating-stat {
        padding: var(--spacing-2) var(--spacing-4);
        font-size: var(--font-size-base);
        font-weight: 500;
        background: rgba(255, 255, 255, 0.9);
        border-radius: var(--radius-lg);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: inline-block;
        white-space: nowrap;
    }

    /* Elite AI section mobile improvements */
    .elite-ai-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-4);
    }

    .conversion-content {
        margin-top: var(--spacing-8);
    }

    .benefits-content {
        margin-bottom: var(--spacing-8);
    }

    /* Improve touch targets for mobile */
    .btn {
        min-height: 44px;
        padding: var(--spacing-3) var(--spacing-6);
        font-size: var(--font-size-base);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Reduce giant section padding on small screens */
    .about-section,
    .air-section,
    .books-section,
    .elite-ai-section {
        padding: var(--spacing-8) var(--spacing-4);
    }

    .people-grid,
    .books-grid,
    .air-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .person-card {
        padding: var(--spacing-8);
        margin-bottom: var(--spacing-6);
    }

    .person-photo {
        width: 6rem;
        height: 6rem;
        margin-bottom: var(--spacing-4);
    }

    .person-name {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-2);
    }

    .person-title {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-4);
    }

    .person-description {
        font-size: var(--font-size-base);
        line-height: var(--line-height-relaxed);
        margin-bottom: var(--spacing-6);
    }

    .elite-ai-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
    }

    .benefits-list {
        gap: var(--spacing-4);
    }

    .benefit-emoji {
        width: 2rem;
        height: 2rem;
        font-size: 1.5rem;
    }

    .air-buttons {
        flex-direction: column;
        gap: var(--spacing-4);
        align-items: stretch;
    }

    .footer {
        padding: var(--spacing-2xl) var(--spacing-lg);
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-6);
    }

    /* Remove hover effects on mobile */
    .person-card:hover {
        transform: none;
        box-shadow: var(--shadow-base);
    }

    .person-card:hover .person-photo {
        transform: none;
    }

    /* Better mobile navigation */
    .skip-link:focus {
        top: 0;
        left: 0;
        right: 0;
        text-align: center;
    }

    /* Additional mobile improvements */
    .elite-ai-content {
        margin-bottom: var(--spacing-8);
    }

    .elite-ai-description {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-6);
    }

    .benefits-hero-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-6);
    }

    .benefit-title {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-2);
    }

    .benefit-desc {
        font-size: var(--font-size-sm);
        color: var(--color-text-muted);
    }

    .special-offer {
        padding: var(--spacing-4);
        margin-top: var(--spacing-4);
        text-align: center;
    }

    .urgency-text,
    .promo-text {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-2);
    }

    /* Better mobile spacing for air section */
    .air-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-4);
    }

    .air-description {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-6);
    }

    .code-container {
        margin-top: var(--spacing-6);
        font-size: var(--font-size-sm);
    }

    /* Better mobile book cards */
    .book-card {
        padding: var(--spacing-6);
        text-align: center;
    }

    .book-cover {
        width: 100%;
        max-width: 200px;
        height: auto;
        margin-bottom: var(--spacing-4);
        border-radius: var(--radius-lg);
    }

    .book-title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-2);
    }

    .book-description {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-6);
    }

    /* Improve mobile footer */
    .copyright {
        font-size: var(--font-size-sm);
        color: var(--color-text-muted);
    }
}

/* Additional small screen optimizations */
@media (max-width: 480px) {
    .hero {
        padding: var(--spacing-3xl) var(--spacing-base);
    }

    .hero-title {
        font-size: clamp(var(--font-size-2xl), 10vw, var(--font-size-3xl));
    }

    .hero-subtitle {
        font-size: clamp(var(--font-size-base), 5vw, var(--font-size-lg));
    }

    .person-card {
        padding: var(--spacing-6);
    }

    .person-photo {
        width: 5rem;
        height: 5rem;
    }

    .btn {
        font-size: var(--font-size-base);
        padding: var(--spacing-3) var(--spacing-5);
    }

    .elite-ai-section {
        padding: var(--spacing-3xl) var(--spacing-base);
    }

    .air-section {
        padding: var(--spacing-3xl) var(--spacing-base);
    }
}

/* Book page grid mobile optimization */
@media (max-width: 768px) {
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-6) !important;
    }
}

@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;
    }
}

#skyCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* Prevent canvas from interfering with touch */
}

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
}