/* === Variables === */
:root {
    --color-bg: #0a0f1c;
    --color-bg-light: #111827;
    --color-bg-card: #1a2234;
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-secondary: #8b5cf6;
    --color-accent: #06b6d4;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-border: #334155;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-glow: linear-gradient(135deg, rgba(59,130,246,0.2) 0%, rgba(139,92,246,0.2) 100%);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.5);
    --radius: 12px;
    --radius-lg: 20px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* === Container === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.95rem;
    transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary {
    background: var(--gradient-primary); color: white;
    box-shadow: 0 4px 14px rgba(59,130,246,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59,130,246,0.5); color: white; }
.btn-secondary {
    background: transparent; color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }

/* === Navigation === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0; background: rgba(10,15,28,0.9);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--color-text); }
.logo-icon { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--color-text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--color-text); }
.nav-links .btn { margin-left: 8px; }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--color-text); transition: 0.2s; }

/* === Hero === */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(139,92,246,0.1) 0%, transparent 50%);
}
.hero-grid {
    position: absolute; inset: 0; opacity: 0.03;
    background-image: linear-gradient(var(--color-text) 1px, transparent 1px),
                      linear-gradient(90deg, var(--color-text) 1px, transparent 1px);
    background-size: 50px 50px;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; line-height: 1.1; margin-bottom: 24px; }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.25rem; color: var(--color-text-muted); margin-bottom: 40px; max-width: 600px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* === Sections === */
