/* =============================================================================
   Landing — "coming soon" placeholder.
   Pure CSS animations, mobile-first, no external assets.
   ============================================================================= */

:root {
    --bg-0: #0b0d14;
    --bg-1: #11121e;
    --bg-2: #0f1428;
    --text:      #eef0f7;
    --text-soft: #a0a8bd;
    --muted:     #5d6479;
    --grad-a:    #7c5cff;
    --grad-b:    #a855f7;
    --grad-c:    #00d4ff;
}

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

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
                 Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-0);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    display: flex;
    flex-direction: column;
    /* Strict height: prevents the body from gaining a scrollbar when an
       animated child (orbs, blur, transforms) briefly exceeds the viewport.
       The .page container handles its own overflow for tiny viewports. */
    height:  100vh;
    height:  100dvh;
    overflow: hidden;
}

/* ── Animated gradient base layer ─────────────────────────────────────────── */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    /* contain isolates the bg from the rest of the page's layout. Without
       it, some browsers can briefly compute overflow during the orb/blur
       animations and surface a body scrollbar. */
    contain: strict;
    background:
        radial-gradient(ellipse at 20% 0%,  rgba(124, 92, 255, 0.12), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 212, 255, 0.10), transparent 50%),
        linear-gradient(135deg, var(--bg-0), var(--bg-1), var(--bg-2), var(--bg-1), var(--bg-0));
    background-size: 100% 100%, 100% 100%, 400% 400%;
    animation: bg-shift 24s ease-in-out infinite;
}
@keyframes bg-shift {
    0%, 100% { background-position: 0% 0%, 100% 100%, 0% 50%; }
    50%      { background-position: 0% 0%, 100% 100%, 100% 50%; }
}

/* ── Floating blurred orbs ────────────────────────────────────────────────── */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    will-change: transform;
    pointer-events: none;
}
.orb-1 {
    width: 480px; height: 480px;
    top: -120px; left: -120px;
    background: radial-gradient(circle, var(--grad-a), transparent 60%);
    animation: float-1 22s ease-in-out infinite;
}
.orb-2 {
    width: 520px; height: 520px;
    bottom: -160px; right: -160px;
    background: radial-gradient(circle, var(--grad-c), transparent 60%);
    animation: float-2 28s ease-in-out infinite;
}
.orb-3 {
    width: 360px; height: 360px;
    top: 40%; left: 50%;
    background: radial-gradient(circle, var(--grad-b), transparent 60%);
    opacity: 0.22;
    animation: float-3 26s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0)        scale(1);    }
    50%      { transform: translate(80px, 60px)  scale(1.1);  }
}
@keyframes float-2 {
    0%, 100% { transform: translate(0, 0)         scale(1);   }
    50%      { transform: translate(-100px, -60px) scale(1.15); }
}
@keyframes float-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   }
    50%      { transform: translate(-30%, -60%) scale(0.9); }
}

/* ── Subtle dotted grid (very low opacity, blueprint feel) ────────────────── */
.grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

/* ── Main content ────────────────────────────────────────────────────────── */
.page {
    flex: 1;
    /* min-height:0 lets the page shrink below its content size so overflow-y
       can take over on tiny viewports. Without it, a flex child defaults to
       min-height:auto and grows past the body, creating a body scrollbar. */
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    gap: 28px;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

/* ── Logo (orbital SVG) ──────────────────────────────────────────────────── */
.logo {
    animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.logo svg { display: block; }

.ring-1  { animation: dash-1 18s linear infinite; transform-origin: center; }
.ring-2  { animation: dash-2 14s linear infinite; transform-origin: center; }
.glow    { animation: glow-pulse 4s ease-in-out infinite; transform-origin: center; }
.core    { animation: core-pulse 2.4s ease-in-out infinite; transform-origin: center; }

@keyframes dash-1 { to { stroke-dashoffset: -160; } }
@keyframes dash-2 { to { stroke-dashoffset:  180; } }
@keyframes glow-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1);   }
    50%      { opacity: 1;   transform: scale(1.1); }
}
@keyframes core-pulse {
    0%, 100% { transform: scale(1);    filter: brightness(1);    }
    50%      { transform: scale(1.18); filter: brightness(1.25); }
}

/* ── Title ───────────────────────────────────────────────────────────────── */
.title {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: fade-up 1s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.title-row {
    font-size: clamp(2.6rem, 9vw, 5rem);
}
.title-accent {
    background: linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 50%, var(--grad-c) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fade-up 1s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both,
               gradient-shift 8s ease-in-out infinite 1.2s;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%;   }
    50%      { background-position: 100% 50%; }
}

/* ── Subtitle ────────────────────────────────────────────────────────────── */
.subtitle {
    color: var(--text-soft);
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    max-width: 420px;
    animation: fade-up 1s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Status pill ─────────────────────────────────────────────────────────── */
.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fade-up 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad-c);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.18);
    animation: dot-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%, 100% { opacity: 1;   box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.18); }
    50%      { opacity: 0.6; box-shadow: 0 0 0 8px rgba(0, 212, 255, 0.08); }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.foot {
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
    animation: fade-up 1s 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Entry animation (shared) ────────────────────────────────────────────── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .page { padding: 32px 20px; gap: 22px; }
    .logo svg { width: 120px; height: 120px; }
    .orb-1, .orb-2, .orb-3 { transform: scale(0.75); }
}

/* ── Accessibility ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .bg { animation: none; }
}
