/* LibraDesk — Modern Homepage */
:root {
    --ld-brand: #00aff0;
    --ld-brand-dark: #0090c8;
    --ld-brand-light: #e8f7fd;
    --ld-dark: #0f172a;
    --ld-dark-soft: #1e293b;
    --ld-text: #334155;
    --ld-text-muted: #64748b;
    --ld-border: #e2e8f0;
    --ld-white: #ffffff;
    --ld-radius: 16px;
    --ld-radius-sm: 10px;
    --ld-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --ld-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --ld-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ld-home {
    float: left;
    width: 100%;
    font-family: var(--ld-font);
    color: var(--ld-text);
    -webkit-font-smoothing: antialiased;
}

.ld-home *,
.ld-home *::before,
.ld-home *::after {
    box-sizing: border-box;
}

/* ── Hero — Premium Modern ── */
.ld-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 55%, #f0f9ff 100%);
    padding: 72px 0 88px;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.ld-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ld-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.ld-hero-blob--1 {
    width: 420px;
    height: 420px;
    background: rgba(0, 175, 240, 0.18);
    top: -120px;
    left: -80px;
    animation: ld-blob-drift 14s ease-in-out infinite;
}

.ld-hero-blob--2 {
    width: 320px;
    height: 320px;
    background: rgba(0, 144, 200, 0.12);
    bottom: -60px;
    left: 30%;
    animation: ld-blob-drift 18s ease-in-out infinite reverse;
}

.ld-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 175, 240, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 175, 240, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 80%);
}

.ld-hero-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 42%;
    height: 100%;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
    overflow: hidden;
    opacity: 0.85;
}

.ld-hero-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ld-hero .container {
    position: relative;
    z-index: 2;
}

/* Entrance animations */
.ld-hero-animate {
    opacity: 0;
    animation: ld-fade-up 0.7s ease forwards;
    animation-delay: var(--ld-delay, 0s);
}

@keyframes ld-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ld-blob-drift {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(20px, 16px); }
}

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

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

/* Content */
.ld-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ld-white);
    border: 1px solid var(--ld-border);
    color: var(--ld-text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
    box-shadow: var(--ld-shadow);
}

.ld-hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    animation: ld-pulse-dot 2s ease infinite;
}

@keyframes ld-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
    50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12); }
}

.ld-hero-brand {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--ld-brand);
    margin: 0 0 12px;
    text-transform: uppercase;
}

.ld-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 800;
    color: var(--ld-dark);
    line-height: 1.12;
    margin: 0 0 20px;
    letter-spacing: -0.03em;
    max-width: 560px;
}

.ld-hero-highlight {
    display: block;
    background: linear-gradient(135deg, var(--ld-brand) 0%, #0077b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ld-hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: var(--ld-text-muted);
    line-height: 1.75;
    max-width: 520px;
    margin: 0 0 32px;
}

.ld-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.ld-btn-secondary {
    background: var(--ld-white);
    color: var(--ld-dark) !important;
    border: 2px solid var(--ld-border);
    box-shadow: var(--ld-shadow);
}

.ld-btn-secondary:hover {
    border-color: var(--ld-brand);
    color: var(--ld-brand) !important;
    transform: translateY(-2px);
    box-shadow: var(--ld-shadow-lg);
}

.ld-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--ld-border);
}

.ld-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ld-text);
}

.ld-hero-trust-item i {
    color: var(--ld-brand);
    font-size: 15px;
}

.ld-hero-social-proof {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ld-hero-avatars {
    display: flex;
    flex-shrink: 0;
}

.ld-hero-avatars img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ld-white);
    margin-left: -10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ld-hero-avatars img:first-child {
    margin-left: 0;
}

.ld-hero-proof-text {
    font-size: 13px;
    color: var(--ld-text-muted);
    line-height: 1.5;
}

.ld-hero-proof-text strong {
    display: block;
    color: var(--ld-dark);
    font-size: 14px;
}

.ld-hero-stars {
    display: block;
    margin-top: 2px;
    font-size: 12px;
}

.ld-hero-stars i {
    color: #f59e0b;
    font-size: 11px;
    margin-right: 1px;
}

/* Visual / mockup */
.ld-hero-visual {
    position: relative;
    text-align: center;
    padding: 20px 0 40px;
}

.ld-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 75%;
    background: radial-gradient(circle, rgba(0, 175, 240, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    animation: ld-pulse-glow 4s ease-in-out infinite;
}

@keyframes ld-pulse-glow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

.ld-hero-mockup {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 28px 56px rgba(15, 23, 42, 0.18));
    animation: ld-float-y 5s ease-in-out infinite;
}

