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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 30px 80px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* Random stars background */
.stars-layer {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star-small {
    width: 1px;
    height: 1px;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.star-medium {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
}

.star-large {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 1);
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Milky Way */
.milky-way {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(200, 200, 255, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 50%, rgba(180, 180, 255, 0.08) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 50%, rgba(160, 160, 255, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 60% 50%, rgba(180, 180, 255, 0.07) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 50%, rgba(200, 200, 255, 0.05) 0%, transparent 38%);
    transform: rotate(-25deg);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

/* Distant Galaxies */
.galaxy {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(3px);
    opacity: 0.4;
    animation: galaxyRotate 60s linear infinite;
}

.galaxy-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 75%;
    background: radial-gradient(ellipse at center, rgba(255, 220, 200, 0.3) 0%, rgba(255, 200, 150, 0.2) 30%, transparent 70%);
}

.galaxy-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    right: 15%;
    background: radial-gradient(ellipse at center, rgba(200, 220, 255, 0.3) 0%, rgba(150, 180, 255, 0.2) 30%, transparent 70%);
    animation-duration: 80s;
}

.galaxy-3 {
    width: 50px;
    height: 50px;
    top: 60%;
    left: 8%;
    background: radial-gradient(ellipse at center, rgba(255, 200, 255, 0.3) 0%, rgba(255, 150, 200, 0.2) 30%, transparent 70%);
    animation-duration: 100s;
}

.galaxy-4 {
    width: 70px;
    height: 70px;
    top: 40%;
    right: 25%;
    background: radial-gradient(ellipse at center, rgba(220, 255, 220, 0.25) 0%, rgba(180, 255, 180, 0.15) 30%, transparent 70%);
    animation-duration: 90s;
}

.galaxy-5 {
    width: 55px;
    height: 55px;
    bottom: 35%;
    left: 20%;
    background: radial-gradient(ellipse at center, rgba(255, 230, 200, 0.25) 0%, rgba(255, 200, 150, 0.15) 30%, transparent 70%);
    animation-duration: 110s;
}

@keyframes galaxyRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Planets */
.planet {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    box-shadow: inset -10px -10px 30px rgba(0, 0, 0, 0.5);
    animation: planetFloat 20s ease-in-out infinite;
}

.planet-1 {
    width: 40px;
    height: 40px;
    top: 25%;
    left: 12%;
    background: radial-gradient(circle at 30% 30%, rgba(180, 150, 230, 0.6), rgba(120, 80, 180, 0.4));
    box-shadow:
        inset -8px -8px 20px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(150, 100, 200, 0.3);
}

.planet-2 {
    width: 30px;
    height: 30px;
    bottom: 30%;
    right: 12%;
    background: radial-gradient(circle at 35% 35%, rgba(230, 180, 150, 0.6), rgba(200, 120, 80, 0.4));
    box-shadow:
        inset -6px -6px 15px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(200, 140, 100, 0.3);
    animation-delay: 10s;
}

@keyframes planetFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Star Clusters */
.star-cluster {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

.cluster-1 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 8%;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.4) 0%, transparent 3px),
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.5) 0%, transparent 2px),
        radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle at 60% 65%, rgba(255, 255, 255, 0.4) 0%, transparent 3px),
        radial-gradient(circle at 55% 55%, rgba(255, 255, 255, 0.2) 0%, transparent 2px);
}

.cluster-2 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 25%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle at 55% 45%, rgba(255, 255, 255, 0.4) 0%, transparent 3px),
        radial-gradient(circle at 45% 60%, rgba(255, 255, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle at 65% 55%, rgba(255, 255, 255, 0.2) 0%, transparent 2px);
}

.cluster-3 {
    width: 90px;
    height: 90px;
    top: 65%;
    right: 30%;
    background:
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.4) 0%, transparent 3px),
        radial-gradient(circle at 60% 35%, rgba(255, 255, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.5) 0%, transparent 2px),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle at 35% 65%, rgba(255, 255, 255, 0.2) 0%, transparent 2px);
}

/* Constellations */
.constellation {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.constellation svg {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6));
}

.nebula {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    pointer-events: none;
    animation: nebulaPulse 15s ease-in-out infinite;
    z-index: 0;
}

.nebula-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, transparent 70%);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.nebula-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.3) 0%, transparent 70%);
    bottom: 15%;
    left: 5%;
    animation-delay: 5s;
}

