/* ============================================================
   Bookora Premium — Design System
   Navy #1d2b4f | Coral #ec8a6a | Cream #f6efe7
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #1d2b4f;
    --navy-light: #2a3d6b;
    --navy-dark: #141d36;
    --coral: #ec8a6a;
    --coral-light: #f0a685;
    --coral-dark: #d4704e;
    --cream: #f6efe7;
    --cream-dark: #e8ddd3;
    --gold: #d4a853;
    --text-dark: #1a1a2e;
    --text-body: #374151;
    --text-muted: #6b7280;
    --white: #ffffff;
    --success: #2e7d32;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(29,43,79,0.08);
    --shadow-md: 0 8px 24px rgba(29,43,79,0.12);
    --shadow-lg: 0 20px 60px rgba(29,43,79,0.16);
    --shadow-xl: 0 32px 80px rgba(29,43,79,0.22);
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --ease-out-expo:  cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
    --transition: 0.28s var(--ease-out-quart);
    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-body); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

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

/* Typography */
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; }
p { line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}
.btn-primary {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}
.btn-primary:hover { background: var(--coral-dark); border-color: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(236,138,106,0.4); }
.btn-primary:active { transform: translateY(0) scale(0.97); box-shadow: none; transition-duration: 0.1s; }
.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
    transition: background 0.28s var(--ease-out-quart), color 0.28s var(--ease-out-quart),
                border-color 0.28s var(--ease-out-quart), transform 0.28s var(--ease-out-quart);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.w-100 { width: 100%; justify-content: center; }

