/**
 * Hero Section WPBakery Addon - Styles
 * Matches React Hero component layout and styling
 */

.hero-section {
    position: relative;
    padding: 0;
    overflow: hidden;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.hero-section p {
    padding-bottom: 0 !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-section {
        background-color: #020617;
    }
}

html.theme-dark .hero-section {
    background-color: #020617 !important;
}

/* Background gradient */
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, #f8fafc 0%, rgba(239, 246, 255, 0.3) 50%, #f8fafc 100%);
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-bg-gradient {
        background: linear-gradient(to bottom right, #020617 0%, rgba(30, 58, 138, 0.1) 50%, #020617 100%);
    }
}

html.theme-dark .hero-bg-gradient {
    background: linear-gradient(to bottom right, #020617 0%, rgba(30, 58, 138, 0.1) 50%, #020617 100%) !important;
}

/* Grid pattern */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image:
        linear-gradient(to right, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* Gradient orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: hero-orb-pulse 2s ease-in-out infinite;
}

.hero-orb-1 {
    top: 0;
    right: 0;
    width: 384px;
    height: 384px;
    background-color: rgba(96, 165, 250, 0.1);
}

.hero-orb-2 {
    bottom: 0;
    left: 0;
    width: 384px;
    height: 384px;
    background-color: rgba(34, 211, 238, 0.1);
    animation-delay: 1s;
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-orb-1 {
        background-color: rgba(96, 165, 250, 0.08);
    }
    html:not(.theme-light) .hero-orb-2 {
        background-color: rgba(34, 211, 238, 0.08);
    }
}

html.theme-dark .hero-orb-1 {
    background-color: rgba(96, 165, 250, 0.08) !important;
}

html.theme-dark .hero-orb-2 {
    background-color: rgba(34, 211, 238, 0.08) !important;
}

@keyframes hero-orb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Container */
.hero-container {
    max-width: 1425px;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
    z-index: 10;
}



/* Grid layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Left column */
.hero-left {
    animation: hero-fade-in 0.6s ease-out;
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 9999px;
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge i,
.hero-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-badge {
        background-color: rgba(30, 58, 138, 0.3);
        border-color: #1e3a8a;
        color: #93c5fd;
    }
}

html.theme-dark .hero-badge {
    background-color: rgba(30, 58, 138, 0.3) !important;
    border-color: #1e3a8a !important;
    color: #93c5fd !important;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 24px;
}

@media (min-width: 1210px) {
    .hero-title {
        font-size: 54px;
    }
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-title {
        color: #ffffff;
    }
}

html.theme-dark .hero-title {
    color: #ffffff !important;
}

/* ── Title gradient text ──────────────────────────────────────────────────── */
.hero-title-gradient {
    color: transparent;
    -webkit-background-clip: text!important;
    background-clip: text!important;
    display: inline;
}

/* Blue → Cyan */
.hero-title-gradient--blue-cyan {
    background: linear-gradient(to right, #2563eb, #06b6d4);
}
@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-title-gradient--blue-cyan { background: linear-gradient(to right, #60a5fa, #22d3ee); }
}
html.theme-dark .hero-title-gradient--blue-cyan {
    background: linear-gradient(to right, #60a5fa, #22d3ee) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Blue → Purple */
.hero-title-gradient--blue-purple {
    background: linear-gradient(to right, #2563eb, #9333ea);
}
@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-title-gradient--blue-purple { background: linear-gradient(to right, #60a5fa, #c084fc); }
}
html.theme-dark .hero-title-gradient--blue-purple {
    background: linear-gradient(to right, #60a5fa, #c084fc) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Purple → Pink */
.hero-title-gradient--purple-pink {
    background: linear-gradient(to right, #9333ea, #ec4899);
}
@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-title-gradient--purple-pink { background: linear-gradient(to right, #c084fc, #f472b6); }
}
html.theme-dark .hero-title-gradient--purple-pink {
    background: linear-gradient(to right, #c084fc, #f472b6) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Green → Emerald */
.hero-title-gradient--green-emerald {
    background: linear-gradient(to right, #16a34a, #059669);
}
@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-title-gradient--green-emerald { background: linear-gradient(to right, #4ade80, #34d399); }
}
html.theme-dark .hero-title-gradient--green-emerald {
    background: linear-gradient(to right, #4ade80, #34d399) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Orange → Red */
.hero-title-gradient--orange-red {
    background: linear-gradient(to right, #ea580c, #dc2626);
}
@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-title-gradient--orange-red { background: linear-gradient(to right, #fb923c, #f87171); }
}
html.theme-dark .hero-title-gradient--orange-red {
    background: linear-gradient(to right, #fb923c, #f87171) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.hero-description {
    font-size: 16px;
    font-weight: 500;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 32px;
    padding: 0px;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 19px;
    }
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-description {
        color: #cbd5e1;
    }
}

html.theme-dark .hero-description {
    color: #cbd5e1 !important;
}

/* ── Capability grid ──────────────────────────────────────────────────────── */
.hero-capabilities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    margin-bottom: 32px;
}

.hero-capability {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hero-capability-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.hero-capability-icon i,
.hero-capability-icon svg {
    width: 14px;
    height: 14px;
    color: #2563eb;
}

.hero-capability-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.4;
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-capability-icon {
        background: rgba(30, 58, 138, 0.3);
        border-color: #1e3a8a;
    }
    .hero-capability-icon i,
    html:not(.theme-light) .hero-capability-icon svg { color: #60a5fa; }
    html:not(.theme-light) .hero-capability-text { color: #cbd5e1; }
}

html.theme-dark .hero-capability-icon {
    background: rgba(30, 58, 138, 0.3) !important;
    border-color: #1e3a8a !important;
}
html.theme-dark .hero-capability-icon i,
html.theme-dark .hero-capability-icon svg { color: #60a5fa !important; }
html.theme-dark .hero-capability-text { color: #cbd5e1 !important; }

@media (max-width: 767px) {
    .hero-capabilities {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 24px;
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
    background-color: #1d4ed8;
    box-shadow: 0 10px 15px -3px rgba(29, 78, 216, 0.1);
    color: #ffffff;
}
html.theme-dark .hero-btn {
    background-color: #155dfc ;
}
html.theme-dark .hero-btn:hover {
    background-color: #1447e6 ;

}

.hero-btn i,
.hero-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.hero-btn:hover i,
.hero-btn:hover svg {
    transform: translateX(4px);
}

/* Right column - Chat card */
.hero-right {
    position: relative;
    animation: hero-fade-in-right 0.6s ease-out 0.2s both;
}

@keyframes hero-fade-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-chat-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1); */
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: hidden;
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-chat-card {
        background-color: #0f172a;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
        border-color: #1e293b;
    }
}

html.theme-dark .hero-chat-card {
    background-color: #0f172a !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3) !important;
    border-color: #1e293b !important;
}

.hero-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(to right, #f8fafc, #ffffff);
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-chat-header {
        border-bottom-color: #1e293b;
        background: linear-gradient(to right, #0f172a, #1e293b);
    }
}

html.theme-dark .hero-chat-header {
    border-bottom-color: #1e293b !important;
    background: linear-gradient(to right, #0f172a, #1e293b) !important;
}

.hero-chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-chat-status {
        color: #94a3b8;
    }
}

html.theme-dark .hero-chat-status {
    color: #94a3b8 !important;
}

.hero-chat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
}

.hero-chat-dots {
    display: flex;
    gap: 6px;
}

.hero-chat-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-chat-dots span {
        background-color: #475569;
    }
}

html.theme-dark .hero-chat-dots span {
    background-color: #475569 !important;
}

.hero-chat-body {
    padding: 24px;
}

.hero-chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.hero-chat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
html.theme-dark .hero-chat-icon {
    background-color: #155dfc ;
}

.hero-chat-icon i,
.hero-chat-icon svg {
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.hero-chat-content {
    flex: 1;
}

.hero-chat-greeting {
    font-size: 16px;
    font-weight: 400;
    color: #0f172a;
    margin-bottom: 12px;
    padding: 0px;
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-chat-greeting {
        color: #ffffff;
    }
}

html.theme-dark .hero-chat-greeting {
    color: #ffffff !important;
}

.hero-chat-suggestions-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    padding: 0px;
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-chat-suggestions-label {
        color: #94a3b8;
    }
}

html.theme-dark .hero-chat-suggestions-label {
    color: #94a3b8 !important;
}

.hero-chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-suggestion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    background-color: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.6);
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.hero-suggestion-btn:hover {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.hero-suggestion-btn i,
.hero-suggestion-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: transform 0.2s;
}

.hero-suggestion-btn:hover i,
.hero-suggestion-btn:hover svg {
    opacity: 1;
    transform: translateX(4px);
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-suggestion-btn {
        background-color: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }
    html:not(.theme-light) .hero-suggestion-btn:hover {
        background-color: #334155;
        border-color: #475569;
        color: #93c5fd;
    }
}

html.theme-dark .hero-suggestion-btn {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html.theme-dark .hero-suggestion-btn:hover {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #93c5fd !important;
}

.hero-chat-input-wrap {
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-chat-input-wrap {
        border-top-color: #1e293b;
    }
}

html.theme-dark .hero-chat-input-wrap {
    border-top-color: #1e293b !important;
}

.hero-chat-input-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}
.hero-chat-input-inner input.hero-chat-input, .hero-chat-input-inner input.hero-chat-input:focus {
    padding: 0px;
    background: transparent;
    border: none!important;
    outline: none;
    box-shadow: none;

}
@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-chat-input-inner {
        background-color: #1e293b;
        border-color: #334155;
    }
}

html.theme-dark .hero-chat-input-inner {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

.hero-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 14px;
    color: #0f172a;
    outline: none;
}

.hero-chat-input::placeholder {
    color: #94a3b8;
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-chat-input {
        color: #ffffff;
    }
    html:not(.theme-light) .hero-chat-input::placeholder {
        color: #64748b;
    }
}

html.theme-dark .hero-chat-input {
    color: #ffffff !important;
}

html.theme-dark .hero-chat-input::placeholder {
    color: #64748b !important;
}

.hero-chat-send {
    padding: 6px;
    background-color: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.hero-chat-send:hover {
    background-color: #1d4ed8;
}
html.theme-dark .hero-chat-send {
    background-color: #155dfc ;
}
html.theme-dark .hero-chat-send:hover {
    background-color: #1447e6 ;
}

.hero-chat-send i,
.hero-chat-send svg {
    width: 16px;
    height: 16px;
    color: #ffffff;
}

/* Floating orbs next to chat card */
.hero-float-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
}

.hero-float-orb-1 {
    top: -16px;
    right: -16px;
    width: 96px;
    height: 96px;
    background-color: rgba(96, 165, 250, 0.2);
    animation: hero-float-y 3s ease-in-out infinite;
    display: none;
}

.hero-float-orb-2 {
    bottom: -32px;
    left: -32px;
    width: 128px;
    height: 128px;
    background-color: rgba(37, 99, 235, 0.1);
    animation: hero-float-y 4s ease-in-out infinite 1s;
    display: none;
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-float-orb-1 {
        background-color: rgba(96, 165, 250, 0.15);
    }
    html:not(.theme-light) .hero-float-orb-2 {
        background-color: rgba(37, 99, 235, 0.08);
    }
}

html.theme-dark .hero-float-orb-1 {
    background-color: rgba(96, 165, 250, 0.15) !important;
}

html.theme-dark .hero-float-orb-2 {
    background-color: rgba(37, 99, 235, 0.08) !important;
}

@keyframes hero-float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ── Splide Slider ────────────────────────────────────────────────────────── */

/* Full-width slider — clips adjacent slides so only one is visible */
.hero-splide {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Fade the whole slider in after Splide initialises — hides all pre-init flash */
    transition: opacity 0.25s ease;
}
/* Hidden until Splide fully mounts and adds .is-initialized */
.hero-splide:not(.is-initialized) {
    opacity: 0;
}

.hero-splide .splide__track {
    overflow: hidden;
    width: 100%;
}

.hero-splide .splide__list {
    display: flex;
}

/* Each slide fills the right column; vertical spacing comes from .hero-container */
.hero-splide .splide__slide {
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Extra bottom space so pagination dots don't overlap slide content */
.hero-splide--has-dots .splide__slide {
    padding-bottom: 48px;
}

/* ── Arrows ── */
.hero-splide .splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2563eb;
    opacity: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: background-color 0.2s, box-shadow 0.2s, opacity 0.2s;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-splide .splide__arrow:hover {
    background-color: #1d4ed8;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.hero-splide .splide__arrow:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.hero-splide .splide__arrow svg {
    fill: #ffffff;
    width: 16px;
    height: 16px;
}

/* Prev arrow flipped to point left; translateY must be combined with scaleX */
.hero-splide .splide__arrow--prev {
    left: 20px;
    transform: translateY(-50%) scaleX(-1);
}
.hero-splide .splide__arrow--next {
    right: 20px;
    transform: translateY(-50%);
}

.hero-splide .splide__arrow[disabled] {
    opacity: 0.35;
    cursor: default;
}

html.theme-dark .hero-splide .splide__arrow { background-color: #155dfc; }
html.theme-dark .hero-splide .splide__arrow:hover { background-color: #1447e6; }

/* ── Pagination dots ── */
.hero-splide .splide__pagination {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 10;
}

.hero-splide .splide__pagination__page {
    background-color: #cbd5e1;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    border: none;
    margin: 0;
    padding: 0;
    opacity: 1;
    cursor: pointer;
    transition: background-color 0.25s, width 0.25s;
}

.hero-splide .splide__pagination__page.is-active {
    background-color: #2563eb;
    width: 24px;
}

html.theme-dark .hero-splide .splide__pagination__page { background-color: #334155; }
html.theme-dark .hero-splide .splide__pagination__page.is-active { background-color: #155dfc; }

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .hero-splide .splide__pagination__page { background-color: #334155; }
    html:not(.theme-light) .hero-splide .splide__pagination__page.is-active { background-color: #2563eb; }
}

@media (max-width: 767px) {
    .hero-splide .splide__arrow { width: 36px; height: 36px; }
    .hero-splide .splide__arrow--prev { left: 8px; }
    .hero-splide .splide__arrow--next { right: 8px; }
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .hero-container {
        padding-top: 64px;
        padding-bottom: 64px;
    }
    .hero-grid {
        gap: 48px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-description{max-width: 100%;}
}

@media (max-width: 767px) {
    .hero-container {
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .hero-description{
        max-width: 100%;
    }
    .hero-grid {
        gap: 32px;
    }

    .hero-description {
        font-size: 15px;
        padding: 0px;
    }
    .hero-chat-body {
        padding: 16px;
    }

    .hero-btn{
        padding: 8px 18px;
        font-size: 14px;
    }
}

/* ── Transition Effects ───────────────────────────────────────────────────── */

/*
 * Pre-init guard — before Splide adds .is-initialized, kill slide AND inner
 * transitions so the initial state is applied instantly (no zoom-in / fade flash
 * on first paint).
 */
.hero-splide:not(.is-initialized) .splide__slide,
.hero-splide:not(.is-initialized) .hero-slide-inner {
    transition-duration: 0s !important;
}

/*
 * Sequential fade — avoids the "layer override" crossfade where both slides are
 * semi-transparent simultaneously.
 *
 * Mechanism: split the speed in half with calc().
 *   Outgoing slide (no .is-active): fades OUT immediately in speed/2.
 *   Incoming slide (.is-active):    fades IN  after speed/2 delay, also in speed/2.
 *
 * Timeline at speed 600ms:
 *   0–300 ms  → outgoing fades out (only old content visible, no overlap)
 *   300–600 ms → incoming fades in  (only new content visible, no overlap)
 *
 * The !important beats Splide's inline `transition:opacity Xms ease` which it
 * sets on all slides in Fade.start().
 *
 * Zoom+Fade extra: scale is applied to .hero-container (INSIDE the slide, not
 * the slide itself) so the slide element always fills 100% width — no background
 * "edges" visible around a shrunken slide.  Splide never touches .hero-container
 * so no !important is needed there.
 */

/* ── Fade ── */
.hero-splide--effect-fade .splide__slide {
    /* outgoing: fade out in half-speed, no delay */
    transition: opacity calc(var(--hero-speed, 600ms) / 2) ease 0s !important;
    will-change: opacity;
}
.hero-splide--effect-fade .splide__slide.is-active {
    /* incoming: fade in in half-speed, after half-speed delay */
    transition: opacity calc(var(--hero-speed, 600ms) / 2) ease
                calc(var(--hero-speed, 600ms) / 2) !important;
}

/* ── Zoom + Fade ── */
.hero-splide--effect-zoom-fade .splide__slide {
    transition: opacity calc(var(--hero-speed, 600ms) / 2) ease 0s !important;
    will-change: opacity;
}
.hero-splide--effect-zoom-fade .splide__slide.is-active {
    transition: opacity calc(var(--hero-speed, 600ms) / 2) ease
                calc(var(--hero-speed, 600ms) / 2) !important;
}

/* Scale lives on .hero-slide-inner so the slide itself stays full-width */
.hero-splide--effect-zoom-fade .splide__slide .hero-slide-inner {
    scale: 0.97;
    transition: scale calc(var(--hero-speed, 600ms) / 2)
                cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
    will-change: scale;
}
.hero-splide--effect-zoom-fade .splide__slide.is-active .hero-slide-inner {
    scale: 1;
    transition: scale calc(var(--hero-speed, 600ms) / 2)
                cubic-bezier(0.25, 0.46, 0.45, 0.94)
                calc(var(--hero-speed, 600ms) / 2);
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Video Hero slide
 * ───────────────────────────────────────────────────────────────────────────── */

/* Secondary description paragraph */
.hero-description--secondary {
    margin-top: 12px;
}

/* Feature pills row */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

/* Light mode — matches React bg-slate-100 + border-slate-200 + text-slate-600 */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    line-height: normal;
}

.hero-pill i,
.hero-pill svg {
    width: 14px;
    height: 14px;
    color: #3b82f6;
    flex-shrink: 0;
}

/* Dark mode — matches React dark:bg-slate-800 + dark:border-slate-700 + dark:text-slate-300 */
html.theme-dark .hero-pill {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

html.theme-dark .hero-pill i,
html.theme-dark .hero-pill svg {
    color: #60a5fa;
}

/* Secondary button */
.hero-btn--secondary {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.hero-btn--secondary:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
    background: #eff6ff;
}

/* Video wrapper */
.hero-video-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    /* box-shadow: 0 20px 60px rgba(0,0,0,.18); */
    background: #0a0f1e;
    border: 1px solid rgba(255,255,255,.08);
}

.hero-video-ratio {
    position: relative;
    padding-bottom: 64.25%; /* 16:9 */
    height: 0;
}

/* Thumbnail overlay */
.hero-video-thumb {
    position: absolute;
    inset: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.hero-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark placeholder when no thumbnail URL is provided */
.hero-video-thumb--placeholder {
    background: #0a0f1e;
}

/* Play / pause button */
.hero-video-play-btn {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    color: inherit;
    /* no flex — icon is absolutely positioned & JS-driven */
}

.hero-video-play-btn--disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.5;
}

.hero-video-play-icon {
    /* left:0/top:0 + negative margins = center offset, JS drives translateX/Y (Salient pattern) */
    position: absolute;
    left: 0;
    top: 0;
    margin-left: -32px; /* half of 64px width */
    margin-top: -32px;  /* half of 64px height */
    pointer-events: none;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,.25);
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    transition: opacity 0.3s ease, background 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.hero-video-play-icon.is-visible {
    opacity: 1;
}

/* Enhance appearance on hover */
.hero-video-ratio:hover .hero-video-play-icon {
    background: rgba(255,255,255,.20);
    box-shadow: 0 6px 28px rgba(0,0,0,.38);
}

.hero-video-play-icon i,
.hero-video-play-icon svg {
    width: 26px;
    height: 26px;
    color: #ffffff;
}

/* Live badge (top-left) */
.hero-live-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(37,99,235,.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(147,197,253,.3);
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: normal;
}

.hero-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    animation: hero-pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes hero-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* External link (bottom-right) */
.hero-video-external-link {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.hero-video-external-link:hover {
    background: rgba(0,0,0,.7);
    color: #ffffff;
}

.hero-video-external-link i,
.hero-video-external-link svg {
    width: 11px;
    height: 11px;
    opacity: 0.55;
    flex-shrink: 0;
}

/* Stats row below video */
.hero-video-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

/* Light mode — matches React bg-white + border-slate-200 */
.hero-video-stat {
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.hero-video-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px;
    line-height: 1.2;
}

.hero-video-stat-label {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
}

/* Dark mode — matches React dark:bg-slate-900 + dark:border-slate-800 */
html.theme-dark .hero-video-stat {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

html.theme-dark .hero-video-stat-value {
    color: #ffffff;
}

html.theme-dark .hero-video-stat-label {
    color: #94a3b8;
}

/* Responsive tweaks for video slide */
@media (max-width: 767px) {
    .hero-video-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .hero-video-stat-value {
        font-size: 13px;
    }
    .hero-video-stat-label {
        font-size: 10px;
    }
    .hero-video-play-icon {
        width: 48px;
        height: 48px;
    }
    .hero-video-play-icon i,
    .hero-video-play-icon svg {
        width: 20px;
        height: 20px;
    }
}
