@keyframes tl-app-fade-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tl-app-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes tl-app-glow-pulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.06); }
}

@keyframes tl-app-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.tl-app-page {
    width: min(1160px, calc(100% - 24px));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.tl-app-reveal {
    opacity: 0;
    animation: tl-app-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--tl-app-delay, 0ms);
}

.tl-app-hero,
.tl-app-downloads,
.tl-app-features {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(22,24,34,.92), rgba(13,15,24,.95));
    box-shadow: 0 22px 54px rgba(0,0,0,.24);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tl-app-hero:hover,
.tl-app-downloads:hover,
.tl-app-features:hover {
    border-color: rgba(30,86,245,.22);
    box-shadow: 0 26px 60px rgba(0,0,0,.28);
}

.tl-app-hero {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: 24px;
    align-items: center;
    padding: 28px;
    margin-bottom: 18px;
    overflow: hidden;
    position: relative;
}

.tl-app-hero::before {
    content: "";
    position: absolute;
    inset: auto -120px -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,86,245,.24), rgba(30,86,245,0));
    pointer-events: none;
    animation: tl-app-glow-pulse 4s ease-in-out infinite;
}

.tl-app-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(30,86,245,.14);
    color: #9dc2ff;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.tl-app-hero__title {
    margin: 0 0 10px;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.15;
}

.tl-app-hero__desc {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.9;
    font-size: .97rem;
    max-width: 60ch;
}

.tl-app-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tl-app-hero__cta {
    margin-top: 22px;
}

.tl-app-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    font-size: .82rem;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tl-app-chip:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.08);
    border-color: rgba(30,86,245,.25);
}

.tl-app-hero__device {
    display: flex;
    justify-content: center;
    position: relative;
}

.tl-app-phone {
    position: relative;
    width: 270px;
    animation: tl-app-float 5s ease-in-out infinite;
}

.tl-app-phone__frame {
    position: relative;
    z-index: 1;
    padding: 10px;
    border-radius: 38px;
    background: linear-gradient(165deg, #3a3f4d 0%, #12151e 55%, #0a0c12 100%);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow:
        0 28px 56px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.12);
}

.tl-app-phone__notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 26px;
    border-radius: 0 0 18px 18px;
    background: #090b11;
    z-index: 3;
    pointer-events: none;
}

.tl-app-phone__screen {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 390 / 844;
}

.tl-app-phone__shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.tl-app-phone__glow {
    position: absolute;
    inset: 20% -20% -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,86,245,.35), rgba(30,86,245,0) 68%);
    filter: blur(18px);
    z-index: 0;
    animation: tl-app-glow-pulse 4s ease-in-out infinite;
}

.tl-app-downloads,
.tl-app-features {
    padding: 24px;
    margin-bottom: 18px;
}

.tl-app-section-head h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.tl-app-section-head p {
    margin: 0 0 18px;
    color: var(--text-muted);
    line-height: 1.8;
}

.tl-app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tl-app-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tl-app-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.14);
    box-shadow: 0 14px 32px rgba(0,0,0,.18);
}

.tl-app-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    background: rgba(255,255,255,.06);
    transition: transform 0.25s ease;
}

.tl-app-card:hover .tl-app-card__icon {
    transform: scale(1.06);
}

.tl-app-card.is-ready .tl-app-card__icon {
    color: #4ade80;
    background: rgba(34,197,94,.12);
}

.tl-app-card.is-soon .tl-app-card__icon {
    color: #fbbf24;
    background: rgba(251,191,36,.12);
}

.tl-app-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.tl-app-card__head h3 {
    margin: 0;
    font-size: 1rem;
}

.tl-app-card__badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.tl-app-card.is-ready .tl-app-card__badge {
    color: #16a34a;
    background: rgba(34,197,94,.14);
}

.tl-app-card.is-soon .tl-app-card__badge {
    color: #f59e0b;
    background: rgba(245,158,11,.12);
}

.tl-app-card__body p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: .9rem;
}

.tl-app-card__cta {
    grid-column: 1 / -1;
    margin-top: 6px;
}

.tl-app-badge-link img {
    height: 52px;
    width: auto;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.tl-app-badge-link:hover img {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.tl-app-btn,
.tl-app-soon-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tl-app-btn {
    background: linear-gradient(135deg, #1e56f5, #3b82f6);
    color: #fff;
    border: 1px solid rgba(96,165,250,.35);
    box-shadow: 0 10px 24px rgba(30,86,245,.28);
}

.tl-app-btn--android {
    background: linear-gradient(135deg, #3ddc84 0%, #1faa59 100%);
    border-color: rgba(61,220,132,.45);
    box-shadow: 0 10px 24px rgba(31,170,89,.28);
}

.tl-app-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 14px 30px rgba(30,86,245,.34);
}

.tl-app-btn--android:hover {
    box-shadow: 0 14px 30px rgba(31,170,89,.36);
}

.tl-app-btn i {
    font-size: 1.2rem;
}

.tl-app-soon-box {
    color: var(--text-muted);
    background: rgba(255,255,255,.05);
    border: 1px dashed rgba(255,255,255,.12);
}

.tl-app-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tl-app-feature {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.tl-app-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(30,86,245,.22);
    background: rgba(255,255,255,.06);
}

.tl-app-feature i {
    font-size: 1.2rem;
    color: var(--brand);
    margin-bottom: 12px;
    transition: transform 0.25s ease;
}

.tl-app-feature:hover i {
    transform: scale(1.1);
}

.tl-app-feature h3 {
    margin: 0 0 8px;
    font-size: .98rem;
}

.tl-app-feature p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: .88rem;
}

@media (prefers-reduced-motion: reduce) {
    .tl-app-reveal,
    .tl-app-phone,
    .tl-app-hero::before,
    .tl-app-phone__glow {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .tl-app-card:hover,
    .tl-app-chip:hover,
    .tl-app-feature:hover,
    .tl-app-btn:hover {
        transform: none;
    }
}

@media (max-width: 960px) {
    .tl-app-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tl-app-hero__chips,
    .tl-app-hero__cta {
        justify-content: center;
    }

    .tl-app-hero__chips {
        display: flex;
        flex-wrap: wrap;
    }

    .tl-app-hero__cta {
        display: flex;
    }

    .tl-app-grid,
    .tl-app-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tl-app-page {
        width: min(100% - 16px, 1160px);
        padding-top: 18px;
    }

    .tl-app-hero,
    .tl-app-downloads,
    .tl-app-features {
        padding: 18px;
        border-radius: 18px;
    }

    .tl-app-hero {
        gap: 18px;
    }

    .tl-app-hero__title {
        font-size: clamp(1.65rem, 8vw, 2.15rem);
    }

    .tl-app-hero__desc {
        font-size: .92rem;
        line-height: 1.8;
    }

    .tl-app-phone {
        width: min(100%, 228px);
    }

    .tl-app-card {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }

    .tl-app-card__icon {
        margin: 0 auto;
    }

    .tl-app-card__head {
        flex-direction: column;
        align-items: center;
    }

    .tl-app-card__body p {
        font-size: .88rem;
    }

    .tl-app-btn,
    .tl-app-soon-box {
        width: 100%;
        justify-content: center;
    }

    .tl-app-badge-link {
        display: block;
    }

    .tl-app-badge-link img {
        margin: 0 auto;
        width: min(100%, 180px);
        height: auto;
    }

    .tl-app-feature {
        text-align: center;
    }
}
