/* ==============================================
   HOMEPAGE — Styles only used on Home/Index
   Hero, Carousel, Three-col, Brand, Features,
   Integrations, Business/News cards
   ============================================== */

/* ---- HERO ---- */
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 177.78vh;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
    border: none;
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.45);
}
.section--hero .container { width: 100%; }
.section--hero.has-video .container { position: relative; z-index: 2; }
.section--hero.has-video .scroll-indicator { position: relative; z-index: 2; }
.section--hero.has-video h1,
.section--hero.has-video p { color: #fff; }

.hero-video-direct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

/* Hero split layout */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    min-height: 80vh;
}
.hero-split--no-visual { grid-template-columns: 1fr; justify-items: start; text-align: left; }
.section--hero.has-video .hero-split { grid-template-columns: 1fr; justify-items: start; text-align: left; }
.hero-split--no-visual .hero-text h1 { font-size: clamp(4rem, 10vw, 9rem); }
.hero-text h1 { margin-bottom: 32px; }
.hero-text p { font-size: 1.25rem; max-width: 480px; margin-bottom: 40px; }

.hero-main-title {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
    text-transform: uppercase;
    white-space: pre-line;
}
.hero-cyan { color: #00F0FF; }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-visual-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #ddd 0%, #ccc 100%);
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    font-size: 1rem;
    overflow: hidden;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: scroll-bounce 2s ease-in-out infinite;
}
.scroll-indicator span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
    transform: rotate(45deg);
    opacity: 0.5;
}
.scroll-indicator span:last-child { opacity: 0.3; }

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- THREE-COLUMN TEXT ---- */
.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}
.three-col-item h2 { margin-bottom: 24px; }

/* ---- BRAND STATEMENT ---- */
.brand-statement { max-width: 900px; }
.brand-statement h2 { margin-bottom: 32px; line-height: 0.95; color: #000; }
.brand-statement p { font-size: 1.25rem; max-width: 800px; color: #000; }

/* ---- PRODUCT SHOWCASE ---- */
.product-showcase { text-align: center; }
.product-showcase h2 { margin-bottom: 16px; }
.product-showcase .subtitle { font-size: 1.375rem; color: var(--text-muted); margin-bottom: 64px; }
.product-mockup {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ---- FEATURE GRID ---- */
.features-intro { text-align: center; margin-bottom: 64px; }
.features-intro h2 { margin-bottom: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-card);
    padding: 40px;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    transition: var(--transition-btn);
    position: relative;
    overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.feature-card-visual {
    flex: 1;
    background: linear-gradient(135deg, #1a1a1a, #333);
    border-radius: 16px;
    margin-bottom: 32px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 1rem; }
.feature-card .btn-text { margin-top: 24px; }

/* ---- USE CASE CAROUSEL ---- */
#uc-inner { will-change: transform; }

.uc-inner-pad { padding-top: 128px; }

.use-case-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
}

.uc-carousel-outer { overflow: hidden; width: 100%; height: 520px; }

.uc-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0 10vw;
    height: 100%;
    align-items: stretch;
}
.uc-carousel-track::-webkit-scrollbar { display: none; }

.uc-carousel-card {
    flex: 0 0 80vw;
    height: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    scroll-snap-align: center;
}

.uc-card-text {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.uc-card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 16px;
}
.uc-card-heading {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #000;
    letter-spacing: -0.01em;
}
.uc-card-desc {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 360px;
}
.uc-card-media {
    overflow: hidden;
    background: #e5e3de;
    position: relative;
}

.uc-card-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: opacity 0.2s;
}
.uc-card-btn:hover { opacity: 0.75; }

/* Carousel controls */
.uc-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-bottom: 16px;
}
.uc-dots { display: flex; gap: 6px; align-items: center; }
.uc-pause-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #000;
    background: transparent;
    color: #000;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.uc-pause-btn:hover { opacity: 0.6; }
