/*
 * Core styles for the landing page. The design uses a dark, low contrast
 * background with a few carefully chosen accent colours. Negative space and
 * typographic hierarchy help users focus on the central message without
 * distractions, as recommended by minimalist design guidelines【464514548739605†L97-L133】.
 */

/* Reset default margin/padding and ensure the entire page uses border-box sizing. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at center, rgba(7, 7, 20, 1) 0%, rgba(2, 2, 10, 1) 100%);
    color: #f3f3ff;
    overflow: hidden;
}

/* Container for the background animation. */
#animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* The canvas fills the container. */
#magic-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* A subtle pulsing glow behind the logo. */
.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50vmin;
    height: 50vmin;
    margin-top: -25vmin;
    margin-left: -25vmin;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 80, 255, 0.5) 0%, rgba(20, 20, 60, 0) 70%);
    filter: blur(60px);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

/* Centered header with the logo and text. The high-level layout uses
   flexbox to vertically and horizontally centre content, making it
   responsive across devices. */
header {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.logo {
    width: 20vmin;
    max-width: 240px;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(150, 120, 255, 0.3);
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #e8e8ff;
    letter-spacing: 0.15rem;
}

p {
    max-width: 600px;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    color: #bcbcff;
}

footer {
    position: absolute;
    bottom: 1rem;
    width: 100%;
    text-align: center;
    z-index: 1;
    color: #7474ba;
    font-size: 0.8rem;
}