:root {
    --bg-base: #0a0a0b;
    --bg-surface: #121214;
    --bg-surface-hover: #1c1c1f;
    
    --accent-main: #3b82f6;
    --accent-glow: #60a5fa;
    --accent-jarvis: #00e5ff; /* Added cyan for specific details */
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #475569;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --glass-bg: rgba(18, 18, 20, 0.6);
    
    --font-ui: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-ui);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
#jarvis-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none; /* Allows clicking through the canvas */
    opacity: 0.8;
}

.bg-gradient-top {
    position: absolute;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 40vh;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(10, 10, 11, 0) 70%);
    z-index: -2;
    pointer-events: none;
}

.bg-grid {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: -3;
    mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-dim { color: var(--text-tertiary); }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    border-bottom: 1px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    color: var(--accent-main);
    font-size: 1.25rem;
}

.brand-text {
    font-weight: 600;
    letter-spacing: -0.5px;
    font-size: 1.1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981; /* Success Green */
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 40px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    color: var(--accent-glow);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
}

/* Reactor Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reactor-core {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.core-inner {
    width: 100px;
    height: 100px;
    background: var(--accent-main);
    border-radius: 50%;
    box-shadow: 0 0 60px var(--accent-main), inset 0 0 20px #fff;
    z-index: 10;
}

.core-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(96, 165, 250, 0.3);
}

.r1 {
    width: 200px; height: 200px;
    border-width: 2px;
    animation: spin 20s linear infinite;
}

.r2 {
    width: 280px; height: 280px;
    border-style: dotted;
    border-color: rgba(96, 165, 250, 0.1);
    animation: spin-reverse 30s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }

/* Section Headers */
.section-header {
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Featured Download Card */
.section-downloads { margin-bottom: 80px; }

.download-card {
    position: relative;
    border-radius: 16px;
    padding: 1px; /* Border trick */
    background: linear-gradient(135deg, var(--border-hover), transparent);
    overflow: hidden;
}

.card-glass {
    position: absolute;
    inset: 1px;
    background: var(--bg-surface);
    border-radius: 15px;
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 40px;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.app-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--accent-glow);
}

.app-title-area h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.version-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.app-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
}

.app-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--text-primary);
    color: var(--bg-base);
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Roadmap Grid */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.roadmap-card {
    position: relative;
    padding: 1px;
    border-radius: 12px;
    background: var(--border-color);
}

.roadmap-card .card-glass {
    padding: 24px;
    border-radius: 11px;
    height: 100%;
}

.roadmap-card.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), transparent);
}

.rc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.rc-header i { font-size: 1.5rem; }

.status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
}

.status.active { background: rgba(59, 130, 246, 0.1); color: var(--accent-glow); }
.status.encrypted { background: rgba(255, 255, 255, 0.05); color: var(--text-tertiary); border: 1px dashed var(--text-tertiary); }

.roadmap-card h4 {
    position: relative; z-index: 1;
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.roadmap-card p {
    position: relative; z-index: 1;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* New Incoming Module Card specific styling */
.glow-pulse {
    animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
    0% { color: var(--text-tertiary); text-shadow: none; }
    100% { color: var(--accent-main); text-shadow: 0 0 10px var(--accent-glow); }
}

/* Dynamic Mouse Glow Effect */
.download-card::before, .roadmap-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    background: radial-gradient(
        600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    z-index: 2;
    pointer-events: none;
}

.download-card:hover::before, .roadmap-card:hover::before {
    opacity: 1;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copyright {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.social-link:hover { color: var(--text-primary); }

/* Responsive */
@media(max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding: 40px 0; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { margin: 0 auto; }
    .app-header { flex-direction: column; text-align: center; }
    .app-meta { flex-direction: column; gap: 12px; align-items: center; }
    .footer-content { flex-direction: column; gap: 20px; }
    .system-status { display: none; }
}