/* =========================================================
   RVIOTECH HOMEPAGE
   Premium Dark / Teal Engineering Theme
========================================================= */

:root {
    --home-bg: #020908;
    --home-bg-2: #041310;
    --home-panel: rgba(5, 24, 20, 0.72);
    --home-border: rgba(0, 255, 204, 0.28);
    --home-border-soft: rgba(0, 255, 204, 0.12);
    --home-teal: #00e6bd;
    --home-teal-bright: #19f2c8;
    --home-text: #f4f8f7;
    --home-muted: #9baaa7;
}


/* =========================================================
   GLOBAL
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at 75% 5%,
            rgba(0, 210, 175, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 15% 45%,
            rgba(0, 120, 110, 0.06),
            transparent 32%
        ),
        var(--home-bg);

    color: var(--home-text);
}

main {
    overflow: hidden;
}

.rv-container {
    width: min(1380px, calc(100% - 80px));
    margin: 0 auto;
}


/* =========================================================
   NAVIGATION
========================================================= */

.rv-navbar {
    background: rgba(2, 9, 8, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(0, 255, 204, 0.10);

    position: relative;
    z-index: 100;
}

.rv-navbar-inner {
    min-height: 76px;
}

.rv-logo {
    max-height: 48px;
    width: auto;
}


/* =========================================================
   HERO
========================================================= */

.home-hero {
    position: relative;
    min-height: 0;
    padding: 62px 0 34px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg,
            rgba(2, 9, 8, 1) 0%,
            rgba(2, 9, 8, 0.98) 42%,
            rgba(2, 9, 8, 0.72) 68%,
            rgba(2, 9, 8, 0.92) 100%);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,255,204,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,204,.022) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%);
    pointer-events: none;
}

.home-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 34px;
}

.home-hero-copy {
    max-width: 690px;
}

.home-hero .rv-eyebrow {
    color: var(--home-teal);
    letter-spacing: 3.5px;
    font-weight: 700;
    font-size: 10px;
    margin-bottom: 20px;
}

.home-hero h1 {
    margin: 0;
    max-width: 650px;
    font-size: 58px;
    line-height: .96;
    letter-spacing: -2px;
    font-weight: 800;
    text-transform: uppercase;
}

.home-hero h1 span {
    display: block;
    color: var(--home-teal);
    text-shadow: 0 0 30px rgba(0,255,204,.10);
}

.home-hero p {
    max-width: 620px;
    margin: 22px 0 26px;
    color: #c3cfcc;
    font-size: 14px;
    line-height: 1.55;
}

.home-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.home-hero-actions .rv-btn {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.home-hero-actions .rv-btn span {
    font-size: 16px;
}

.home-hero-points {
    display: flex;
    margin-top: 38px;
    border-top: 1px solid var(--home-border-soft);
    padding-top: 16px;
}

.home-hero-points > div {
    padding: 0 25px;
    border-right: 1px solid var(--home-border-soft);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-hero-points > div:first-child { padding-left: 0; }
.home-hero-points > div:last-child { border-right: 0; }

.home-hero-points strong {
    font-size: 11px;
    color: #fff;
}

.home-hero-points span {
    font-size: 10px;
    color: var(--home-muted);
}

/* =========================================================
   HERO IMAGE
========================================================= */

.home-hero-visual {
    position: relative;
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: 0 0 55px rgba(0,255,204,.07), 0 20px 55px rgba(0,0,0,.35);
}

.hero-side-text {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: rgba(220,235,231,.78);
    font-size: 8px;
    letter-spacing: 3px;
    z-index: 5;
    text-shadow: 0 1px 7px #000;
}

.hero-side-text strong {
    color: var(--home-teal);
    margin-top: 7px;
}

@media (min-width: 1101px) {
    .home-hero .rv-container {
        width: min(1380px, calc(100% - 96px));
    }
}

/* =========================================================
   SECTION BASE
========================================================= */

.home-capabilities,
.home-lifecycle,
.home-products,
.home-industries {
    padding: 78px 0;
}

.section-top-line {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 28px;
}

.section-top-line .rv-eyebrow {
    color: var(--home-teal);

    letter-spacing: 4px;

    font-size: 13px;

    font-weight: 700;
}

.section-top-line a {
    color: var(--home-teal);

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: color 0.25s ease;
}

.section-top-line a:hover {
    color: #fff;
}


/* =========================================================
   CAPABILITIES
========================================================= */

.home-capabilities {
    background:
        linear-gradient(
            180deg,
            rgba(0, 255, 204, 0.025),
            transparent
        );
}

.capabilities-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    border:
        1px solid
        var(--home-border);

    border-radius: 8px;

    overflow: hidden;

    background:
        rgba(3, 17, 14, 0.65);

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.20);
}