/* Section header */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); color: var(--navy); margin-bottom: 1rem; }
.section-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Logo */
.logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--navy); letter-spacing: -0.5px; }
.logo span { color: var(--coral); }
.navbar:not(.scrolled) .logo { color: var(--white); }
.navbar:not(.scrolled) .nav-links > a { color: rgba(246,239,231,0.85); }
.navbar:not(.scrolled) .nav-links > a:hover { color: var(--coral); }
.navbar:not(.scrolled) .nav-search-btn { color: rgba(246,239,231,0.85); }
.navbar:not(.scrolled) .cart-icon { color: rgba(246,239,231,0.85); }
.navbar:not(.scrolled) .mobile-menu-toggle span { background: var(--white); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-label .req { color: var(--coral); }
.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--cream-dark);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(236,138,106,0.15); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; }
.form-checkbox input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--coral); cursor: pointer; }
.form-checkbox label { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.form-checkbox label a { color: var(--coral); text-decoration: underline; }

/* ============================================================ NAVBAR ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
    background: transparent;
}
.navbar.scrolled { background: rgba(246,239,231,0.95); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a { font-size: 0.9rem; font-weight: 500; color: var(--navy); transition: color 0.2s; }
.nav-links > a:hover { color: var(--coral); }
.nav-actions { display: flex; align-items: center; gap: 16px; margin-left: 8px; }
.nav-search-btn { display: flex; align-items: center; color: var(--navy); padding: 6px; border-radius: 6px; transition: color 0.2s, background 0.2s; }
.nav-search-btn:hover { color: var(--coral); background: rgba(236,138,106,0.1); }
.cart-icon { position: relative; display: flex; align-items: center; color: var(--navy); padding: 6px; border-radius: 6px; transition: color 0.2s; }
.cart-icon:hover { color: var(--coral); }
.cart-badge { position: absolute; top: 0; right: 0; background: var(--coral); color: var(--white); font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transform: translate(4px, -4px); transition: transform 0.2s; }
.cart-badge.bump { animation: cartBump 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes cartBump { 0%,100%{transform:translate(4px,-4px) scale(1)} 50%{transform:translate(4px,-4px) scale(1.5)} }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav search bar */
.nav-search-bar { display: none; padding: 12px 0; background: var(--white); border-top: 1px solid var(--cream-dark); box-shadow: var(--shadow-md); }
.nav-search-bar.open { display: block; }
.nav-search-bar .container { display: flex; gap: 12px; align-items: center; }
.nav-search-bar input { flex: 1; padding: 10px 16px; border: 2px solid var(--cream-dark); border-radius: 8px; font-size: 1rem; font-family: var(--font-body); color: var(--text-dark); }
.nav-search-bar input:focus { outline: none; border-color: var(--coral); }
#search-close-btn { display: flex; align-items: center; color: var(--text-muted); padding: 8px; border-radius: 6px; }
#search-close-btn:hover { color: var(--coral); }

/* ============================================================ HERO ============================================================ */
.hero {
    min-height: 100vh;
    background: var(--navy);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

/* Subtle gradient overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(236,138,106,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(212,168,83,0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Book spines */
.hero-spines { position: absolute; inset: 0; pointer-events: none; }
.spine {
    position: absolute;
    width: var(--w, 44px);
    height: var(--h, 220px);
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.02) 0%,
        var(--c, #2a5f3f) 8%,
        color-mix(in srgb, var(--c, #2a5f3f) 75%, #ffffff) 50%,
        var(--c, #2a5f3f) 92%,
        rgba(0,0,0,0.3) 100%
    );
    border-radius: 3px 1px 1px 3px;
    transform: rotate(var(--r, 0deg));
    opacity: 0.22;
    box-shadow: 4px 4px 20px rgba(0,0,0,0.4), inset -2px 0 4px rgba(0,0,0,0.2);
}

/* ── Opening-book background animation ─────────────────────────── */
.hero-open-books { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hob {
    position: absolute;
    background: linear-gradient(to right, rgba(160,140,120,0.35) 0%, rgba(246,239,231,0.45) 10%, rgba(246,239,231,0.45) 100%);
    border-radius: 2px 6px 6px 2px;
    box-shadow: 1px 2px 12px rgba(0,0,0,0.12);
}
.hob::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px 6px 6px 2px;
    transform-origin: left center;
    backface-visibility: hidden;
    animation: hob-open var(--dur, 9s) ease-in-out var(--delay, 0s) infinite;
}
.hob-1 { width: 84px; height: 118px; top: 16%; left: 11%; opacity: 0.24; --delay: 0s; --dur: 7s; }
.hob-1::after { background: linear-gradient(150deg, #ec8a6a, #c4593a); }
.hob-2 { width: 70px; height: 100px; top: 58%; left: 27%; opacity: 0.20; --delay: 2.2s; --dur: 9s; }
.hob-2::after { background: linear-gradient(150deg, #3a5a7a, #1d2f44); }
.hob-3 { width: 96px; height: 136px; top: 12%; right: 20%; opacity: 0.22; --delay: 4.5s; --dur: 7.5s; }
.hob-3::after { background: linear-gradient(150deg, #7b5ea0, #4a3065); }
.hob-4 { width: 76px; height: 108px; top: 62%; right: 13%; opacity: 0.24; --delay: 1s; --dur: 8.5s; }
.hob-4::after { background: linear-gradient(150deg, #d4a853, #a8792a); }
.hob-5 { width: 66px; height: 94px; top: 36%; left: 44%; opacity: 0.17; --delay: 3.5s; --dur: 10s; }
.hob-5::after { background: linear-gradient(150deg, #2e6847, #1e4530); }
@keyframes hob-open {
    0%,   6% { transform: perspective(200px) rotateY(0deg); }
    38%, 64% { transform: perspective(200px) rotateY(-165deg); }
    96%,100% { transform: perspective(200px) rotateY(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hob::after { animation: none; transform: perspective(200px) rotateY(-82deg); }
}
@media (max-width: 768px) { .hero-open-books { display: none; } }

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 24px 100px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--coral); margin-bottom: 1.5rem; }
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-title em { color: var(--coral); font-style: italic; }
.hero-tagline { font-size: 1.1rem; color: rgba(246,239,231,0.8); max-width: 480px; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 2rem; }
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.4); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-trust span { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: rgba(246,239,231,0.7); }
.hero-trust svg { color: var(--coral); flex-shrink: 0; }

/* Hero visual - 3D book stack */
.hero-visual { display: flex; justify-content: center; align-items: center; perspective: 1200px; }
.hero-books-3d { position: relative; width: 260px; height: 360px; }
.hb-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: perspective(900px) scale(0.88) translateY(24px) rotateY(-6deg);
    transition: opacity 0.55s var(--ease-out-quart),
                transform 0.65s var(--ease-out-expo);
    pointer-events: none;
    z-index: 1;
    will-change: transform, opacity;
}
.hb-card.active {
    opacity: 1;
    transform: perspective(900px) scale(1) translateY(0) rotateY(0deg);
    pointer-events: auto;
    z-index: 2;
}
.hb-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hb-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    padding: 20px;
    line-height: 1.4;
}
.hb-card-back .hb-cover { background: linear-gradient(135deg, #6b4c8a, #4a3065); }
.hb-badge { position: absolute; top: 12px; right: 12px; background: var(--gold); color: var(--navy); font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; box-shadow: var(--shadow-sm); }

/* Hero scroll hint */
.hero-scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(246,239,231,0.5); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; z-index: 1; }
.scroll-arrow { width: 20px; height: 30px; border: 2px solid rgba(246,239,231,0.3); border-radius: 10px; position: relative; }
.scroll-arrow::after { content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 3px; height: 8px; background: rgba(246,239,231,0.5); border-radius: 2px; animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0%,100%{opacity:0;transform:translateX(-50%) translateY(0)} 50%{opacity:1;transform:translateX(-50%) translateY(8px)} }

/* ============================================================ STATS STRIP ============================================================ */
.stats-strip { background: var(--white); padding: 56px 0; border-top: 1px solid var(--cream-dark); border-bottom: 1px solid var(--cream-dark); }
.stats-grid { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat-item { text-align: center; padding: 16px 48px; }
.stat-number { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -1px; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.stat-divider { width: 1px; height: 60px; background: var(--cream-dark); flex-shrink: 0; transform-origin: center; will-change: transform; }

/* ============================================================ EDITORIAL SECTION ============================================================ */
.editorial-section { background: var(--navy); padding: 100px 0; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.editorial-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); margin-bottom: 1.5rem; }
.editorial-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--white); margin-bottom: 1.5rem; line-height: 1.2; }
.editorial-body { font-size: 1.05rem; color: rgba(246,239,231,0.75); line-height: 1.8; margin-bottom: 2rem; }
.editorial-section .btn-primary { background: var(--coral); border-color: var(--coral); }

.editorial-book-showcase { position: relative; }
.showcase-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.showcase-card img { width: 100%; height: auto; display: block; }
.showcase-tag { position: absolute; top: 16px; left: 16px; background: var(--gold); color: var(--navy); font-size: 0.75rem; font-weight: 700; padding: 6px 14px; border-radius: 6px; }
.showcase-quote { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 24px; margin-top: 20px; position: relative; }
.quote-icon { width: 40px; height: 30px; color: var(--coral); margin-bottom: 12px; }
.showcase-quote p { font-family: var(--font-display); font-style: italic; color: rgba(246,239,231,0.9); font-size: 1rem; line-height: 1.7; margin-bottom: 8px; }
.showcase-quote cite { font-size: 0.8rem; color: var(--coral); font-style: normal; font-weight: 600; }

/* ============================================================ BOOKS SECTION ============================================================ */
.books-section { padding: 100px 0; background: var(--cream); }
.books-toolbar { display: flex; align-items: center; gap: 24px; margin-bottom: 2.5rem; flex-wrap: wrap; }
.books-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; background: var(--white); border: 2px solid var(--cream-dark); border-radius: 8px; padding: 0 16px; }
.books-search svg { color: var(--text-muted); flex-shrink: 0; }
.books-search input { flex: 1; padding: 12px 0; border: none; font-family: var(--font-body); font-size: 0.95rem; color: var(--text-dark); background: transparent; }
.books-search input:focus { outline: none; }
.books-filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tag { padding: 8px 18px; border: 2px solid var(--cream-dark); border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); background: var(--white); transition: var(--transition), transform 0.2s var(--ease-out-quart); cursor: pointer; }
.filter-tag:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-1px); }
.filter-tag:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.filter-tag.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
/* Category-grouped books layout (index.html) */
.book-cat-group { margin-bottom: 52px; }
.book-cat-group:last-child { margin-bottom: 0; }
.book-cat-heading {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cream-dark);
    letter-spacing: 0.01em;
}
.book-cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.books-no-results { text-align: center; padding: 3rem; color: var(--text-muted); }
.books-no-results button { color: var(--coral); text-decoration: underline; cursor: pointer; border: none; background: none; font-family: var(--font-body); }

.book-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) and (pointer: fine) {
    .book-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(29,43,79,0.18); }
}
@media (prefers-reduced-motion: reduce) {
    .book-card:hover { transform: none; }
}
.book-card-featured { border: 2px solid var(--gold); }
.book-card-cover { position: relative; overflow: hidden; background: var(--cream); aspect-ratio: 3/4; }
.book-card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 0.35s var(--ease-out-quart); }
.book-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform 0.45s var(--ease-out-quart);
    pointer-events: none;
    z-index: 3;
}
@media (hover: hover) and (pointer: fine) {
    .book-card:hover .book-card-cover img { transform: scale(1.05); }
    .book-card:hover .book-card-cover::after { transform: translateX(110%); }
}
.book-badge { position: absolute; top: 12px; left: 12px; background: var(--coral); color: var(--white); font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 5px; z-index: 2; }
.book-badge-gold { background: var(--gold); color: var(--navy); }
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, background 0.2s;
}
.wishlist-btn svg { width: 16px; height: 16px; color: var(--text-muted); transition: color 0.2s, fill 0.2s; }
@media (hover: hover) and (pointer: fine) {
    .wishlist-btn:hover { transform: scale(1.15); }
}
.wishlist-btn.active svg { fill: var(--coral); color: var(--coral); }

.preview-btn {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    background: rgba(29,43,79,0.9);
    color: var(--white);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 2;
}
.preview-btn svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) {
    .book-card:hover .preview-btn { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.book-card-body { padding: 20px 22px; }
.book-card-cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); margin-bottom: 6px; }
.book-card-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.book-card-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 10px; }
.book-card-stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 14px; }
.book-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.book-card-footer .btn { flex-shrink: 0; }
.book-pricing { display: flex; flex-direction: column; }
.book-price-old { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; }
.book-price { font-size: 1.2rem; font-weight: 700; color: var(--navy); }

