/* ==========================================================================
   Home Page Styles — Hero, Mockup, Marquee, Features, FAQ, CTA
   ========================================================================== */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 48px 0 64px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--on-surface-variant);
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-headline {
    font-size: clamp(38px, 4.8vw, 68px);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.025em;
    color: var(--on-surface);
    margin-bottom: 24px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-subtext {
    font-size: 18px;
    line-height: 1.58;
    color: var(--on-surface-variant);
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-stats-counter {
    display: flex;
    gap: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--surface-container-high);
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--font-ui);
    font-size: 24px;
    font-weight: 600;
    color: var(--on-surface);
}

.stat-lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
}

/* ==========================================================================
   Browser Player Mockup Card (Hero Right)
   ========================================================================== */
.hero-mockup-wrapper {
    position: relative;
}

.browser-mockup {
    background: var(--primary-container);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-dark);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
    transition: transform 0.4s ease;
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: #1e2229;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.mockup-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #475569;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #eab308; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.mockup-address-bar {
    background: rgba(255, 255, 255, 0.07);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11px;
    color: #94a3b8;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mockup-viewport {
    padding: 28px 24px 20px;
    background: radial-gradient(circle at 75% 30%, #323944 0%, #1e2228 100%);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.mockup-viewport.mockup-video-container {
    padding: 0;
    margin: 0;
    min-height: unset;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f1217;
    overflow: hidden;
    position: relative;
    display: block;
}

.mockup-bg-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f1217;
    display: block;
    position: absolute;
    inset: 0;
    border: none;
    outline: none;
    pointer-events: none; /* Prevents video click interruptions */
}

.mockup-abstract-rings {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.mockup-abstract-rings::after {
    content: '';
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.mockup-play-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    z-index: 2;
}

.mockup-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    padding-left: 3px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.mockup-sub-pill {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    text-align: center;
    max-width: 280px;
}

.mockup-sub-pill h5 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.mockup-sub-pill span {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    color: #94a3b8;
    text-transform: uppercase;
}

.mockup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #cbd5e1;
    z-index: 2;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-footer span:last-child {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--secondary);
}

.mockup-floating-badge {
    position: absolute;
    bottom: -18px;
    right: -14px;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.mockup-floating-badge .badge-top {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
}

.mockup-floating-badge .badge-main {
    font-size: 13px;
    font-weight: 600;
    color: var(--on-surface);
}

/* ==========================================================================
   Continuous Marquee Ticker
   ========================================================================== */
.marquee-wrapper {
    width: 100%;
    max-width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--surface-container-highest);
    border-bottom: 1px solid var(--surface-container-highest);
    overflow: hidden;
    padding: 16px 0;
    user-select: none;
    white-space: nowrap;
    position: relative;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    animation: marqueeScroll 28s linear infinite;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-item {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    display: inline-flex;
    align-items: center;
    gap: 32px;
}

.marquee-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--secondary);
    display: inline-block;
}

/* ==========================================================================
   Floating Navigation Bar (Overlays Full-Screen Intro Image)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    padding: 0 24px;
    margin: 0;
}

/* ==========================================================================
   Codrops Intro Section (.block--intro)
   ========================================================================== */
.block.block--intro {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #0d1117;
    margin: 0;
    padding: 0;
}

.media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0 24px;
}

.media__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    filter: brightness(0.88);
}

.media__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(13, 17, 23, 0.35) 0%, rgba(13, 17, 23, 0.85) 100%);
}

.media__caption {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    color: #ffffff;
    max-width: 620px;
}

.media__tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    color: var(--secondary);
    background: rgba(204, 128, 102, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(204, 128, 102, 0.3);
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

.media__title {
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 14px;
    display: block;
}

.media__desc {
    font-size: 16.5px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 28px;
}

.media__scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.7);
    animation: bounceDown 2.2s infinite;
}

.media__scroll-hint i {
    font-size: 14px;
    color: var(--secondary);
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); opacity: 0.8; }
    40% { transform: translateY(8px); opacity: 1; }
    60% { transform: translateY(4px); opacity: 0.9; }
}

/* ==========================================================================
   Codrops Sticky Grid Scroll Section
   ========================================================================== */
.block.block--main {
    height: 425vh;
    position: relative;
    background-color: var(--surface);
    width: 100%;
}

.block__wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    padding: 0 24px;
    will-change: transform;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.content__title {
    max-width: 860px;
    font-size: clamp(34px, 4.4vw, 62px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--on-surface);
    text-align: center;
    margin: 0;
    will-change: transform, opacity;
}

.content__description {
    max-width: 520px;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--on-surface-variant);
    text-align: center;
    will-change: transform, opacity;
}

.content__button {
    display: inline-flex;
    margin-top: 28px;
    font-size: 15px;
    padding: 12px 28px;
    will-change: transform, opacity;
}

/* ---------------- Gallery ---------------- */
.gallery {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: min(800px, 86vw);
    z-index: 1;
    pointer-events: none;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 28px;
    row-gap: 32px;
    will-change: transform;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery__item {
    width: 100%;
    aspect-ratio: 1;
    will-change: transform;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #191c21;
}

.gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    transition: transform 0.4s ease;
}

.gallery__item:hover .gallery__image {
    transform: scale(1.06);
}

/* ==========================================================================
   "Why Stream" 3-Column Feature Grid
   ========================================================================== */