.capability-item {
    min-height: 175px;

    padding: 28px 18px;

    text-align: center;

    color: inherit;

    text-decoration: none;

    border-right:
        1px solid
        var(--home-border-soft);

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.capability-item:last-child {
    border-right: 0;
}

.capability-item:hover {
    background:
        rgba(0, 255, 204, 0.065);

    transform: translateY(-3px);

    box-shadow:
        inset 0 0 35px
        rgba(0, 255, 204, 0.035);
}

.capability-icon {
    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--home-teal);

    font-size: 30px;

    font-weight: 500;

    margin-bottom: 14px;

    text-shadow:
        0 0 15px rgba(0, 255, 204, 0.25);
}

.capability-item h3 {
    margin: 0 0 10px;

    font-size: 13px;

    line-height: 1.35;

    color: #fff;
}

.capability-item p {
    margin: 0;

    color: #8e9d99;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   LIFECYCLE
========================================================= */

.home-lifecycle {
    background: #010605;
}

.lifecycle-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}

.lifecycle-heading .rv-eyebrow {
    color: var(--home-teal);

    letter-spacing: 3px;

    font-size: 12px;

    font-weight: 700;
}

.lifecycle-heading > span {
    color: #7e8c89;

    font-size: 10px;

    letter-spacing: 3px;
}

.lifecycle-frame {
    width: 100%;

    height: 590px;

    overflow: hidden;

    border:
        1px solid
        var(--home-border);

    border-radius: 8px;

    background: #020807;

    box-shadow:
        0 0 50px
        rgba(0, 255, 204, 0.04);
}

.lifecycle-frame iframe {
    display: block;

    width: 100%;

    height: 100%;

    border: 0;
}


/* =========================================================
   PRODUCTS
========================================================= */

.products-featured-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.featured-product {
    display: block;

    color: inherit;

    text-decoration: none;

    border:
        1px solid
        var(--home-border-soft);

    border-radius: 8px;

    overflow: hidden;

    background: #06110f;

    transition:
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.featured-product:hover {
    transform: translateY(-5px);

    border-color:
        var(--home-border);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 0 30px
        rgba(0, 255, 204, 0.05);
}

.featured-product-image {
    height: 260px;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 255, 204, 0.10),
            transparent 65%
        );

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}

.featured-product-image img {
    width: 85%;

    height: 85%;

    object-fit: contain;

    transition:
        transform 0.4s ease;
}

.featured-product:hover
.featured-product-image img {
    transform: scale(1.05);
}

.featured-product-info {
    min-height: 82px;

    padding: 18px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-top:
        1px solid
        var(--home-border-soft);

    background:
        rgba(0, 0, 0, 0.20);
}

.featured-product-info h3 {
    margin: 0 0 6px;

    font-size: 15px;

    font-weight: 600;
}

.featured-product-info p {
    margin: 0;

    color: #82918d;

    font-size: 11px;
}

.product-arrow {
    width: 36px;

    height: 36px;

    border:
        1px solid
        var(--home-border);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--home-teal);

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.featured-product:hover .product-arrow {
    background: var(--home-teal);

    color: #00100c;
}


/* =========================================================
   INDUSTRIES
========================================================= */

.industries-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 12px;
}

.industry-card {
    position: relative;

    min-height: 250px;

    overflow: hidden;

    border-radius: 6px;

    border:
        1px solid
        var(--home-border-soft);

    display: flex;

    align-items: flex-end;

    text-decoration: none;

    color: white;

    background:
        linear-gradient(
            145deg,
            #0c211d,
            #030807
        );

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);

    border-color:
        var(--home-border);
}

.industry-image {
    position: absolute;

    inset: 0;

    opacity: 0.55;

    transition:
        transform 0.5s ease,
        opacity 0.5s ease;
}

.industry-card:hover
.industry-image {
    transform: scale(1.08);

    opacity: 0.75;
}

.industry-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            transparent 15%,
            rgba(0, 0, 0, 0.92) 100%
        );
}

.industry-card span {
    position: relative;

    z-index: 2;

    padding: 20px;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.25;
}


/* =========================================================
   INDUSTRY VISUALS
========================================================= */

.industry-industrial {
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(0, 255, 204, 0.25),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #15241f,
            #030908
        );
}

.industry-facility {
    background:
        radial-gradient(
            circle at 60% 30%,
            rgba(0, 255, 204, 0.18),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #15211f,
            #040908
        );
}

.industry-construction {
    background:
        radial-gradient(
            circle at 40% 35%,
            rgba(0, 255, 204, 0.20),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #241f17,
            #050807
        );
}

.industry-agriculture {
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(50, 180, 130, 0.20),
            transparent 50%
        ),
        linear-gradient(
            135deg,
            #102019,
            #030806
        );
}