/* Recommended strip */
.recommended-strip { background: var(--white); border: 1px solid var(--cream-dark); border-radius: var(--radius); padding: 24px 32px; margin-top: 2.5rem; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.recommended-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); white-space: nowrap; }
.recommended-strip p { flex: 1; color: var(--text-body); font-size: 0.95rem; }

/* ============================================================ WHY BOOKORA ============================================================ */
.why-section { background: var(--white); padding: 100px 0; }
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 0; }
.why-card {
    padding: 28px 22px 24px;
    border-radius: var(--radius-lg);
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    position: relative;
    transition: transform 0.35s var(--ease-out-quart), box-shadow 0.35s var(--ease-out-quart);
}
@media (hover: hover) and (pointer: fine) {
    .why-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 56px rgba(29,43,79,0.18);
    }
}
.why-icon { font-size: 1.75rem; margin-bottom: 14px; display: block; }
.why-card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.why-card-body { font-size: 0.855rem; color: var(--text-muted); line-height: 1.75; }
@media (max-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (max-width: 400px) { .why-grid { grid-template-columns: 1fr; } }

/* Trust strip (checkout / konyvek inline) */
.trust-strip { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--cream-dark); }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); }
.trust-item svg { width: 15px; height: 15px; color: var(--coral); flex-shrink: 0; }

