/* --- Basis & Reset --- */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: #000000; /* Reines Schwarz für maximalen Kontrast */
    color: #ffe4e0; /* Ganz leicht rötliches Weiß */
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

* { box-sizing: border-box; }

/* --- Hintergrund-System (The Abyss / The Forge) --- */
.gradient-background {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #000000;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px); /* Sehr weich für atmosphärisches Glühen */
    opacity: 0.3; /* Dezent halten, um nicht zu blenden */
}

.sphere-1 {
    width: 60vw; height: 60vw;
    /* Tiefes Blutrot */
    background: linear-gradient(40deg, #4c0519, #991b1b);
    top: -20%; left: -15%;
    animation: float-1 25s ease-in-out infinite alternate;
}

.sphere-2 {
    width: 50vw; height: 50vw;
    /* Glühendes Lava-Orange */
    background: linear-gradient(240deg, #7c2d12, #ea580c);
    bottom: -15%; right: -10%;
    animation: float-2 30s ease-in-out infinite alternate;
}

.sphere-3 {
    width: 35vw; height: 35vw;
    background: radial-gradient(circle, rgba(185, 28, 28, 0.2), transparent);
    top: 50%; left: 30%;
    animation: float-3 18s ease-in-out infinite alternate;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-size: 60px 60px;
    background-image: 
        linear-gradient(to right, rgba(239, 68, 68, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(239, 68, 68, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black, transparent 90%);
    z-index: 2;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.05; /* Etwas stärker für Asche-Vibe */
    z-index: 3;
    pointer-events: none;
    /* Nutzung von Fractal Noise für "Asche-Regen" Look */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Hero Sektion --- */
.backend-hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.hero-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- Typografie --- */
h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 30%, #f97316 70%, #b91c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.4));
}

p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 228, 224, 0.7); /* Hellgrau mit leichtem Rotstich */
    margin-bottom: 3rem;
}

/* --- Status & Buttons --- */
.status-indicator {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    margin-bottom: 1.8rem;
    color: #ef4444; /* Klares Rot */
    display: flex;
    align-items: center;
}

.pulse-dot {
    width: 10px; height: 10px;
    background: #f97316; /* Glühendes Orange */
    border-radius: 50%;
    margin-right: 14px;
    box-shadow: 0 0 15px #f97316;
    animation: pulse-infernal 1.5s infinite;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    /* Glühender Button */
    background: linear-gradient(90deg, #b91c1c, #ea580c);
    color: #fff;
    padding: 1.2rem 3rem;
    border-radius: 2px; /* Scharfkantig */
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -5px rgba(185, 28, 28, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 50px rgba(249, 115, 22, 0.6);
    transform: translateY(-3px) scale(1.03);
}

/* --- Terminal Visual (The Obsidian Console) --- */
.terminal-frame {
    /* Wie Obsidian/Vulkanglas */
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.9), rgba(5, 5, 5, 0.95));
    border: 1px solid rgba(185, 28, 28, 0.2);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.8), 0 0 15px rgba(185, 28, 28, 0.1);
    font-family: 'Fira Code', monospace;
}

.terminal-bar {
    background: rgba(20, 20, 25, 0.8);
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(185, 28, 28, 0.15);
}

.window-dots { display: flex; gap: 8px; }
/* Versteinerte Punkte */
.window-dots span { width: 12px; height: 12px; border-radius: 50%; background: #4c0519; opacity: 0.7; }

.terminal-content { 
    padding: 30px; 
    font-size: 0.9rem; 
    color: #ffe4e0; 
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.3);
}

/* Infernales Syntax-Highlighting */
.code-blue { color: #f97316; }   /* Orange für Befehle */
.code-purple { color: #ef4444; } /* Rot für Fetch/Secure */
.code-green { color: #4ade80; }  /* Grün für Stats (bleibt, da positiv) */
.code-yellow { color: #fbbf24; } /* Gelb für Syncing */

/* --- Keyframes --- */
@keyframes float-1 { 0% { transform: translate(0,0) rotate(0deg); } 100% { transform: translate(8%, 5%) rotate(2deg); } }
@keyframes float-2 { 0% { transform: translate(0,0) rotate(0deg); } 100% { transform: translate(-8%, -5%) rotate(-2deg); } }

@keyframes pulse-infernal { 
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 15px #f97316; } 
    50% { opacity: 0.6; transform: scale(0.95); box-shadow: 0 0 25px #b91c1c; } 
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .hero-layout { grid-template-columns: 1fr; text-align: center; margin-top: 5rem; }
    .hero-visual { display: none; }
    .status-indicator { justify-content: center; }
}

/* --- Particles System (The Glowing Ash) --- */
#particles-container {
    position: fixed; /* Fixiert auf den gesamten Viewport */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 4;      /* Hinter dem Text (z-index 10), vor den Sphären (z-index 1) */
    pointer-events: none; /* Klicks gehen durch auf die Buttons */
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity; /* Performance-Boost */
}