: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%, #FFB3D0 50%, #FF8CB4 100%);
    --gradient-neon: linear-gradient(135deg, #FF1414 0%, #FF6400 50%, #FF9632 100%);
    --gradient-argon: linear-gradient(135deg, #781EF0 0%, #9B55F5 50%, #781EF0 100%);
    --gradient-krypton: linear-gradient(135deg, #FFFFFF 0%, #E6E6E6 50%, #FFFFFF 100%);
    --gradient-xenon: linear-gradient(135deg, #00BFFF 0%, #1E90FF 50%, #87CEFA 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: #ff8cb4;
    /* Pink for Helium - will be updated by JS */
    --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.4);
    --current-card-border: rgba(255, 140, 180, 0.25);
    --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;
    /* iOS Safari fixes */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    /* Safe area insets for iPhone notch */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.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;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    border-bottom: 1px solid var(--current-border-subtle);
    z-index: 1000;
    padding: 1rem 0;
    /* Safe area for iPhone notch */
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-left: max(0, env(safe-area-inset-left));
    padding-right: max(0, env(safe-area-inset-right));
}

.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;
    position: relative;
    display: inline-block;
    transition: all 0.5s ease;
}

.nav-brand .glow-text {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    color: var(--current-glow-color) !important;
    -webkit-text-fill-color: var(--current-glow-color) !important;
    text-shadow: 0 0 12px var(--current-glow-color),
        0 0 24px var(--current-glow-color),
        0 0 36px var(--current-glow-color);
    opacity: 0.7 !important;
    pointer-events: none;
    visibility: visible !important;
    filter: blur(0.5px);
    -webkit-filter: blur(0.5px);
}

.nav-brand .gradient-text {
    position: relative;
    z-index: 1;
    background: var(--current-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.nav-menu-wrapper {
    position: relative;
    /* Hide side menu content on desktop - only visible on mobile */
    display: none;
}

/* Show side menu wrapper only on mobile */
@media (max-width: 768px) {
    .nav-menu-wrapper {
        display: flex;
    }
}

.nav-highlight {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    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), 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);
}

/* Show nav highlight on desktop */
@media (min-width: 769px) {
    .nav-highlight {
        display: block;
    }
}

/* Hide nav highlight on mobile */
@media (max-width: 768px) {
    .nav-highlight {
        display: none;
    }
}

/* Lightbulb button - matches app design with glow orb */
.lightbulb-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    /* iOS Safari click fix */
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    /* Force pointer events */
    pointer-events: auto !important;
    /* Make it clickable on iOS */
    -webkit-user-drag: none;
}

/* Outer glow ring (360° glow orb) - matches app */
.lightbulb-button::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--current-glow-color);
    opacity: 0.4;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    z-index: 0;
    pointer-events: none;
}

/* Inner glow ring */
.lightbulb-button::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--current-glow-color);
    opacity: 0.3;
    filter: blur(6px);
    -webkit-filter: blur(6px);
    z-index: 1;
    pointer-events: none;
}

/* Plasma-themed circle background with radial gradient - matches app */
.lightbulb-button .glow-orb {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
            var(--current-glow-color) 0%,
            var(--current-glow-color) 50%,
            transparent 100%);
    opacity: 0.9;
    box-shadow: 0 0 8px var(--current-glow-color),
        0 0 12px var(--current-glow-color);
    border: 2px solid var(--current-glow-color);
    z-index: 2;
    transition: all 0.3s ease;
    pointer-events: none;
}

.lightbulb-button:active .glow-orb,
.lightbulb-button:hover .glow-orb {
    box-shadow: 0 0 12px var(--current-glow-color),
        0 0 16px var(--current-glow-color),
        0 0 20px var(--current-glow-color);
    opacity: 0.6;
}

.lightbulb-button svg {
    position: relative;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.95);
    z-index: 3;
    pointer-events: none;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Hide nav menu on mobile - shows in slide-out menu when lightbulb opens */
@media (max-width: 768px) {
    .navbar .nav-menu {
        display: none;
    }

    .nav-menu-wrapper .nav-menu {
        display: none;
    }

    .nav-menu-wrapper.open .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
}

.nav-menu li {
    position: relative;
}

.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;
    display: block;
}