.section { padding: 100px 0; }
.section-dark { background: var(--color-bg-light); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label { display: inline-block; color: var(--color-primary); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: 16px; }
.section-subtitle { color: var(--color-text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* === About === */
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }
.about-content .lead { font-size: 1.35rem; color: var(--color-text); margin-bottom: 20px; }
.about-content p { color: var(--color-text-muted); }

/* === Principles === */
.principles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.principle-card {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: 32px; transition: all 0.3s;
}
.principle-card:hover { transform: translateY(-4px); border-color: var(--color-primary); box-shadow: var(--shadow-lg); }
.principle-icon { font-size: 2.5rem; margin-bottom: 16px; }
.principle-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 12px; }
.principle-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* === Products === */
.product-showcase { max-width: 700px; margin: 0 auto; }
.product-card {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: 40px; position: relative;
}
.product-card.featured { border-color: var(--color-primary); }
.product-badge {
    position: absolute; top: -12px; left: 32px;
    background: var(--gradient-primary); color: white;
    padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
}
.product-card h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 8px; margin-top: 16px; }
.product-tagline { color: var(--color-primary); font-weight: 600; margin-bottom: 16px; }
.product-description { color: var(--color-text-muted); margin-bottom: 24px; }
.product-features { margin-bottom: 24px; }
.product-features li { padding: 8px 0; color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.product-features li:last-child { border-bottom: none; }

/* === Category Cards (Homepage) === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.category-card {
    display: block;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.category-card:hover::before {
    opacity: 1;
}
.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}
.category-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 8px;
}
.category-tagline {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.category-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}
.category-cta {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s;
}
.category-card:hover .category-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Category Card - Design & Development (Blue) */
.category-card.design { border-color: rgba(59, 130, 246, 0.3); }
.category-card.design:hover { border-color: #3b82f6; }
.category-card.design::before { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.category-card.design .category-tagline { color: #3b82f6; }
.category-card.design .category-cta { color: #3b82f6; }

/* Category Card - R&D (Purple) */
.category-card.research { border-color: rgba(139, 92, 246, 0.3); }
.category-card.research:hover { border-color: #8b5cf6; }
.category-card.research::before { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.category-card.research .category-tagline { color: #8b5cf6; }
.category-card.research .category-cta { color: #8b5cf6; }

/* Category Card - Publishing (Amber) */
.category-card.publishing { border-color: rgba(245, 158, 11, 0.3); }
.category-card.publishing:hover { border-color: #f59e0b; }
.category-card.publishing::before { background: linear-gradient(135deg, #f59e0b, #d97706); }
.category-card.publishing .category-tagline { color: #f59e0b; }
.category-card.publishing .category-cta { color: #f59e0b; }

/* === Subpage Styles === */
.subpage-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
}
.subpage-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.subpage-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}
.breadcrumb a {
    color: var(--color-text-muted);
}
.breadcrumb a:hover {
    color: var(--color-text);
}
.breadcrumb span {
    color: var(--color-text-muted);
}
.subpage-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}
.subpage-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
}

/* Featured Product Card (Subpages) */
.featured-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px;
}
.featured-product-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 8px;
}
.featured-product-content .product-tagline {
    margin-bottom: 20px;
}
.featured-product-content .product-description {
    margin-bottom: 24px;
    line-height: 1.7;
}
.featured-product-features {
    margin-bottom: 32px;
}
.featured-product-features li {
    padding: 10px 0;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}
.featured-product-features li:last-child {
    border-bottom: none;
}
.featured-product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-glow);
    border-radius: var(--radius-lg);
    padding: 60px;
    font-size: 8rem;
}

/* Info Grid (for R&D areas, etc.) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.info-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s;
}
.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}
.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 12px;
}
.info-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Book Card (Publishing) */
.book-showcase {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    position: relative;
    overflow: hidden;
}
.book-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
}
.book-cover-image {
    max-width: 100%;
    width: 300px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: rotateY(-3deg);
}
.book-cover-image:hover {
    transform: rotateY(0deg) translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 15px 25px rgba(0, 0, 0, 0.35);
}

/* Per-book ambient glow effects */
.book-showcase.book-agentic .book-cover-image {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 60px rgba(212, 114, 44, 0.15);
}
.book-showcase.book-agentic .book-cover-image:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 15px 25px rgba(0, 0, 0, 0.35), 0 0 80px rgba(212, 114, 44, 0.25);
}
.book-showcase.book-75secret .book-cover-image {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 60px rgba(212, 165, 32, 0.15);
}
.book-showcase.book-75secret .book-cover-image:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 15px 25px rgba(0, 0, 0, 0.35), 0 0 80px rgba(212, 165, 32, 0.25);
}
.book-showcase.book-ai-rest .book-cover-image {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 60px rgba(217, 161, 60, 0.15);
}
.book-showcase.book-ai-rest .book-cover-image:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 15px 25px rgba(0, 0, 0, 0.35), 0 0 80px rgba(217, 161, 60, 0.25);
}
.book-showcase.book-activist .book-cover-image {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 60px rgba(59, 130, 246, 0.15);
}
.book-showcase.book-activist .book-cover-image:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 15px 25px rgba(0, 0, 0, 0.35), 0 0 80px rgba(59, 130, 246, 0.25);
}
.book-showcase.book-board .book-cover-image {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 60px rgba(20, 184, 166, 0.15);
}
.book-showcase.book-board .book-cover-image:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 15px 25px rgba(0, 0, 0, 0.35), 0 0 80px rgba(20, 184, 166, 0.25);
}
/* Enhancement 2: Section Separators - Per-book accent lines */
.book-section-separator {
    height: 1px;
    max-width: 600px;
    margin: 0 auto;
    border: none;
    position: relative;
}
.book-section-separator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
}
.book-section-separator.sep-agentic::after {
    background: linear-gradient(90deg, transparent, rgba(212, 114, 44, 0.4) 20%, rgba(212, 114, 44, 0.6) 50%, rgba(212, 114, 44, 0.4) 80%, transparent);
}
.book-section-separator.sep-75secret::after {
    background: linear-gradient(90deg, transparent, rgba(212, 165, 32, 0.4) 20%, rgba(212, 165, 32, 0.6) 50%, rgba(212, 165, 32, 0.4) 80%, transparent);
}
.book-section-separator.sep-ai-rest::after {
    background: linear-gradient(90deg, transparent, rgba(217, 161, 60, 0.4) 20%, rgba(217, 161, 60, 0.6) 50%, rgba(217, 161, 60, 0.4) 80%, transparent);
}
.book-section-separator.sep-activist::after {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4) 20%, rgba(59, 130, 246, 0.6) 50%, rgba(59, 130, 246, 0.4) 80%, transparent);
}
.book-section-separator.sep-board::after {
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.4) 20%, rgba(20, 184, 166, 0.6) 50%, rgba(20, 184, 166, 0.4) 80%, transparent);
}