/* ============================================================ CATEGORIES ============================================================ */
.categories-section { background: var(--white); padding: 100px 0; }
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 200px); gap: 20px; }
.cat-card-large { grid-column: 1 / 3; }
.cat-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: transform 0.35s var(--ease-out-quart), box-shadow 0.35s var(--ease-out-quart);
}
@media (hover: hover) and (pointer: fine) {
    .cat-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 20px 56px rgba(29,43,79,0.22); }
}
.cat-card-bg { position: absolute; inset: 0; background: var(--cat-color, var(--navy)); opacity: 0.9; transition: opacity 0.3s; }
@media (hover: hover) and (pointer: fine) {
    .cat-card:hover .cat-card-bg { opacity: 1; }
}
.cat-card-icon { position: relative; z-index: 1; font-size: 2rem; margin-bottom: 8px; }
.cat-card-content { position: relative; z-index: 1; }
.cat-card-content h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.cat-card-large .cat-card-content h3 { font-size: 1.3rem; }
.cat-card-content p { font-size: 0.8rem; color: rgba(255,255,255,0.75); line-height: 1.4; margin-bottom: 8px; }
.cat-available { display: inline-block; background: rgba(255,255,255,0.2); color: var(--white); font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.cat-coming { display: inline-block; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.cat-card-link { position: absolute; inset: 0; z-index: 2; font-size: 0; color: transparent; }

/* ============================================================ TESTIMONIALS ============================================================ */
.testimonials-section { background: var(--cream); padding: 100px 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
    .review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
}
.review-stars { color: var(--gold); font-size: 1rem; letter-spacing: 3px; margin-bottom: 16px; }
.review-text { font-size: 0.95rem; color: var(--text-body); line-height: 1.75; font-style: italic; margin-bottom: 20px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--av-color, var(--coral)); color: var(--white); font-size: 1.1rem; font-weight: 700; font-family: var(--font-display); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.review-author strong { display: block; font-size: 0.9rem; color: var(--navy); }
.review-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================ NEWSLETTER ============================================================ */
.newsletter-section { background: var(--navy); padding: 100px 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.newsletter-eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); margin-bottom: 1rem; }
.newsletter-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--white); margin-bottom: 1.25rem; line-height: 1.2; }
.newsletter-body { color: rgba(246,239,231,0.75); line-height: 1.8; margin-bottom: 1.5rem; }
.newsletter-perks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.newsletter-perks li { display: flex; align-items: center; gap: 10px; color: rgba(246,239,231,0.85); font-size: 0.95rem; }
.newsletter-perks svg { width: 16px; height: 16px; color: var(--coral); flex-shrink: 0; }
.newsletter-form { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 32px; }
.newsletter-form .form-label { color: rgba(246,239,231,0.8); }
.newsletter-form .form-input { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); color: var(--white); }
.newsletter-form .form-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form .form-input:focus { border-color: var(--coral); background: rgba(255,255,255,0.12); }
.newsletter-form .form-checkbox label { color: rgba(246,239,231,0.65); }
.newsletter-form .form-checkbox label a { color: var(--coral-light); }
.newsletter-submit { position: relative; }
.newsletter-privacy { text-align: center; font-size: 0.78rem; color: rgba(246,239,231,0.4); margin-top: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ FAQ ============================================================ */
.faq-section { background: var(--cream); padding: 100px 0; }
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--cream-dark); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--coral); }
.faq-question[aria-expanded="true"] { color: var(--coral); }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.3s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(-180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-answer p { padding: 0 24px 20px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }

/* ============================================================ CONTACT ============================================================ */
.contact-section { background: var(--white); padding: 100px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-left .section-eyebrow { display: block; margin-bottom: 0.5rem; }
.contact-left .section-title { margin-bottom: 1rem; }
.contact-left p { color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-info-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-body); }
.contact-info-item svg { width: 18px; height: 18px; color: var(--coral); flex-shrink: 0; }
.contact-info-item a { color: var(--coral); text-decoration: underline; }

/* ============================================================ FOOTER ============================================================ */
.footer { background: var(--navy-dark); color: rgba(246,239,231,0.7); padding: 80px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 260px; }
.footer-tagline { color: rgba(246,239,231,0.4); font-size: 0.8rem; margin-top: 8px; font-style: italic; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { font-size: 0.875rem; color: rgba(246,239,231,0.6); transition: color 0.2s; }
.footer-col li a:hover { color: var(--coral); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.8rem; }

/* ============================================================ MODALS ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(29,43,79,0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 440px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}
@keyframes slideUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background 0.2s, color 0.2s;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { background: var(--cream); color: var(--navy); }
.modal-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(236,138,106,0.12); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.modal-icon svg { width: 28px; height: 28px; color: var(--coral); }
.modal-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); margin-bottom: 8px; }
.modal-body { color: var(--text-muted); line-height: 1.65; margin-bottom: 24px; }
.modal-btn-ok { margin-top: 8px; }

/* Book preview modal */
.modal-preview { max-width: 600px; text-align: left; padding: 0; overflow: hidden; }
.preview-content { display: grid; grid-template-columns: 1fr 1.5fr; }
.preview-cover { aspect-ratio: 3/4; overflow: hidden; background: var(--cream); }
.preview-cover img { width: 100%; height: 100%; object-fit: cover; }
.preview-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.preview-cat { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral); }
.preview-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); line-height: 1.25; }
.preview-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; font-style: italic; flex: 1; border-left: 3px solid var(--coral); padding-left: 14px; }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.preview-pricing { display: flex; flex-direction: column; }
.preview-pricing .book-price-old { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; }
.preview-pricing .book-price { font-size: 1.3rem; font-weight: 700; color: var(--navy); }

