/* SYNTHETIC HUMAN - Complete Styles */
:root {
    --bg-primary: #020818;
    --bg-secondary: #0a1628;
    --bg-tertiary: #0f1f3a;
    --accent: #00d4ff;
    --accent-secondary: #0099cc;
    --accent-glow: rgba(0, 212, 255, 0.5);
    --accent-soft: rgba(0, 212, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #a0c4d8;
    --text-muted: #5a7a8a;
    --border: rgba(0, 212, 255, 0.2);
    --border-strong: rgba(0, 212, 255, 0.4);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Source Code Pro', monospace;
    --sidebar-width: 130px;
    --nav-height: 70px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-primary); background: var(--bg-primary); line-height: 1.6; overflow-x: hidden; }

#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
::selection { background: var(--accent); color: var(--bg-primary); }
a { color: var(--accent); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--text-primary); text-shadow: 0 0 10px var(--accent-glow); }

/* ==================== SIDEBARS ==================== */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 80px 10px 20px;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: var(--bg-primary); }
.sidebar::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.sidebar-left { left: 0; border-right: 1px solid var(--border); }
.sidebar-right { right: 0; border-left: 1px solid var(--border); }

.sidebar-banner {
    display: block;
    transition: 0.3s;
    opacity: 0.85;
    border-radius: 8px;
    overflow: hidden;
}
.sidebar-banner:hover { opacity: 1; transform: scale(1.03); box-shadow: 0 0 20px var(--accent-glow); }
.sidebar-banner img { width: 100%; height: auto; display: block; }

.chapters-sidebar {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 8px;
    margin-bottom: 10px;
}
.chapters-sidebar h3 {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 0.05em;
}
.chapters-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 350px;
    overflow-y: auto;
}
.chapters-nav::-webkit-scrollbar { width: 3px; }
.chapters-nav::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
.chapters-nav a {
    font-size: 0.6rem;
    color: var(--text-muted);
    padding: 4px 6px;
    border-radius: 4px;
    transition: 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chapters-nav a:hover { background: var(--accent-soft); color: var(--accent); text-shadow: none; }

/* ==================== MAIN WRAPPER ==================== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* ==================== NAVIGATION ==================== */
.main-nav {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: var(--sidebar-width);
    height: var(--nav-height);
    z-index: 1000;
    padding: 0 30px;
    display: flex;
    align-items: center;
    background: transparent;
    transition: 0.3s;
}
.main-nav.scrolled {
    background: rgba(2, 8, 24, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}
.nav-logo:hover { text-shadow: none; }
.logo-icon { color: var(--accent); font-size: 1.2rem; animation: pulse-glow 3s infinite; }
.logo-accent { color: var(--accent); }

@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 5px var(--accent-glow); }
    50% { text-shadow: 0 0 20px var(--accent-glow), 0 0 30px var(--accent-glow); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}
.nav-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent); text-shadow: none; }

.nav-cta {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
    padding: 10px 18px !important;
    border-radius: 4px;
    font-weight: 600 !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--text-primary) !important; box-shadow: 0 0 20px var(--accent-glow); }

/* Language Selector */
.language-selector { position: relative; }
.lang-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font-body);
    transition: 0.3s;
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lang-dropdown.active { display: flex; }
.lang-dropdown a {
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: 0.2s;
}
.lang-dropdown a:hover { background: var(--accent-soft); color: var(--accent); text-shadow: none; }

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    transition: 0.3s;
}
.theme-toggle:hover { transform: rotate(20deg); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 40px) 40px 60px;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    animation: grid-move 30s linear infinite;
}
@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(0,212,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}
.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 15px;
}
.title-line {
    display: block;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
}
.title-line.accent {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(0,212,255,0.3);
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.hero-description {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1rem;
}
.hero-description strong { color: var(--text-secondary); }
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}
.hero-meta span {
    background: var(--bg-tertiary);
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.hero-stats {
    display: flex;
    gap: 35px;
    margin-bottom: 30px;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}
.btn-primary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
    text-shadow: none;
}
.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-secondary:hover {
    background: var(--accent-soft);
    transform: translateY(-2px);
    text-shadow: none;
}

/* Hero Visual */
.hero-visual { display: flex; justify-content: center; }
.book-container {
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: 0.5s;
}
.book-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.03);
}
.book-glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
    filter: blur(50px);
    z-index: -1;
    opacity: 0.7;
}
.book-cover {
    max-width: 100%;
    max-height: 65vh;
    border-radius: 8px;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.5),
        0 0 100px var(--accent-glow);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 80px 40px;
    position: relative;
}
.section-container {
    max-width: 1000px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-number {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 10px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==================== PREFACE ==================== */
.preface { background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%); }
.preface-quote {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 0 12px 12px 0;
}
.preface-quote p {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.preface-quote .quote-cs {
    font-size: 1.1rem !important;
    color: var(--text-muted) !important;
}
.preface-text { font-size: 1.05rem; }
.preface-text p {
    color: var(--text-secondary);
    margin-bottom: 18px;
}
.preface-text a { border-bottom: 1px dashed var(--accent); }
.preface-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 35px 0;
}
.highlight-item {
    display: flex;
    gap: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    transition: 0.3s;
}
.highlight-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.highlight-icon { font-size: 2.5rem; }
.highlight-item h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 5px;
}
.highlight-item p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 8px; }
.highlight-item a { font-size: 0.85rem; }
.preface-callout {
    background: linear-gradient(135deg, var(--accent-soft), rgba(0,153,204,0.1));
    border: 1px solid var(--border-strong);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: center;
}
.preface-callout p { color: var(--text-secondary); margin-bottom: 10px; }
.preface-callout p:last-child { margin-bottom: 0; }