.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);
}

/* Nav highlight animation on hover */
.nav-menu li:hover~.nav-highlight,
.nav-menu li:has(a:hover)~.nav-highlight {
    opacity: 0;
}

.nav-menu li a:hover~.nav-highlight {
    opacity: 1;
}

/* Update nav highlight position on hover */
.nav-menu li:nth-child(1):hover~.nav-highlight {
    left: 0px;
    width: 60px;
}

.nav-menu li:nth-child(2):hover~.nav-highlight {
    left: 80px;
    width: 85px;
}

.nav-menu li:nth-child(3):hover~.nav-highlight {
    left: 185px;
    width: 140px;
}

.nav-menu li:nth-child(4):hover~.nav-highlight {
    left: 345px;
    width: 100px;
}

.nav-menu li:nth-child(5):hover~.nav-highlight {
    left: 465px;
    width: 75px;
}

.nav-menu li:nth-child(6):hover~.nav-highlight {
    left: 560px;
    width: 60px;
}

.nav-menu li:nth-child(7):hover~.nav-highlight {
    left: 640px;
    width: 75px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    /* iOS Safari fix */
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 120px 20px 60px;
    padding-top: max(120px, calc(80px + env(safe-area-inset-top)));
    /* Account for navbar + notch */
    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;
    position: relative;
    display: inline-block;
    transition: all 0.5s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-title .glow-text {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    color: var(--current-glow-color) !important;
    -webkit-text-fill-color: var(--current-glow-color) !important;
    text-shadow: 0 0 15px var(--current-glow-color),
        0 0 30px var(--current-glow-color),
        0 0 50px var(--current-glow-color),
        0 0 70px var(--current-glow-color);
    opacity: 0.7 !important;
    white-space: nowrap;
    pointer-events: none;
    visibility: visible !important;
    filter: blur(0.5px);
    -webkit-filter: blur(0.5px);
}

.hero-title .gradient-text {
    position: relative;
    z-index: 1;
    background: var(--current-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

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

.hero-title.clickable-theme:hover .glow-text {
    text-shadow: 0 0 20px var(--current-glow-color),
        0 0 40px var(--current-glow-color),
        0 0 60px var(--current-glow-color),
        0 0 90px var(--current-glow-color);
    opacity: 0.85;
}

.hero-title.clickable-theme:hover {
    opacity: 1.1;
}

.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;
    padding-bottom: 100px;
    /* Extra space for glow on mobile */
    overflow: visible;
    /* Allow glow to extend beyond container */
}

.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;
    margin-bottom: 50px;
    /* Extra margin for mobile glow */
}

.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;
    position: relative;
    display: inline-block;
    transition: all 0.5s ease;
    width: 100%;
}

.section-title .glow-text {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 12px var(--current-glow-color),
        0 0 24px var(--current-glow-color),
        0 0 36px var(--current-glow-color);
    opacity: 0.7 !important;
    white-space: normal;
    word-wrap: break-word;
    pointer-events: none;
    visibility: visible !important;
    filter: blur(0.5px);
    -webkit-filter: blur(0.5px);
    width: 100%;
    text-align: center;
}

