/* ============================================================
   HOME PAGE STYLES — Light Theme
   ============================================================ */

/* ═══════ HERO (Dark section) ═══════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-hero);
    --hero-scroll-offset: clamp(1rem, 2.5vh, 1.75rem);
    --hero-scroll-block-height: 4rem;
    --hero-bottom-ui-gap: 1.25rem;
}

/* ─── Slider Images ─── */
.hero__slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}

.hero__slide.active { opacity: 1; }

/* ─── Dark Overlay ─── */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(8, 16, 48, 0.78) 0%,
        rgba(12, 22, 60, 0.65) 60%,
        rgba(8, 16, 48, 0.80) 100%
    );
    z-index: 1;
}

/* ─── Grid Texture (above overlay) ─── */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero__bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.08) 80px),
        repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.08) 80px);
    background-size: 80px 80px;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.015; }
    50% { opacity: 0.03; }
}

/* ─── Slide Label (bottom-left) ─── */
.hero__slide-label-wrap {
    position: absolute;
    bottom: 108px;
    left: clamp(1.5rem, 4vw, 3rem);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.hero__slide-label-wrap:hover { opacity: 1; }

.hero__slide-label-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-cta);
    flex-shrink: 0;
}

.hero__slide-label-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.hero__slide-label-text {
    font-size: 0.7rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-widest);
    color: rgba(255, 255, 255, 0.75);
    transition: opacity 0.5s;
}

/* ─── Navigation Arrows ─── */
.hero__slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s, border-color 0.3s, transform 0.25s;
    padding: 0;
}

.hero__slider-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.40);
    transform: translateY(-50%) scale(1.08);
}

.hero__slider-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero__slider-prev { left: clamp(1rem, 3vw, 2.5rem); }
.hero__slider-next { right: clamp(1rem, 3vw, 2.5rem); }

/* ─── Dots + Progress bar footer ─── */
.hero__slider-footer {
    position: absolute;
    bottom: calc(
        var(--hero-scroll-offset) +
        var(--hero-scroll-block-height) +
        var(--hero-bottom-ui-gap)
    );
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero__slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.30);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.4s ease, background 0.4s ease;
}

.hero__dot.active {
    width: 28px;
    background: #fff;
}

.hero__dot:hover:not(.active) { background: rgba(255,255,255,0.55); }

.hero__slider-progress-track {
    width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 1px;
    overflow: hidden;
}

.hero__slider-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-cta);
    border-radius: 1px;
    /* duration injected by JS via inline style */
}

/* ─── Content & Scroll indicator (z-index updates) ─── */
.hero__content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-lg);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero {
        --hero-scroll-offset: 0.75rem;
        --hero-scroll-block-height: 3.75rem;
        --hero-bottom-ui-gap: 0.875rem;
    }

    .hero__slider-btn {
        width: 40px;
        height: 40px;
    }
    .hero__slider-btn svg { width: 16px; height: 16px; }
    .hero__slider-prev { left: 0.75rem; }
    .hero__slider-next { right: 0.75rem; }
    .hero__slide-label-wrap { display: none; }
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: var(--fw-extrabold);
    color: #FFFFFF;
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-md);
}

.hero__title span,
.hero__subtitle {
    transition: opacity 0.35s ease;
}

.hero__title-accent {
    color: var(--accent-cta);
}

.hero__subtitle {
    font-size: var(--fs-subtitle);
    color: var(--text-on-dark-secondary);
    max-width: 650px;
    margin: 0 auto var(--space-xl);
    line-height: var(--lh-relaxed);
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--hero-scroll-offset);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2s infinite;
}

.hero__scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: var(--ls-widest);
    color: var(--text-on-dark-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-on-dark-muted), transparent);
}

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

/* ═══════ METRICS BAR ═══════ */
.metrics {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--bg-border);
    overflow: hidden;
}

.metrics::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--gradient-steel);
}

.metrics__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--max-width);
    margin: 0 auto;
}

.metrics__item {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    position: relative;
}

.metrics__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: var(--bg-border);
}

