/* =========================================================
   RVIOTECH WEBSITE
   COMMON CSS
   Shared across all pages
========================================================= */


/* =========================================================
   01. ROOT VARIABLES
========================================================= */

:root {

    /* Background */
		--rv-bg: #03100d;
--rv-bg-secondary: #061c16;
--rv-bg-card: #0b2920;

    /* Text */
    --rv-text: #f3f6f8;
    --rv-text-secondary: #b4bdc5;
    --rv-text-muted: #7d8790;

    /* Accent */
    --rv-accent: #36e0a0;
    --rv-accent-soft: rgba(54, 224, 160, 0.12);
    --rv-accent-glow: rgba(54, 224, 160, 0.35);

    /* Borders */
    --rv-border: rgba(255, 255, 255, 0.08);
    --rv-border-hover: rgba(54, 224, 160, 0.35);

    /* Layout */
    --rv-container: 1400px;
    --rv-padding: 5vw;

    /* Radius */
    --rv-radius-sm: 6px;
    --rv-radius-md: 12px;
    --rv-radius-lg: 20px;

    /* Shadows */
    --rv-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);

    --rv-glow:
        0 0 30px rgba(54, 224, 160, 0.15);

    /* Transitions */
    --rv-transition-fast: 0.2s ease;
    --rv-transition: 0.35s ease;
    --rv-transition-slow: 0.6s ease;
}


/* =========================================================
   02. RESET
========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    background:
        var(--rv-bg);

    color:
        var(--rv-text);

    font-family:
        "Inter",
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.5;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   03. SELECTION
========================================================= */

::selection {
    background: var(--rv-accent);
    color: #000;
}


/* =========================================================
   04. TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {

    margin: 0;

    font-weight: 700;

    letter-spacing: -0.035em;
}

p {
    margin: 0;
}

.rv-eyebrow {

    display: inline-block;

    margin-bottom: 18px;

    color:
        var(--rv-accent);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.25em;

    text-transform: uppercase;
}

.rv-heading-xl {

    font-size:
        clamp(48px, 7vw, 96px);

    line-height: 0.98;
}

.rv-heading-lg {

    font-size:
        clamp(40px, 5vw, 72px);

    line-height: 1;
}

.rv-heading-md {

    font-size:
        clamp(28px, 3vw, 42px);

    line-height: 1.1;
}

.rv-text {

    color:
        var(--rv-text-secondary);

    font-size: 17px;

    line-height: 1.8;
}

.rv-muted {

    color:
        var(--rv-text-muted);
}


/* =========================================================
   05. LAYOUT
========================================================= */

.rv-container {

    width: min(
        var(--rv-container),
        calc(100% - (var(--rv-padding) * 2))
    );

    margin-inline: auto;
}

.rv-section {

    position: relative;

    padding:
        140px 0;
}

.rv-section-dark {

    background:
        var(--rv-bg-secondary);
}


/* =========================================================
   06. COMMON GRID
========================================================= */

.rv-grid {

    display: grid;

    gap: 24px;
}

.rv-grid-2 {

    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.rv-grid-3 {

    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.rv-grid-4 {

    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


/* =========================================================
   07. NAVIGATION
========================================================= */

.rv-navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 76px;

    z-index: 1000;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            to bottom,
            rgba(5, 6, 8, 0.94),
            rgba(5, 6, 8, 0)
        );

    transition:
        background var(--rv-transition),
        backdrop-filter var(--rv-transition);
}

.rv-navbar.scrolled {

    background:
        rgba(5, 6, 8, 0.86);

    backdrop-filter:
        blur(16px);

    border-bottom:
        1px solid var(--rv-border);
}

.rv-navbar-inner {

    width: min(
        var(--rv-container),
        calc(100% - (var(--rv-padding) * 2))
    );

    margin-inline: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   08. LOGO
========================================================= */

.rv-logo {

    height: 42px;

    width: auto;

    object-fit: contain;
}


/* =========================================================
   09. NAV LINKS
========================================================= */

.rv-nav-links {

    display: flex;

    align-items: center;

    gap: 32px;
}

.rv-nav-links a {

    position: relative;

    color:
        var(--rv-text-secondary);

    font-size: 12px;

    font-weight: 500;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    transition:
        color var(--rv-transition-fast);
}

.rv-nav-links a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background:
        var(--rv-accent);

    transition:
        width var(--rv-transition);
}

.rv-nav-links a:hover {

    color:
        var(--rv-text);
}

.rv-nav-links a:hover::after {

    width: 100%;
}


/* =========================================================
   10. BUTTONS
========================================================= */

.rv-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 48px;

    padding:
        0 24px;

    border:
        1px solid transparent;

    border-radius:
        var(--rv-radius-sm);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    transition:
        transform var(--rv-transition-fast),
        background var(--rv-transition),
        border-color var(--rv-transition),
        color var(--rv-transition);
}

.rv-btn:hover {

    transform:
        translateY(-2px);
}

.rv-btn-primary {

    background:
        var(--rv-accent);

    color:
        #03100b;
}

