<div class="space">
<div class="stars-container">
<div class="stars-layer stars-layer-1"></div>
<div class="stars-layer stars-layer-2"></div>
<div class="stars-layer stars-layer-3"></div>
</div>
<div class="earth-glow"></div>
<div class="content">
<div class="subtitle">Solar System Inc.</div>
<h1>Welcome<br>Home</h1>
<p>Cosmic voyager, your stellar odyssey concludes. Earth embraces your return.</p>
<div class="buttons">
<a href="#" class="button">Enter Orbit</a>
<a href="#" class="button">View Map</a>
</div>
</div>
</div>
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap");
body,
html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
font-family: "Inter", sans-serif;
background: #000;
}
.space {
position: relative;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, #000000 60%, #090420 100%);
overflow: hidden;
}
.stars-container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
perspective: 300px;
}
.stars-layer {
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
animation: rotate 240s linear infinite;
}
.stars-layer-1 {
transform: translateZ(-300px) scale(2);
}
.stars-layer-2 {
transform: translateZ(-200px) scale(1.75);
}
.stars-layer-3 {
transform: translateZ(-100px) scale(1.5);
}
.stars-layer::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-size: 350px 350px;
animation: twinkle 4s infinite ease-in-out;
}
.stars-layer-1::before {
background-image: radial-gradient(
1px 1px at 20px 30px,
#fff,
rgba(0, 0, 0, 0)
),
radial-gradient(1px 1px at 40px 70px, #ffd700, rgba(0, 0, 0, 0)),
radial-gradient(1px 1px at 50px 160px, #8a2be2, rgba(0, 0, 0, 0)),
radial-gradient(1.5px 1.5px at 90px 40px, #fff, rgba(0, 0, 0, 0));
}
.stars-layer-2::before {
background-image: radial-gradient(
1px 1px at 100px 150px,
#fff,
rgba(0, 0, 0, 0)
),
radial-gradient(1px 1px at 200px 250px, #ffd700, rgba(0, 0, 0, 0)),
radial-gradient(1.5px 1.5px at 300px 350px, #8a2be2, rgba(0, 0, 0, 0));
}
.stars-layer-3::before {
background-image: radial-gradient(
1px 1px at 50px 80px,
#fff,
rgba(0, 0, 0, 0)
),
radial-gradient(1.5px 1.5px at 150px 180px, #ffd700, rgba(0, 0, 0, 0)),
radial-gradient(2px 2px at 250px 300px, #8a2be2, rgba(0, 0, 0, 0));
}
@keyframes rotate {
0% {
transform: rotateZ(0deg);
}
100% {
transform: rotateZ(360deg);
}
}
@keyframes twinkle {
0%,
100% {
opacity: 0.7;
}
50% {
opacity: 1;
}
}
.earth-glow {
position: absolute;
bottom: -20vh;
left: 0;
width: 100%;
height: 40vh;
background: radial-gradient(
ellipse at center,
rgba(255, 255, 255, 0.4) 0%,
rgba(173, 216, 230, 0.2) 30%,
rgba(25, 25, 112, 0.3) 60%,
rgba(25, 25, 112, 0.1) 70%,
rgba(0, 0, 0, 0) 90%
);
border-radius: 50% 50% 0 0 / 100% 100% 0 0;
filter: blur(16px);
}
.content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: white;
width: 90%;
max-width: 800px;
}
.subtitle {
font-size: 1.8rem;
font-weight: 700;
margin-bottom: 0.5rem;
letter-spacing: 0.05em;
}
h1 {
font-size: 7rem;
font-weight: 900;
font-style: italic;
margin: 0;
line-height: 1;
letter-spacing: -0.02em;
}
p {
font-size: 1rem;
line-height: 1.6;
color: rgba(255, 255, 255, 0.9);
margin: 1.5rem auto;
max-width: 600px;
}
.buttons {
display: flex;
justify-content: center;
gap: 1rem;
margin-top: 2rem;
}
.button {
padding: 0.8rem 1.5rem;
font-size: 1rem;
text-decoration: none;
color: #000000;
background-color: #ffffff;
border: none;
border-radius: 5px;
transition: all 0.3s ease;
}
.button:hover {
background-color: #f0f0f0;
transform: translateY(-2px);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.