:root {
    --bg-primary: #0a1a3a;
    --bg-secondary: #0f3d7a;
    --text-primary: #ffffff;
    --text-secondary: #c7d0e0;
    --accent-cyan: #00e5ff;
    --accent-green: #00ff7f;
    --accent-yellow: #ffe066;
    --accent-orange: #ff9f40;
    --accent-red: #ff4d4d;
    --card-bg: #111b3f;
    --border-subtle: #1f2b55;
    --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at top, var(--bg-secondary), var(--bg-primary));
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(5, 10, 30, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 90px;
    height: auto;
}

.nav-title {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.nav-title-llc {
    font-size: 0.65em;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-links a:hover,
.footer-links a:hover,
.support-links a:hover,
.product-link:hover {
    color: var(--accent-cyan);
}

.nav-cta {
    display: flex;
    gap: 0.75rem;
}

.btn {
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    color: #020617;
    font-weight: 600;
}

.btn-outline {
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

main {
    flex: 1;
}

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: center;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.hero-suite {
    font-size: 0.95rem;
    color: var(--accent-yellow);
    margin-bottom: 1.5rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.hero-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-meta strong,
.commercial-right strong,
.download-meta strong {
    color: var(--accent-green);
    font-weight: 500;
}

.hero-visual {
    position: relative;
    border-radius: 1.25rem;
    padding: 0;
    background: transparent;
    border: none;
    overflow: hidden;
}

.hero-spectrum {
    position: absolute;
    inset: 0.75rem;
    opacity: 0.35;
    pointer-events: none;
}

.hero-spectrum-line {
    position: absolute;
    bottom: 0;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(to top, transparent, var(--accent-cyan));
    animation: pulse 3.5s ease-in-out infinite;
}

.hero-spectrum-line:nth-child(1) {
    left: 8%;
    height: 45%;
}

.hero-spectrum-line:nth-child(2) {
    left: 18%;
    height: 70%;
    background: linear-gradient(to top, transparent, var(--accent-green));
    animation-delay: 0.4s;
}

.hero-spectrum-line:nth-child(3) {
    left: 36%;
    height: 55%;
    background: linear-gradient(to top, transparent, var(--accent-yellow));
    animation-delay: 0.8s;
}

.hero-spectrum-line:nth-child(4) {
    left: 58%;
    height: 80%;
    background: linear-gradient(to top, transparent, var(--accent-orange));
    animation-delay: 1.2s;
}

.hero-spectrum-line:nth-child(5) {
    left: 78%;
    height: 60%;
    background: linear-gradient(to top, transparent, var(--accent-red));
    animation-delay: 1.6s;
}

@keyframes pulse {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.4;
    }

    50% {
        transform: scaleY(1.25);
        opacity: 0.9;
    }
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
}

.product-name {
    font-weight: 600;
    font-size: 1.3rem;
}

.product-tagline,
.commercial-text,
.supported-text,
.download-text,
.feature-item,
.support-grid,
.commercial-right,
.download-meta {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.product-list {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
}

.product-list li {
    position: relative;
    padding-left: 1rem;
}

.product-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: var(--accent-cyan);
}

.product-link {
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.commercial {
    background: radial-gradient(circle at top, #111827, #020617);
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid var(--border-subtle);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.commercial-title,
.supported-title,
.download-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.commercial-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}

.commercial-right {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.commercial-button {
    margin-top: 0.75rem;
    align-self: flex-start;
}

.features-band {
    background: linear-gradient(135deg, #020617, #020617 40%, #0b1120 100%);
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid var(--border-subtle);
}

.why-linux-title {
    margin-bottom: 0.25rem;
}

.why-linux-subtitle {
    margin-bottom: 0.75rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-label,
.support-heading,
.download-tested-title {
    font-weight: 600;
    color: var(--text-primary);
}

.feature-label {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.supported-card,
.download-card {
    background: var(--card-bg);
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid var(--border-subtle);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.release-card {
    background: radial-gradient(circle at top, #111827, #020617);
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid var(--border-subtle);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.release-subtitle {
    margin-bottom: 1rem;
}

.release-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.release-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.release-ctas {
    margin-bottom: 0;
}

.release-meta-card {
    height: 100%;
}

.supported-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}

.supported-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem;
}

.download-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.download-badge {
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.download-meta {
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-tested-title {
    font-size: 0.85rem;
}

.download-tested-list {
    display: grid;
    gap: 0.55rem;
}

.download-tested-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: start;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border-subtle);
}

.download-tested-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.download-tested-status {
    color: var(--accent-green);
    font-weight: 700;
}

.download-tested-status--experimental {
    color: var(--accent-yellow);
    font-weight: 700;
}

.download-tested-note {
    color: var(--accent-yellow);
    font-size: 0.75rem;
    font-style: italic;
}

.download-tested-arch {
    color: var(--accent-cyan);
    font-size: 0.75rem;
    white-space: nowrap;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    font-size: 0.9rem;
}

.support-heading {
    margin-bottom: 0.5rem;
}

.support-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.support-links a,
.footer-links a {
    color: var(--text-secondary);
}

.detail-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.detail-shot {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-subtle);
}

.detail-shot--wide {
    grid-column: span 2;
}

.detail-shot img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    border: 1px solid var(--border-subtle);
    margin-bottom: 0.85rem;
}

.detail-shot figcaption {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.detail-meta-card {
    background: linear-gradient(135deg, #020617, #0b1120);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border-subtle);
}

.detail-meta-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.detail-meta-list {
    list-style: none;
    display: grid;
    gap: 0.55rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-meta-list li {
    display: block;
    margin-bottom: 0.65rem;
}

.detail-meta-label {
    color: var(--text-primary);
    font-weight: 500;
    display: block;
    margin-bottom: 0.35rem;
}

.detail-meta-list li span:not(.detail-meta-label) {
    display: block;
    padding-left: 1.25rem;
}

.pricing-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-price span {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-note {
    font-size: 0.85rem;
    color: var(--accent-yellow);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.pricing-list {
    margin-bottom: 0;
}

.pricing-links-subtitle {
    margin-bottom: 1rem;
}

.pricing-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

footer {
    border-top: 1px solid var(--border-subtle);
    background: #020617;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-spectrum {
    display: inline-flex;
    gap: 2px;
    align-items: flex-end;
}

.footer-spectrum span {
    width: 2px;
    border-radius: 999px;
    display: inline-block;
}

.footer-spectrum span:nth-child(1) {
    height: 8px;
    background: var(--accent-cyan);
}

.footer-spectrum span:nth-child(2) {
    height: 12px;
    background: var(--accent-green);
}

.footer-spectrum span:nth-child(3) {
    height: 16px;
    background: var(--accent-yellow);
}

.footer-spectrum span:nth-child(4) {
    height: 12px;
    background: var(--accent-orange);
}

.footer-spectrum span:nth-child(5) {
    height: 8px;
    background: var(--accent-red);
}

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

@media (max-width: 900px) {
    .nav {
        gap: 1rem;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-title {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .commercial,
    .release-card,
    .supported-card,
    .download-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-links {
        display: none;
    }

    .section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

@media (max-width: 640px) {
    .nav {
        padding-inline: 1rem;
        flex-wrap: wrap;
    }

    .nav-logo {
        width: 60px;
    }

    .nav-title {
        font-size: 0.9rem;
    }

    .nav-cta {
        order: 3;
        width: 100%;
        justify-content: stretch;
        gap: 0.5rem;
    }

    .nav-cta .btn {
        flex: 1;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .product-grid,
    .features-grid,
    .detail-gallery,
    .supported-columns,
    .support-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-shot--wide {
        grid-column: span 1;
    }

    .section {
        padding-inline: 1.1rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
        padding: 0.75rem 1.25rem;
        justify-content: center;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .commercial,
    .release-card,
    .supported-card,
    .download-card,
    .features-band {
        padding: 1.25rem;
    }

    .pricing-links .btn {
        width: 100%;
    }

    .commercial-title,
    .supported-title,
    .download-title {
        font-size: 1.15rem;
    }

    .product-card {
        padding: 1rem;
    }

    .product-name {
        font-size: 1.15rem;
    }

    .commercial-button,
    .release-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .footer-links {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .nav-logo {
        width: 50px;
    }

    .nav-title {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section {
        padding-inline: 0.85rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .commercial,
    .release-card,
    .supported-card,
    .download-card,
    .features-band {
        padding: 1rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

/* Improve touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-links a,
    .footer-links a,
    .support-links a,
    .product-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .nav-links a,
    .footer-links a,
    .support-links a {
        padding: 0.5rem 0;
    }
}

/* Mobile landscape optimization */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   Image Modal/Lightbox
   ======================================== */

.image-modal {
    display: none !important;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-content {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    cursor: default;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10000;
}

.image-modal-close:hover {
    color: #ccc;
}

.detail-shot img {
    cursor: pointer;
    transition: opacity 0.2s;
}

.detail-shot img:hover {
    opacity: 0.9;
}

/* ========================================
   Legal Document Pages
   ======================================== */

.legal-doc {
    padding-top: 1rem;
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-body h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-body p {
    margin-bottom: 0.85rem;
}

.legal-body ul {
    margin: 0.5rem 0 0.85rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.legal-body a {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-body a:hover {
    color: var(--text-primary);
}

.legal-acknowledge {
    margin-top: 3rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.7;
}
