/**
 * Landing Page Styles
 */

@font-face {
    font-family: "Space Grotesk";
    src: url("/assets/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("/assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bbp-ink: #111318;
    --bbp-paper: #ffffff;
    --bbp-muted: #6c757d;
    --bbp-accent: #ffc107;
    --bbp-hero: #0f1116;
}

body {
    font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Hero */
.hero-section {
    position: relative;
    background:
        radial-gradient(1100px 600px at 70% 15%, rgba(255, 193, 7, 0.22), rgba(255, 193, 7, 0.0) 60%),
        radial-gradient(900px 500px at 10% 40%, rgba(13, 110, 253, 0.18), rgba(13, 110, 253, 0.0) 55%),
        linear-gradient(135deg, #0b0d12 0%, #1a1d25 45%, #0b0d12 100%);
    overflow: hidden;
}

.hero-inner {
    padding-top: 5.5rem;
    padding-bottom: 4.5rem;
}

.hero-title {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-size: clamp(2rem, 3.2vw, 3.3rem);
    margin: 0.75rem 0 1rem 0;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.12rem;
    line-height: 1.65;
    margin: 0 0 1.5rem 0;
}

.hero-badge .badge {
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-micro {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
}

.hero-media {
    position: relative;
}

.media-frame {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.media-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.media-frame--tilt {
    transform: rotate(-1.25deg);
}

.media-strip {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.media-strip img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 64px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #f8f9fa 85%);
}

/* Feature Cards */
.feature-icon {
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

/* Steps */
.section-how .step-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 16px;
    padding: 16px 16px 14px 16px;
    box-shadow: 0 10px 25px rgba(17, 19, 24, 0.06);
}

.section-how .step-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 52px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.18);
    color: #7a5a00;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.media-caption {
    opacity: 0.85;
}

/* Screenshot grid */
.shot {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(17, 19, 24, 0.10);
    box-shadow: 0 16px 40px rgba(17, 19, 24, 0.08);
    text-decoration: none;
    background: #fff;
}

.shot img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 220ms ease;
}

.shot:hover img {
    transform: scale(1.05);
}

.shot-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(15, 17, 22, 0.72);
    color: rgba(255, 255, 255, 0.92);
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.shot-desc {
    line-height: 1.35;
}

/* Explainer page */
.explainer-block {
    scroll-margin-top: 90px;
}

.explainer-shot {
    margin: 0;
}

.section-explainer .list-group-item {
    border-color: rgba(17, 19, 24, 0.10);
}

.section-explainer .list-group-item:hover {
    background: rgba(255, 193, 7, 0.10);
}

/* Lightbox */
.lb {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.lb[aria-hidden="false"] {
    display: block;
}

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 22, 0.82);
    backdrop-filter: blur(6px);
}

.lb-dialog {
    position: absolute;
    inset: 20px;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.lb-figure {
    margin: 0;
    max-width: min(1100px, 92vw);
    max-height: min(86vh, 900px);
    pointer-events: auto;
}

.lb-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    background: rgba(255, 255, 255, 0.03);
}

.lb-caption {
    margin-top: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.lb-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.95);
    font-size: 28px;
    line-height: 1;
    pointer-events: auto;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.95);
    font-size: 34px;
    line-height: 1;
    pointer-events: auto;
}

.lb-prev {
    left: 14px;
}

.lb-next {
    right: 14px;
}

.lb-nav:disabled {
    opacity: 0.35;
}

.lb-open {
    overflow: hidden;
}

/* Accordion Styling */
.accordion-button:not(.collapsed) {
    background-color: rgba(255, 193, 7, 0.1);
    color: #212529;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-inner {
        padding-top: 4rem;
        padding-bottom: 3.5rem;
    }

    .media-strip img {
        height: 78px;
    }

    .shot img {
        height: 210px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Navigation Link Styling for Landing */
.navbar-dark .navbar-nav .nav-link {
    transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffc107;
}