.nebula-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes nebulaPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.comet {
    position: fixed;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    opacity: 0;
    z-index: 10;
}

.comet::before {
    content: '';
    position: absolute;
    top: 0;
    right: 3px;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);
    transform: rotate(45deg);
    transform-origin: left center;
}

.comet:nth-child(1) {
    top: 10%;
    left: -100px;
    animation: comet 8s linear infinite;
}

.comet:nth-child(2) {
    top: 30%;
    left: -100px;
    animation: comet 12s linear infinite 4s;
}

.comet:nth-child(3) {
    top: 60%;
    left: -100px;
    animation: comet 10s linear infinite 7s;
}

.comet:nth-child(4) {
    top: 45%;
    left: -100px;
    animation: comet 15s linear infinite 11s;
}

.comet:nth-child(5) {
    top: 75%;
    left: -100px;
    animation: comet 9s linear infinite 14s;
}

@keyframes comet {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(120vw) translateY(60vh);
        opacity: 0;
    }
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 4rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ecosystem-visual {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 4rem;
}

.app-node {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

.node-inner {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-gradient);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6),
                0 0 40px rgba(118, 75, 162, 0.4),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: nodeGlow 3s ease-in-out infinite;
}

@keyframes nodeGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6),
                    0 0 40px rgba(118, 75, 162, 0.4),
                    inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.8),
                    0 0 60px rgba(118, 75, 162, 0.6),
                    inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

.node-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.node-2 {
    bottom: 0;
    left: 0;
    animation-delay: 0.5s;
}

.node-3 {
    bottom: 0;
    right: 0;
    animation-delay: 1s;
}

.node-4 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
    transform-origin: left center;
}

.line-1 {
    top: 70px;
    left: 150px;
    width: 120px;
    transform: rotate(45deg);
}

.line-2 {
    top: 150px;
    left: 50px;
    width: 100px;
    transform: rotate(-30deg);
}

.line-3 {
    top: 150px;
    right: 50px;
    width: 100px;
    transform: rotate(30deg);
}

.line-4 {
    bottom: 70px;
    left: 120px;
    width: 80px;
}

.line-5 {
    top: 70px;
    left: 150px;
    width: 100px;
    transform: rotate(-45deg);
}

.line-6 {
    top: 150px;
    left: 150px;
    width: 2px;
    height: 100px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.node-2, .node-3, .node-4 {
    animation-name: floatNoTransform;
}

@keyframes floatNoTransform {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.node-4 {
    animation-name: floatRight;
}

@keyframes floatRight {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(calc(-50% - 10px));
    }
}

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

.feature {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 15px;
    color: white;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .logo {
        padding: 0.6rem 1.5rem;
        gap: 0.75rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        margin-bottom: 3rem;
    }

    .ecosystem-visual {
        width: 250px;
        height: 250px;
        margin-bottom: 3rem;
    }

    .app-node {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }

    .node-inner {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

    .connection {
        display: none;
    }

    .nebula {
        filter: blur(40px);
        opacity: 0.2;
    }

    .nebula-1 {
        width: 250px;
        height: 250px;
    }

    .nebula-2 {
        width: 300px;
        height: 300px;
    }

    .nebula-3 {
        width: 200px;
        height: 200px;
    }

    .constellation {
        opacity: 0.6;
    }

    .constellation svg {
        transform: scale(0.7);
    }

    .galaxy {
        opacity: 0.3;
    }

    .planet {
        opacity: 0.6;
    }

    .star-cluster {
        opacity: 0.5;
    }

    .milky-way {
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .ecosystem-visual {
        width: 200px;
        height: 200px;
    }

    .app-node {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .node-inner {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .nebula {
        filter: blur(30px);
        opacity: 0.15;
    }

    .nebula-1 {
        width: 180px;
        height: 180px;
    }

    .nebula-2 {
        width: 200px;
        height: 200px;
    }

    .nebula-3 {
        width: 150px;
        height: 150px;
    }

    .constellation {
        opacity: 0.5;
    }

    .constellation svg {
        transform: scale(0.5);
    }

    .galaxy {
        opacity: 0.2;
        transform: scale(0.8);
    }

    .planet {
        opacity: 0.5;
        transform: scale(0.8);
    }

    .star-cluster {
        opacity: 0.4;
        transform: scale(0.7);
    }

    .milky-way {
        opacity: 0.4;
    }
}
