:root {
    --canvas: #f3f8ff;
    --ink: #0f172a;
    --muted: #4b5b78;
    --brand: #1877f2;
    --brand-strong: #0b57d0;
    --accent: #ff6b4a;
    --surface: #fdfefe;
    --border: #cfe1fb;
}

body {
    background: radial-gradient(circle at 100% -20%, #a8ecff 0%, rgba(168, 236, 255, 0) 38%),
        radial-gradient(circle at -15% 30%, #ffd8cf 0%, rgba(255, 216, 207, 0) 44%),
        var(--canvas);
    color: var(--ink);
}

.site-shell {
    margin: 0 auto;
    max-width: 80rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .site-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .site-shell {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.site-card {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.hero-grid {
    display: grid;
    align-items: center;
    gap: 2.5rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -16px rgba(11, 87, 208, 0.72);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.7);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-ghost:hover {
    background: #fff;
}

.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: #d7e8ff;
    color: #0b57d0;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #4f7ec7;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-copy {
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
}

@media (min-width: 768px) {
    .section-copy {
        font-size: 1.125rem;
    }
}

.logo-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid #cfe1fb;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #64748b;
    background: rgba(255, 255, 255, 0.72);
}

.stat-panel {
    border: 1px solid #d5e5ff;
    border-radius: 24px;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.74);
}

.dark-panel {
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(140deg, #102a5c 0%, #0f6ecf 55%, #00a6d6 100%);
}

.showcase-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid #d5e5ff;
    border-radius: 32px;
    background: #e7f3ff;
}

.mosaic-card {
    position: absolute;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 22px 50px -32px rgba(17, 17, 17, 0.45);
}

.placeholder-shot {
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, #b4ddff 0%, #3378e8 100%);
}

.stagger > * {
    animation: rise-in 0.6s ease both;
}

.stagger > *:nth-child(2) {
    animation-delay: 0.08s;
}

.stagger > *:nth-child(3) {
    animation-delay: 0.16s;
}

.stagger > *:nth-child(4) {
    animation-delay: 0.24s;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reel-strip {
    scrollbar-width: thin;
    scrollbar-color: #bfd5fb transparent;
}

.reel-card {
    width: 220px;
    min-width: 220px;
}

.reel-card-shell {
    width: 220px;
}

.reel-embed-frame {
    position: relative;
    height: 392px;
    overflow: hidden;
    background: linear-gradient(180deg, #eaf3ff 0%, #dbe8fb 100%);
}

.reel-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
    transform-origin: center center;
    position: relative;
    z-index: 2;
}

.reel-fallback-copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    z-index: 1;
}

.reel-fallback-eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #5b7db2;
}

.reel-fallback-title {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2f47;
}

.reel-play-overlay {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 9999px;
    background: rgba(2, 6, 23, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
}

.reel-play-overlay:hover {
    background: rgba(2, 6, 23, 0.98);
    transform: translateY(-1px);
}

.reel-play-overlay::before {
    content: '▶';
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1;
    margin-left: 0.12rem;
}

.reel-play-icon {
    display: none;
}

.reel-play-overlay-fallback {
    position: static;
    margin-top: 0.85rem;
}

@media (min-width: 768px) {
    .reel-card,
    .reel-card-shell {
        width: 236px;
        min-width: 236px;
    }

    .reel-embed-frame {
        height: 418px;
    }

    .reel-cover-image {
        transform: none;
    }
}

@media (min-width: 1280px) {
    .reel-card,
    .reel-card-shell {
        width: 248px;
        min-width: 248px;
    }

    .reel-embed-frame {
        height: 438px;
    }

    .reel-cover-image {
        transform: none;
    }
}

.media-edit-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.media-edit-dialog {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.3);
}

.media-toast {
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 60;
    max-width: 22rem;
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
    background: #ecfdf3;
    color: #166534;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    padding: 0.75rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.media-toast.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}