.ld-hero-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ld-white);
    border: 1px solid var(--ld-border);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: var(--ld-shadow-lg);
    text-align: left;
    animation: ld-float-card 4s ease-in-out infinite;
}

.ld-hero-float small {
    display: block;
    font-size: 11px;
    color: var(--ld-text-muted);
    font-weight: 500;
    line-height: 1.2;
}

.ld-hero-float strong {
    display: block;
    font-size: 14px;
    color: var(--ld-dark);
    font-weight: 700;
    line-height: 1.3;
}

.ld-hero-float-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--ld-brand-light);
    color: var(--ld-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ld-hero-float-icon--green {
    background: #dcfce7;
    color: #16a34a;
}

.ld-hero-float-icon--purple {
    background: #ede9fe;
    color: #7c3aed;
}

.ld-hero-float--1 {
    top: 8%;
    left: -4%;
    animation-delay: 0s;
}

.ld-hero-float--2 {
    bottom: 28%;
    right: -6%;
    animation-delay: -1.5s;
}

.ld-hero-float--3 {
    bottom: 6%;
    left: 8%;
    animation-delay: -3s;
}

@media (prefers-reduced-motion: reduce) {
    .ld-hero-animate,
    .ld-hero-mockup,
    .ld-hero-float,
    .ld-hero-blob,
    .ld-hero-glow,
    .ld-hero-eyebrow-dot {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.ld-btn-primary {
    background: var(--ld-brand);
    color: var(--ld-white) !important;
    box-shadow: 0 8px 24px rgba(0, 175, 240, 0.35);
}

.ld-btn-primary:hover {
    background: var(--ld-brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 175, 240, 0.45);
}

.ld-btn-outline {
    background: transparent;
    color: var(--ld-white) !important;
    border-color: rgba(255, 255, 255, 0.35);
}

.ld-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}


/* ── Section shared ── */
.ld-section {
    padding: 80px 0;
}

.ld-section--gray {
    background: #f8fafc;
}

.ld-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.ld-section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ld-brand);
    margin-bottom: 12px;
}

.ld-section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--ld-dark);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ld-section-header p {
    font-size: 16px;
    color: var(--ld-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ── Stats ── */
.ld-stats {
    padding-top: 0;
    position: relative;
    z-index: 10;
}

.ld-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background: var(--ld-white);
    border-radius: var(--ld-radius);
    box-shadow: var(--ld-shadow-lg);
    padding: 40px 48px;
    border: 1px solid var(--ld-border);
}

.ld-stat-item {
    text-align: center;
    position: relative;
}

.ld-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--ld-border);
}

.ld-stat-item h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--ld-brand);
    margin: 0 0 6px;
    line-height: 1;
}

.ld-stat-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--ld-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Features ── */
.ld-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ld-feature-card {
    background: var(--ld-white);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    padding: 32px 28px;
    transition: all 0.3s ease;
    height: 100%;
}

.ld-feature-card:hover {
    border-color: var(--ld-brand);
    box-shadow: var(--ld-shadow-lg);
    transform: translateY(-4px);
}

.ld-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--ld-brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ld-brand);
    font-size: 22px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.ld-feature-card:hover .ld-feature-icon {
    background: var(--ld-brand);
    color: var(--ld-white);
}

.ld-feature-card h5 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ld-dark);
    margin: 0 0 10px;
}

.ld-feature-card h5 a {
    color: inherit;
    text-decoration: none;
}

.ld-feature-card h5 a:hover {
    color: var(--ld-brand);
}

.ld-feature-card p {
    font-size: 14px;
    color: var(--ld-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── How it works ── */
.ld-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: ld-step;
}

.ld-step {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.ld-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ld-brand);
    color: var(--ld-white);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(0, 175, 240, 0.3);
}

.ld-step h5 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ld-dark);
    margin: 0 0 10px;
}

.ld-step p {
    font-size: 14px;
    color: var(--ld-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── About ── */
.ld-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ld-about-image {
    position: relative;
}

.ld-about-image img {
    width: 100%;
    border-radius: var(--ld-radius);
    box-shadow: var(--ld-shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.ld-about-image::before {
    content: '';
    position: absolute;
    inset: -12px -12px 12px 12px;
    border: 2px solid var(--ld-brand);
    border-radius: var(--ld-radius);
    z-index: -1;
    opacity: 0.3;
}

.ld-about-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--ld-dark);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.ld-about-content h2 span {
    color: var(--ld-brand);
}

.ld-about-content .ld-about-tagline {
    font-size: 17px;
    font-weight: 600;
    color: var(--ld-dark-soft);
    margin-bottom: 20px;
    line-height: 1.5;
}

.ld-about-content p {
    font-size: 15px;
    color: var(--ld-text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.ld-check-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
}

.ld-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ld-text);
    margin-bottom: 12px;
}

.ld-check-list li i {
    color: var(--ld-brand);
    margin-top: 3px;
    flex-shrink: 0;
}

/* ── Why choose / trust ── */
.ld-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ld-trust-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--ld-white);
    border-radius: var(--ld-radius);
    border: 1px solid var(--ld-border);
    transition: all 0.3s ease;
}

