:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #eab308;
    --info: #06b6d4;
    --purple: #8b5cf6;
    --body-bg: #0f172a;
    --body-color: #f1f5f9;
    --card-bg: rgba(30, 41, 59, 0.8);
    --border-color: rgba(71, 85, 105, 0.3);
    --glass-bg: rgba(15, 23, 42, 0.7);
}

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

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: var(--body-color);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.75rem;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.nav-link {
    color: #cbd5e1 !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

/* Language Switcher */
.dropdown-toggle::after {
    display: none;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow-reverse 8s ease-in-out infinite;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

@keyframes float-image {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-50px);
    }
}

@keyframes float-slow-reverse {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(50px);
    }
}

.min-vh-75 {
    min-height: 75vh;
    position: relative;
    z-index: 2;
}

/* Features Section */
.features-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    padding: 5rem 0;
}

.features-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 1.75rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2),
                0 0 1px var(--primary);
}

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

.feature-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.4s ease;
}

.feature-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #f1f5f9;
    position: relative;
    z-index: 2;
    letter-spacing: 0;
}

.feature-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

/* How Section */
.how-section {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    padding: 5rem 0;
}

.how-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
}

.step-card {
    text-align: center;
    transition: all 0.4s ease;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border-radius: 16px;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.step-card:hover .step-number {
    transform: scale(1.15) rotate(-10deg);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #f1f5f9;
    transition: color 0.3s ease;
    letter-spacing: 0;
}

.step-card p {
    color: #cbd5e1;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.step-card:hover h3 {
    color: var(--primary);
}

/* Connection line between steps */
@media (min-width: 992px) {
    .how-section .row {
        position: relative;
    }

    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 40px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 50%, transparent 100%);
        z-index: 0;
    }
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: 5rem 0;
}

.faq-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.faq-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    color: #f1f5f9;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
    z-index: 0;
}

