html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', system-ui, sans-serif;
    background: #F8FAFC;
    color: #0F172A;
}

/* ===== Blueprint page frame ===== */
.page-frame {
    position: relative;
    border-left: 1.5px dashed #CBD5E1;
    border-right: 1.5px dashed #CBD5E1;
    background: #fff;
}

.section-block {
    border-bottom: 1.5px dashed #CBD5E1;
    position: relative;
}

.section-block:last-child {
    border-bottom: none;
}

/* Nested dashed panels */
.dash-panel {
    background: #F8FAFC;
}

.dash-grid {
    border: 1.5px dashed #CBD5E1;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.dash-cell {
    border-right: 1.5px dashed #CBD5E1;
    border-bottom: 1.5px dashed #CBD5E1;
    background: #fff;
}

.dash-cell:nth-child(3n) {
    border-right: none;
}

@media (max-width: 1023px) {
    .dash-cell:nth-child(3n) {
        border-right: 1.5px dashed #CBD5E1;
    }

    .dash-cell:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 767px) {
    .dash-cell {
        border-right: none !important;
    }
}

/* Nav dropdowns */
.nav-item {
    position: relative;
}

.nav-item .submenu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    pointer-events: none;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-item:hover .chevron {
    transform: rotate(180deg);
}

.chevron {
    transition: transform .18s ease;
}

.word-track,
.word-improve,
.word-measure {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 500;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.word-track:hover,
.word-improve:hover,
.word-measure:hover {
    transform: scale(1.06) translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.word-track {
    border: 1.5px solid #93C5FD;
    background: #EFF6FF;
    color: #1D4ED8;
}

.word-improve {
    border: 1.5px solid #FCA5A5;
    background: #FEF2F2;
    color: #DC2626;
}

.word-measure {
    border: 1.5px solid #5EEAD4;
    background: #F0FDFA;
    color: #0F766E;
}

.word-measure {
    border: 1.5px solid #5EEAD4;
    background: #F0FDFA;
    margin: 2px 0px;
    color: #0F766E;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-inner {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    gap: 4rem;
    padding-right: 4rem;
    animation: marquee 20s linear infinite;
}

.marquee-inner:hover {
    animation-play-state: paused;
}

.chart-line {
    fill: none;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 100vw;
    background: white;
    z-index: 60;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e2e8f0;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-acc-body {
    display: none;
}

.mobile-acc.open .mobile-acc-body {
    display: block;
}

.mobile-acc.open .chevron {
    transform: rotate(180deg);
}

.logo-muted {
    opacity: .4;
    filter: grayscale(1);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #334155;
    transition: opacity .25s ease, filter .25s ease;
}

.logo-muted:hover {
    opacity: .75;
    filter: grayscale(0);
}

/* ===== Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 {
    transition-delay: .08s;
}

.reveal-d2 {
    transition-delay: .16s;
}

.reveal-d3 {
    transition-delay: .24s;
}

.reveal-d4 {
    transition-delay: .32s;
}

.reveal-d5 {
    transition-delay: .4s;
}

.draw-line {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
}

.draw-line.is-drawn {
    animation: drawStroke 1.5s cubic-bezier(.22, 1, .36, 1) forwards;
}

.draw-line.d1 {
    animation-delay: .1s;
}

.draw-line.d2 {
    animation-delay: .22s;
}

.draw-line.d3 {
    animation-delay: .34s;
}

.draw-line.d4 {
    animation-delay: .46s;
}

.draw-line.d5 {
    animation-delay: .58s;
}

@keyframes drawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

.chart-dot {
    opacity: 0;
    transform-origin: center;
    transform: scale(0);
}

.chart-dot.is-drawn {
    animation: popDot .4s ease forwards;
}

@keyframes popDot {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bar-grow {
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}

.bar-grow.is-drawn {
    transform: scaleY(1);
}

.donut-arc {
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s cubic-bezier(.22, 1, .36, 1);
}

.donut-arc.is-drawn {
    stroke-dashoffset: 0;
}

.card-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.btn-press {
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.btn-press:hover {
    transform: translateY(-1px);
}

.btn-press:active {
    transform: translateY(0);
}

@keyframes slideUpLogos {
    0% {
        transform: translateY(0);
    }

    15% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
    }

    25% {
        transform: translateY(-20%);
    }

    40% {
        transform: translateY(-20%);
        animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
    }

    50% {
        transform: translateY(-40%);
    }

    65% {
        transform: translateY(-40%);
        animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
    }

    75% {
        transform: translateY(-60%);
    }

    90% {
        transform: translateY(-60%);
        animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
    }

    100% {
        transform: translateY(-80%);
    }
}

.animate-slide-logos {
    animation: slideUpLogos 8s infinite;
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .draw-line,
    .chart-dot,
    .bar-grow,
    .donut-arc {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
        stroke-dashoffset: 0 !important;
    }
}