:root {
    --bg-deep: #061820;
    --brand: #e8f6ff;
    --accent: #00e8e8;
    --accent-dim: #52a4ce;
    --muted: #8eb6c9;
    --line: rgba(0, 232, 232, 0.28);
    --pad-x: clamp(20px, 5vw, 56px);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html, body {
    margin: 0;
    height: 100%;
}

body {
    position: relative;
    overflow-x: hidden;
    color: var(--brand);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    background: var(--bg-deep);
}

.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 90% 70% at 70% 20%, rgba(26, 107, 150, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(0, 232, 232, 0.12) 0%, transparent 50%),
        linear-gradient(165deg, #0a3048 0%, #0c2535 42%, #061820 100%);
    animation: sky-shift 14s ease-in-out infinite alternate;
}

@keyframes sky-shift {
    from { filter: saturate(1); }
    to { filter: saturate(1.12) brightness(1.04); }
}

.eq {
    position: fixed;
    right: max(3vw, 20px);
    bottom: 12vh;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 88px;
    opacity: 0.4;
    pointer-events: none;
}

.eq span {
    display: block;
    width: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), #1a6b96);
    transform-origin: bottom center;
    animation: eq-bounce 1.4s ease-in-out infinite;
}

.eq span:nth-child(1) { height: 36%; animation-delay: 0s; }
.eq span:nth-child(2) { height: 68%; animation-delay: 0.12s; }
.eq span:nth-child(3) { height: 44%; animation-delay: 0.24s; }
.eq span:nth-child(4) { height: 92%; animation-delay: 0.08s; }
.eq span:nth-child(5) { height: 58%; animation-delay: 0.3s; }
.eq span:nth-child(6) { height: 76%; animation-delay: 0.18s; }
.eq span:nth-child(7) { height: 40%; animation-delay: 0.36s; }

@keyframes eq-bounce {
    0%, 100% { transform: scaleY(0.55); }
    50% { transform: scaleY(1); }
}

.page {
    position: relative;
    z-index: 2;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding:
        calc(20px + env(safe-area-inset-top))
        calc(var(--pad-x) + env(safe-area-inset-right))
        calc(16px + env(safe-area-inset-bottom))
        calc(var(--pad-x) + env(safe-area-inset-left));
    max-width: 640px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brand {
    margin: 0;
    font-family: Syne, sans-serif;
    font-weight: 800;
    font-size: clamp(1.05rem, 3.2vw, 1.45rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--brand);
    animation: rise 0.7s ease both;
}

.content h1 {
    margin: 0;
    font-family: Syne, sans-serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    animation: rise 0.7s ease 0.05s both;
}

.lead {
    margin: 0 0 4px;
    max-width: 42ch;
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    line-height: 1.4;
    color: var(--muted);
    animation: rise 0.7s ease 0.1s both;
}

.cta {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: fit-content;
    max-width: 100%;
    margin: 6px 0 2px;
    padding: 12px 22px;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(0, 232, 232, 0.18), rgba(3, 57, 91, 0.9));
    color: var(--brand);
    font-family: Syne, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    animation: rise 0.7s ease 0.15s both;
}

.cta:hover,
.cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 232, 232, 0.2);
    background: linear-gradient(180deg, rgba(0, 232, 232, 0.28), rgba(3, 57, 91, 0.95));
    outline: none;
}

.cta-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: var(--accent-dim);
}

.cta-meta {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent-dim);
}

.hint {
    margin: 0;
    max-width: 48ch;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--muted);
    animation: rise 0.7s ease 0.2s both;
}

.foot {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    animation: rise 0.7s ease 0.24s both;
}

.foot a {
    color: var(--accent-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.foot a:hover {
    color: var(--accent);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    .eq {
        display: none;
    }

    .page {
        justify-content: flex-start;
        padding-top: calc(28px + env(safe-area-inset-top));
    }

    .content {
        gap: 8px;
    }

    .cta,
    .cta-disabled {
        width: 100%;
        align-items: center;
        text-align: center;
        padding: 14px 16px;
    }

    .lead,
    .hint {
        max-width: none;
    }

    .foot {
        margin-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atmosphere,
    .eq span,
    .brand,
    .content h1,
    .lead,
    .cta,
    .hint,
    .foot {
        animation: none;
    }
}
