/* Landing page styles */
:root {
    --bg-main: #f5f5f5;
    --text-main: #222;
    --line: #dedede;
    --primary: #084066;
    --primary-light: #0d5a8a;
    --success: #2ecc71;
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

/* ── Navbar ── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

/* ── CTA Button (prominent!) ── */
.btn-cta {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(8, 64, 102, 0.35);
}

.btn-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 64, 102, 0.45);
}

.btn-cta-large {
    padding: 16px 44px;
    font-size: 18px;
    border-radius: 10px;
}

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 100px 40px 80px;
    background: linear-gradient(135deg, #084066 0%, #0d5a8a 50%, #1a7ab5 100%);
    color: #fff;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ── Demo Section ── */
.demo-section {
    padding: 80px 40px;
    text-align: center;
    background: #fff;
    position: relative;
    z-index: 10;
}

.demo-section h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-sub {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.demo-wrap {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.demo-wrap input {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    border: 2px solid var(--line);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s;
}

.demo-wrap input:focus {
    border-color: var(--primary);
}

.book-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-top: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s, opacity 0.2s;
}

.book-results.visible {
    max-height: 400px;
    opacity: 1;
    overflow-y: auto;
}

.book-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.book-result:last-child { border-bottom: none; }
.book-result:hover { background: #f8f9fb; }
.book-result.empty { color: #999; justify-content: center; }

.book-info { text-align: left; }
.book-title { display: block; font-weight: 600; font-size: 15px; color: var(--text-main); }
.book-genre { display: block; font-size: 13px; color: #888; margin-top: 2px; }

.badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: capitalize;
    white-space: nowrap;
}

.badge-available { background: #d4edda; color: #155724; }
.badge-loaned    { background: #fff3cd; color: #856404; }
.badge-reserved  { background: #f8d7da; color: #721c24; }

/* ── Features Section ── */
.features-section {
    padding: 80px 40px;
    text-align: center;
}

.features-section h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    padding: 30px 24px;
    border-radius: 12px;
    border: 1px solid var(--line);
    text-align: left;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 12px;
    display: block;
}

.feature-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* ── How it works ── */
.how-section {
    padding: 80px 40px;
    text-align: center;
    background: #fff;
}

.how-section h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 50px;
}

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.step-arrow {
    font-size: 28px;
    color: var(--primary);
    padding-top: 14px;
    flex-shrink: 0;
}

/* ── CTA Section ── */
.cta-section {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, #084066, #0d5a8a);
    color: #fff;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-section .btn-cta {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.cta-section .btn-cta:hover {
    background: #f0f3ff;
    transform: translateY(-2px);
}

/* ── Footer ── */
.footer {
    text-align: center;
    padding: 30px 40px;
    background: #fff;
    border-top: 1px solid var(--line);
    color: #888;
    font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .hero h1 { font-size: 36px; }
    .hero-sub { font-size: 17px; }
    .hero { padding: 70px 24px 60px; }
    .steps { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); padding: 0; }
    .features-grid { grid-template-columns: 1fr; }
    .navbar { padding: 16px 20px; }
    .demo-section, .features-section, .how-section, .cta-section { padding: 60px 20px; }
}
