.reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
    filter: blur(6px);
    transition:
        opacity 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.lift-on-hover {
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.lift-on-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(69, 222, 231, 0.18);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.hero-visual {
    position: relative;
    isolation: isolate;
    padding: 0.75rem 0.25rem 2rem;
}

.hero-media-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-media-card::before {
    content: "";
    position: absolute;
    inset: -10% 46% auto -8%;
    height: 70%;
    background: linear-gradient(135deg, rgba(69, 222, 231, 0.16), rgba(69, 222, 231, 0));
    pointer-events: none;
}

.hero-device {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(78vh, 52rem);
    margin-inline: auto;
    object-fit: contain;
    object-position: center center;
    transform: translateZ(0);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.hero-visual:hover .hero-device {
    transform: translate3d(0, -4px, 0) scale(1.01);
}

.ambient-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(54px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.42;
}

.ambient-orb--a {
    width: 10rem;
    height: 10rem;
    top: 0;
    right: 0.5rem;
    background: rgba(69, 222, 231, 0.3);
    animation: orbFloat 10s ease-in-out infinite;
}

.ambient-orb--b {
    width: 8rem;
    height: 8rem;
    bottom: 1rem;
    left: 0.25rem;
    background: rgba(121, 217, 230, 0.24);
    animation: orbFloat 12s ease-in-out infinite reverse;
}

.hero-chip {
    position: absolute;
    z-index: 2;
    max-width: 13rem;
    padding: 0.8rem 0.95rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 18, 18, 0.84);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: chipFloat 7s ease-in-out infinite;
}

.hero-chip strong {
    display: block;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.92rem;
    line-height: 1.2;
}

.hero-chip span {
    display: block;
    margin-top: 0.25rem;
    color: #9aa3a3;
    font-size: 0.78rem;
    line-height: 1.35;
}

.hero-chip--top {
    top: 0;
    right: -0.25rem;
}

.hero-chip--mid {
    top: 26%;
    left: -0.35rem;
    animation-delay: -1.6s;
}

.hero-chip--bottom {
    right: 0.5rem;
    bottom: 4.25rem;
    animation-delay: -3s;
}

.signal-panel {
    position: absolute;
    left: 0.35rem;
    right: 0.35rem;
    bottom: 0;
    z-index: 2;
}

.signal-stack {
    display: grid;
    gap: 0.8rem;
}

.signal-row {
    display: grid;
    grid-template-columns: minmax(78px, 118px) 1fr auto;
    gap: 0.75rem;
    align-items: center;
}

.signal-label,
.signal-value {
    color: #dfe3e3;
    font-size: 0.76rem;
    line-height: 1.2;
    white-space: nowrap;
}

.signal-value {
    color: #9aa3a3;
}

.signal-track {
    height: 0.45rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.signal-fill {
    display: block;
    height: 100%;
    width: var(--fill, 70%);
    border-radius: inherit;
    background: linear-gradient(90deg, #45dee7, #b6f6fb);
    box-shadow: 0 0 18px rgba(69, 222, 231, 0.28);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible .signal-fill {
    transform: scaleX(1);
}

.story-panel {
    position: relative;
    overflow: hidden;
}

.story-panel::after {
    content: "";
    position: absolute;
    inset: auto -5% -32% 30%;
    height: 50%;
    background: radial-gradient(circle, rgba(69, 222, 231, 0.16), rgba(69, 222, 231, 0));
    pointer-events: none;
}

.bar-grid {
    display: grid;
    gap: 1rem;
}

.bar-row {
    display: grid;
    grid-template-columns: minmax(96px, 1fr) minmax(150px, 1.4fr) auto;
    gap: 0.8rem;
    align-items: center;
}

.bar-label,
.bar-value {
    font-size: 0.82rem;
    line-height: 1.25;
}

.bar-label {
    color: #dfe3e3;
}

.bar-value {
    color: #9aa3a3;
    text-align: right;
}

.bar-track {
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.bar-fill {
    display: block;
    height: 100%;
    width: var(--fill, 50%);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(69, 222, 231, 0.82), rgba(182, 246, 251, 0.95));
    box-shadow: 0 0 18px rgba(69, 222, 231, 0.25);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible .bar-fill {
    transform: scaleX(1);
}

.formula-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.formula-pill {
    padding: 0.7rem 0.9rem;
    border-radius: 1rem;
    border: 1px solid rgba(69, 222, 231, 0.14);
    background: rgba(69, 222, 231, 0.07);
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9rem;
}

.flow-strip {
    display: grid;
    gap: 0.9rem;
}

.flow-step {
    position: relative;
    padding: 1rem 1rem 1rem 3.4rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.flow-step::before {
    content: attr(data-step);
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: rgba(69, 222, 231, 0.14);
    color: #bff8fb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
}

.flow-step strong {
    display: block;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.flow-step span {
    color: #9aa3a3;
    font-size: 0.85rem;
    line-height: 1.45;
}

.compare-grid {
    display: grid;
    gap: 1rem;
}

.compare-row {
    display: grid;
    grid-template-columns: minmax(94px, 120px) 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
}

.compare-name {
    color: #dfe3e3;
    font-size: 0.82rem;
}

.compare-meter {
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    height: 0.55rem;
}

.compare-fill {
    display: block;
    width: var(--fill, 50%);
    height: 100%;
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.compare-fill--prometo {
    background: linear-gradient(90deg, #45dee7, #b8f8fb);
}

.compare-fill--generic {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.7));
}

.reveal.is-visible .compare-fill {
    transform: scaleX(1);
}

.compare-caption {
    color: #9aa3a3;
    font-size: 0.75rem;
    text-align: right;
}

.range-grid {
    display: grid;
    gap: 0.95rem;
}

.range-row {
    display: grid;
    grid-template-columns: minmax(110px, 148px) minmax(140px, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
}

.range-label,
.range-value {
    font-size: 0.8rem;
}

.range-label {
    color: #dfe3e3;
}

.range-value {
    color: #9aa3a3;
    text-align: right;
    white-space: nowrap;
}

.range-track {
    overflow: hidden;
    border-radius: 999px;
    height: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
}

.range-fill {
    display: block;
    width: var(--fill, 50%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #45dee7, #b6f6fb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.92s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible .range-fill {
    transform: scaleX(1);
}

.section-note {
    margin-top: 1rem;
    color: #9aa3a3;
    font-size: 0.84rem;
    line-height: 1.5;
}

.answer-panel {
    border-radius: 1.5rem;
    border: 1px solid rgba(69, 222, 231, 0.14);
    background: rgba(69, 222, 231, 0.06);
    padding: 1.1rem 1.2rem;
}

.answer-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    color: #bff8fb;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.answer-label::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #45dee7;
    box-shadow: 0 0 12px rgba(69, 222, 231, 0.7);
}

.answer-panel p {
    color: #dfe3e3;
    line-height: 1.6;
}

.jump-nav {
    display: grid;
    gap: 0.85rem;
}

.jump-nav-title {
    color: #9aa3a3;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    scrollbar-width: none;
}

.jump-links::-webkit-scrollbar {
    display: none;
}

.screenshot-rail > figure {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.screenshot-rail > figure img {
    display: block;
    width: auto !important;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
    object-position: center center;
}

.jump-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #dfe3e3;
    font-size: 0.9rem;
    line-height: 1.2;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        background 0.25s ease;
}

.jump-link:hover {
    transform: translateY(-2px);
    border-color: rgba(69, 222, 231, 0.2);
    color: #ffffff;
    background: rgba(69, 222, 231, 0.08);
}

.jump-link::before {
    content: "→";
    color: #45dee7;
    font-weight: 700;
}

.topic-map {
    display: grid;
    gap: 1rem;
}

.topic-map-card {
    padding: 1.1rem 1.15rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.topic-map-card:hover {
    transform: translateY(-3px);
    border-color: rgba(69, 222, 231, 0.18);
    background: rgba(69, 222, 231, 0.05);
}

.topic-map-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    line-height: 1.25;
}

.topic-map-card p {
    color: #9aa3a3;
    font-size: 0.88rem;
    line-height: 1.5;
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -12px, 0) scale(1.04);
    }
}

@keyframes chipFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@media (max-width: 1023px) {
    .hero-chip {
        position: static;
        max-width: none;
        animation: none;
    }

    .signal-panel {
        position: static;
        margin-top: 1rem;
    }

    .hero-visual {
        padding-bottom: 0;
    }
}

@media (max-width: 767px) {
    .hero-device {
        max-height: min(68vh, 38rem);
    }

    .bar-row,
    .range-row,
    .signal-row {
        grid-template-columns: 1fr;
    }

    .bar-value,
    .range-value,
    .compare-caption {
        text-align: left;
    }

    .compare-row {
        grid-template-columns: 1fr;
    }

    .jump-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .jump-link {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .screenshot-rail {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(84vw, 1fr);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        padding: 0 0.25rem 0.35rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .screenshot-rail::-webkit-scrollbar {
        display: none;
    }

    .screenshot-rail--wide {
        grid-auto-columns: minmax(92vw, 1fr);
    }

    .screenshot-rail > figure {
        scroll-snap-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-delay-1,
    .reveal-delay-2,
    .reveal-delay-3 {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .lift-on-hover,
    .hero-device,
    .hero-chip,
    .ambient-orb,
    .signal-fill,
    .bar-fill,
    .compare-fill,
    .range-fill {
        animation: none;
        transition: none;
        transform: none;
    }
}
