/* Layout — mobile first */
:root {
    --sky: #38bdf8;
    --sky-deep: #0ea5e9;
    --ink: #0f172a;
    --ink-soft: #475569;
    --player-h: 101px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Montserrat", system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(56, 189, 248, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 70%, rgba(14, 165, 233, 0.22), transparent 50%),
        linear-gradient(165deg, #e0f2fe 0%, #f0f9ff 42%, #ffffff 100%);
    padding-top: var(--player-h);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.player-dock {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--player-h);
    background: #0c4a6e;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.18);
}

.player-dock iframe {
    display: block;
    width: 100%;
    height: 101px;
    border: 0;
}

.hero {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 48px 20px 64px;
    text-align: center;
}

.hero-inner {
    width: min(640px, 100%);
    animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-logo {
    width: min(280px, 72vw);
    height: auto;
    margin: 0 auto 28px;
    display: block;
    filter: drop-shadow(0 12px 28px rgba(14, 165, 233, 0.25));
    animation: float 5.5s ease-in-out infinite;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: var(--sky-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: pulse-dot 1.8s ease-out infinite;
}

.apps {
    margin-top: 32px;
}

.apps-label {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.apps-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.app-link i {
    font-size: 1.25rem;
    color: var(--sky-deep);
}

.app-link:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.55);
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.16);
}

.waves {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    height: 36px;
    margin-top: 36px;
}

.waves span {
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--sky), var(--sky-deep));
    animation: wave 1.1s ease-in-out infinite;
}

.waves span:nth-child(1) { height: 12px; animation-delay: 0s; }
.waves span:nth-child(2) { height: 22px; animation-delay: 0.12s; }
.waves span:nth-child(3) { height: 30px; animation-delay: 0.24s; }
.waves span:nth-child(4) { height: 18px; animation-delay: 0.36s; }
.waves span:nth-child(5) { height: 26px; animation-delay: 0.48s; }
.waves span:nth-child(6) { height: 14px; animation-delay: 0.6s; }
.waves span:nth-child(7) { height: 20px; animation-delay: 0.72s; }

.legal {
    flex: 1;
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 36px 20px 56px;
}

.legal-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 24px;
    padding: clamp(22px, 4vw, 40px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    animation: rise 500ms ease-out both;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--sky-deep);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
}

.legal-back:hover {
    text-decoration: underline;
}

.legal h1 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ink);
}

.legal .updated {
    margin: 0 0 28px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
}

.legal h2 {
    margin: 28px 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
}

.legal p,
.legal li {
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.65;
    font-weight: 500;
}

.legal p {
    margin: 0 0 12px;
}

.legal ul {
    margin: 0 0 12px;
    padding-left: 1.2rem;
}

.legal li {
    margin-bottom: 6px;
}

.legal a {
    color: var(--sky-deep);
    font-weight: 700;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
    display: none;
    max-width: 720px;
    margin: 0 auto;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.cookie-banner.is-visible {
    display: block;
    animation: rise 320ms ease-out both;
}

.cookie-banner p {
    margin: 0 0 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    font-weight: 500;
}

.cookie-banner a {
    color: #7dd3fc;
    font-weight: 700;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-actions button {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.cookie-actions .accept {
    background: linear-gradient(120deg, var(--sky), var(--sky-deep));
    color: #fff;
}

.cookie-actions .reject {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes wave {
    0%, 100% { transform: scaleY(0.55); opacity: 0.7; }
    50% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-inner,
    .brand-logo,
    .badge-dot,
    .waves span,
    .legal-panel,
    .cookie-banner.is-visible {
        animation: none;
    }
}