.industry-smart {
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(0, 255, 204, 0.24),
            transparent 50%
        ),
        linear-gradient(
            135deg,
            #102320,
            #030807
        );
}

.industry-energy {
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(0, 255, 204, 0.20),
            transparent 50%
        ),
        linear-gradient(
            135deg,
            #13201e,
            #030807
        );
}


/* =========================================================
   FINAL CTA
========================================================= */

.home-final-cta {
    position: relative;

    padding: 100px 0;

    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(0, 255, 204, 0.13),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #020908,
            #010504
        );

    border-top:
        1px solid
        var(--home-border-soft);
}

.final-cta-grid {
    min-height: 320px;

    display: grid;

    grid-template-columns:
        1fr 1.4fr 0.45fr;

    align-items: center;

    gap: 50px;
}

.cta-globe {
    width: 100%;
    height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.cta-globe-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.globe-grid {
    position: absolute;

    inset: 20px;

    border-radius: 50%;

    background:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 20px,
            rgba(0, 255, 204, 0.12) 21px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 20px,
            rgba(0, 255, 204, 0.12) 21px
        );

    opacity: 0.6;
}

.final-cta-content .rv-eyebrow {
    color: var(--home-teal);

    letter-spacing: 4px;

    font-size: 11px;

    font-weight: 700;
}

.final-cta-content h2 {
    margin: 16px 0;

    font-size:
        clamp(
            34px,
            4vw,
            58px
        );

    line-height: 1;

    letter-spacing: -2px;
}

.final-cta-content h2 span {
    color: var(--home-teal);
}

.final-cta-content p {
    max-width: 520px;

    color: #91a09d;

    line-height: 1.6;

    margin-bottom: 25px;
}

.final-cta-content .rv-btn {
    display: inline-flex;

    align-items: center;

    gap: 14px;
}

.cta-side-text {
    padding-left: 25px;

    border-left:
        1px solid
        var(--home-border);

    display: flex;

    flex-direction: column;

    gap: 8px;

    color: #687773;

    font-size: 10px;

    letter-spacing: 4px;
}

.cta-side-text strong {
    color: var(--home-teal);

    margin-top: 8px;
}


/* =========================================================
   REVEAL
========================================================= */

.rv-reveal {
    opacity: 1;

    transform: none;
}

@media (
    prefers-reduced-motion: no-preference
) {

    .rv-reveal {
        animation:
            homeReveal
            0.8s
            ease
            both;
    }

    @keyframes homeReveal {

        from {
            opacity: 0;

            transform:
                translateY(20px);
        }

        to {
            opacity: 1;

            transform:
                translateY(0);
        }

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .rv-container {
        width:
            min(
                calc(100% - 50px),
                1100px
            );
    }

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

    .home-hero-copy {
        max-width: 850px;
    }

    .home-hero-visual {
        min-height: 0;
    }

    .capabilities-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .capability-item:nth-child(3) {
        border-right: 0;
    }

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

    .industries-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .final-cta-grid {
        grid-template-columns:
            1fr 1.5fr;
    }

    .cta-side-text {
        display: none;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .rv-container {
        width:
            calc(100% - 32px);
    }

    .home-hero {
        min-height: auto;
        padding: 50px 0 40px;
    }

    .home-hero h1 {
        font-size: clamp(38px, 10vw, 56px);
        letter-spacing: -1.5px;
    }

    .home-hero p {
        font-size: 15px;
    }

    .home-hero-points {
        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 18px;
    }

    .home-hero-points > div {
        padding:
            0 0 0 14px;

        border-right: 0;

        border-left:
            1px solid
            var(--home-border-soft);
    }

    .home-hero-points > div:first-child {
        padding-left: 14px;
    }

    .home-hero-visual {
        min-height: auto;
        margin-top: 10px;
    }

    .hero-image {
        width: 100%;
        max-width: 680px;
    }

    .hero-side-text {
        display: none;
    }

    .capabilities-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .capability-item {
        border-right:
            1px solid
            var(--home-border-soft);

        border-bottom:
            1px solid
            var(--home-border-soft);
    }

    .capability-item:nth-child(even) {
        border-right: 0;
    }

    .lifecycle-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .lifecycle-frame {
        height: 480px;
    }

    .products-featured-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .industry-card {
        min-height: 210px;
    }

    .final-cta-grid {
        grid-template-columns: 1fr;
    }

    .cta-globe {
        width: 220px;

        height: 220px;

        margin: 0 auto;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .home-hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .home-hero-actions .rv-btn {
        justify-content: center;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .capability-item,
    .capability-item:nth-child(even) {
        border-right: 0;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .section-top-line {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

}