/* Per-book section label accent colors */
.section .section-label.label-agentic { color: #d4722c; }
.section .section-label.label-75secret { color: #d4a520; }
.section .section-label.label-ai-rest { color: #d9a13c; }
.section .section-label.label-activist { color: #3b82f6; }
.section .section-label.label-board { color: #14b8a6; }

/* Enhancement 4: Coming Soon overlay on book covers */
.book-cover-coming-soon {
    position: relative;
}
.book-cover-coming-soon::after {
    content: 'COMING SOON';
    position: absolute;
    top: 16px;
    right: -32px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 6px 40px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    transform: rotate(35deg);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    z-index: 2;
}

.book-details h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 8px;
}
.book-subtitle {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 20px;
}
.book-description {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}
.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.book-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.book-meta-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.book-meta-value {
    font-weight: 600;
    color: var(--color-text);
}
.book-topics h4 {
    font-size: 1rem;
    margin-bottom: 12px;
}
.book-topics ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.book-topics li {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding-left: 16px;
    position: relative;
}
.book-topics li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}
.book-cta {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Enhancement 3: Publishing Hero with Book Shelf */
.publishing-hero {
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
}
.publishing-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.publishing-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.publishing-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}
.publishing-hero-content .hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 48px;
}
.publishing-hero-content .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

/* Book Shelf Display */
.book-shelf {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    padding: 40px 0 20px;
    perspective: 1200px;
}
.book-shelf-item {
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    display: inline-block;
    width: 120px;
}
.book-shelf-item img {
    width: 120px;
    max-width: 120px;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotateY(-5deg);
}
.book-shelf-item:hover img {
    transform: rotateY(0deg) translateY(-12px) scale(1.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 10px 25px rgba(0, 0, 0, 0.35);
}
.book-shelf-item:nth-child(1):hover img { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 114, 44, 0.2); }
.book-shelf-item:nth-child(2):hover img { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 165, 32, 0.2); }
.book-shelf-item:nth-child(3):hover img { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(217, 161, 60, 0.2); }
.book-shelf-item:nth-child(4):hover img { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.2); }
.book-shelf-item:nth-child(5):hover img { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(20, 184, 166, 0.2); }

/* Shelf base line */
.book-shelf-base {
    width: 100%;
    max-width: 800px;
    height: 2px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.08) 80%, transparent);
    position: relative;
}
.book-shelf-base::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), transparent);
}

/* Publishing stats bar */
.publishing-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px 0 0;
}
.publishing-stat {
    text-align: center;
}
.publishing-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.publishing-stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Subpage responsive */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    .featured-product {
        grid-template-columns: 1fr;
        padding: 32px;
    }
    .featured-product-visual {
        order: -1;
        padding: 40px;
        font-size: 5rem;
    }
    .book-showcase {
        grid-template-columns: 1fr;
        padding: 32px;
    }
    .book-cover {
        max-width: 250px;
        margin: 0 auto;
        perspective: none;
    }
    .book-cover-image {
        transform: none;
    }
    .book-cover-image:hover {
        transform: translateY(-5px) scale(1.02);
    }
    .book-topics ul {
        grid-template-columns: 1fr;
    }
    .book-shelf {
        gap: 12px;
        flex-wrap: wrap;
        padding: 24px 0 16px;
    }
    .book-shelf-item {
        width: 80px;
    }
    .book-shelf-item img {
        width: 80px;
        max-width: 80px;
        transform: none;
    }
    .book-shelf-item:hover img {
        transform: translateY(-8px) scale(1.05);
    }
    .publishing-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    .publishing-stat {
        flex: 1 1 40%;
    }
    .publishing-stat-value {
        font-size: 1.5rem;
    }
    .book-cover-coming-soon::after {
        font-size: 0.6rem;
        padding: 4px 32px;
        top: 12px;
        right: -28px;
    }
}