/* ============================================================ EXIT INTENT POPUP ============================================================ */
.exit-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(29,43,79,0.75);
    backdrop-filter: blur(6px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}
.exit-popup-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    position: relative;
    text-align: center;
    animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.exit-popup-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: background 0.2s; }
.exit-popup-close svg { width: 16px; height: 16px; }
.exit-popup-close:hover { background: var(--cream-dark); }
.exit-popup-icon { font-size: 3rem; margin-bottom: 16px; display: block; }
.exit-popup-card h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); margin-bottom: 12px; }
.exit-popup-card p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.exit-popup-form { display: flex; flex-direction: column; gap: 10px; }
.exit-popup-form input[type="email"] { padding: 12px 16px; border: 2px solid var(--cream-dark); border-radius: 8px; font-family: var(--font-body); font-size: 1rem; background: var(--white); }
.exit-popup-form input[type="email"]:focus { outline: none; border-color: var(--coral); }
.exit-popup-privacy { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }
.exit-popup-privacy a { color: var(--coral); }

/* ============================================================ PAGE TRANSITIONS ============================================================ */
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pageFadeOut { to { opacity: 0; transform: translateY(-10px); } }
body { animation: pageFadeIn 0.4s ease; }
.page-leaving { animation: pageFadeOut 0.28s ease forwards !important; pointer-events: none; }

