:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    
    /* Plasma theme gradients - matching app colors */
    --gradient-helium: linear-gradient(135deg, #ff8cb4 0%, #ff99b3 50%, #d48fb5 100%);
    --gradient-neon: linear-gradient(135deg, #ff1a1a 0%, #ff6400 50%, #ff8033 100%);
    --gradient-argon: linear-gradient(135deg, #7b5fff 0%, #485eff 50%, #4a5eff 100%);
    --gradient-krypton: linear-gradient(135deg, #f3f3ff 0%, #a0b0f2 50%, #a8edea 100%);
    --gradient-xenon: linear-gradient(135deg, #4d99ff 0%, #1e90ff 50%, #4db3ff 100%);
    
    /* Current theme (defaults to helium) - set by JavaScript */
    --current-gradient: linear-gradient(135deg, rgb(255, 140, 180) 0%, rgb(255, 150, 220) 50%, rgb(255, 190, 220) 100%);
    --current-border-gradient: linear-gradient(135deg, rgba(255, 140, 180, 0.6) 0%, rgba(255, 150, 220, 0.4) 50%, rgba(255, 190, 220, 0.6) 100%);
    --current-glow-color: rgb(255, 140, 180);
    --current-button-bg: rgba(255, 140, 180, 0.2);
    --current-border-subtle: rgba(255, 140, 180, 0.15);
    --current-border-muted: rgba(255, 140, 180, 0.45);
    --current-card-bg: rgba(255, 140, 180, 0.08);
    --current-card-border: rgba(255, 140, 180, 0.25);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'SF Pro Text', 'SF Pro Display', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible; /* Don't clip content */
}

@media (min-width: 1024px) {
    .navbar .container {
        max-width: none;
        padding: 0 40px;
    }
}

/* Clickable theme cyclers (glowing text + orb) */
.cycle-theme {
    cursor: pointer;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--current-border-subtle);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'SF Pro Text', 'SF Pro Display', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: var(--current-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 6px var(--current-glow-color))
            drop-shadow(0 0 14px var(--current-glow-color));
    transition: all 0.5s ease;
}

.nav-menu-wrapper {
    position: relative;
}

.nav-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 32px;
    border-radius: 10px;
    background: var(--current-button-bg);
    border: 1px solid var(--current-card-border);
    opacity: 0;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1), top 0.35s cubic-bezier(0.4, 0, 0.2, 1), height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 20px color-mix(in srgb, var(--current-glow-color) 35%, transparent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 10px;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-menu a:hover {
    color: var(--current-glow-color);
    text-shadow: 0 0 12px var(--current-glow-color), 0 0 24px color-mix(in srgb, var(--current-glow-color) 50%, transparent);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 120px 20px 60px;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

@media (min-width: 1024px) {
    .hero {
        padding: 120px 48px 60px;
    }
    .hero-visual {
        margin-left: auto;
    }
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 0 2rem;
}

.hero-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'SF Pro Text', 'SF Pro Display', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: var(--current-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Tight dark edge so letters stay readable in all themes (e.g. Xenon); softer colored glow so it doesn't wash out the big text */
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 6px var(--current-glow-color))
            drop-shadow(0 0 14px var(--current-glow-color));
    transition: all 0.5s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.hero-title.clickable-theme {
    position: relative;
}

.hero-title.clickable-theme:hover {
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 6px var(--current-glow-color))
            drop-shadow(0 0 14px var(--current-glow-color))
            brightness(1.2);
}

.hero-title.clickable-theme:active {
    transform: scale(0.98);
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    position: relative;
    z-index: 0;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--current-button-bg);
    color: var(--current-glow-color);
    border: 2px solid var(--current-glow-color);
    position: relative;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: transparent;
    color: var(--current-glow-color);
    border: 2px solid var(--current-border-muted);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--current-glow-color);
}

.btn:hover {
    transform: translateY(-2px);
}


.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.plasma-animation {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--current-gradient);
    opacity: 0.6;
    animation: pulse 3s ease-in-out infinite;
    filter: blur(40px);
    transition: background 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 0 60px var(--current-glow-color),
                0 0 100px var(--current-glow-color);
    cursor: pointer;
}

.plasma-animation:hover {
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: var(--bg-darker);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--current-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 6px var(--current-glow-color))
            drop-shadow(0 0 14px var(--current-glow-color));
    transition: all 0.5s ease;
}

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

.feature-card {
    background: var(--current-card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--current-card-border);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--current-glow-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--current-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-card ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.feature-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.feature-card ul li:last-child {
    margin-bottom: 0;
}

/* Science Section */
.science {
    padding: 80px 20px;
    background: var(--bg-dark);
}

.science-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.science-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    background: var(--current-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.science-text ul {
    list-style: none;
    padding-left: 0;
}

.science-text li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.science-text li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.science-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 1rem;
    text-align: center;
}

/* Download Section */
.download {
    padding: 80px 20px;
    background: var(--bg-darker);
    text-align: center;
    position: relative;
    overflow: visible; /* Allow content to extend beyond padding */
}

.download-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    position: relative;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: var(--current-card-bg);
    border: 1px solid var(--current-card-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s, border-color 0.3s;
    min-width: 150px;
}

.download-btn:hover {
    transform: translateY(-5px);
    border-color: var(--current-glow-color);
}

.download-icon {
    font-size: 2.5rem;
}

/* Linux Content - Simple themed box matching feature-card */
.linux-content-wrapper {
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-top: 10px; /* Extra space at top to prevent cutoff */
    padding-bottom: 10px; /* Extra space at bottom */
    transition: none; /* No transitions on wrapper - keeps position fixed */
}

.linux-content-box {
    background: var(--current-card-bg);
    border: 1px solid var(--current-card-border);
    border-radius: 12px;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    height: 200px; /* Fixed height - border stays stationary */
    transition: border-color 0.3s, box-shadow 0.3s; /* Only color/shadow transitions */
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-y: auto; /* Scroll content if it overflows */
    overflow-x: hidden;
    position: relative;
    transform: none !important; /* Prevent any transforms */
    margin-top: 0 !important; /* Prevent margin changes */
    box-shadow: none; /* No shadow by default */
}

.linux-content-box:hover {
    border-color: var(--current-glow-color);
    transform: none !important; /* Keep box stationary on hover */
    margin-top: 0 !important;
    box-shadow: 0 0 20px rgba(255, 140, 180, 0.3); /* Subtle glow instead of movement */
}

/* Content inside box - always visible by default */
.linux-content-box > div {
    opacity: 1 !important;
    transition: opacity 0.4s ease;
    width: 100%;
    display: block !important;
}

.linux-content-wrapper.open .linux-content-box > div {
    opacity: 1 !important;
}


/* Contact Section */
.contact {
    padding: 80px 20px;
    background: var(--bg-dark);
    text-align: center;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    margin: 1rem 0;
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 2rem 20px;
    background: var(--bg-darker);
    text-align: center;
    border-top: 1px solid var(--current-border-subtle);
}

.footer p {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

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

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