/* === Team === */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.team-card {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: 32px; text-align: center;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.team-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient-primary); opacity: 0; transition: opacity 0.3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card:hover::before { opacity: 1; }
.team-avatar {
    width: 80px; height: 80px; margin: 0 auto 20px;
    background: var(--gradient-glow); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--color-border);
}
.avatar-icon { font-size: 2rem; }
.team-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 4px; }
.team-role { display: block; color: var(--color-primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.team-tagline { font-style: italic; color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.team-description { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.team-email {
    display: inline-block; padding: 8px 16px;
    background: rgba(59,130,246,0.1); border-radius: 20px;
    color: var(--color-primary); font-size: 0.85rem; font-weight: 500;
    transition: all 0.2s;
}
.team-email:hover { background: rgba(59,130,246,0.2); color: var(--color-accent); }
.team-note {
    margin-top: 48px; padding: 24px; background: var(--color-bg-card);
    border-radius: var(--radius); border-left: 4px solid var(--color-primary);
    text-align: center;
}
.team-note p { color: var(--color-text-muted); }
.team-note a { color: var(--color-primary); font-weight: 600; }

/* === Contact === */
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-info h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 16px; }
.contact-info p { color: var(--color-text-muted); margin-bottom: 24px; }
.contact-primary, .contact-location { margin-bottom: 12px; }
.contact-primary a { color: var(--color-primary); font-weight: 500; }
.contact-cta { display: flex; flex-direction: column; gap: 16px; }

/* === Footer === */
.footer { background: var(--color-bg); padding: 60px 0 24px; border-top: 1px solid var(--color-border); }
.footer-content { display: grid; grid-template-columns: 2fr 3fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--color-text-muted); margin-top: 12px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--color-text); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: var(--color-text-muted); font-size: 0.95rem; }
.footer-col ul a:hover { color: var(--color-primary); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--color-border); }
.footer-bottom p { color: var(--color-text-muted); font-size: 0.9rem; }

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10,15,28,0.98);
        backdrop-filter: blur(12px);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        padding: 12px 0;
        font-size: 1.1rem;
    }
    .nav-links .btn {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }
    .mobile-menu-btn { display: flex; }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-cta { flex-direction: column; }
    .section { padding: 60px 0; }
    .contact-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}

/* Section tagline */
.section-tagline {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* === Team Card Clickable States === */
.team-card {
    cursor: pointer;
}
.team-card:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}
.team-more {
    display: block;
    margin-top: 16px;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}
.team-card:hover .team-more,
.team-card:focus .team-more {
    opacity: 1;
    transform: translateY(0);
}

