/* =========================
   ROOT
========================= */

:root {
    --bg: #050816;
    --bg-secondary: #0a1022;

    --card: rgba(15, 23, 42, 0.65);
    --glass: rgba(255,255,255,0.04);

    --text: #ffffff;
    --text-soft: #b6bdd1;
    --text-muted: #7d8499;

    --border: rgba(255,255,255,0.08);

    --blue: #24c8ff;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --orange: #ff7a18;
    --green: #00ff9d;

    --shadow:
        0 20px 60px rgba(0,0,0,.35);

    --radius: 20px;

    --container: 1350px;
}

/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #050816;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--blue),
        var(--purple)
    );
    border-radius: 20px;
}

/* =========================
   BACKGROUND GRID
========================= */

.grid-bg {
    position: fixed;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.04) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    z-index: -5;
}

/* =========================
   CENTRAL NEBULA
========================= */

.nebula-glow {

    position: fixed;

    top: 50%;
    left: 50%;

    width: 900px;
    height: 900px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
    radial-gradient(
        circle,

        rgba(36,200,255,.20),

        rgba(139,92,246,.18),

        rgba(236,72,153,.16),

        rgba(255,122,24,.14),

        transparent 75%
    );

    filter: blur(100px);

    animation:
    nebulaFloat 12s ease-in-out infinite,
    nebulaHue 20s linear infinite;

    z-index: -4;
}

@keyframes nebulaPulse {

    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .7;
    }
}

/* =========================
   STARS
========================= */

.stars {
    position: fixed;
    inset: 0;

    z-index: -3;

    background-image:
        radial-gradient(
            rgba(255,255,255,.8) 1px,
            transparent 1px
        );

    background-size: 180px 180px;

    opacity: .35;
}

/* =========================
   MAIN
========================= */

main {
    width: 100%;
}

/* =========================
   NAVBAR
========================= */

.navbar {

    position: sticky;
    top: 0;

    z-index: 999;

    backdrop-filter: blur(18px);

    background:
        rgba(5, 8, 22, .75);

    border-bottom:
        1px solid rgba(255,255,255,.05);
}

.nav-container {

    max-width: var(--container);

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 30px;
}

/* =========================
   LOGO
========================= */

.logo {
    display: flex;
    align-items: center;
    gap: 8px; /* smaller gap */
    text-decoration: none;
    color: white;
}

.logo img {
    width: 140px;   /* increase until it looks right */
    height: auto;   /* preserve aspect ratio */

    object-fit: contain;

    filter:
        drop-shadow(0 0 15px rgba(36,200,255,.4));
}
.logo span {

    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

/* =========================
   NAV LINKS
========================= */

.nav-links {

    display: flex;
    align-items: center;
    gap: 42px;
}

.nav-links a {

    text-decoration: none;
    color: white;

    font-size: 1rem;
    font-weight: 600;

    transition: .25s;
}

.nav-links a:hover {

    color: var(--blue);

    text-shadow:
        0 0 20px rgba(36,200,255,.8);
}

/* =========================
   ACTIONS
========================= */

.nav-actions {

    display: flex;
    align-items: center;
    gap: 14px;
}

/* =========================
   DOWNLOAD BUTTON
========================= */

.download-btn {

    text-decoration: none;
    color: white;

    font-weight: 700;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 24px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--purple)
        );

    transition: .3s;
}

.download-btn:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 15px 35px rgba(36,200,255,.25);
}

/* =========================
   THEME BUTTON
========================= */

.theme-toggle {

    width: 50px;
    height: 50px;

    border: none;
    cursor: pointer;

    border-radius: 14px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--blue)
        );

    transition: .25s;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

/* =========================
   MOBILE BUTTON
========================= */

.mobile-toggle {

    display: none;

    background: transparent;
    border: none;

    color: white;

    font-size: 1.4rem;

    cursor: pointer;
}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu {

    display: none;
    flex-direction: column;

    padding: 20px;

    background:
        rgba(5,8,22,.95);

    border-top:
        1px solid rgba(255,255,255,.08);
}

