@font-face {
    font-family: 'SF Pro Display';
    src: url('/fonts/SFProDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-bg: #000000;
    --color-primary: #0f4bff;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-text-subtle: #555555;
    --font-main: 'SF Pro Display', -apple-system, sans-serif;
}

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

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: var(--color-text);
    position: relative;
}

body.platform-mobile {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 1;
}

/* Primary blue glow - animated breathing */
.bg-glow {
    position: fixed;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(400px, 100vmin, 1000px);
    height: clamp(320px, 95vmin, 800px);
    background: var(--color-primary);
    opacity: 0.28;
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 6s ease-in-out infinite;
}

/* Secondary glow for depth */
.bg-glow-secondary {
    position: fixed;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(360px, 90vmin, 900px);
    height: clamp(280px, 85vmin, 700px);
    background: var(--color-primary);
    opacity: 0.15;
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 6s ease-in-out infinite 0.5s;
}

.platform-mobile .bg-glow {
    top: -30%;
    width: 700px;
    height: 700px;
}

.platform-mobile .bg-glow-secondary {
    top: -10%;
    width: 400px;
    height: 400px;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.25;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.35;
        transform: translateX(-50%) scale(1.05);
    }
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: clamp(10px, 2vmin, 40px);
    flex-shrink: 1;
}

.container--mobile {
    padding: 0 24px;
    max-width: 400px;
    gap: 0;
}

.logo-section {
    display: flex;
    align-items: flex-end;
    gap: clamp(4px, 0.8vmin, 12px);
    justify-content: center;
    margin-top: clamp(8px, 3vmin, 32px);
    flex-shrink: 0;
}

.container--mobile .logo-section {
    margin-top: 0;
    gap: 0;
}

.logo-section img {
    height: clamp(32px, 7vmin, 85px);
    width: auto;
}

.logo {
    width: 130px;
    height: auto;
}

.content-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.5vmin, 24px);
    flex-shrink: 1;
}

.buttons-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-shrink: 0;
}

/* Staggered fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 0.6s ease-out forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }
.fade-in:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography — desktop (clamp) */
.headline {
    font-size: clamp(30px, 3vmin + 1rem, 40px);
    font-weight: 590;
    line-height: clamp(20px, 3vmin + 0.75rem, 40px);
    color: var(--color-text);
}

.subtitle {
    font-size: clamp(13px, 1.6vmin + 0.5rem, 20px);
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: clamp(20px, 2vmin + 0.5rem, 30px);
}

