:root {
    --bg: #111111;
    --text: #ffffff;
    --muted: #8a8a8a;
    --btn-of: linear-gradient(135deg, #00aff0 0%, #0088cc 100%);
    --btn-sensoria: linear-gradient(135deg, #df3d64 0%, #9b4f8e 100%);
    --online: #22c55e;
    --page-width: 480px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: var(--bg);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============ Kolumna strony ============ */
.page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--page-width);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    padding-bottom: 40px;
}

/* ============ Zdjęcie u góry ============ */
.hero {
    position: relative;
    background: #2a2a2a url("hero-blur.jpg") center / cover;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 78vh;
    overflow: hidden;
}

.hero picture {
    display: block;
    height: 100%;
}

.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* Płynne przejście zdjęcia w ciemne tło */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(17, 17, 17, 0) 45%,
        rgba(17, 17, 17, 0.55) 72%,
        rgba(17, 17, 17, 0.92) 90%,
        var(--bg) 100%
    );
    pointer-events: none;
}

.hero-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 2;
    text-align: center;
    padding: 0 16px;
    animation: fadeUp 0.5s ease-out both;
}

.hero-name {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--online);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulse 2s infinite;
}

/* ============ Przyciski ============ */
.links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 6px 14px 0;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 76px;
    padding: 12px 24px 12px 26px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: transform 0.15s ease, background 0.2s ease, filter 0.2s ease;
    animation: fadeUp 0.5s ease-out 0.1s both;
    -webkit-tap-highlight-color: transparent;
}

.link-btn:active {
    transform: scale(0.98);
}

.link-btn-of {
    background: var(--btn-of);
}

.link-btn-of {
    box-shadow: 0 6px 24px rgba(0, 175, 240, 0.25);
}

.link-btn-of:hover {
    filter: brightness(1.07);
}

.link-btn-sensoria {
    background: var(--btn-sensoria);
}

.link-btn-sensoria:hover {
    filter: brightness(1.07);
}

.link-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.link-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.link-text {
    flex: 1;
}

/* ============ Stopka ============ */
.footer {
    margin-top: 44px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ============ Desktop ============ */
.page-bg {
    display: none;
}

@media (min-width: 600px) {
    .page-bg {
        display: block;
        position: fixed;
        inset: -40px;
        z-index: 0;
        background: url("hero-blur.jpg") center / cover no-repeat;
        filter: blur(30px) brightness(0.35);
    }

    .page {
        min-height: auto;
        margin: 40px auto;
        border-radius: 28px;
        overflow: hidden;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
        padding-bottom: 32px;
    }

    .hero {
        max-height: none;
    }

    .link-btn:hover {
        transform: translateY(-2px);
    }
}

/* ============ Animacje ============ */
@keyframes fadeUp {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ============ Nakładka iOS (in-app browser) ============ */
.ios-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 70px 16px 0;
}

/* Strzałka wskazująca trzy kropki w prawym górnym rogu */
.ios-pointer {
    position: absolute;
    top: 6px;
    right: 18px;
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
    color: #fff;
    animation: pointUp 1.2s ease-in-out infinite;
}

.ios-overlay-content {
    background: #fff;
    color: #222;
    width: 100%;
    max-width: 420px;
    padding: 24px 22px 22px;
    border-radius: 22px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.35s ease-out;
}

.ios-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.ios-steps {
    padding-left: 22px;
    font-size: 1rem;
    line-height: 1.5;
}

.ios-steps li + li {
    margin-top: 8px;
}

.ios-dots {
    display: inline-block;
    padding: 0 8px;
    border-radius: 8px;
    background: #eee;
    font-weight: 800;
    letter-spacing: 1px;
}

.ios-copied {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #666;
}

.ios-close {
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #999;
}

@keyframes slideDown {
    from { transform: translateY(-40px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

@keyframes pointUp {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