.why-section {
    padding: 80px 0;
}

.why-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 32px;
}

.why-headline {
    font-size: clamp(32px, 3.8vw, 46px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--on-surface);
}

.inline-pill-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: var(--surface-container-high);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-full);
    font-size: 16px;
    vertical-align: middle;
    margin: 0 6px;
}

.why-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--on-surface-variant);
    max-width: 400px;
}

.features-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    display: flex;
    flex-direction: column;
}

.feature-visual {
    background: var(--surface-container);
    border: 1px solid var(--surface-container-high);
    border-radius: var(--radius-xl);
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.45s ease;
    cursor: pointer;
}

.feature-visual:hover {
    transform: scale(1.045) translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.13);
    border-color: var(--secondary);
}

.feature-visual-inner {
    width: 78%;
    height: 75%;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-visual:hover .feature-visual-inner {
    transform: scale(1.06);
}

.vis-screen-1 {
    background: #191c21;
    color: #ffffff;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vis-screen-2 {
    background: #f0ebe5;
    border: 1px dashed var(--outline);
    color: var(--on-surface);
}

.vis-screen-3 {
    background: #cc8066;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.feature-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--on-surface-variant);
}

/* ==========================================================================
   Terracotta Quote / Sticky Scroll Reveal (Full-Width Codrops Style)
   ========================================================================== */
.quote-sticky-track {
    position: relative;
    height: 300vh;
    /* Full viewport width break-out */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.quote-sticky-pin {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: stretch;
    z-index: 5;
}

.quote-banner {
    background-color: #d47a5b;
    color: #1a1a1a;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.quote-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 40px 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.quote-eyebrow-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    gap: 12px;
}

.quote-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(26, 26, 26, 0.65);
}

.quote-body {
    font-size: clamp(24px, 3.2vw, 44px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0 0 40px;
    user-select: none;
    color: #1a1a1a;
}

.quote-word {
    display: inline;
    color: rgba(26, 26, 26, 0.18);
    transition: color 0.12s ease, text-shadow 0.12s ease;
    will-change: color;
}

/* Progress bar */
.quote-progress-bar {
    position: absolute;
    bottom: 32px;
    left: 40px;
    right: 40px;
    height: 1.5px;
    background: rgba(26, 26, 26, 0.15);
    border-radius: 2px;
}

.quote-progress-fill {
    height: 100%;
    width: 0%;
    background: rgba(26, 26, 26, 0.7);
    border-radius: 2px;
    transition: width 0.08s linear;
}

/* Mobile — re-enable sticky scroll (full-screen layout already correct) */
@media (max-width: 768px) {
    .quote-sticky-track {
        height: 280vh;
    }
    .quote-sticky-pin {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        height: auto; /* content-driven, no empty gaps */
    }
    .quote-inner {
        padding: 36px 22px 52px;
        min-height: unset; /* remove forced full-screen height */
    }
    .quote-eyebrow-row {
        margin-bottom: 24px;
    }
    .quote-eyebrow {
        font-size: 10px;
        letter-spacing: 0.12em;
    }
    .quote-body {
        font-size: clamp(20px, 5.8vw, 28px);
        line-height: 1.35;
        letter-spacing: -0.015em;
        margin-bottom: 30px;
    }
    /* Words start dim — JS reveals them on scroll */
    .quote-word {
        color: rgba(26, 26, 26, 0.18);
    }
    .quote-progress-bar {
        left: 22px;
        right: 22px;
        position: relative;
        margin-top: 0;
        bottom: auto;
    }
}



/* ==========================================================================
   "Three Steps: Bot to Browser"
   ========================================================================== */
.steps-section {
    padding: 80px 0;
}

.steps-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: flex-start;
}

.steps-left {
    position: sticky;
    top: 100px;
}

.steps-headline {
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--on-surface);
    margin-bottom: 20px;
}

.steps-subtext {
    font-size: 16px;
    line-height: 1.6;
    color: var(--on-surface-variant);
    max-width: 380px;
}

.steps-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.step-card-light {
    background: var(--surface-container-lowest);
    border: 1px solid var(--surface-container-highest);
    color: var(--on-surface);
}

.step-card-dark {
    background: var(--primary-container);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.step-card-darkest {
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    margin-bottom: 16px;
    display: block;
    opacity: 0.65;
}

.step-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step-card p {
    font-size: 15px;
    line-height: 1.55;
    opacity: 0.85;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    padding: 80px 0;
    border-top: 1px solid var(--surface-container-high);
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
}

.faq-left-title {
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--on-surface);
    margin-bottom: 18px;
}

.faq-contact-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--surface-container-highest);
}

.faq-summary {
    list-style: none;
    padding: 24px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--on-surface);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.15s ease;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary:hover {
    color: var(--secondary);
}

.faq-icon {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 400;
    color: var(--on-surface-variant);
    transition: transform 0.2s ease;
}

details[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    padding-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--on-surface-variant);
}

/* ==========================================================================
   Pre-Footer CTA Banner
   ========================================================================== */
.cta-banner-section {
    padding: 40px 0 80px;
}

.cta-banner-card {
    background: var(--primary-container);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: #ffffff;
    box-shadow: var(--shadow-dark);
}

.cta-banner-card h2 {
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}

.cta-banner-card p {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 540px;
}