.section-title .gradient-text {
    position: relative;
    z-index: 1;
    background: var(--current-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    opacity: 1;
    width: 100%;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.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: auto !important;
    /* Auto height - expands to fit content */
    min-height: auto !important;
    max-height: none !important;
    transition: border-color 0.3s, box-shadow 0.3s;
    /* Only color/shadow transitions */
    color: var(--text-secondary);
    line-height: 1.6;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    /* No scrolling - all content visible */
    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 - Mobile First */
@media (max-width: 768px) {

    /* Fix iOS Safari viewport height */
    html {
        height: -webkit-fill-available;
    }

    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    /* Navigation mobile */
    .lightbulb-button {
        display: flex;
    }

    /* Hide nav menu items on mobile - they show in slide-out menu */
    .nav-menu-wrapper .nav-menu {
        display: none;
    }

    /* Show nav menu when lightbulb opens it */
    .nav-menu-wrapper.open .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    /* Mobile menu - shows navigation items that don't fit on screen */
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: -webkit-fill-available;
        background: linear-gradient(to bottom right, rgba(10, 10, 15, 0.98), rgba(10, 10, 15, 0.95), rgba(10, 10, 15, 0.90));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 2px solid var(--current-glow-color);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3), 0 0 20px var(--current-glow-color);
        transition: right 0.3s ease;
        z-index: 1002;
        display: flex !important;
        /* Override desktop hide */
        flex-direction: column;
        padding: 0;
        overflow: hidden;
    }

    .nav-menu-wrapper.open {
        right: 0;
    }

    /* Side menu header - Doctor Light */
    .side-menu-header {
        padding: 40px 24px 0 24px;
        position: relative;
        flex-shrink: 0;
        min-height: 60px;
        cursor: pointer;
    }

    .side-menu-header .glow-text {
        position: absolute;
        top: 40px;
        left: 24px;
        z-index: 0;
        font-size: 24px;
        font-weight: bold;
        opacity: 0.85;
        filter: blur(0.5px);
        color: transparent;
        text-shadow:
            0 0 16px var(--current-glow-color),
            0 0 10px var(--current-glow-color),
            0 0 6px var(--current-glow-color);
        pointer-events: none;
    }

    .side-menu-header .gradient-text {
        position: relative;
        z-index: 1;
        font-size: 24px;
        font-weight: bold;
        display: block;
        background: var(--current-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* Scrollable menu items */
    .nav-menu {
        flex: 1;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 40px 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--current-border-subtle);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 24px;
        width: 100%;
        font-size: 1.1rem;
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.2s ease, background-color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        position: relative;
    }

    .nav-menu a:hover,
    .nav-menu a:active {
        color: var(--current-glow-color);
        background-color: rgba(255, 255, 255, 0.05);
    }

    /* Active/highlighted menu item */
    .nav-menu a.active {
        color: var(--current-glow-color);
        background-color: rgba(255, 255, 255, 0.1);
        text-shadow: 0 0 8px var(--current-glow-color);
    }

    .nav-menu a.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--current-glow-color);
        box-shadow: 0 0 10px var(--current-glow-color);
    }

    /* Prevent menu from closing when clicking nav links */
    .nav-menu-wrapper .nav-menu a {
        pointer-events: auto;
        transition: background 0.2s, box-shadow 0.2s, color 0.2s;
        -webkit-tap-highlight-color: transparent;
    }

    /* iOS-proof visual feedback - works on hover, active, and focus-visible */
    .nav-menu-wrapper .nav-menu a:hover,
    .nav-menu-wrapper .nav-menu a:active,
    .nav-menu-wrapper .nav-menu a:focus-visible,
    .nav-menu-wrapper .nav-menu a.active {
        background: var(--current-button-bg, rgba(123, 95, 255, 0.2));
        box-shadow: inset 0 0 12px var(--current-border-muted, rgba(123, 95, 255, 0.4));
        color: var(--current-glow-color) !important;
    }

    /* Active state animation for touch feedback */
    .nav-menu-wrapper .nav-menu a:active {
        animation: menuGlowPulse 0.2s ease;
    }

    @keyframes menuGlowPulse {
        from {
            box-shadow: inset 0 0 6px var(--current-border-muted, rgba(123, 95, 255, 0.3));
        }

        to {
            box-shadow: inset 0 0 16px var(--current-border-muted, rgba(123, 95, 255, 0.6));
        }
    }

    /* Side menu footer - Rife4Life Technologies */
    .side-menu-footer {
        padding: 20px 24px 24px 24px;
        flex-shrink: 0;
        border-top: 1px solid var(--current-border-subtle);
        position: relative;
        cursor: pointer;
    }

    .footer-divider {
        height: 1px;
        background: linear-gradient(to right,
                var(--current-glow-color) 0%,
                var(--current-glow-color) 40%,
                transparent 100%);
        margin-bottom: 12px;
        opacity: 0.4;
    }

    .footer-text {
        position: relative;
        min-height: 20px;
    }

    .footer-text .glow-text {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
        font-size: 12px;
        font-weight: 600;
        opacity: 0.8;
        filter: blur(0.5px);
        color: transparent;
        text-shadow:
            0 0 12px var(--current-glow-color),
            0 0 8px var(--current-glow-color),
            0 0 4px var(--current-glow-color);
        pointer-events: none;
    }

    .footer-text .gradient-text {
        position: relative;
        z-index: 1;
        font-size: 12px;
        font-weight: 600;
        display: block;
        background: var(--current-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .nav-highlight {
        display: none;
        /* Hide on mobile */
    }

    /* Hero mobile */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 40px;
        padding-top: max(100px, calc(80px + env(safe-area-inset-top)));
        gap: 2rem;
        min-height: auto;
    }

    .hero-content {
        padding: 0 1rem;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

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

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .hero-visual {
        min-height: 250px;
        width: 100%;
        padding-bottom: 150px;
        /* Extra space for glow on mobile */
        margin-bottom: 50px;
        /* Additional margin */
        overflow: visible;
        /* Allow glow to extend */
    }

    .plasma-animation {
        width: 200px;
        height: 200px;
        margin-bottom: 80px;
        /* Extra margin for glow */
    }

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

    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 1rem;
        min-height: 44px;
        /* iOS touch target minimum */
    }

    /* Features mobile */
    .features {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        line-height: 1.2;
    }

    .features-intro {
        font-size: 1rem !important;
        padding: 0 1rem;
    }

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

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .feature-card ul {
        font-size: 0.95rem;
        padding-left: 1.25rem;
    }

    /* Science/Specs mobile */
    .science {
        padding: 60px 20px;
    }

    .science-text h3 {
        font-size: 1.5rem;
    }

    .science-text ul {
        text-align: left;
        padding-left: 0;
    }

    .science-text li {
        font-size: 0.95rem;
        padding-left: 1.25rem;
    }

    /* Download mobile */
    .download {
        padding: 60px 20px;
    }

    .download-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .download-btn {
        width: 100%;
        min-width: auto;
        padding: 1.25rem 1.5rem;
        min-height: 80px;
        /* Better touch target */
    }

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

    .linux-content-box {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 1.5rem;
        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
    }

    /* Contact mobile */
    .contact {
        padding: 60px 20px;
    }

    .contact-text {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Footer mobile */
    .footer {
        padding: 1.5rem 20px;
        font-size: 0.9rem;
    }

    .footer p {
        margin: 0.5rem 0;
    }

    /* Container mobile */
    .container {
        padding: 0 1rem;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {

    /* iOS Safari only */
    .hero {
        min-height: -webkit-fill-available;
    }

    body {
        min-height: -webkit-fill-available;
    }

    /* Fix iOS Safari text rendering */
    .hero-title,
    .section-title,
    .nav-brand {
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

    /* Fix iOS Safari backdrop filter */
    .navbar,
    .nav-menu-wrapper {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

/* ============================================
   PLASMA VIEW COUNTER
   ============================================ */

.view-counter {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    min-height: 24px;
}

.view-counter .glow-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-top: 0.75rem;
    text-shadow: 0 0 10px var(--current-glow-color),
        0 0 20px var(--current-glow-color),
        0 0 30px var(--current-glow-color);
    opacity: 0.7;
    pointer-events: none;
    white-space: nowrap;
    -webkit-filter: blur(0.5px);
    filter: blur(0.5px);
}

.view-counter .gradient-text {
    position: relative;
    z-index: 1;
    background: var(--current-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Counter number animation */
.view-counter .count-number {
    display: inline-block;
    min-width: 2ch;
    font-variant-numeric: tabular-nums;
}

/* Pulse animation on load */
@keyframes counterPulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.95);
    }

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

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

.view-counter.loaded .glow-text {
    animation: counterPulse 0.6s ease-out;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .view-counter {
        font-size: 0.85rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

/* ============================================
   VISITOR COUNTER (Footer)
   Matches section-title glow style
   ============================================ */

.visitor-counter {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem !important;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.visitor-counter .glow-text {
    font-size: 1.2rem;
}

.visitor-counter .gradient-text {
    font-size: 1.2rem;
}

/* Mobile */
@media (max-width: 768px) {
    .visitor-counter {
        font-size: 1rem !important;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .visitor-counter .glow-text,
    .visitor-counter .gradient-text {
        font-size: 1rem;
    }
}

/* ============================================
   PLASMA COUNTER BOX
   Bordered box with glowing numbers only
   ============================================ */

.plasma-counter-box {
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: 1px solid var(--current-card-border);
    border-radius: 12px;
    background: var(--current-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 0 20px color-mix(in srgb, var(--current-glow-color) 20%, transparent);
    transition: all 0.3s ease;
    position: relative;
}

.plasma-counter-box:hover {
    box-shadow:
        0 0 30px var(--current-glow-color),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    border-color: var(--current-glow-color);
}

.plasma-counter-box .counter-number {
    position: relative;
    font-size: 1.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    min-width: 140px;
    text-align: center;
    display: inline-block;
    padding: 0.25em 0;
    overflow: visible;
    letter-spacing: 0.1em;
}

.plasma-counter-box .counter-number .glow-text {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    color: var(--current-glow-color);
    -webkit-text-fill-color: var(--current-glow-color);
    text-shadow:
        0 0 10px var(--current-glow-color),
        0 0 20px var(--current-glow-color),
        0 0 40px var(--current-glow-color),
        0 0 60px var(--current-glow-color);
    opacity: 0.8;
    pointer-events: none;
    filter: blur(1px);
    -webkit-filter: blur(1px);
    white-space: nowrap;
    text-align: center;
    line-height: 1em;
}

.plasma-counter-box .counter-number .gradient-text {
    position: relative;
    z-index: 1;
    background: var(--current-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    display: block;
    line-height: 1em;
}

/* Hover effect - intensify glow */
.plasma-counter-box:hover .counter-number .glow-text {
    text-shadow:
        0 0 15px var(--current-glow-color),
        0 0 30px var(--current-glow-color),
        0 0 50px var(--current-glow-color),
        0 0 80px var(--current-glow-color);
    opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
    .plasma-counter-box {
        margin-top: 1.5rem;
        padding: 0.6rem 1rem;
    }

    .plasma-counter-box .counter-number {
        font-size: 1.5rem;
        min-width: 120px;
        letter-spacing: 0.08em;
    }
}

/* ============================================
   404 VOID PAGE
   ============================================ */

.void-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.void-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.void-title .glow-text {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    color: var(--current-glow-color);
    text-shadow: 0 0 20px var(--current-glow-color), 0 0 40px var(--current-glow-color);
    opacity: 0.7;
    filter: blur(1px);
    pointer-events: none;
}

.void-title .gradient-text {
    position: relative;
    z-index: 1;
    background: var(--current-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plasma-portal {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--current-gradient);
    opacity: 0.6;
    animation: portalPulse 3s ease-in-out infinite;
    filter: blur(40px);
    box-shadow: 0 0 80px var(--current-glow-color), 0 0 120px var(--current-glow-color);
    margin: 2rem 0;
}

@keyframes portalPulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.9;
    }
}

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

@media (max-width: 768px) {
    .void-title {
        font-size: 2rem;
    }

    .plasma-portal {
        width: 200px;
        height: 200px;
    }
}/* Plasma Dialog System */
.plasma-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.plasma-dialog-overlay.show {
    opacity: 1;
    visibility: visible;
}

.plasma-dialog {
    background: #0F0F1A;
    border: 2px solid var(--current-card-border);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--current-border-subtle);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.plasma-dialog-overlay.show .plasma-dialog {
    transform: scale(1) translateY(0);
}

.plasma-dialog-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--current-card-border);
    color: var(--current-glow-color);
    font-size: 28px;
    box-shadow: 0 0 15px var(--current-border-subtle);
}

.plasma-dialog-title {
    background: var(--current-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.plasma-dialog-message {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.plasma-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.plasma-dialog-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.plasma-dialog-btn-primary {
    background: var(--current-gradient);
    border: none;
    color: white;
}

.plasma-dialog-btn-primary:hover {
    box-shadow: 0 0 15px var(--current-glow-color);
    transform: translateY(-1px);
}

.plasma-dialog-btn-outline {
    background: transparent;
    border: 2px solid var(--current-card-border);
    color: var(--text-secondary);
}

.plasma-dialog-btn-outline:hover {
    border-color: var(--current-glow-color);
    color: var(--text-primary);
}

.plasma-dialog-btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #FF5F5F;
}

.plasma-dialog-btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #EF4444;
}