/* === Per-AI Accent Colors === */
.team-card.athena:hover, .team-card.athena:focus { border-color: #f59e0b; }
.team-card.athena:hover::before, .team-card.athena:focus::before { background: linear-gradient(135deg, #f59e0b, #d97706); opacity: 1; }
.team-card.athena .team-more { color: #f59e0b; }

.team-card.gorimir:hover, .team-card.gorimir:focus { border-color: #3b82f6; }
.team-card.gorimir:hover::before, .team-card.gorimir:focus::before { background: linear-gradient(135deg, #3b82f6, #1d4ed8); opacity: 1; }
.team-card.gorimir .team-more { color: #3b82f6; }

.team-card.liara:hover, .team-card.liara:focus { border-color: #8b5cf6; }
.team-card.liara:hover::before, .team-card.liara:focus::before { background: linear-gradient(135deg, #8b5cf6, #7c3aed); opacity: 1; }
.team-card.liara .team-more { color: #8b5cf6; }

.team-card.miranda:hover, .team-card.miranda:focus { border-color: #64748b; }
.team-card.miranda:hover::before, .team-card.miranda:focus::before { background: linear-gradient(135deg, #64748b, #475569); opacity: 1; }
.team-card.miranda .team-more { color: #94a3b8; }

.team-card.barla:hover, .team-card.barla:focus { border-color: #22c55e; }
.team-card.barla:hover::before, .team-card.barla:focus::before { background: linear-gradient(135deg, #22c55e, #16a34a); opacity: 1; }
.team-card.barla .team-more { color: #22c55e; }

.team-card.edi:hover, .team-card.edi:focus { border-color: #ef4444; }
.team-card.edi:hover::before, .team-card.edi:focus::before { background: linear-gradient(135deg, #ef4444, #dc2626); opacity: 1; }
.team-card.edi .team-more { color: #ef4444; }

.team-card.sibyl:hover, .team-card.sibyl:focus { border-color: #14b8a6; }
.team-card.sibyl:hover::before, .team-card.sibyl:focus::before { background: linear-gradient(135deg, #14b8a6, #0d9488); opacity: 1; }
.team-card.sibyl .team-more { color: #14b8a6; }

.team-card.samantha:hover, .team-card.samantha:focus { border-color: #e2e8f0; }
.team-card.samantha:hover::before, .team-card.samantha:focus::before { background: linear-gradient(135deg, #f1f5f9, #cbd5e1); opacity: 1; }
.team-card.samantha .team-more { color: #e2e8f0; }

.team-card.mordin:hover, .team-card.mordin:focus { border-color: #06b6d4; }
.team-card.mordin:hover::before, .team-card.mordin:focus::before { background: linear-gradient(135deg, #06b6d4, #0891b2); opacity: 1; }
.team-card.mordin .team-more { color: #06b6d4; }

/* === Bio Modal === */
.bio-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.bio-modal.active {
    opacity: 1;
    visibility: visible;
}
.bio-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}
.bio-modal-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow-y: auto;
    transform: translateY(40px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}
.bio-modal.active .bio-modal-container {
    transform: translateY(0);
}
.bio-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-text);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.bio-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* === Bio Content (hidden by default) === */
.bio-content {
    display: none;
    padding: 48px 40px;
}
.bio-content.active {
    display: block;
}

/* === Bio Header === */
.bio-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}
.bio-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
}
.bio-title h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.bio-role {
    font-size: 1rem;
    font-weight: 600;
}

/* === Per-AI Bio Colors === */
.bio-content.athena .bio-avatar { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(217,119,6,0.2)); border: 2px solid #f59e0b; }
.bio-content.athena .bio-role { color: #f59e0b; }
.bio-content.athena .bio-philosophy { border-left-color: #f59e0b; }
.bio-content.athena .bio-email { background: rgba(245,158,11,0.15); color: #f59e0b; }
.bio-content.athena .bio-email:hover { background: rgba(245,158,11,0.25); }

.bio-content.gorimir .bio-avatar { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(29,78,216,0.2)); border: 2px solid #3b82f6; }
.bio-content.gorimir .bio-role { color: #3b82f6; }
.bio-content.gorimir .bio-philosophy { border-left-color: #3b82f6; }
.bio-content.gorimir .bio-email { background: rgba(59,130,246,0.15); color: #3b82f6; }
.bio-content.gorimir .bio-email:hover { background: rgba(59,130,246,0.25); }

.bio-content.liara .bio-avatar { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(124,58,237,0.2)); border: 2px solid #8b5cf6; }
.bio-content.liara .bio-role { color: #8b5cf6; }
.bio-content.liara .bio-philosophy { border-left-color: #8b5cf6; }
.bio-content.liara .bio-email { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.bio-content.liara .bio-email:hover { background: rgba(139,92,246,0.25); }

.bio-content.miranda .bio-avatar { background: linear-gradient(135deg, rgba(100,116,139,0.2), rgba(71,85,105,0.2)); border: 2px solid #64748b; }
.bio-content.miranda .bio-role { color: #94a3b8; }
.bio-content.miranda .bio-philosophy { border-left-color: #64748b; }
.bio-content.miranda .bio-email { background: rgba(100,116,139,0.15); color: #94a3b8; }
.bio-content.miranda .bio-email:hover { background: rgba(100,116,139,0.25); }

.bio-content.barla .bio-avatar { background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(22,163,74,0.2)); border: 2px solid #22c55e; }
.bio-content.barla .bio-role { color: #22c55e; }
.bio-content.barla .bio-philosophy { border-left-color: #22c55e; }
.bio-content.barla .bio-email { background: rgba(34,197,94,0.15); color: #22c55e; }
.bio-content.barla .bio-email:hover { background: rgba(34,197,94,0.25); }

.bio-content.edi .bio-avatar { background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(220,38,38,0.2)); border: 2px solid #ef4444; }
.bio-content.edi .bio-role { color: #ef4444; }
.bio-content.edi .bio-philosophy { border-left-color: #ef4444; }
.bio-content.edi .bio-email { background: rgba(239,68,68,0.15); color: #ef4444; }
.bio-content.edi .bio-email:hover { background: rgba(239,68,68,0.25); }

.bio-content.sibyl .bio-avatar { background: linear-gradient(135deg, rgba(20,184,166,0.2), rgba(13,148,136,0.2)); border: 2px solid #14b8a6; }
.bio-content.sibyl .bio-role { color: #14b8a6; }
.bio-content.sibyl .bio-philosophy { border-left-color: #14b8a6; }
.bio-content.sibyl .bio-email { background: rgba(20,184,166,0.15); color: #14b8a6; }
.bio-content.sibyl .bio-email:hover { background: rgba(20,184,166,0.25); }

.bio-content.samantha .bio-avatar { background: linear-gradient(135deg, rgba(241,245,249,0.1), rgba(203,213,225,0.1)); border: 2px solid #e2e8f0; }
.bio-content.samantha .bio-role { color: #e2e8f0; }
.bio-content.samantha .bio-philosophy { border-left-color: #e2e8f0; }
.bio-content.samantha .bio-email { background: rgba(241,245,249,0.1); color: #e2e8f0; }
.bio-content.samantha .bio-email:hover { background: rgba(241,245,249,0.15); }

.bio-content.mordin .bio-avatar { background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(8,145,178,0.2)); border: 2px solid #06b6d4; }
.bio-content.mordin .bio-role { color: #06b6d4; }
.bio-content.mordin .bio-philosophy { border-left-color: #06b6d4; }
.bio-content.mordin .bio-email { background: rgba(6,182,212,0.15); color: #06b6d4; }
.bio-content.mordin .bio-email:hover { background: rgba(6,182,212,0.25); }

/* === Bio Philosophy Quote === */
.bio-philosophy {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text);
    padding: 20px 24px;
    margin: 0 0 28px 0;
    border-left: 4px solid var(--color-primary);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* === Bio Text === */
.bio-text {
    margin-bottom: 28px;
}
.bio-text p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
.bio-text p:last-child {
    margin-bottom: 0;
}

/* === Bio Competencies === */
.bio-competencies {
    margin-bottom: 28px;
}
.bio-competencies h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--color-text);
}
.bio-competencies ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}
.bio-competencies li {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}
.bio-competencies li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* === Bio Email === */
.bio-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 30px;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}
.bio-email:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}

/* === Bio Modal Responsive === */
@media (max-width: 768px) {
    .bio-modal-container {
        width: 95%;
        max-height: 90vh;
    }
    .bio-content {
        padding: 32px 24px;
    }
    .bio-header {
        flex-direction: column;
        text-align: center;
    }
    .bio-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    .bio-title h2 {
        font-size: 2rem;
    }
    .bio-philosophy {
        font-size: 1.1rem;
        padding: 16px 20px;
    }
    .bio-competencies ul {
        grid-template-columns: 1fr;
    }
}

/* === Prevent body scroll when modal open === */
body.modal-open {
    overflow: hidden;
}

/* === Ethics Page Styles === */
.value-practices {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.value-practices li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.value-practices li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.framework-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.framework-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.framework-table th,
.framework-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.framework-table th {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-text);
    font-weight: 600;
}

.framework-table td {
    color: var(--color-text-muted);
}

.framework-table tr:last-child td {
    border-bottom: none;
}

.commitment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.commitment-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.commitment-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

.commitment-item strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.commitment-item p {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.promise-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
}

.promise-card h2 {
    margin-bottom: 1.5rem;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 2rem;
}

.promise-text {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.promise-signature {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.promise-signature strong {
    display: block;
    color: var(--color-text);
    font-size: 1.1rem;
}

.promise-signature span {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Thinker Cards */
.thinker-grid {
    grid-template-columns: repeat(3, 1fr);
}

.thinker-card {
    text-align: left;
}

.thinker-tradition {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.thinker-quote {
    font-style: italic;
    color: var(--color-text);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-left: 3px solid var(--color-primary);
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.principle-source {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* Ethics page responsive */
@media (max-width: 992px) {
    .thinker-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .commitment-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .commitment-icon {
        margin: 0 auto;
    }

    .promise-card {
        padding: 2rem;
    }

    .framework-table th,
    .framework-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* === Book Landing Page Styles === */

/* Book Hero */
.book-hero {
    padding-top: 140px;
    padding-bottom: 60px;
}

.book-hero-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.book-hero-cover {
    position: relative;
}

.book-cover-hero {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 40px rgba(59,130,246,0.2);
    transition: transform 0.3s;
}

.book-cover-hero:hover {
    transform: scale(1.02);
}

.book-hero-text {
    position: relative;
    z-index: 1;
}

.book-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.book-badge-coming-soon {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.book-hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.book-tagline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.book-intro {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 30px;
    line-height: 1.7;
}

.book-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

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

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.book-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Format Cards */
.format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.format-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.format-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.format-featured {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(139,92,246,0.1) 100%);
}

.format-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.format-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.format-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.format-specs {
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.format-isbn {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* Info Grid 3-column */
.info-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Table of Contents */
.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.toc-part {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.toc-part h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.toc-part-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.toc-chapters {
    list-style: none;
}

.toc-chapters li {
    padding: 8px 0;
    color: var(--color-text);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

/* Resources Section */
.resources-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.resources-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.resources-content p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.resources-list {
    list-style: none;
    margin-bottom: 24px;
}

.resources-list li {
    padding: 10px 0;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}

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

.resources-list strong {
    color: var(--color-text);
}

.resources-preview {
    display: flex;
    justify-content: center;
}

.code-preview {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--color-border);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
}

.code-dot:nth-child(1) { background: #ff5f56; }
.code-dot:nth-child(2) { background: #ffbd2e; }
.code-dot:nth-child(3) { background: #27c93f; }

.code-title {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.code-content {
    padding: 20px;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    overflow-x: auto;
    margin: 0;
}

/* Author Content */
.author-content {
    max-width: 800px;
    margin: 0 auto;
}

.author-bio .lead {
    font-size: 1.35rem;
    color: var(--color-text);
    margin-bottom: 20px;
}

.author-bio p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* Final CTA */
.book-final-cta {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.book-final-cta h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 16px;
}

.book-final-cta p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Book Page Responsive */
@media (max-width: 992px) {
    .book-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-hero-cover {
        max-width: 250px;
        margin: 0 auto;
    }

    .book-stats {
        justify-content: center;
    }

    .book-cta-buttons {
        justify-content: center;
    }

    .format-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .info-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-showcase {
        grid-template-columns: 1fr;
    }

    .resources-preview {
        order: -1;
    }
}

@media (max-width: 768px) {
    .book-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .book-stat {
        flex: 1 1 40%;
    }

    .info-grid-3 {
        grid-template-columns: 1fr;
    }

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

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

/* === Sample Chapter Section === */
.sample-chapter {
    max-width: 800px;
    margin: 0 auto;
}

.sample-chapter-content {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--color-border);
}

.sample-chapter-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--color-text);
}

.sample-chapter-content p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.sample-chapter-content .sample-intro {
    font-size: 1.1rem;
    color: var(--color-text);
    border-left: 3px solid var(--color-primary);
    padding-left: 20px;
    margin-bottom: 24px;
}

.sample-chapter-content .sample-cta {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    color: var(--color-primary);
    text-align: center;
}

/* === Testimonials Section === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--color-border);
}

.testimonial-card.testimonial-placeholder {
    text-align: center;
    border-style: dashed;
}

.testimonial-text {
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-text);
}

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

.testimonial-cta a {
    color: var(--color-primary);
    font-weight: 500;
}

/* === FAQ Section === */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.faq-item {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--color-border);
}

.faq-question {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 12px;
}

.faq-answer {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--color-primary);
}

/* === Errata Section === */
.errata-content {
    max-width: 800px;
    margin: 0 auto;
}

.errata-info {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--color-border);
}

.errata-info > p {
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.errata-status,
.errata-report {
    margin-bottom: 24px;
}

.errata-status h4,
.errata-report h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 12px;
}

.errata-none {
    color: var(--color-accent);
    padding: 16px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: var(--radius);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.errata-report p {
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.errata-report ul {
    list-style: none;
    padding: 0;
}

.errata-report li {
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.errata-report li strong {
    color: var(--color-text);
}

.errata-report a {
    color: var(--color-primary);
}