.uc-dot {
    width: 6px;
    height: 4px;
    border-radius: 2px;
    background: #ccc;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
}
.uc-dot.active { width: 24px; background: #000; }

@keyframes btn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ---- INTEGRATIONS ---- */
.integrations-inner { padding: 96px 0 128px; }
.integrations-header { margin-bottom: 64px; }
.integrations-header h2 { max-width: 700px; margin-bottom: 16px; }
.category-pills { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    border-radius: 16px;
    background: var(--black);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
    cursor: pointer;
    white-space: nowrap;
}
.category-pill:hover {
    background: #00F0FF;
    color: var(--black);
    border-color: var(--black);
    transform: translateY(-2px);
}

/* ---- BUSINESS / NEWS CARDS (Homepage) ---- */
.business-header { margin-bottom: 56px; }
.business-header h2 { max-width: 700px; margin-bottom: 20px; }
.business-header p { max-width: 600px; }

.business-carousel-outer { overflow: hidden; width: 100%; margin-bottom: 40px; }
.business-carousel {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px var(--container-padding) 32px;
}
.business-carousel::-webkit-scrollbar { display: none; }

.business-card {
    flex: 0 0 340px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s cubic-bezier(0.4,0,0.2,1);
    cursor: default;
}
.business-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,0.10); }

.business-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    overflow: hidden;
    flex-shrink: 0;
}
.business-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-card-img-relative { position: relative; overflow: hidden; }

/* Mini image slider */
.news-img-slider { display: flex; width: 100%; height: 100%; transition: none; }
.news-img-slider img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; }
.news-img-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.news-img-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; }
.news-img-dot.active { background: #fff; }
.news-img-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}
.news-img-arrow:hover { background: rgba(0,0,0,0.7); }
.news-img-arrow--prev { left: 8px; }
.news-img-arrow--next { right: 8px; }

.business-card-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.business-card-body h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; text-transform: none; margin-bottom: 10px; line-height: 1.3; }
.business-card-body p { font-size: 0.875rem; color: #555; line-height: 1.65; flex: 1; margin-bottom: 0; }

.business-card-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #000;
    border: 1.5px solid rgba(0,0,0,0.25);
    border-radius: 16px;
    padding: 8px 18px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.business-card-link:hover { background: #000; color: #fff; border-color: #000; }

.business-carousel-nav { display: flex; justify-content: center; gap: 12px; }
.business-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #000;
    background: transparent;
    color: #000;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s ease, color 0.22s ease;
}
.business-carousel-btn:hover { background: #000; color: #fff; }

/* Old carousel classes (unused but kept for compat) */
.use-case-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.use-case-header h2 { max-width: 600px; }
.carousel-nav { display: flex; gap: 12px; }
.carousel-btn {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--black); color: var(--white); border: none;
    cursor: pointer; font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-btn);
}
.carousel-btn:hover { background: var(--hover-dark); animation: btn-pulse 0.5s ease-in-out; }

.carousel-track {
    display: flex; gap: 24px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    -ms-overflow-style: none; padding-bottom: 16px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
    flex: 0 0 380px; background: var(--white); border-radius: var(--radius-card);
    padding: 32px; scroll-snap-align: start; transition: var(--transition-btn);
    min-height: 280px; display: flex; flex-direction: column; justify-content: space-between;
}
.carousel-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); }
.carousel-card-tag {
    display: inline-block; font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 4px 12px; border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.06); margin-bottom: 16px;
}
.carousel-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.carousel-card p { font-size: 0.9375rem; flex: 1; }

/* ---- HOMEPAGE RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; gap: 40px; }
    .three-col { grid-template-columns: 1fr; gap: 40px; }
    .feature-grid { grid-template-columns: 1fr; }
    .business-grid { grid-template-columns: repeat(2, 1fr); }
    .category-pill { padding: 16px 28px; font-size: 0.875rem; }
    .uc-carousel-card { flex: 0 0 90% !important; min-width: 0 !important; height: 480px !important; }
    .use-case-header-layout { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 640px) {
    .hero-split { grid-template-columns: 1fr; gap: 24px; }
    .hero-visual { min-height: 200px; }
    .business-grid { grid-template-columns: 1fr; }
    .category-pill { padding: 14px 24px; font-size: 0.8rem; }
    .uc-carousel-card {
        flex: 0 0 92% !important; min-width: 0 !important;
        height: 500px !important; min-height: auto !important;
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .uc-carousel-card > div:first-child { flex: 1 1 auto; overflow: hidden; }
    .uc-carousel-card > div:last-child { height: 180px; flex-shrink: 0; }
    .uc-card-text { padding: 28px 24px; }
    .uc-card-desc {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 20px;
    }
    .uc-carousel-outer { height: auto; }
    .three-col > div { padding: 24px !important; }
    .uc-dots { display: none; }
    .uc-controls { justify-content: center; }
    .uc-inner-pad { padding-top: 48px; }
}
