:root {
    --bg: #120000;
    --fg: #fff;
    --muted: lightgray;
    --accent: #520202;
    --card: #0f0f0f;
    --border: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
}

a {
    color: #e74c3c;
    text-decoration: none;
}
a:hover {
    background-color: var(--border);
    color: var(--bg);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 56px;
    background: rgba(18, 0, 0, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--fg);
}

.nav-brand img {
    height: 26px;
    width: auto;
}

.nav-brand:hover {
    background: none;
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
    border-radius: 6px;
    transition:
        color 0.15s,
        background 0.15s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg);
}

.nav-links .nav-cta a {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    padding: 0.35rem 1rem;
}

.nav-links .nav-cta a:hover {
    background: #fff;
    color: var(--bg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition:
        transform 0.25s,
        opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(18, 0, 0, 0.97);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0.75rem 1rem 1rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.55rem 0.75rem;
    }
}

header {
    padding-top: 56px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.header-inner {
    max-width: 1100px;
    margin: auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

header img {
    max-width: 110px;
}

header h1 {
    font-size: 3rem;
    margin: 0.5rem 0;
}

header p {
    max-width: 700px;
    margin: 1rem auto;
    color: var(--muted);
    font-size: 1.1rem;
}

.hero-img {
    width: 100%;
    max-width: 100%;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-cta a {
    display: inline-block;
    margin: 0.4rem;
    padding: 10px 15px;
    font-weight: 600;
    transition:
        color 0.15s,
        background 0.15s;
    border-radius: 10px;
}

section {
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: auto;
}

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

.badges span {
    display: inline-block;
    margin: 0.3rem 0.6rem 0 0;
    color: var(--muted);
}

.primary {
    background: var(--accent);
    border: 1px solid var(--border);
    color: #fff;
}

.secondary {
    border: 1px solid var(--accent);
    color: var(--fg);
}

.waitlist {
    min-height: 100vh;
    width: 100%;

    max-width: none;
    margin: 0;
    padding: 0 1.5rem;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-image: url("tiled_image.png");
    background-repeat: repeat;
    background-position: center;

    isolation: isolate;
}

.waitlist-inner {
    max-width: 900px;
    padding: 2rem;

    background: rgba(14, 14, 17, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 5px;
}

.cta-buttons a {
    display: inline-block;
    margin: 1rem 0.5rem 0;
    padding: 10px 15px;
    font-weight: 600;
    transition:
        color 0.15s,
        background 0.15s;
    border-radius: 10px;
}

footer {
    padding: 3rem 1.5rem;

    color: var(--muted);
    font-size: 0.95rem;
}

.footer-inner {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
}

.footer-links {
    text-align: right;
}

footer ul {
    list-style: none;
    padding: 0;
}

@media (max-width: 800px) {
    header {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 4rem;
    }

    .header-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    header h1 {
        font-size: 2rem;
    }

    .hero-img {
        display: none;
    }
}

@media (max-width: 700px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

#news-sidebar {
    position: fixed;
    right: 1rem;
    top: 72px;
    width: 260px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    z-index: 50;
    font-size: 0.85rem;
}

#news-sidebar h3 {
    font-size: 1rem;
    margin: 0 0 0.75rem;
    color: var(--fg);
}

#news-sidebar .news-item {
    display: block;
    padding: 0.4rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    transition:
        background 0.15s,
        color 0.15s;
}

#news-sidebar .news-item:last-child {
    border-bottom: none;
}

#news-sidebar .news-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg);
}

#news-sidebar .news-date {
    font-size: 0.75rem;
    color: var(--muted);
}

#news-sidebar .news-title {
    font-weight: 600;
    margin-top: 0.1rem;
}

#news-sidebar .sidebar-footer {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

#news-sidebar .sidebar-footer a {
    color: var(--muted);
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    transition:
        background 0.15s,
        color 0.15s;
}

#news-sidebar .sidebar-footer a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg);
}

#news-sidebar .loading {
    color: var(--muted);
    font-size: 0.8rem;
}

#news-sidebar .error {
    color: #da3633;
    font-size: 0.8rem;
}

@media (max-width: 1100px) {
    #news-sidebar {
        display: none;
    }
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.4rem;
    vertical-align: middle;
}
.yellow {
    background: #f2c94c;
}

.green {
    background: #27ae60;
}

.blue {
    background: #2d9cdb;
}

.gray {
    background: #6b7280;
}

.screenshot-right {
    float: right;
    max-width: 45%;
    margin: 0 0 1.5rem 2rem;
}

.screenshot-right img {
    max-width: 100%;
    display: block;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 600px) {
    .screenshot-right {
        float: none;
        max-width: 100%;
        margin: 1.5rem 0;
    }
}

/* --- Download page --- */

.download-header {
    min-height: 40vh;
    border-bottom: 1px solid var(--border);
}

.download-header .header-inner {
    width: 100%;
    grid-template-columns: 1fr;
    text-align: center;
}

.image-container {
    margin-top: 2rem;
    max-width: 700px;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#download-iso,
#download-vm {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.download-buttons {
    margin: 1.5rem 0;
}

.download-buttons a {
    display: inline-block;
    margin: 0.4rem;
    padding: 10px 15px;
    font-weight: 600;
    transition:
        color 0.15s,
        background 0.15s;
    border-radius: 10px;
}

pre {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
}

pre code {
    color: var(--fg);
    font-size: 0.9rem;
}

.download-waitlist {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url("tiled_image.png");
    background-repeat: repeat;
    background-position: center;
    isolation: isolate;
}

.download-waitlist .waitlist-inner {
    max-width: 900px;
    padding: 2rem;
    background: rgba(14, 14, 17, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 5px;
}

.download-waitlist .cta-buttons a {
    display: inline-block;
    margin: 1rem 0.5rem 0;
    padding: 10px 15px;
    font-weight: 600;
    transition:
        color 0.15s,
        background 0.15s;
    border-radius: 10px;
}

#testimonials {
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: left;
}

.testimonial-card blockquote {
    margin: 0 0 1.5rem;
    line-height: 1.6;
    color: #ededed;
}

.testimonial-card blockquote b {
    color: #fff;
}

.testimonial-author {
    margin: 0;
    font-weight: 600;
    color: var(--fg);
}

.testimonial-role {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

b {
    font-weight: 2000;
}
