:root {
    --primary: #00FFCC; /* Nexus Cyan */
    --primary-dark: #00B399; /* Deep Nexus Cyan */
    --background: #05050A; /* Deep Tech Black */
    --card-bg: rgba(10, 15, 20, 0.6);
    --nav-bg: rgba(5, 5, 10, 0.85);
    --text: #ffffff;
    --text-muted: #8E9BB0;
    --accent: #FFCC00; /* Nexus Amber */
    --border: rgba(0, 255, 204, 0.15); /* Cyan Tinted Border */
    --glass: rgba(0, 255, 204, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Mesh Background - Enhanced for Nexus */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(0, 255, 204, 0.1) 0%, transparent 60%),
                radial-gradient(circle at 90% 80%, rgba(255, 204, 0, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(0, 179, 153, 0.05) 0%, transparent 100%);
    animation: bgPulse 15s infinite alternate ease-in-out;
}

@keyframes bgPulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(-1%, -1%); }
}

/* Particle Overlay */
.bg-canvas::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridScroll 100s linear infinite;
    opacity: 0.6;
}

@keyframes gridScroll {
    from { background-position: 0 0; }
    to { background-position: -500px -500px; }
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    width: 20px;
    height: 20px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* Hero Section */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 70px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.hero-glow {
    text-shadow: 0 0 30px rgba(0, 255, 204, 0.4);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary);
    color: #000; /* Dark text for contrast against bright cyan */
    box-shadow: 0 8px 24px rgba(0, 255, 204, 0.3);
}

.btn-primary:hover {
    background: #00E6B8;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 255, 204, 0.5);
}

.btn-glass {
    background: rgba(0, 255, 204, 0.05);
    color: var(--primary);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.btn-glass:hover {
    background: rgba(0, 255, 204, 0.1);
    border-color: rgba(0, 255, 204, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-pulse {
    position: relative;
    overflow: hidden;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(0, 255, 204, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.3); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 204, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 204, 0); }
}

.btn-pulse:hover {
    animation: pulse 1.5s infinite;
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.feature-card {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    border-top: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 204, 0.4);
    border-top: 2px solid var(--primary);
    background: rgba(0, 255, 204, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Commands Section */
.commands-wrapper {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 3rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.search-container {
    margin-bottom: 3rem;
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--background);
    border: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    padding-left: 3.5rem;
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.15);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.category-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar { display: none; }

.category-tab {
    padding: 0.75rem 1.5rem;
    background: var(--glass);
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid var(--border);
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.command-item.highlight {
    animation: highlightPulse 2s ease;
    border-color: var(--accent);
    background: rgba(255, 204, 0, 0.1);
}

@keyframes highlightPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px 10px rgba(255, 204, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}

.command-item {
    padding: 1.5rem;
    background: var(--glass);
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.command-name {
    color: var(--primary);
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-indicator {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.command-item:hover .copy-indicator {
    opacity: 1;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Legal Pages Premium Styling */
.legal-container {
    background: var(--card-bg);
    margin-top: 120px;
    margin-bottom: 4rem;
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.legal-section {
    margin-bottom: 3.5rem;
}

.legal-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-num {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
}

.legal-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.info-item {
    background: var(--glass);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    gap: 1.25rem;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: scale(1.02) translateY(-5px);
    border-color: var(--primary);
    background: rgba(88, 101, 242, 0.05);
}

.info-icon {
    font-size: 1.5rem;
}

.info-item h4 {
    margin-bottom: 0.5rem;
    color: white;
}

.legal-section ul {
    list-style: none;
    margin-top: 1.5rem;
}

.legal-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.legal-section ul li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.legal-footer {
    border-top: 1px solid var(--border);
    padding-top: 3rem;
    text-align: center;
}

@media (max-width: 768px) {
    .legal-container {
        padding: 2rem;
        margin-top: 100px;
    }
    .legal-header h1 {
        font-size: 2.5rem;
    }
}

footer {
    text-align: center;
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}

.joke-of-the-day {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.joke-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

#daily-joke {
    font-style: italic;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .nav-links { display: none; }
    .commands-wrapper { padding: 1.5rem; }
}
.legal-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.legal-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
}
