:root {
    --primary: #ff3b5c;
    --primary-dark: #e6244a;
    --secondary: #6c5ce7;
    --accent: #00d9ff;
    --bg-dark: #070a14;
    --bg-card: rgba(22, 27, 51, 0.72);
    --text-light: #e8eaed;
    --text-gray: #a0a4b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius-lg: 20px;
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.45);
}

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

body {
    font-family: "Noto Sans SC", system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 8px 14px;
    background: var(--bg-card);
    border-radius: 8px;
    z-index: 2000;
}

.top-title-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(18, 22, 40, 0.92), rgba(7, 10, 20, 0.95));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 59, 92, 0.18);
    padding: 12px 28px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.top-title-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    width: 150%;
    height: 150%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 59, 92, 0.14) 0%, transparent 52%),
        radial-gradient(ellipse at 80% 70%, rgba(108, 92, 231, 0.14) 0%, transparent 52%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 217, 255, 0.09) 0%, transparent 55%);
    animation: gradientShift 22s ease-in-out infinite;
}

@keyframes gradientShift {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-4%, 4%) rotate(4deg);
    }
    50% {
        transform: translate(4%, -4%) rotate(-4deg);
    }
    75% {
        transform: translate(-4%, -4%) rotate(2deg);
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 28px 72px;
}

.site-header {
    text-align: center;
    margin-bottom: 72px;
    animation: fadeInDown 0.85s ease-out;
}

.logo {
    width: 104px;
    height: 104px;
    margin: 0 auto 28px;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 22px 56px rgba(255, 59, 92, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: floatLogo 3.2s ease-in-out infinite;
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

@keyframes floatLogo {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.subtitle {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 400;
    max-width: 560px;
    margin: 0 auto;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    animation: fadeInUp 0.85s ease-out 0.12s both;
}

.phone-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    position: relative;
    width: 320px;
    height: 650px;
    background: linear-gradient(145deg, #3a4060, #2a3150, #1a1f3a);
    border-radius: 55px;
    padding: 8px;
    box-shadow:
        var(--shadow-soft),
        0 0 0 2px rgba(255, 255, 255, 0.12) inset,
        0 0 72px rgba(108, 92, 231, 0.28);
    animation: phoneFloat 4.2s ease-in-out infinite;
}

.phone-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 55px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        transparent 32%,
        transparent 68%,
        rgba(255, 255, 255, 0.05) 100%
    );
    pointer-events: none;
}

@keyframes phoneFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(-1.5deg);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 48px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.55);
}

.screenshot-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.screenshot {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.screenshot.active {
    opacity: 1;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
}

.info-section {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.download-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 8px;
}

a.download-btn {
    text-decoration: none;
}

.download-btn {
    position: relative;
    padding: 20px 44px;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow:
        0 18px 40px rgba(255, 59, 92, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.download-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transition: left 0.55s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 48px rgba(255, 59, 92, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:active {
    transform: translateY(0);
}

.download-icon {
    font-size: 22px;
    line-height: 1;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 22px;
    margin-bottom: 8px;
}

.stat-item {
    text-align: center;
    padding: 14px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.app-info {
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-name {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 14px;
    line-height: 1.25;
    color: var(--text-light);
}

.app-version {
    display: inline-block;
    padding: 7px 18px;
    background: rgba(108, 92, 231, 0.18);
    border: 1px solid var(--secondary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 18px;
}

.app-description {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-gray);
    margin-bottom: 22px;
}

.features {
    list-style: none;
}

.features li {
    padding: 10px 0 10px 34px;
    position: relative;
    font-size: 15px;
    color: var(--text-gray);
}

.features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
    font-size: 18px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .phone-showcase {
        order: 2;
    }

    .info-section {
        order: 1;
        padding: 24px;
    }

    .app-name {
        font-size: 28px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
        letter-spacing: 0.04em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 84px 18px 52px;
    }

    .phone-frame {
        width: 280px;
        height: 570px;
    }

    .stats {
        gap: 8px;
    }

    .stat-number {
        font-size: 17px;
    }

    .stat-label {
        font-size: 9px;
    }

    .top-title-bar {
        padding: 10px 14px;
    }

    .top-title-content {
        font-size: 14px;
    }
}