.mobile-menu a {

    color: white;

    text-decoration: none;

    padding: 14px 0;
}

.mobile-download {

    margin-top: 12px;

    text-align: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--purple)
        );
}

/* =========================
   FOOTER
========================= */

.footer {

    margin-top: 120px;

    border-top:
        1px solid rgba(255,255,255,.05);

    background:
        rgba(255,255,255,.02);
}

.footer-container {

    max-width: var(--container);

    margin: auto;

    padding: 60px 30px;

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

.footer-brand {

    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand img {

    width: 50px;
}

.footer-brand h3 {

    font-size: 1.3rem;
    margin-bottom: 4px;
}

.footer-brand p {

    color: var(--text-soft);
}

.footer-links {

    display: flex;
    gap: 28px;
}

.footer-links a {

    color: var(--text-soft);

    text-decoration: none;

    transition: .25s;
}

.footer-links a:hover {

    color: var(--blue);
}

.footer-bottom {

    text-align: center;

    padding: 24px;

    color: var(--text-muted);

    border-top:
        1px solid rgba(255,255,255,.05);
}

/* =========================
   LIGHT MODE
========================= */

body.light {

    --bg: #f7f9fc;
    --bg-secondary: #ffffff;

    --text: #111827;
    --text-soft: #4b5563;
    --text-muted: #6b7280;

    background: var(--bg);
}

body.light .navbar {

    background:
        rgba(255,255,255,.75);
}

body.light .nav-links a,
body.light .logo,
body.light .logo span {

    color: #111827;
}

body.light .mobile-menu {

    background: white;
}

body.light .footer {

    background:
        rgba(255,255,255,.8);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-menu.active {
        display: flex;
    }
}

@media (max-width: 768px) {

    .logo span {
        font-size: 1.4rem;
    }

    .nav-container {
        padding: 18px;
    }

    .footer-container {

        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {

        flex-wrap: wrap;
        justify-content: center;
    }
}
/* =========================
   IMPROVED LIGHT MODE
========================= */

body.light {

    --bg: #f7f9fc;

    --card: rgba(255,255,255,.85);

    --glass: rgba(255,255,255,.9);

    --text: #111827;

    --text-soft: #4b5563;

    --text-muted: #6b7280;

    --border: rgba(0,0,0,.08);
}

/* Global Text */

body.light,
body.light h1,
body.light h2,
body.light h3,
body.light h4,
body.light p,
body.light span,
body.light a {

    color: var(--text);
}
body.light .feature-card,
body.light .download-card,
body.light .doc-card,
body.light .strip-item,
body.light .terminal-window {

    background:
    rgba(255,255,255,.95);

    border:
    1px solid rgba(0,0,0,.08);

    box-shadow:
    0 10px 30px rgba(0,0,0,.06);
}
body.light .secondary-btn {

    border:
    1px solid rgba(0,0,0,.12);

    color: #111827;

    background:
    rgba(255,255,255,.85);
}
body.light .nav-links a:hover {

    color: var(--blue);
}
@keyframes nebulaFloat {

    0% {

        transform:
        translate(-50%, -50%)
        scale(1);
    }

    25% {

        transform:
        translate(-48%, -52%)
        scale(1.08);
    }

    50% {

        transform:
        translate(-52%, -48%)
        scale(1.12);
    }

    75% {

        transform:
        translate(-49%, -51%)
        scale(1.05);
    }

    100% {

        transform:
        translate(-50%, -50%)
        scale(1);
    }
}
@keyframes nebulaHue {

    0% {

        filter:
        blur(100px)
        hue-rotate(0deg);
    }

    25% {

        filter:
        blur(110px)
        hue-rotate(40deg);
    }

    50% {

        filter:
        blur(120px)
        hue-rotate(90deg);
    }

    75% {

        filter:
        blur(110px)
        hue-rotate(40deg);
    }

    100% {

        filter:
        blur(100px)
        hue-rotate(0deg);
    }
}