/* =============================================================
   Nori Systems — dark, premium "brain wave" landing
   ============================================================= */

:root {
    --bg-0: #05060a;   /* deepest */
    --bg-1: #090b12;
    --bg-2: #0d1018;
    --ink: #f4f6fb;
    --ink-dim: #9aa3b5;
    --accent: #8ab4f8;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
}

body {
    min-height: 100vh;
    overflow: hidden;
    color: var(--ink);
    font-family: 'Poppins';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Layered dark gradient: subtle cool glow rising from center-bottom
       over a deep near-black base. */
    background:
        radial-gradient(120% 90% at 50% 38%, #12151f 0%, var(--bg-1) 42%, var(--bg-0) 100%),
        var(--bg-0);
}

.stage {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --- Pill field (Three.js canvas is injected here) --- */
.particles-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particles-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* --- Spotlight: darkens the field directly behind the wordmark so the
       text stays crisp, while letting the pills glow around it. --- */
.spotlight {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(closest-side at 50% 50%,
            rgba(5, 6, 10, 0.92) 0%,
            rgba(5, 6, 10, 0.72) 26%,
            rgba(5, 6, 10, 0.30) 52%,
            rgba(5, 6, 10, 0) 70%);
    width: min(1100px, 120vw);
    height: min(680px, 90vh);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    inset: auto;
}

/* --- Centered content --- */
.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.15rem;
    padding: 0 1.5rem;
    pointer-events: none;

    /* Stay hidden until Poppins has loaded (see the inline script in the
       head) so the text never flashes in a fallback font. */
    opacity: 0;
}

.fonts-ready .content {
    /* Slow, premium entrance */
    animation: rise 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.15s;
}

.company-name {
    margin: 0;
    font-family: 'Poppins';
    font-weight: 500;
    font-size: clamp(2.4rem, 6.5vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, #cfd6e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 40px rgba(138, 180, 248, 0.18);
}

.company-slogan {
    margin: 0;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.5;
    letter-spacing: 0.01em;
    color: var(--ink-dim);
    max-width: 34ch;
}

.company-phone {
    pointer-events: auto;
    margin-top: 0.35rem;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    letter-spacing: 0.04em;
    color: var(--ink);
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: border-color 0.5s ease, background 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.company-phone:hover {
    border-color: rgba(138, 180, 248, 0.5);
    background: rgba(138, 180, 248, 0.08);
    transform: translateY(-1px);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fonts-ready .content {
        animation: none;
        opacity: 1;
    }
}