.container--mobile .headline {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.container--mobile .subtitle {
    font-size: 16px;
    line-height: 1.55;
}

.container--mobile .subtitle br {
    display: none;
}

/* Download button with glow effect */
.download-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
    padding: 16px 44px;
    border-radius: 60px;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 280px;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.download-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 62px;
    background: var(--color-primary);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.download-btn:hover {
    transform: translateY(-2px);
}

.download-btn:hover::before {
    opacity: 0.5;
}

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

.download-btn.btn-store {
    background: rgba(255, 255, 255, 0.08);
    color: #FFF;
    border: none;
}

.store-indicator {
    font-size: 15px;
    color: var(--color-text-subtle);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Прайм/Привилегия toggle (CSS-only via radio + :has) */
.plan-toggle {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(4px, 0.5vmin, 6px);
    padding: clamp(4px, 0.5vmin, 6px);
    background: #141414;
    border-radius: 9999px;
    flex-shrink: 0;
}

.container--mobile .plan-toggle {
    gap: 4px;
    padding: 4px;
}

.plan-toggle__radio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.plan-toggle__thumb {
    position: absolute;
    top: clamp(4px, 0.5vmin, 6px);
    bottom: clamp(4px, 0.5vmin, 6px);
    left: clamp(4px, 0.5vmin, 6px);
    width: calc((100% - 2 * clamp(4px, 0.5vmin, 6px) - clamp(4px, 0.5vmin, 6px)) / 2);
    background: var(--color-text);
    border-radius: 9999px;
    transition: transform 0.25s ease;
    z-index: 0;
    pointer-events: none;
}

.container--mobile .plan-toggle__thumb {
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc((100% - 12px) / 2);
}

.plan-toggle__item {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-family: var(--font-main);
    font-weight: 400;
    font-size: clamp(14px, 1.4vmin + 0.3rem, 20px);
    line-height: clamp(20px, 2vmin + 0.3rem, 28px);
    padding: clamp(6px, 1vmin, 10px) clamp(20px, 3vmin, 32px);
    border-radius: 9999px;
    cursor: pointer;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.container--mobile .plan-toggle__item {
    font-size: 14px;
    line-height: 20px;
    padding: 6px 20px;
}

.plan-toggle:has(#plan-privilege:checked) .plan-toggle__thumb {
    transform: translateX(calc(100% + clamp(4px, 0.5vmin, 6px)));
}

.container--mobile .plan-toggle:has(#plan-privilege:checked) .plan-toggle__thumb {
    transform: translateX(calc(100% + 4px));
}

.plan-toggle:has(#plan-prime:checked) .plan-toggle__item[for="plan-prime"],
.plan-toggle:has(#plan-privilege:checked) .plan-toggle__item[for="plan-privilege"] {
    color: #000000;
}

.qr-section {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(48px, 22vmin, 420px);
    width: 100%;
    max-width: 100%;
    margin: 0;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.5vmin, 20px);
    flex-shrink: 0;
}

.qr-item img {
    width: clamp(100px, 20vmin, 177px);
    height: clamp(100px, 20vmin, 177px);
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.qr-item span {
    font-size: clamp(11px, 1.4vmin + 0.4rem, 17px);
    font-weight: 510;
    color: var(--color-text);
    line-height: 20px;
}

/* Контакты (телефоны) */
.contacts-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(24px, 4vmin, 68px);
    width: 100%;
    flex-shrink: 0;
}

.container--mobile .contacts-section {
    gap: 24px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 1vmin, 9px);
}

.container--mobile .contact-item {
    gap: 8px;
    width: 145px;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.contact-item-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(36px, 4vmin, 45px);
    height: clamp(36px, 4vmin, 45px);
    border-radius: 9999px;
    background: #232323;
    flex-shrink: 0;
}

.container--mobile .contact-item-avatar {
    width: 40px;
    height: 40px;
}

.contact-item-avatar img {
    width: clamp(18px, 2vmin, 25px);
    height: clamp(18px, 2vmin, 25px);
}

.container--mobile .contact-item-avatar img {
    width: 20px;
    height: 20px;
}

.contact-item-number {
    font-size: clamp(14px, 1.6vmin + 0.3rem, 18px);
    font-weight: 400;
    color: var(--color-text);
    line-height: clamp(20px, 2.2vmin + 0.3rem, 27px);
}

.container--mobile .contact-item-number {
    font-size: 16px;
    line-height: 24px;
}

.contact-item-label {
    font-size: clamp(11px, 1.2vmin + 0.2rem, 14px);
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: clamp(16px, 1.6vmin + 0.2rem, 18px);
}

.container--mobile .contact-item-label {
    font-size: 12px;
    line-height: 16px;
}

/* Plan views: after .contact-item / .download-btn so display:none is not overridden */
.plan__view--privilege,
a.contact-item.plan__view--privilege,
a.download-btn.plan__view--privilege {
    display: none;
}

.container:has(#plan-privilege:checked) .plan__view--prime {
    display: none;
}

.container:has(#plan-privilege:checked) img.plan__view--privilege {
    display: block;
}

.container:has(#plan-privilege:checked) span.plan__view--privilege {
    display: block;
}

.container:has(#plan-privilege:checked) a.download-btn.plan__view--privilege {
    display: inline-flex;
}

.container:has(#plan-privilege:checked) a.contact-item.plan__view--privilege {
    display: flex;
}

/* Mobile breakpoints */
@media (max-width: 375px) {
    .container--mobile {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .platform-mobile .bg-glow {
        width: 500px;
        height: 500px;
        top: -20%;
    }

    .platform-mobile .bg-glow-secondary {
        width: 300px;
        height: 300px;
    }

    .container--mobile .headline {
        font-size: 30px;
    }

    .download-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}
