:root {
    --blue: #1B3F9E;
    --blue-dark: #122C74;
    --blue-light: #EAF0FC;
    --green: #1D9A50;
    --green-dark: #0F7A3B;
    --green-light: #E7F8ED;
    --orange: #F2A31E;
    --orange-dark: #C97F0C;
    --orange-light: #FFF4DE;
    --navy: #0B1530;
    --ink: #3A4054;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--navy);
    background: #FBFBF9;
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: 'Sora', sans-serif;
}

.font-mono-data {
    font-family: 'JetBrains Mono', monospace;
}

/* reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    * {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}

/* wave divider */
.wave-divider {
    display: block;
    width: 100%;
    height: auto;
}

/* hero backdrop */
.hero-bg {
    background:
        radial-gradient(700px 380px at 88% -8%, rgba(27, 63, 158, .14), transparent 60%),
        radial-gradient(600px 340px at 8% 4%, rgba(242, 163, 30, .14), transparent 60%),
        #FBFBF9;
}

/* panel tabs */
.panel-tab {
    transition: all .25s ease;
}

.panel-tab[data-active="true"] {
    color: #fff;
}

.panel-tab[data-color="blue"][data-active="true"] {
    background: var(--blue);
    box-shadow: 0 8px 20px -6px rgba(27, 63, 158, .55);
}

.panel-tab[data-color="green"][data-active="true"] {
    background: var(--green);
    box-shadow: 0 8px 20px -6px rgba(29, 154, 80, .5);
}

.panel-tab[data-color="orange"][data-active="true"] {
    background: var(--orange);
    box-shadow: 0 8px 20px -6px rgba(242, 163, 30, .5);
}

.panel-view {
    display: none;
}

.panel-view.active {
    display: block;
    animation: fadeIn .45s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* mock browser chrome */
.browser-frame {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 60px -20px rgba(11, 21, 48, .28), 0 4px 14px rgba(11, 21, 48, .06);
    border: 1px solid rgba(11, 21, 48, .06);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #F1F3F8;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

/* donut ring via conic-gradient set inline per instance */
.donut {
    border-radius: 50%;
    position: relative;
}

.donut::after {
    content: '';
    position: absolute;
    inset: 14%;
    background: #fff;
    border-radius: 50%;
}

/* line chart sparkline */
.sparkline {
    width: 100%;
    height: 64px;
}

/* pricing card highlight ring */
.plan-featured {
    box-shadow: 0 30px 60px -18px rgba(29, 154, 80, .35);
}

/* accessible focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
    border-radius: 4px;
}

.badge-pill {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .04em;
}

/* mobile menu */
#mobileMenu {
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
}

#mobileMenu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ===== video showcase ===== */
.video-poster {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: transform .35s ease, box-shadow .35s ease;
}

.video-poster[data-color="blue"] {
    background: linear-gradient(135deg, #152C6E, #1B3F9E 55%, #2A56CC);
}

.video-poster[data-color="green"] {
    background: linear-gradient(135deg, #0F5C31, #1D9A50 55%, #2FC168);
}

.video-poster[data-color="orange"] {
    background: linear-gradient(135deg, #9A6106, #F2A31E 55%, #FFC15C);
}

.video-trigger:hover .video-poster {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px -14px rgba(0, 0, 0, .5);
}

.poster-icon {
    position: relative;
    z-index: 2;
    opacity: .9;
}

.poster-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .35;
    background: rgba(255, 255, 255, .5);
    animation: orbFloat 6s ease-in-out infinite;
}

.poster-orb.o1 {
    width: 70px;
    height: 70px;
    top: -20px;
    left: -10px;
    animation-delay: 0s;
}

.poster-orb.o2 {
    width: 40px;
    height: 40px;
    bottom: 10%;
    right: 12%;
    animation-delay: 1.2s;
}

.poster-orb.o3 {
    width: 24px;
    height: 24px;
    top: 20%;
    right: 22%;
    animation-delay: 2.4s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-10px) translateX(6px);
    }
}

.play-btn {
    position: absolute;
    z-index: 3;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, .5);
    transition: transform .25s ease, background .25s ease;
}

.video-trigger:hover .play-btn {
    transform: scale(1.08);
    background: rgba(255, 255, 255, .26);
}

.play-ping {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    opacity: .55;
    animation: playPing 2.2s ease-out infinite;
}

@keyframes playPing {
    0% {
        transform: scale(.85);
        opacity: .5;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.duration-badge {
    position: absolute;
    z-index: 3;
    bottom: 10px;
    right: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    padding: 3px 8px;
    border-radius: 6px;
}

/* modal lightbox */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.video-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 24, .82);
    backdrop-filter: blur(3px);
}

.video-modal-panel {
    position: relative;
    width: 100%;
    max-width: 900px;
    transform: translateY(14px) scale(.98);
    transition: transform .3s ease;
}

.video-modal.open .video-modal-panel {
    transform: translateY(0) scale(1);
}

.video-modal-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    background: #0B1530;
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .6);
}

.modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0B1530;
}

.video-fallback {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #152C6E, #1B3F9E 45%, #0F7A3B 100%);
    text-align: center;
    padding: 0 20px;
}

.video-fallback-icon {
    font-size: 38px;
    margin-bottom: 14px;
}