:root {
    --primary: #ff0f39;
    --primary-dim: rgba(255, 15, 57, 0.2);
    --accent: #00f3ff;
    --bg: #050505;
    --glass-bg: rgba(10, 12, 16, 0.9);
}

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

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

.section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

.tech-font {
    font-family: 'Share Tech Mono', monospace;
}

.hero {
    min-height: 90vh;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: none;
    position: relative;
    display: inline-block;
    animation: glitch-subtle 5s infinite;
}

@keyframes glitch-subtle {
    0%, 90% { 
        text-shadow: none; 
        transform: translate(0);
    }
    91% { 
        text-shadow: 2px 0 var(--primary), -2px 0 var(--accent);
        transform: translate(-1px, 0);
    }
    92% { 
        text-shadow: -2px 0 var(--primary), 2px 0 var(--accent);
        transform: translate(1px, 0);
    }
    93% { 
        text-shadow: none; 
        transform: translate(0);
    }
}

.tagline-container {
    height: 60px;
    margin-bottom: 2rem;
}

.tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--accent);
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeInOut 6s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateY(10px); }
    10%, 40% { opacity: 1; transform: translateY(0); }
    50%, 100% { opacity: 0; transform: translateY(-10px); }
}

.module-banner {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--primary-dim);
    box-shadow: 0 0 30px rgba(255, 15, 57, 0.15);
    margin: 0 auto 3rem auto;
    display: block;
    transition: transform 0.3s ease;
}

.module-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(255, 15, 57, 0.3);
}

.author-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.author-info {
    text-align: center;
}

.author-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.bio-quote {
    font-size: 10px;
    color: #9ca3af;
    font-style: italic;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    display: block;
}

.social-stack {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem;
    border: 1px solid #222;
    border-radius: 8px;
    min-width: 300px;
    max-width: 90vw;
}

.social-item {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.social-item a {
    color: var(--accent);
    text-decoration: none;
    transition: 0.3s;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.mini-pfp {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    object-fit: cover;
}

.social-item a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

.status-panel {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid #333;
    padding: 1rem 2rem;
    border-radius: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-item .label {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 0.1em;
}

.status-item .value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: white;
}

.compat-btn {
    background: transparent;
    border: 1px dashed #666;
    color: #888;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: 0.3s;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compat-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.notes-container {
    width: 100%;
    max-width: 700px;
    margin: 1rem auto;
    display: none;
}

.help-box {
    background: rgba(255, 170, 0, 0.05);
    border: 1px dashed #ffaa00;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--primary-dim);
    padding: 2rem;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

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

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: 'Share Tech Mono', monospace;
}

.feature-card p {
    color: #ccc;
    font-size: 0.9rem;
}

.corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--primary);
    transition: 0.3s;
}

.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.feature-card:hover .corner {
    width: 25px;
    height: 25px;
    box-shadow: 0 0 15px var(--primary);
}

.webui-preview {
    width: 100%;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    margin: 2rem 0;
}

.webui-header {
    background: #1a1a1a;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

.webui-body {
    padding: 1rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #ccc;
    line-height: 1.4;
}

.log-line { 
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.log-success { color: #00ff88; }
.log-warning { color: #ffaa00; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #222;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary);
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
}

.stat-label {
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.install-steps {
    display: grid;
    gap: 1rem;
    width: 100%;
    margin-top: 2rem;
}

.step {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--accent);
}

.step-number {
    font-size: 2rem;
    color: var(--primary-dim);
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-subtitle {
    color: #888;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Share Tech Mono', monospace;
}

.compat-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.badge {
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--accent);
    font-size: 0.9rem;
    cursor: default;
}

.cta-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    margin: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    box-shadow: 0 0 30px var(--primary);
    transform: scale(1.05);
}

.changelog-container {
    width: 100%;
    max-width: 800px;
    background: #0a0a0a;
    border: 1px solid var(--accent);
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
    display: none;
    text-align: left;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.changelog-header {
    background: rgba(0, 243, 255, 0.1);
    padding: 1rem;
    border-bottom: 1px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.changelog-content {
    padding: 2rem;
    color: #ccc;
    font-family: 'Share Tech Mono', monospace;
    max-height: 500px;
    overflow-y: auto;
}

.changelog-content::-webkit-scrollbar {
    width: 8px;
}

.changelog-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .section { padding: 2rem 1rem; }
    .hero-title { font-size: 2.5rem; }
    .status-panel { width: 100%; justify-content: space-around; }
    .cta-btn { width: 100%; margin: 0.5rem 0; }
    .bio-quote { font-size: 10px; }
    .social-stack { min-width: 100%; }
    .webui-body { font-size: 0.7rem; }
}

@keyframes particleFade {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0) translateY(-50px); }
}

#notes-area {
    display: none;
}

#updatejson-area {
    display: none;
}