/* ==================== MISSION ==================== */
.mission { background: var(--bg-secondary); }
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 50px;
}
.mission-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 12px;
    transition: 0.3s;
}
.mission-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.mission-icon { font-size: 2.5rem; margin-bottom: 15px; }
.mission-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 15px;
}
.mission-card p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 10px; }
.mission-card .vision-extended { font-size: 0.9rem; color: var(--text-muted); }

.objectives-grid h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 25px;
    color: var(--accent);
}
.objective {
    display: flex;
    gap: 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: 0.3s;
}
.objective:hover {
    border-color: var(--accent);
    transform: translateX(8px);
}
.objective span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 40px;
}
.objective h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 3px;
}
.objective p { color: var(--text-muted); font-size: 0.9rem; }

/* ==================== ARCHITECTURE ==================== */
.architecture {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
}
.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto 50px;
}
.layer {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.layer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    opacity: 0;
    transition: 0.3s;
}
.layer:hover {
    border-color: var(--accent);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.layer:hover::before { opacity: 1; }
.layer-num {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 50px;
}
.layer h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 3px;
}
.layer p { color: var(--text-muted); font-size: 0.9rem; }

.specs-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}
.spec {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: 0.3s;
}
.spec:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.spec-val {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.spec-val sup { font-size: 0.5em; }
.spec-unit { font-size: 0.8rem; color: var(--text-secondary); margin: 5px 0; }
.spec-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ==================== CHAPTERS ==================== */
.chapters { background: var(--bg-secondary); }
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}
.chapter {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    transition: 0.3s;
    position: relative;
}
.chapter:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.chapter > span:first-child {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}
.chapter h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 5px;
}
.chapter p { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 10px; }
.status {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
}
.status.ready { background: rgba(0,255,136,0.15); color: #00ff88; }
.status.pending { background: rgba(255,187,0,0.15); color: #ffbb00; }

/* ==================== BOOK CTA ==================== */
.book-section {
    background: radial-gradient(ellipse at center, var(--bg-tertiary) 0%, var(--bg-primary) 70%);
    padding: 100px 40px;
}
.book-cta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}
.book-cta-cover {
    max-width: 280px;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 80px var(--accent-glow);
}
.book-cta-content .badge {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.book-cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}
.book-cta-content p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 20px; }
.price {
    font-family: var(--font-display);
    margin-bottom: 20px;
}
.price-val {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
}
.formats {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.formats span {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}
.book-actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 40px 30px;
    position: relative;
}
.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 15px;
}
.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: 0.2s;
}
.footer-col a:hover { color: var(--accent); text-shadow: none; }

/* ==================== HUGH WIDGET ==================== */
.hugh-widget {
    position: fixed;
    bottom: 25px;
    right: calc(var(--sidebar-width) + 25px);
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4), 0 0 30px var(--accent-glow);
    transition: 0.3s;
}
.hugh-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(0,0,0,0.5), 0 0 50px var(--accent-glow);
}
.hugh-widget img { width: 100%; height: 100%; object-fit: cover; }
.hugh-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}
.hugh-widget:hover .hugh-tooltip { opacity: 1; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1279px) {
    .sidebar { display: none; }
    .main-wrapper { margin-left: 0; margin-right: 0; }
    .main-nav { left: 0; right: 0; }
    .hugh-widget { right: 25px; }
}

@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-visual { order: -1; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-meta { justify-content: center; }
    .book-cover { max-height: 50vh; }
    .preface-highlight { grid-template-columns: 1fr; }
    .mission-grid { grid-template-columns: 1fr; }
    .book-cta { grid-template-columns: 1fr; text-align: center; }
    .book-cta-visual { display: flex; justify-content: center; }
    .book-actions { justify-content: center; }
    .formats { justify-content: center; }
    .footer-container { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :root { font-size: 14px; }
    .section { padding: 60px 25px; }
    .hero { padding: 100px 25px 50px; }
    .nav-links { 
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px 30px;
        transition: 0.3s;
        border-left: 1px solid var(--border);
    }
    .nav-links.active { right: 0; }
    .nav-toggle { display: flex; }
    .language-selector { order: -1; }
    .specs-grid { grid-template-columns: repeat(3, 1fr); }
    .chapters-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 15px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); }
    .chapters-grid { grid-template-columns: 1fr; }
    .book-cta { gap: 30px; }
    .book-cta-cover { max-width: 200px; }
    .footer-links { grid-template-columns: 1fr; }
}
