:root {
    /* Color Palette */
    --bg-color: #111111;
    --surface-color: #1a1a1a;
    --text-color: #E0E0E0;
    --text-muted: #A0A0A0;
    --accent-color: hsl(210, 100%, 50%); /* Bright blue (Hue 210) */
    --accent-hover: hsl(210, 100%, 60%);

    /* Typography */
    --font-heading: 'Lato', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem; /* Offset for fixed header so in-page anchors are not hidden */
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 700;
}

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

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

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

/* Base button styles */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}
/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 5rem;
    width: auto;
    max-width: 100%;
}

.logo:hover {
    opacity: 0.9;
}

/* Mobile Nav */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-container {
        position: relative;
        left: 0;
        transform: none;
        order: -1; /* Move logo to top */
    }

    .nav-links {
        gap: 1.5rem;
    }
}

/* --- Hero Section --- */
.hero {
    padding-top: 6rem; /* Offset for fixed header */
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-render-container {
    width: 75%;
    max-width: 1200px;
    margin: 4rem auto 0;
    position: relative;
    aspect-ratio: 2 / 1;
    z-index: 5;
}

/* Add a subtle glow behind the plugin */
.hero-render-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 128, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(40px);
    z-index: -1;
}

.plugin-render-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Product Spotlight --- */
.product-spotlight {
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.freeware-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(0, 128, 255, 0.1);
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 20px;
    border: 1px solid rgba(0, 128, 255, 0.3);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.product-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.product-description p {
    margin-top: 1rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    padding-left: 0;
}

.features-list li svg {
    flex-shrink: 0;
    color: var(--accent-color);
}

/* --- Download Section --- */
.download-section {
    padding: 6rem 2rem 8rem;
}

.text-center {
    text-align: center;
}

.compatibility-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.os-card {
    background-color: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.os-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 128, 255, 0.3);
}

.os-icon {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.os-icon svg  path {
    stroke: none;
    fill: var(--accent-color);
}

.os-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.os-specs {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.os-tested-info {
    max-width: 600px;
    margin: 3rem auto 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.text-justify {
    text-align: justify;
}

.about-section-container {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.about-section {
    max-width: 600px;
    margin: 1rem auto;
    font-size: 1rem;
    line-height: 1.6;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-section a {
    color: var(--text-color);
    font-weight: 600;
}

.about-section a:hover {
    color: var(--accent-hover);
    font-weight: 600;
}

.about-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;  
    max-width: 600px;
    margin: 2rem auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}


.about-text {
    margin-top: 1.5rem;
}

.about-list h3 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.about-list p.subtitle {
    text-align: left;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    margin-top: -0.5rem;
}

.about-list p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
}

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

.footer-left p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger os-cards animation */
.os-card:nth-child(1) { transition-delay: 0.1s; }
.os-card:nth-child(2) { transition-delay: 0.3s; }
.os-card:nth-child(3) { transition-delay: 0.5s; }

/* Add slightly more delay to render container */
.hero-render-container {
    transition-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-up {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .os-card:nth-child(1),
    .os-card:nth-child(2),
    .os-card:nth-child(3) {
        transition-delay: 0s;
    }

    .hero-render-container {
        transition-delay: 0s;
    }
}

/* --- Modals --- */
body.modal-open {
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.is-open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem;
    width: 90%;
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-scrollable {
    overflow-y: auto;
    flex: 1;
    padding-right: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-scrollable h3 {
    color: var(--text-color);
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

.modal-scrollable p {
    margin-bottom: 0.75rem;
}

.modal-scrollable p:first-child {
    margin-top: 0;
}

/* Contact form */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    min-height: 1.4em;
}

.form-status.success { color: #4caf50; }
.form-status.error   { color: #f44336; }

#contact-form .btn {
    width: 100%;
    text-align: center;
}

#contact-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .modal-dialog {
        padding: 2rem 1.5rem;
        max-height: 92vh;
    }
}