/* Homepage-only storytelling, showcase, and proof layouts */

.hero-v2 {
    padding-bottom: 64px;
}

.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-body) 78%, transparent);
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-v2 .titan-title {
    font-size: clamp(3.1rem, 2.2rem + 4.2vw, 5.4rem);
    letter-spacing: -0.02em;
    line-height: 1.03;
    margin-bottom: 18px;
}

.hero-v2 .titan-subtitle {
    max-width: 640px;
}

.hero-proof {
    width: min(1040px, 100%);
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.proof-item {
    --card-accent: var(--primary-color);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    grid-column: span 3;
    text-align: left;
    min-height: 196px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 76px 22px 22px;
    border-radius: 28px;
    border: 1px solid color-mix(in srgb, var(--border-color) 76%, transparent);
    background:
        radial-gradient(190px 150px at 100% 0%, color-mix(in srgb, var(--card-accent) 16%, transparent), transparent 72%),
        linear-gradient(180deg,
            color-mix(in srgb, var(--surface-elevated) 88%, transparent) 0%,
            color-mix(in srgb, var(--surface-color) 94%, transparent) 58%,
            color-mix(in srgb, var(--surface-muted) 82%, transparent) 100%);
    box-shadow: 0 34px 94px -72px var(--shadow-color), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.proof-item::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 22px;
    width: 52px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--card-accent), transparent);
    pointer-events: none;
}

.proof-item > * {
    position: relative;
    z-index: 1;
}

.proof-item:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--card-accent) 28%, var(--border-color));
    box-shadow: 0 42px 106px -78px color-mix(in srgb, var(--card-accent) 28%, var(--shadow-color));
}

.proof-item:nth-child(1) {
    grid-column: span 5;
}

.proof-item:nth-child(2) {
    grid-column: span 7;
}

.proof-item:nth-child(3) {
    grid-column: span 7;
}

.proof-item:nth-child(4) {
    grid-column: span 5;
}

.proof-top {
    font-size: clamp(1.5rem, 1.1rem + 1vw, 2.15rem);
    font-weight: 760;
    letter-spacing: -0.025em;
    line-height: 1.02;
    color: color-mix(in srgb, var(--text-hero) 96%, var(--text-body));
    max-width: 8ch;
}

.proof-bottom {
    margin-top: 12px;
    font-size: 0.98rem;
    line-height: 1.45;
    color: color-mix(in srgb, var(--text-body) 92%, transparent);
    max-width: 16ch;
}

.hero-media {
    margin-top: 28px;
}

.hero-media-card {
    width: auto;
    height: min(88vh, 1080px);
    aspect-ratio: 9 / 19.5;
    margin: 0 auto;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
    background: transparent;
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
}

.hero-media-card::after {
    display: none;
}

.hero-video,
.hero-fallback-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
    transition: opacity 400ms ease, transform 400ms ease;
}

.hero-fallback-image {
    z-index: 2;
    opacity: 1;
}

.hero-media-card.is-video-ready .hero-fallback-image {
    opacity: 0;
}

.hero-media-card.is-swapping .hero-video,
.hero-media-card.is-swapping .hero-fallback-image {
    opacity: 0;
    transform: scale(0.98);
}

.scroll-story {
    padding: 80px 0;
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.scroll-story + .scroll-story {
    border-top: 1px solid color-mix(in srgb, var(--border-color) 65%, transparent);
}

.scroll-story-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 60px;
    align-items: start;
}

.scroll-copy {
    padding-top: 22px;
    max-width: 560px;
}

.scroll-media {
    position: relative;
    display: grid;
    justify-items: end;
}

.scroll-phone {
    position: sticky;
    top: calc(var(--nav-height) + 34px);
    max-width: 420px;
}

.scroll-sticky {
    position: sticky;
    top: calc(var(--nav-height) + 34px);
    width: auto;
    height: min(86vh, 1040px);
    aspect-ratio: 9 / 19.5;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
    background: transparent;
    isolation: isolate;
}

.scroll-canvas,
.scroll-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: transparent;
    transition: opacity 400ms ease, transform 400ms ease;
}

.scroll-canvas {
    z-index: 1;
    opacity: 0;
}

.scroll-fallback {
    z-index: 2;
    opacity: 1;
}

.scroll-sticky.is-swapping .scroll-canvas,
.scroll-sticky.is-swapping .scroll-fallback {
    opacity: 0;
    transform: scale(0.98);
}

.scroll-sticky.is-seq-ready .scroll-canvas {
    opacity: 1;
}

.scroll-sticky.is-seq-ready .scroll-fallback {
    opacity: 0;
}

.scroll-sticky.seq-missing .scroll-canvas {
    opacity: 0;
}

.testimonial-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.testimonial-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.testimonial-quote-card {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--radius-card);
    background: var(--surface-card);
    border: 1px solid color-mix(in srgb, var(--border-color) 40%, transparent);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-quote-card::before {
    content: "\201C";
    position: absolute;
    top: -6px;
    left: 20px;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.45;
    font-family: Georgia, serif;
}

.testimonial-quote-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-hero);
    margin: 0;
}

