:root {
    --bg-dark: #000814;
    --highlight: #00d4ff;
    --text-white: #ffffff;
    --grid-color: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-white);
    position: relative;
}

/* --- BACKGROUND THEME --- */
.background-gradient {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #0055ff 0%, #001233 70%, #000000 100%);
    opacity: 0.8;
    z-index: -3;
}

.grid-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    mask-image: radial-gradient(circle, black 40%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 95%);
}

.glowing-square {
    position: fixed;
    background: var(--highlight);
    width: 50px; height: 50px;
    opacity: 0;
    box-shadow: 0 0 15px var(--highlight);
    animation: pulsePixel 4s infinite;
    z-index: -1;
}

@keyframes pulsePixel {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8); }
}

.sq-1 { top: 20%; left: 30%; animation-delay: 0s; }
.sq-2 { top: 60%; left: 70%; animation-delay: 1.5s; }
.sq-3 { top: 35%; left: 65%; animation-delay: 2.5s; background: #ffffff; }
.sq-4 { top: 75%; left: 20%; animation-delay: 3s; }


/* --- HERO (index page) --- */
.hero-body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-content {
    z-index: 10;
    text-align: center;
}

.rovo-logo {
    width: clamp(220px, 30vw, 380px);
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.6));
}

p.subtitle {
    margin-top: 10px;
    font-size: 1.3rem;
    letter-spacing: 4px;
    opacity: 0.9;
    font-weight: 300;
    color: var(--highlight);
    text-transform: uppercase;
}

/* --- INTEGRATED FOOTER CONTROLS (hero buttons) --- */
.integrated-footer {
    position: absolute;
    bottom: 60px;
    display: flex;
    gap: 1px;
    z-index: 20;
}

.control-unit {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-contact {
    padding: 0 30px;
    height: 50px;
}

.btn-x {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.control-unit:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--highlight);
    color: var(--highlight);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
}

.control-unit:active {
    transform: translateY(0) scale(0.95);
}

/* --- PAGE CONTENT (terms, refund, contact) --- */
.page-content {
    z-index: 10;
    max-width: 720px;
    width: 100%;
    padding: 60px 24px 80px;
    line-height: 1.7;
}

.page-content h1 {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--highlight);
}

.page-content .page-updated {
    font-size: 0.8rem;
    opacity: 0.4;
    margin-bottom: 40px;
}

.page-content h2 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text-white);
}

.page-content p,
.page-content li {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.6;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.page-content ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.page-content a {
    color: var(--highlight);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* --- PRODUCT CARDS --- */
.products-section {
    z-index: 10;
    max-width: 960px;
    width: 100%;
    padding: 60px 24px 80px;
}

.products-section h1 {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--highlight);
    text-align: center;
}

.products-section .section-desc {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.45;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: 0.3px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    background: rgba(0, 212, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.1);
}

.product-card img {
    height: 48px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.product-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.75rem;
    font-weight: 300;
    opacity: 0.45;
    line-height: 1.8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-card .card-link {
    text-decoration: none;
    color: var(--highlight);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s;
}

.product-card .card-link:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--highlight);
}

/* --- CONTACT INFO --- */
.contact-block {
    display: flex;
    justify-content: center;
    gap: 1px;
    margin-top: 32px;
}

/* --- HERO FOOTER (home page, absolute positioned) --- */
.hero-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 16px 24px;
    text-align: center;
}

/* --- SITE FOOTER --- */
.site-footer {
    z-index: 10;
    width: 100%;
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    list-style: none;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--highlight);
}

.footer-links a.active {
    color: var(--highlight);
}

.footer-copy {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.35;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .rovo-logo { width: clamp(180px, 50vw, 280px); }
    p.subtitle { font-size: 0.9rem; }

    .page-content {
        padding: 40px 16px 60px;
    }

    .products-section {
        padding: 40px 16px 60px;
    }

    .page-content h1,
    .products-section h1 {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }
}