.cta-section > div {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section .lead {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    color: #cbd5e1;
}

footer h6 {
    color: #f1f5f9;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer p {
    color: #94a3b8;
    line-height: 1.8;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

footer li {
    margin-bottom: 0.75rem;
}

footer hr {
    border-color: var(--border-color);
    margin: 2rem 0;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: 2px solid transparent;
    color: #fff;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #7c3aed 100%);
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-outline-secondary {
    color: #cbd5e1;
    border: 2px solid var(--border-color);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--secondary);
    color: #f1f5f9;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2);
}

.btn-lg {
    padding: 0.875rem 2.5rem;
    font-size: 1.1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #f1f5f9;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

.lead {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.text-muted {
    color: #94a3b8 !important;
}

.small {
    color: #94a3b8;
}

/* Dropdown Menu */
.dropdown-menu {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: #cbd5e1;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.dropdown-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }

    .navbar-collapse {
        margin-top: 1rem;
    }

    /* Mobile language switcher - dropdown select */
    .language-switcher {
        flex-direction: column;
        width: 100%;
        gap: 0.25rem;
    }

    .lang-btn {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem;
        border-radius: 6px;
    }

    /* Mobile language select styling */
    .language-select {
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid var(--border-color);
        color: #cbd5e1;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        font-weight: 500;
        font-size: 0.9rem;
        min-width: 150px;
    }

    .language-select:focus {
        background: rgba(99, 102, 241, 0.15);
        border-color: var(--primary);
        color: #f1f5f9;
        outline: none;
    }

    .language-select option {
        background: #1e293b;
        color: #cbd5e1;
    }

    /* Mobile hero - centered */
    .hero-section .row {
        flex-direction: column;
        text-align: center;
    }

    .hero-section .col-lg-6:first-child {
        order: 1;
    }

    .hero-section .col-lg-6:last-child {
        order: 2;
        margin-top: 2rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .d-flex {
        flex-direction: column;
        align-items: center;
    }

    .hero-section .btn-lg {
        width: 100%;
        max-width: 300px;
    }

    h2 {
        font-size: 1.75rem !important;
    }
}

/* ========================================
   App Mockup Styles
   ======================================== */

/* Browser-like mockup container */
.app-mockup {
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 1px rgba(99, 102, 241, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.app-mockup-hero {
    max-width: 480px;
    margin: 0 auto;
    animation: float-image 4s ease-in-out infinite;
}

.mockup-titlebar {
    background: #1e293b;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #eab308; }
.mockup-dot.green { background: #22c55e; }

.mockup-url {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 6px;
    padding: 3px 12px;
    font-size: 0.65rem;
    color: #64748b;
    margin-left: 10px;
    flex: 1;
    text-align: center;
}

.mockup-content {
    padding: 16px;
}

/* Mockup nav bar */
.mockup-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    margin-bottom: 12px;
}

.mockup-nav-brand {
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mockup-nav-links {
    display: flex;
    gap: 8px;
}

.mockup-nav-link {
    font-size: 0.55rem;
    color: #64748b;
    text-decoration: none;
}

/* Stat cards inside mockup */
.mockup-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.mockup-stat-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.mockup-stat-number {
    font-size: 1.1rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.mockup-stat-number.green { color: var(--success); }
.mockup-stat-number.yellow { color: var(--warning); }
.mockup-stat-number.purple { color: var(--purple); }
.mockup-stat-number.cyan { color: var(--info); }

.mockup-stat-label {
    font-size: 0.5rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Book covers in mockup */
.mockup-books {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mockup-book-cover {
    width: 52px;
    height: 72px;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.mockup-book-cover::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.mockup-book-cover.c1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.mockup-book-cover.c2 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.mockup-book-cover.c3 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.mockup-book-cover.c4 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.mockup-book-cover.c5 { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.mockup-book-cover.c6 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }

.mockup-book-title {
    font-size: 0.35rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 4px;
    line-height: 1.2;
    font-weight: 600;
}

/* Progress bar in mockup */
.mockup-progress {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
}

.mockup-progress-label {
    font-size: 0.55rem;
    color: #94a3b8;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.mockup-progress-bar {
    height: 6px;
    background: rgba(71, 85, 105, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

.mockup-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 1s ease;
}

/* Section heading for mockup label */
.mockup-section-label {
    font-size: 0.6rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ========================================
   App Preview Section
   ======================================== */

.app-preview-section {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.app-preview-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.app-preview-section .lead {
    color: #94a3b8;
    margin-bottom: 3rem;
}

/* Preview tabs */
.preview-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.preview-tab {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.preview-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.preview-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* Preview panels */
.preview-panel {
    display: none;
    animation: fadeInPanel 0.4s ease-out;
}

.preview-panel.active {
    display: block;
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.preview-row {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.preview-row.reverse {
    flex-direction: row-reverse;
}

.preview-text {
    flex: 1;
}

.preview-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.preview-text p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.preview-text .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.preview-text .feature-list li {
    color: #cbd5e1;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-text .feature-list li i {
    color: var(--success);
    font-size: 0.85rem;
}

.preview-mockup {
    flex: 1;
    max-width: 520px;
}

.preview-mockup .app-mockup {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(99, 102, 241, 0.15);
}

/* Library mockup specific */
.mockup-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mockup-filter-btn {
    font-size: 0.5rem;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: #64748b;
}

.mockup-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.mockup-book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.mockup-book-item {
    text-align: center;
}

.mockup-book-item .mockup-book-cover {
    width: 100%;
    height: 80px;
}

.mockup-book-meta {
    font-size: 0.4rem;
    color: #94a3b8;
    margin-top: 4px;
    line-height: 1.3;
}

.mockup-book-meta strong {
    color: #cbd5e1;
    display: block;
    font-size: 0.45rem;
}

.mockup-badge {
    font-size: 0.35rem;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
    display: inline-block;
    margin-top: 2px;
}

.mockup-badge.reading { background: rgba(234, 179, 8, 0.2); color: var(--warning); }
.mockup-badge.finished { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.mockup-badge.owned { background: rgba(139, 92, 246, 0.2); color: var(--purple); }
.mockup-badge.want { background: rgba(6, 182, 212, 0.2); color: var(--info); }

/* Search mockup specific */
.mockup-search-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.mockup-search-input {
    flex: 1;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.55rem;
    color: #cbd5e1;
}

.mockup-search-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.55rem;
    color: #fff;
    font-weight: 600;
}

.mockup-search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-search-result {
    display: flex;
    gap: 10px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    align-items: center;
}

.mockup-search-result .mockup-book-cover {
    width: 36px;
    height: 52px;
    flex-shrink: 0;
}

.mockup-result-info {
    flex: 1;
    min-width: 0;
}

.mockup-result-title {
    font-size: 0.6rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 2px;
}

.mockup-result-author {
    font-size: 0.5rem;
    color: #64748b;
    margin-bottom: 3px;
}

.mockup-result-meta {
    font-size: 0.45rem;
    color: #475569;
}

.mockup-add-btn {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.45rem;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

/* Level/gamification mockup */
.mockup-level {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mockup-level-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.mockup-level-info {
    flex: 1;
}

.mockup-level-name {
    font-size: 0.55rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 3px;
}

.mockup-level-xp {
    font-size: 0.45rem;
    color: #64748b;
}

/* Streak badge in mockup */
.mockup-streak {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(234, 179, 8, 0.15);
    color: var(--warning);
    font-size: 0.5rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Responsive for mockups */
@media (max-width: 992px) {
    .preview-row,
    .preview-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .preview-mockup {
        max-width: 100%;
        width: 100%;
    }

    .preview-text {
        text-align: center;
    }

    .preview-text .feature-list li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .app-mockup-hero {
        max-width: 360px;
    }

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

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

    .preview-tabs {
        gap: 0.35rem;
    }

    .preview-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .app-preview-section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .mockup-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .mockup-books {
        flex-wrap: wrap;
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .feature-card {
        animation: slideUp 0.6s ease-out backwards;
    }

    .step-card {
        animation: slideUp 0.6s ease-out backwards;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection styling */
::selection {
    background: var(--primary);
    color: #fff;
}

::-moz-selection {
    background: var(--primary);
    color: #fff;
}

/* Enhanced scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
    }
}

/* Hover glow effect for cards */
.feature-card {
    position: relative;
}

/* Stagger animation for feature cards */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
.feature-card:nth-child(7) { animation-delay: 0.7s; }
.feature-card:nth-child(8) { animation-delay: 0.8s; }

/* Stagger animation for step cards */
.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }

/* Active navigation styling */
.nav-link.active {
    color: var(--primary) !important;
}

/* Better focus states for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.navbar-brand {
    background-size: 200% 200%;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 1rem 1rem;
    pointer-events: none;
    animation: cookieSlideUp 0.4s ease-out;
}

.cookie-banner-inner {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.cookie-text {
    flex: 1;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

.cookie-text i {
    color: var(--primary);
    margin-right: 0.4rem;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    margin-left: 0.3rem;
}

.cookie-text a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.cookie-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .cookie-banner {
        padding: 0 0.5rem 0.5rem;
    }
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 0.85rem 1rem;
        gap: 0.75rem;
        border-radius: 12px;
    }
    .cookie-text {
        font-size: 0.8rem;
    }
    .cookie-btn {
        width: 100%;
        padding: 0.6rem;
    }
}
