/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-color: #000000;
    --card-bg: rgba(20, 20, 20, 0.6);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-primary: #00D676;
    /* Olares Green */
    --accent-glow: rgba(0, 214, 118, 0.6);
    /* Intensified glow */
    --accent-amber: #ffbf00;
    --accent-amber-glow: rgba(255, 191, 0, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --border-radius: 24px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--accent-glow);
}

.btn-amber {
    background-color: var(--accent-amber);
    color: #000;
    box-shadow: 0 0 20px var(--accent-amber-glow);
}

.btn-amber:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--accent-amber-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.nav-links a {
    margin-left: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 80px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    filter: blur(150px);
    opacity: 0.2;
    z-index: -1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-sub {
    text-transform: uppercase;
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    /* Attempt to darken/blend the potentially white background of the provided image if it's not transparent */
    /* mix-blend-mode: lighten;  <- Risky if image isn't perfectly black bg */
}

/* Grid Layouts (Bento Box) */
.section {
    padding: 100px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px -10px var(--accent-glow);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.card h4 {
    font-size: 0.9rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.card p {
    font-size: 1rem;
    color: var(--text-muted);
}

.card.large {
    grid-column: span 2;
}

.card.full {
    grid-column: span 3;
    flex-direction: row;
    align-items: center;
}

.card.full .card-content {
    flex: 1;
}

/* Dual OS Section */
.dual-os {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.os-card {
    background: #0f0f0f;
    border-radius: var(--border-radius);
    padding: 60px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.os-card ul {
    list-style: none;
    margin-top: 30px;
}

.os-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.os-card li:last-child {
    border-bottom: none;
}

/* Carousels */
.carousel-section {
    padding: 80px 0;
    overflow: hidden;
}

.carousel-header {
    margin-bottom: 40px;
    max-width: 800px;
}

.carousel-track-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 40px;
    /* Space for scrollbar/shadow */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.carousel-track-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 0 40px;
    /* Match container padding */
    width: max-content;
}

.app-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 280px;
    height: 180px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.app-card:hover {
    border-color: var(--accent-amber);
    box-shadow: 0 5px 30px -5px var(--accent-amber-glow);
    transform: translateY(-5px);
}

.app-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

/* Community / Blog */
.blog-card {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    margin: 80px 0;
}

/* Footer Badge */
.usa-badge {
    display: inline-block;
    background: linear-gradient(90deg, #B22234 0%, #3C3B6E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

/* Visual Bento Grid (V3) */
.visual-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 24px;
    margin-bottom: 120px;
}

.v-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.v-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}

.v-card:hover .v-card-bg {
    transform: scale(1.05);
}

.v-content {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    /* Let clicks pass to card if link */
}

.v-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.v-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.v-sub {
    font-size: 0.9rem;
    color: white;
    opacity: 0.8;
    margin-top: 4px;
}

/* Grid Spans */
.col-span-1 {
    grid-column: span 1;
}

.col-span-2 {
    grid-column: span 2;
}

.row-span-1 {
    grid-row: span 1;
}

.row-span-2 {
    grid-row: span 2;
}

/* Specific Card Styles */
.card-case {
    background: radial-gradient(circle at center, #2a2a2a 0%, #000 100%);
}

.card-deploy {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.card-os {
    background: linear-gradient(45deg, #11998e, #38ef7d);
}

.card-cpu {
    background: #000;
}

.card-gpu {
    background: #000;
}

.card-security {
    background: linear-gradient(to right, #000000, #0f9b0f);
}

/* Badge for "One Click" */
.highlight-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .visual-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-span-1,
    .col-span-2 {
        grid-column: span 1;
    }

    /* Keeping tall cards tall on tablet might be okay, or auto */
}

@media (max-width: 768px) {
    .visual-specs {
        display: flex;
        flex-direction: column;
        grid-auto-rows: auto;
    }

    .v-card {
        min-height: 240px;
    }
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0;
    margin-top: 100px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card.large {
        grid-column: span 2;
    }

    .card.full {
        grid-column: span 2;
        flex-direction: column;
    }

    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
    }

    .hero-image {
        margin-bottom: 40px;
    }

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

    .card.large,
    .card.full {
        grid-column: span 1;
    }

    .dual-os {
        grid-template-columns: 1fr;
    }
}