.rv-btn-primary:hover {

    box-shadow:
        0 10px 35px
        rgba(54, 224, 160, 0.2);
}

.rv-btn-outline {

    border-color:
        var(--rv-border);

    color:
        var(--rv-text);

    background:
        transparent;
}

.rv-btn-outline:hover {

    border-color:
        var(--rv-accent);

    color:
        var(--rv-accent);
}


/* =========================================================
   11. COMMON CARDS
========================================================= */

.rv-card {

    position: relative;

    padding: 36px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.025),
            rgba(255,255,255,0)
        );

    border:
        1px solid var(--rv-border);

    border-radius:
        var(--rv-radius-md);

    overflow: hidden;

    transition:
        transform var(--rv-transition),
        border-color var(--rv-transition),
        background var(--rv-transition);
}

.rv-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--rv-accent),
            transparent
        );

    opacity: 0;

    transition:
        opacity var(--rv-transition);
}

.rv-card:hover {

    transform:
        translateY(-6px);

    border-color:
        var(--rv-border-hover);

    background:
        linear-gradient(
            145deg,
            rgba(54,224,160,0.045),
            rgba(255,255,255,0)
        );
}

.rv-card:hover::before {

    opacity: 1;
}


/* =========================================================
   12. CARD NUMBER
========================================================= */

.rv-card-number {

    color:
        var(--rv-accent);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.18em;
}


/* =========================================================
   13. DIVIDERS
========================================================= */

.rv-divider {

    width: 100%;

    height: 1px;

    background:
        var(--rv-border);
}


/* =========================================================
   14. TECHNICAL GRID BACKGROUND
========================================================= */

.rv-tech-grid {

    background-image:

        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size:
        60px 60px;
}


/* =========================================================
   15. GLOW
========================================================= */

.rv-glow {

    box-shadow:
        var(--rv-glow);
}


/* =========================================================
   16. FOOTER
========================================================= */

.rv-footer {

    position: relative;

    padding:
        90px 0 40px;

    background:
        #030405;

    border-top:
        1px solid var(--rv-border);
}

.rv-footer-grid {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 60px;
}

.rv-footer-title {

    margin-bottom: 20px;

    color:
        var(--rv-text);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}

.rv-footer-links {

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.rv-footer-links a {

    color:
        var(--rv-text-muted);

    font-size: 14px;

    transition:
        color var(--rv-transition-fast);
}

.rv-footer-links a:hover {

    color:
        var(--rv-accent);
}

.rv-footer-bottom {

    margin-top: 70px;

    padding-top: 25px;

    border-top:
        1px solid var(--rv-border);

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color:
        var(--rv-text-muted);

    font-size: 12px;
}


/* =========================================================
   17. SCROLL REVEAL
========================================================= */

.rv-reveal {

    opacity: 0;

    transform:
        translateY(30px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.rv-reveal.visible {

    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   18. MOBILE NAV PLACEHOLDER
========================================================= */

.rv-menu-toggle {

    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border:
        1px solid var(--rv-border);

    background:
        transparent;

    color:
        var(--rv-text);
}


/* =========================================================
   19. RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .rv-grid-4 {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .rv-footer-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 800px) {

    :root {

        --rv-padding: 7vw;
    }

    .rv-section {

        padding:
            100px 0;
    }

    .rv-grid-2,
    .rv-grid-3,
    .rv-grid-4 {

        grid-template-columns:
            1fr;
    }

    .rv-nav-links {

        display: none;
    }

    .rv-menu-toggle {

        display: flex;
    }

    .rv-footer-grid {

        grid-template-columns:
            1fr;

        gap: 40px;
    }

    .rv-footer-bottom {

        flex-direction: column;
    }

}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

.rv-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius-sm);

    background: rgba(5, 6, 8, 0.75);
    color: var(--rv-text);

    position: relative;
    z-index: 1002;
}

.rv-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--rv-text);

    transition:
        transform var(--rv-transition-fast),
        opacity var(--rv-transition-fast);
}

.rv-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.rv-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.rv-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* MOBILE DROPDOWN */

@media (max-width: 800px) {

    .rv-menu-toggle {
        display: flex;
    }

    .rv-nav-links {
        display: flex;

        position: absolute;

        top: 76px;
        left: var(--rv-padding);
        right: var(--rv-padding);

        flex-direction: column;
        align-items: stretch;

        gap: 0;
        padding: 10px;

        background: rgba(5, 6, 8, 0.97);

        border: 1px solid var(--rv-border);
        border-radius: var(--rv-radius-md);

        box-shadow: var(--rv-shadow);

        backdrop-filter: blur(16px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-10px);

        transition:
            opacity var(--rv-transition),
            visibility var(--rv-transition),
            transform var(--rv-transition);
    }

    .rv-nav-links.mobile-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .rv-nav-links a {
        display: block;
        padding: 15px 14px;
        font-size: 13px;
        border-radius: var(--rv-radius-sm);
    }

    .rv-nav-links a::after {
        display: none;
    }

    .rv-nav-links a:hover {
        background: var(--rv-accent-soft);
    }
}