/* TrainLog custom styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.navbar-brand {
    font-weight: 600;
}

/* Landing page */
.landing-hero {
    position: relative;
    /* Full-bleed: break out of <main class="container"> across the viewport */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    padding: 5rem 0 6rem;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: #fff;
    overflow: hidden;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12) 0, transparent 40%);
    pointer-events: none;
}

.landing-hero > .container {
    position: relative;
    z-index: 1;
}

.landing-hero h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.landing-hero .hero-emoji {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.landing-hero .btn-primary {
    background-color: #fff;
    border-color: #fff;
    color: #0d6efd;
    font-weight: 600;
}

.landing-hero .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
    color: #0d6efd;
}

.landing-hero .btn-outline-light {
    border-width: 2px;
    font-weight: 500;
}

.feature-card {
    height: 100%;
    border: 1px solid rgba(13, 110, 253, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.25);
}

.feature-card .feature-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.demo-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
}

.demo-card code {
    background: rgba(13, 110, 253, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    color: #0a58ca;
}

.landing-cta {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 3rem;
    margin-bottom: -1.5rem;
    padding: 4rem 0;
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: #fff;
}

.landing-cta .btn-primary {
    background-color: #fff;
    border-color: #fff;
    color: #198754;
    font-weight: 600;
}

.landing-cta .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
    color: #198754;
}