.ld-trust-card:hover {
    box-shadow: var(--ld-shadow);
    border-color: var(--ld-brand-light);
}

.ld-trust-card i {
    font-size: 28px;
    color: var(--ld-brand);
    margin-bottom: 14px;
    display: block;
}

.ld-trust-card h6 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ld-dark);
    margin: 0 0 8px;
}

.ld-trust-card p {
    font-size: 13px;
    color: var(--ld-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Testimonials ── */
.ld-testimonials {
    background: linear-gradient(135deg, #0f2744 0%, #0c3d5c 100%);
    position: relative;
    overflow: hidden;
}

.ld-testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 500px 300px at 50% 0%, rgba(0, 175, 240, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.ld-testimonials .ld-section-header h2 {
    color: var(--ld-white);
}

.ld-testimonials .ld-section-header p {
    color: rgba(255, 255, 255, 0.65);
}

.ld-testimonials .ld-section-label {
    color: var(--ld-brand);
}

.ld-testimonial-wrap {
    position: relative;
    z-index: 2;
}

.ld-testimonials .ereaders-testimonial-slide-layer {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ld-radius);
    padding: 36px 32px;
    backdrop-filter: blur(8px);
    margin: 0 12px;
}

.ld-testimonials .ereaders-testimonial-slide-layer figure {
    margin-bottom: 16px;
}

.ld-testimonials .ereaders-testimonial-slide-layer figure img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ld-brand);
}

.ld-testimonials .ereaders-testimonial-text h4,
.ld-testimonials .ereaders-testimonial-text h4 a {
    color: var(--ld-white) !important;
    font-weight: 700;
    font-size: 16px;
}

.ld-testimonials .ereaders-testimonial-text span {
    color: var(--ld-brand) !important;
    font-size: 13px;
    font-weight: 600;
}

.ld-testimonials .ereaders-testimonial-text p {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 15px;
    line-height: 1.7;
    font-style: italic;
    margin-top: 12px;
}

.ld-testimonials .ereaders-testimonial-slide .slick-arrow {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

.ld-testimonials .ereaders-testimonial-slide .slick-arrow:hover {
    background: var(--ld-brand) !important;
}

/* ── CTA Banner ── */
.ld-cta {
    padding: 80px 0;
}

.ld-cta-box {
    background: linear-gradient(135deg, var(--ld-brand) 0%, var(--ld-brand-dark) 100%);
    border-radius: 24px;
    padding: 60px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 175, 240, 0.3);
}

.ld-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.ld-cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--ld-white);
    margin: 0 0 12px;
    position: relative;
}

.ld-cta-box p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.6;
    position: relative;
}

.ld-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    position: relative;
}

.ld-btn-white {
    background: var(--ld-white);
    color: var(--ld-brand) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ld-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.ld-btn-ghost {
    background: transparent;
    color: var(--ld-white) !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.ld-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--ld-white);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .ld-hero {
        padding: 56px 0 64px;
        min-height: auto;
        text-align: center;
    }

    .ld-hero-accent {
        width: 100%;
        height: 40%;
        clip-path: none;
        opacity: 0.35;
        top: auto;
        bottom: 0;
    }

    .ld-hero h1,
    .ld-hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .ld-hero-actions,
    .ld-hero-trust,
    .ld-hero-social-proof {
        justify-content: center;
    }

    .ld-hero-social-proof {
        flex-direction: column;
    }

    .ld-hero-visual {
        margin-top: 40px;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .ld-hero-float--1 { left: 0; top: 4%; }
    .ld-hero-float--2 { right: 0; }
    .ld-hero-float--3 { left: 4%; }

    .ld-stats-grid {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 32px;
    }

    .ld-stat-item:not(:last-child)::after {
        display: none;
    }

    .ld-features-grid,
    .ld-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .ld-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 767px) {
    .ld-section {
        padding: 60px 0;
    }

    .ld-features-grid,
    .ld-steps,
    .ld-trust-grid {
        grid-template-columns: 1fr;
    }

    .ld-cta-box {
        padding: 40px 24px;
    }

    .ld-btn {
        width: 100%;
    }

    .ld-hero-actions .ld-btn {
        width: auto;
        flex: 1 1 140px;
    }

    .ld-hero-float {
        display: none;
    }

    .ld-hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