/* ============================================================ TOAST ============================================================ */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
    background: var(--navy);
    color: var(--white);
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 320px;
    animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.toast.toast-success { border-left: 4px solid var(--coral); }
.toast.toast-error { border-left: 4px solid #e74c3c; }
.toast.toast-out { animation: toastOut 0.3s ease forwards; }
.toast-icon { width: 18px; height: 18px; flex-shrink: 0; }
@keyframes toastIn { from{opacity:0;transform:translateX(60px)} to{opacity:1;transform:translateX(0)} }
@keyframes toastOut { from{opacity:1;transform:translateX(0)} to{opacity:0;transform:translateX(60px)} }

/* ============================================================ UTILITIES ============================================================ */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

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

/* ============================================================ RESPONSIVE ============================================================ */
@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .cats-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .cat-card-large { grid-column: 1 / 3; }
    .cat-card { min-height: 160px; }
    .book-cat-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--cream); flex-direction: column; justify-content: center; align-items: center; gap: 32px; z-index: 999; }
    .nav-links.active { display: flex; }
    .nav-links > a { font-size: 1.3rem; }
    .nav-actions { margin: 0; }
    .mobile-menu-toggle { display: flex; z-index: 1000; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; padding: 40px 24px 80px; }
    .hero-visual { display: none; }
    .hero-cta { justify-content: center; }
    .hero-trust { justify-content: center; }
    .stats-grid { flex-direction: column; gap: 0; }
    .stat-item { padding: 24px; }
    .stat-divider { width: 80px; height: 1px; }
    .editorial-grid { grid-template-columns: 1fr; gap: 40px; }
    .books-grid { grid-template-columns: 1fr; }
    .book-cat-cards { grid-template-columns: 1fr; }
    .cats-grid { grid-template-columns: 1fr; }
    .cat-card-large { grid-column: auto; }
    .cats-grid { grid-template-rows: auto; }
    .cat-card { min-height: 140px; }
    .reviews-grid { grid-template-columns: 1fr; }
    .newsletter-inner { grid-template-columns: 1fr; gap: 40px; }
    .contact-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
    .books-toolbar { flex-direction: column; align-items: stretch; }
    .recommended-strip { flex-direction: column; text-align: center; }
    .modal-preview { max-width: 95vw; }
    .preview-content { grid-template-columns: 1fr; }
    .preview-cover { aspect-ratio: 4/3; }
    .exit-popup-card { padding: 36px 24px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.4rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .section-title { font-size: 1.6rem; }
    .editorial-title { font-size: 1.8rem; }
    .newsletter-title { font-size: 1.8rem; }
    .stats-grid { flex-direction: row; flex-wrap: wrap; }
    .stat-item { flex: 1; min-width: 140px; padding: 20px 12px; }
    .stat-divider { display: none; }
}