.testimonial-quote-card .testimonial-attr {
    margin-top: 14px;
    font-size: 0.8rem;
    font-style: normal;
    color: var(--text-body);
    opacity: 0.65;
}

.testimonial-col .phone-frame {
    max-width: 320px;
}

.hero-showcase {
    position: relative;
    padding: 0 0 10px;
}

.hero-showcase-inner {
    display: grid;
    gap: 18px;
    justify-items: center;
}

.showcase-media {
    width: auto;
    height: min(78vh, 820px);
    aspect-ratio: 9 / 19.5;
    border-radius: 0;
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    position: relative;
    display: grid;
    place-items: center;
}

.showcase-media::after {
    display: none;
}

.showcase-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: transparent;
    opacity: 0.98;
    transition: opacity 400ms ease, transform 400ms ease;
    transform: translateZ(0);
}

.showcase-media.is-swapping .showcase-image {
    opacity: 0;
    transform: scale(0.98);
}

.showcase-caption {
    width: min(720px, 100%);
    text-align: center;
    display: grid;
    gap: 6px;
}

.showcase-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: color-mix(in srgb, var(--text-body) 78%, transparent);
    font-weight: 700;
}

.showcase-title {
    font-size: 1.1rem;
    font-weight: 650;
    color: color-mix(in srgb, var(--text-hero) 92%, var(--text-body));
    letter-spacing: -0.01em;
}

.showcase-thumbs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    width: min(1040px, 100%);
}

.showcase-thumb {
    border: 1px solid var(--border-subtle);
    background: var(--surface-card);
    border-radius: 20px;
    padding: 10px 10px 12px;
    display: grid;
    gap: 10px;
    width: 136px;
    cursor: pointer;
    color: var(--text-hero);
    box-shadow: 0 20px 52px -56px var(--shadow-color);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.showcase-thumb:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--border-color) 72%, var(--text-hero));
    background: var(--surface-card-hover);
}

.showcase-thumb:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--primary-color) 85%, transparent);
    outline-offset: 3px;
}

.showcase-thumb.is-active {
    border-color: color-mix(in srgb, var(--primary-color) 85%, var(--border-color));
    box-shadow: 0 26px 70px -60px color-mix(in srgb, var(--primary-color) 45%, var(--shadow-color));
    position: relative;
    overflow: hidden;
}

.showcase-thumb.is-active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 0 0 20px 20px;
    animation: thumb-progress 5s linear forwards;
    opacity: 0.7;
}

.hero-showcase:hover .showcase-thumb.is-active::after {
    animation-play-state: paused;
}

.thumb-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    background:
        radial-gradient(260px 140px at 25% 0%, color-mix(in srgb, var(--primary-color) 14%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-muted) 70%, transparent), color-mix(in srgb, var(--surface-color) 85%, transparent));
}

.thumb-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 180ms ease, transform 180ms ease;
}

.thumb-label {
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    text-align: left;
    color: color-mix(in srgb, var(--text-hero) 92%, var(--text-body));
}

.card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: color-mix(in srgb, var(--text-hero) 90%, var(--text-body));
    background: color-mix(in srgb, var(--accent-color) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-color) 26%, transparent);
}

@keyframes thumb-progress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@media (min-height: 820px) and (min-width: 900px) {
    .hero-v2 {
        padding-top: calc(76px + var(--nav-height));
    }
}

@media (max-width: 980px) {
    .hero-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proof-item,
    .proof-item:nth-child(1),
    .proof-item:nth-child(2),
    .proof-item:nth-child(3),
    .proof-item:nth-child(4) {
        grid-column: span 1;
    }

    .scroll-story-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .scroll-sticky {
        position: relative;
        top: auto;
    }

    .scroll-phone {
        position: relative;
        top: auto;
        margin: 0 auto;
    }

    .scroll-media {
        justify-items: center;
    }

    .testimonial-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .testimonial-col .phone-frame {
        max-width: 360px;
    }
}

@media (max-width: 734px) {
    .hero-v2 .titan-title {
        font-size: clamp(2.45rem, 1.95rem + 4.2vw, 3.4rem);
    }

    .hero-proof {
        grid-template-columns: 1fr;
    }

    .proof-item,
    .proof-item:nth-child(1),
    .proof-item:nth-child(2),
    .proof-item:nth-child(3),
    .proof-item:nth-child(4) {
        grid-column: auto;
        min-height: 168px;
    }

    .showcase-media {
        height: min(78vh, 740px);
        aspect-ratio: 9 / 19.5;
    }

    .showcase-thumbs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .showcase-thumbs::-webkit-scrollbar {
        display: none;
    }

    .showcase-thumb {
        flex: 0 0 auto;
        width: 150px;
    }

    .testimonial-col .phone-frame {
        max-width: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-thumb.is-active::after {
        display: none;
    }

    .hero-media-card.is-video-ready .hero-fallback-image {
        opacity: 1;
    }

    .scroll-canvas {
        display: none !important;
    }

    .scroll-fallback {
        position: relative;
        opacity: 1 !important;
    }

    .scroll-sticky {
        aspect-ratio: auto;
        min-height: auto;
        height: auto;
    }
}