.metrics__value {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    font-weight: var(--fw-bold);
    color: var(--brand-navy);
    line-height: 1;
    margin-bottom: 8px;
}

.metrics__label {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--ls-widest);
    font-weight: var(--fw-medium);
}

@media (max-width: 768px) {
    .metrics__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .metrics__item:nth-child(2)::after { display: none; }
    .metrics__item { padding: var(--space-lg) var(--space-sm); }
}

@media (max-width: 480px) {
    .metrics__grid { grid-template-columns: 1fr; }
    .metrics__item::after { display: none; }
    .metrics__item { border-bottom: 1px solid var(--bg-border-light); }
    .metrics__item:last-child { border-bottom: none; }
}

/* ═══════ SERVICES CARDS ═══════ */
.home-services {
    background: var(--bg-primary);
}

.home-services .grid {
    gap: var(--space-md);
}

/* ═══════ TECHNOLOGY PREVIEW ═══════ */
/* HOME VIDEO SHOWCASE */
.home-video {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(141, 95, 168, 0.26), transparent 34%),
        radial-gradient(circle at bottom left, rgba(106, 46, 115, 0.18), transparent 28%),
        linear-gradient(180deg, #221126 0%, #301735 100%);
}

.home-video::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.18;
    pointer-events: none;
}

.home-video .container {
    position: relative;
    z-index: 1;
}

.home-video__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.home-video__content .section-header {
    margin-bottom: var(--space-lg);
}

.home-video__content .section-header__subtitle {
    max-width: 34rem;
    color: var(--text-on-dark-secondary);
}

.home-video__points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-sm);
}

.home-video__points li {
    position: relative;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-on-dark-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-video__points li::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cta);
    box-shadow: 0 0 0 8px rgba(141, 95, 168, 0.16);
}

.home-video__media {
    position: relative;
}

.home-video__frame {
    position: relative;
    padding: var(--space-sm);
    border-radius: calc(var(--radius-xl) + 4px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
    box-shadow: var(--shadow-heavy);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.home-video__frame::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.home-video__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.home-video__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    color: #FFFFFF;
}

.home-video__badge::before {
    content: '';
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--accent-cta);
    box-shadow: 0 0 18px rgba(141, 95, 168, 0.55);
}

.home-video__hint {
    font-size: var(--fs-small);
    color: var(--text-on-dark-muted);
}

.home-video__player-wrap {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #100813;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-video__player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #100813;
}

.tech-preview {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.tech-preview__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.tech-preview__text h3 { margin-bottom: var(--space-sm); }

.tech-preview__text p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: var(--lh-relaxed);
}

.tech-preview__specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.tech-preview__spec-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.tech-preview__spec-value {
    font-family: var(--font-mono);
    font-size: var(--fs-section-title);
    font-weight: var(--fw-bold);
    color: var(--brand-navy);
    margin-bottom: 4px;
}

.tech-preview__spec-label {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
}

@media (max-width: 768px) {
    .home-video__layout {
        grid-template-columns: 1fr;
    }

    .home-video__frame {
        padding: 0.75rem;
        border-radius: 20px;
    }

    .home-video__points li {
        padding-left: 2.75rem;
    }

    .home-video__hint {
        width: 100%;
    }

    .tech-preview__content { grid-template-columns: 1fr; }
}

/* ═══════ WHY US ═══════ */
.why-us { background: var(--bg-primary); }

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.why-us__item {
    padding: var(--space-lg);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    background: var(--bg-card);
}

.why-us__item:hover {
    border-color: var(--brand-steel-light);
    box-shadow: var(--shadow-card);
}

.why-us__item-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-sm);
    color: var(--brand-navy);
}

.why-us__item-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.why-us__item h4 {
    margin-bottom: var(--space-xs);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
}

.why-us__item p {
    font-size: var(--fs-caption);
    color: var(--text-secondary);
    line-height: var(--lh-normal);
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .home-video__layout {
        grid-template-columns: 1fr;
    }

    .why-us__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .why-us__grid { grid-template-columns: 1fr; }
}