/* ── Signature animations ──────────────────────────────────────── */

/* Hero line-by-line reveal */
.hero-title .h-line {
    display: block;
    overflow: hidden;
    line-height: 1.15;
}
.hero-title .h-inner {
    display: block;
    will-change: transform;
}

/* shine-overlay removed — JS tilt replaced by CSS hover */

/* Ripple on CTA buttons */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255,255,255,0.45);
    transform: translate(-50%, -50%) scale(0);
}
.btn-primary { overflow: hidden; position: relative; }

/* Magnetic CTA — smooth spring-back */
@media (hover: hover) and (pointer: fine) {
    .btn-primary { transition: transform 0.5s var(--ease-out-expo), box-shadow 0.3s ease; }
}

/* Hero CTA primary — subtle breathing glow */
@keyframes hero-btn-glow {
    0%, 100% { box-shadow: 0 4px 24px rgba(233,116,81,0.32), 0 1px 4px rgba(0,0,0,0.12); }
    50%       { box-shadow: 0 6px 40px rgba(233,116,81,0.58), 0 1px 4px rgba(0,0,0,0.12); }
}
.hero-cta .btn-primary {
    animation: hero-btn-glow 3.2s ease-in-out infinite;
}
.hero-cta .btn-primary:hover,
.hero-cta .btn-primary:focus {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .hero-cta .btn-primary { animation: none; }
}

