/* -- Button hover states -- */
.hero-btn-primary {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.hero-btn-primary:hover,
.hero-btn-primary:focus {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.hero-btn-outline-secondary {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-secondary:hover,
.hero-btn-outline-secondary:focus {
    background-color: var(--bs-secondary) !important;
    color: #fff !important;
    border-color: var(--bs-secondary) !important;
    transform: translateY(-1px);
}

.hero-btn-outline-primary-light {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-primary-light:hover,
.hero-btn-outline-primary-light:focus {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
    transform: translateY(-1px);
}
.timeline-emblem {
    width: 5rem;
    height: 5rem;
}

.timeline-spark {
    width: 0.75rem;
    height: 0.75rem;
}

.timeline-cloud-left {
    width: 16rem;
    height: 16rem;
}

.timeline-cloud-right {
    width: 20rem;
    height: 20rem;
    animation-delay: 1s;
}

.timeline-cloud-center {
    width: 24rem;
    height: 24rem;
    animation-delay: 2s;
}

.timeline-outline-square {
    width: 5rem;
    height: 5rem;
    animation-duration: 3s;
}

.timeline-outline-orb {
    width: 4rem;
    height: 4rem;
    animation-duration: 4s;
    animation-delay: 1s;
}

.timeline-halo-start {
    width: 8rem;
    height: 8rem;
    animation-duration: 20s;
}

.timeline-halo-end {
    width: 10rem;
    height: 10rem;
    animation-duration: 25s;
    animation-direction: reverse;
}

.timeline-spark-side {
    animation-delay: 0.5s;
}

.timeline-spark-center {
    animation-delay: 1s;
}

.timeline-cloud-left,
.timeline-cloud-right,
.timeline-cloud-center {
    animation-name: timeline-cloud__pulse;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.timeline-outline-square,
.timeline-outline-orb {
    animation-name: timeline-outline__bounce;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.timeline-halo-start,
.timeline-halo-end {
    animation-name: timeline-halo__spin;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.timeline-spark-top,
.timeline-spark-side,
.timeline-spark-center {
    animation-name: timeline-spark__ping;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    animation-iteration-count: infinite;
}

@keyframes timeline-cloud__pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes timeline-outline__bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25%); }
}

@keyframes timeline-halo__spin {
    to { transform: rotate(360deg); }
}

@keyframes timeline-spark__ping {
    0% { transform: scale(1); opacity: 1; }
    75%, 100% { transform: scale(2); opacity: 0; }
}

.features-hud-panel__decor--pulse {
    top: -5rem;
    left: 33.333333%;
    animation: features-hud-panel-pulse-kf 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.features-hud-panel__decor--spin {
    bottom: -6rem;
    right: 25%;
    animation: features-hud-panel-spin-kf 1s linear infinite;
}

.features-hud-panel__decor--bounce {
    top: 50%;
    right: 33.333333%;
    transform: rotate(45deg);
    animation: features-hud-panel-bounce-kf 1s infinite;
}

.features-hud-panel__decor--line {
    top: 33.333333%;
    right: 25%;
    transform: rotate(-12deg);
}

.features-hud-panel__grid-overlay {
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
}

/* ── BS-mode: panel shell (colors live in template bg-dark) ── */
.features-hud-panel__bs-panel {
    min-width: 0;
}

.features-hud-panel__bs-accent-top {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--bs-primary), transparent);
}

.features-hud-panel__bs-accent-bottom {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(var(--bs-primary-rgb), 0.4), transparent);
}

.features-hud-panel__bs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.features-hud-panel__bs-grid > figure {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.features-hud-panel__bs-grid > figure:nth-child(2n) {
    border-right: none;
}

.features-hud-panel__bs-grid > figure:nth-last-child(-n+2):nth-child(2n+1),
.features-hud-panel__bs-grid > figure:nth-last-child(-n+2):nth-child(2n+1) ~ figure {
    border-bottom: none;
}

@media (max-width: 575.98px) {
    .features-hud-panel__bs-grid {
        grid-template-columns: 1fr;
    }
    .features-hud-panel__bs-grid > figure {
        border-right: none;
    }
    .features-hud-panel__bs-grid > figure:last-child {
        border-bottom: none;
    }
}

/* ── BS-mode decorative shapes ── */
.features-hud-panel__decor--bs-blob {
    background-color: var(--bs-primary-bg-subtle);
    opacity: 0.3;
    filter: blur(48px);
}

.features-hud-panel__decor--bs-shape {
    opacity: 0.12;
}

.features-hud-panel__decor--bs-line {
    border-left: 1px solid var(--bs-primary-border-subtle);
    opacity: 0.18;
}

.features-hud-panel__item {
    min-width: 0;
}

.features-hud-panel__dot--pulse {
    animation: features-hud-panel-pulse-kf 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes features-hud-panel-pulse-kf {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes features-hud-panel-spin-kf {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes features-hud-panel-bounce-kf {
    0%, 100% { transform: translateY(-25%) rotate(45deg); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.prompt-beacon__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.prompt-beacon__appeal--shift:hover { transform: scale(1.05); transition: transform .2s ease; }

.prompt-beacon__sheet--haze { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

