:root {
    --bg-dark: #0f1115;
    --bg-card: #16181d;
    --primary-orange: #ff966c;
    --primary-orange-glow: rgba(255, 150, 108, 0.4);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(22, 24, 29, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    background: rgba(15, 17, 21, 0.6);
    /* More transparent for blur */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    transition: background 0.3s;
}

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

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 1;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text-main);
}

nav a.nav-cta {
    color: var(--primary-orange);
    border: 1px solid rgba(255, 150, 108, 0.3);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    /* Pill shape is more modern */
    font-weight: 600;
    margin-left: 0;
}

nav a.nav-cta:hover {
    background: var(--primary-orange);
    color: #0f1115;
    border-color: var(--primary-orange);
}

/* Hero */
.hero {
    padding-top: 180px;
    /* More top space */
    padding-bottom: 120px;
    min-height: 100vh;
    /* Full viewport height */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;

    /* Professional Radial Overlay */
    background: radial-gradient(circle at 50% 40%, rgba(15, 17, 21, 0.4) 0%, rgba(15, 17, 21, 1) 90%),
        url('assets/bg-main.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Download Widget */
.download-widget {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    max-width: 450px;
}

.flavour-selector {
    margin-bottom: 1rem;
}

.flavour-selector label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.custom-select-wrapper select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.btn-primary {
    display: block;
    text-align: center;
    background: var(--primary-orange);
    color: #000;
    font-weight: 700;
    padding: 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--primary-orange-glow);
}

.download-meta {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

.download-meta a {
    color: var(--text-muted);
    text-decoration: underline;
}

.first-steps-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.first-steps-link:hover {
    text-decoration: underline;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.floating-laptop {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--primary-orange);
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(1deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(1deg);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Comparison */
.comparison {
    padding: 4rem 0;
    background: #131418;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.diagram-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.feature-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-orange);
}

.feature-card h3 {
    color: white;
    margin-bottom: 0.5rem;
}

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

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Pack Ecosystem */
.pack-ecosystem {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #131418, var(--bg-dark));
}

.quote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-weight: 500;
}

.description {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.pack-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.pack-img {
    width: 100%;
    filter: drop-shadow(0 0 30px rgba(255, 150, 108, 0.1));
    border-radius: 12px;
}

.module-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: transform 0.2s, background 0.2s;
}

.module-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-orange);
}

.module-icon {
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.module-info h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.2rem;
}

.module-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.module-info strong {
    color: var(--primary-orange);
}

/* Footer */
.bottom-cta {
    padding: 4rem 0;
}

footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {

    .hero-container,
    .comparison-grid,
    .pack-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero .subtitle {
        margin: 0 auto 2rem auto;
    }

    .download-widget {
        margin: 0 auto;
        text-align: left;
    }

    .pack-visual {
        order: -1;
    }

    /* Image first on mobile */
}

/* Gaming Section */
.gaming-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.gaming-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.gaming-stats {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gaming-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
}

/* CSS Art: Glass Console */
.glass-console {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s;
}

.glass-console:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.console-screen {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-icon {
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.game-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--text-muted);
    border-radius: 50%;
    opacity: 0.5;
}

.game-icon.steam::after {
    background: #171a21;
    border: 2px solid white;
}

/* Mock Steam */
.game-icon.heroic::after {
    background: var(--primary-orange);
}

/* Mock Heroic */
.game-icon.lutris::after {
    background: #8c8c8c;
}

/* Mock Lutris */

@media (max-width: 768px) {
    .gaming-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gaming-stats {
        justify-content: center;
    }

    .gaming-badges {
        justify-content: center;
    }

    .glass-console {
        margin-top: 2rem;
        transform: none;
    }
}

/* --- Internal Pages (Docs & Blog) --- */
.page-content {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 80vh;
}

.page-header {
    margin-bottom: 4rem;
}

nav a.active {
    color: var(--primary-orange);
    font-weight: 700;
}

/* Docs Layout */
.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
}

.docs-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    padding-right: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-sidebar h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.docs-sidebar h3:first-child {
    margin-top: 0;
}

.docs-sidebar ul {
    list-style: none;
}

.docs-sidebar li {
    margin-bottom: 0.8rem;
}

.docs-sidebar a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
    color: var(--text-main);
}

.docs-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.docs-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.docs-content hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 3rem 0;
}

/* Placeholders */
.placeholder-box {
    background: rgba(255, 150, 108, 0.1);
    border: 1px dashed var(--primary-orange);
    padding: 1.5rem;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
    margin: 1.5rem 0;
}

.placeholder-box strong {
    color: var(--primary-orange);
    display: block;
    margin-bottom: 0.5rem;
}

.placeholder-box em {
    color: var(--text-muted);
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Documentation Styling */
.steps-list {
    margin-left: 2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.steps-list li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

.steps-list strong {
    color: white;
}

.code-block {
    background: #000;
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 8px;
    font-family: monospace;
    color: #a5b3ce;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    display: block;
    margin-bottom: 0.5rem;
}

.code-block code:last-child {
    margin-bottom: 0;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border);
}

.blog-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--bg-card), rgba(255, 150, 108, 0.05));
    border-color: var(--primary-orange);
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.blog-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.featured h2 {
    font-size: 2rem;
}

.blog-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--primary-orange);
}

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

    .docs-sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
}
/* Blog Post Layout */
.blog-layout {
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

.blog-layout .blog-full-post h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.2;
}

.blog-layout .lead {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.6;
    border-left: 4px solid var(--primary-orange);
    padding-left: 1.5rem;
}

/* Comparison Table Responsive */
@media (max-width: 768px) {
    .comparison-table th, .comparison-table td {
        font-size: 0.9rem;
        padding: 0.8rem 0.5rem;
    }
}