/* HOB stronger opacity on desktop for depth */
@media (min-width: 769px) {
    .hob-1 { opacity: 0.32; }
    .hob-3 { opacity: 0.30; }
    .hob-4 { opacity: 0.32; }
}

/* Stats progress bar */
.stat-bar {
    height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 1px;
    margin-top: 10px;
    overflow: hidden;
}
.stat-bar-fill {
    height: 100%;
    background: var(--coral);
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform;
    border-radius: 1px;
}

/* Why-grid cursor spotlight */
.why-grid { --mx: 50%; --my: 50%; }
.why-grid::before {
    content: '';
    position: absolute;
    inset: -80px;
    background: radial-gradient(380px circle at var(--mx) var(--my), rgba(233,116,81,0.08), transparent 68%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}
.why-grid[data-lit]::before { opacity: 1; }
.why-card { position: relative; z-index: 1; }

/* Mobile: strip expensive will-change layers to save GPU memory */
@media (max-width: 768px) {
    .h-inner, .et-i, .stat-bar-fill, .section-title, .editorial-title, .hb-card, .why-icon {
        will-change: auto;
    }
}

/* Editorial word split */
.et-w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.et-i { display: inline-block; will-change: transform; }

/* Deeper card tilt — GPU hint */
.book-card { isolation: isolate; }
.cat-card  { isolation: isolate; }

/* Scroll progress bar */
#scroll-prog {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--coral);
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

/* Why-card icon pop */
.why-icon { display: inline-block; will-change: transform; }

/* Back-to-top button */
#back-to-top {
    position: fixed;
    bottom: 32px; right: 28px;
    width: 46px; height: 46px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(29,43,79,0.32);
    opacity: 0;
    transform: translateY(18px) scale(0.88);
    transition: opacity 0.35s var(--ease-out-quart),
                transform 0.35s var(--ease-out-quart),
                background 0.2s ease;
    pointer-events: none;
    z-index: 999;
    cursor: pointer;
    border: none;
}
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
@media (hover: hover) and (pointer: fine) {
    #back-to-top:hover { background: var(--coral); transform: translateY(-3px) scale(1.06); }
}

/* Hero tagline word-split */
.tl-w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.tl-i { display: inline-block; will-change: transform; }

/* Review star units */
.s-u { display: inline-block; will-change: transform, opacity; }

/* Marquee category ticker */
.marquee-wrap {
    overflow: hidden;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 13px 0;
}
.marquee-track {
    display: flex;
    gap: 52px;
    white-space: nowrap;
    width: max-content;
    animation: marquee-scroll 28s linear infinite;
}
.marquee-track span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(246,239,231,0.45);
}
.marquee-track span:nth-child(8n+1),
.marquee-track span:nth-child(8n+5) { color: var(--coral); opacity: 0.85; }
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (hover: hover) and (pointer: fine) {
    .marquee-wrap:hover .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation-play-state: paused; }
}

/* Ambient cursor glow */
#cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233,116,81,0.07) 0%, transparent 68%);
    pointer-events: none;
    transform: translate(-260px, -260px);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: transform;
}
body:has(:hover) #cursor-glow { opacity: 1; }

/* Navbar link underline wipe */
@media (hover: hover) and (pointer: fine) {
    .nav-links > a {
        position: relative;
    }
    .nav-links > a::after {
        content: '';
        position: absolute;
        bottom: -2px; left: 0;
        width: 100%; height: 1.5px;
        background: currentColor;
        transform-origin: right center;
        transform: scaleX(0);
        transition: transform 0.3s var(--ease-out-quart);
        opacity: 0.6;
    }
    .nav-links > a:hover::after,
    .nav-links > a.nav-active::after {
        transform-origin: left center;
        transform: scaleX(1);
    }
    .nav-links > a.nav-active {
        color: var(--coral);
    }
    .nav-links > a.nav-active::after {
        opacity: 1;
        background: var(--coral);
    }
}
