/* ==========================================
   FEATURES PAGE - SHOWCASE LAYOUT V6
   Screenshots-First, Premium Design
   ========================================== */

/* ==========================================
   PAGE HERO
   ========================================== */

.page-hero-premium.hero-premium {
    padding-top: 160px;
    padding-bottom: var(--space-20);
}

.page-hero-premium .hero-grid {
    max-width: 1100px;
    margin: 0 auto;
}

/* Двухколоночный layout: текст слева, цифры справа */
.inner-page .page-hero-premium .hero-grid.hero-grid--stats-right {
    display: grid;
    grid-template-columns: 1fr minmax(200px, 280px);
    gap: var(--space-16);
    align-items: center;
    max-width: 1100px;
}

.page-hero-premium .hero-content,
.page-hero-premium .hero-title,
.page-hero-premium .hero-description {
    text-align: left;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.page-hero-premium .hero-stats.hero-stats--sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    margin-top: 0;
    padding-left: var(--space-8);
    border-left: 2px solid rgba(148, 167, 230, 0.35);
    min-width: 0;
}

.page-hero-premium .hero-stats.hero-stats--sidebar .stat-item {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: var(--space-4) 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.page-hero-premium .hero-stats.hero-stats--sidebar .stat-item:not(:last-child) {
    border-bottom: 1px solid rgba(148, 167, 230, 0.12);
}

.page-hero-premium .hero-stats.hero-stats--sidebar .stat-value {
    font-size: clamp(1.5rem, 2.8vw, 2.5rem);
    font-weight: var(--font-bold);
    font-family: var(--font-display);
    background: var(--gradient-accent-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
    min-width: 3.5ch;
}

@media (max-width: 768px) {
    .inner-page .page-hero-premium .hero-grid.hero-grid--stats-right {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .page-hero-premium .hero-stats.hero-stats--sidebar {
        flex-direction: column;
        gap: var(--space-2);
        padding-left: 0;
        padding-top: var(--space-6);
        border-left: none;
        border-top: 2px solid rgba(148, 167, 230, 0.25);
    }

    .page-hero-premium .hero-stats.hero-stats--sidebar .stat-item {
        border-bottom: none !important;
        padding: var(--space-2) 0;
        flex: none;
        min-width: auto;
    }
}

/* ==========================================
   SECTION HEADER
   ========================================== */

.features-showcase-section .section-header-premium {
    text-align: center;
    max-width: 820px;
    margin: 0 auto var(--space-20);
}


/* ==========================================
   FEATURE SHOWCASE SECTION
   ========================================== */

.features-showcase-section {
    padding: var(--space-16) 0 var(--space-16);
}

/* ==========================================
   FEATURE SHOWCASE CARD
   ========================================== */

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: var(--space-20);
    align-items: center;
    margin-bottom: var(--space-16);
    padding: var(--space-16);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 243, 255, 0.85) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: var(--radius-3xl);
    box-shadow:
        0 30px 60px rgba(63, 70, 106, 0.08),
        0 12px 24px rgba(148, 167, 230, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.9),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.feature-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0.32;
    border-radius: inherit;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.feature-showcase::after {
    content: '';
    position: absolute;
    top: 0;
    left: var(--space-10);
    right: var(--space-10);
    height: 3px;
    background: var(--gradient-accent-text);
    border-radius: var(--radius-full);
    opacity: 0.7;
    pointer-events: none;
}

.feature-showcase:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 1);
    box-shadow:
        0 40px 80px rgba(63, 70, 106, 0.12),
        0 16px 36px rgba(148, 167, 230, 0.16),
        inset 0 1px 2px rgba(255, 255, 255, 0.95),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.feature-showcase:hover::before {
    opacity: 0.52;
}

/* Reversed layout: image on the right */
.feature-showcase--rev .feature-showcase__visual {
    order: 2;
}
.feature-showcase--rev .feature-showcase__content {
    order: 1;
}

/* ==========================================
   VISUAL COLUMN (PHONE MOCKUP)
   ========================================== */

.feature-showcase__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding: var(--space-8) 0;
}

/* Ambient glow blob behind the phone */
.fs-glow {
    position: absolute;
    width: 440px;
    height: 440px;
    max-width: 100vw;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(168, 184, 255, 0.45) 0%,
        rgba(203, 218, 255, 0.25) 40%,
        transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: blur(24px);
}

.fs-glow--pink {
    background: radial-gradient(circle,
        rgba(255, 209, 218, 0.45) 0%,
        rgba(255, 224, 230, 0.25) 40%,
        transparent 70%);
}

.fs-glow--warm {
    background: radial-gradient(circle,
        rgba(255, 232, 202, 0.45) 0%,
        rgba(255, 241, 220, 0.25) 40%,
        transparent 70%);
}

.feature-showcase:hover .fs-glow {
    opacity: 1.5;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Phone frame */
.fs-phone {
    position: relative;
    z-index: 1;
    width: 256px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(40, 44, 72, 0.15),
        0 16px 32px rgba(148, 167, 230, 0.2),
        0 4px 12px rgba(40, 44, 72, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        0 0 0 1px rgba(210, 215, 238, 0.5);
    border: 5px solid #ffffff;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #fff;
}

.feature-showcase:hover .fs-phone {
    transform: translateY(-14px) rotate(-1.5deg) scale(1.02);
    box-shadow:
        0 50px 100px rgba(40, 44, 72, 0.2),
        0 20px 45px rgba(148, 167, 230, 0.25),
        0 8px 16px rgba(40, 44, 72, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(210, 215, 238, 0.6);
}

.feature-showcase--rev:hover .fs-phone {
    transform: translateY(-14px) rotate(1.5deg) scale(1.02);
}

.fs-phone__img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================
   CONTENT COLUMN
   ========================================== */

.feature-showcase__content {
    position: relative;
    z-index: 1;
    padding: var(--space-4) var(--space-4) var(--space-4) 0;
}

.feature-showcase--rev .feature-showcase__content {
    padding: var(--space-4) 0 var(--space-4) var(--space-4);
}

/* Number badge */
.fs-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--gradient-accent-text);
    color: rgba(255, 255, 255, 0.97);
    font-size: 1.05rem;
    font-weight: var(--font-bold);
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-6);
    box-shadow: var(--accent-token-shadow);
    flex-shrink: 0;
}

/* Title */
.fs-title {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-weight: var(--font-bold);
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-4);
}

/* Description */
.fs-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 var(--space-6);
    word-spacing: 0.01em;
}

/* Checkmarks list */
.fs-checks {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.fs-checks li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    font-size: 0.97rem;
    color: var(--text-primary);
    font-weight: var(--font-medium);
    line-height: 1.58;
}

.fs-checks li i {
    flex-shrink: 0;
    margin-top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: var(--gradient-accent-text);
    color: rgba(255, 255, 255, 0.98);
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(122, 149, 224, 0.32);
}

/* Tags row */
.fs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.fs-tags span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    background: rgba(122, 149, 224, 0.09);
    border: 1px solid rgba(122, 149, 224, 0.22);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: var(--font-semibold);
    color: var(--primary-800);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.fs-tags span i {
    font-size: 0.82rem;
    opacity: 0.72;
}

.feature-showcase:hover .fs-tags span {
    background: rgba(122, 149, 224, 0.14);
    border-color: rgba(122, 149, 224, 0.36);
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-about-section {
    padding: var(--space-20) 0;
}

.cta-card-premium {
    text-align: center;
    padding: var(--space-20);
    background: linear-gradient(135deg,
        rgba(122, 149, 224, 0.08) 0%,
        rgba(163, 184, 255, 0.12) 50%,
        rgba(255, 209, 218, 0.1) 100%);
    border: 1px solid rgba(177, 189, 234, 0.3);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
}

.cta-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-title-premium {
    color: var(--text-primary);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: var(--space-4);
    font-family: var(--font-display);
    position: relative;
    z-index: 1;
}

.cta-title-premium .gradient-text {
    background: var(--gradient-accent-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-description-premium {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin: 0 auto var(--space-12);
    max-width: 650px;
    line-height: 1.82;
    position: relative;
    z-index: 1;
}

.cta-buttons-premium {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-6);
    position: relative;
    z-index: 1;
}

/* ==========================================
   FLOATING BADGES
   ========================================== */

.fs-floating-badge {
    position: absolute;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: var(--radius-full);
    box-shadow: 
        0 14px 30px rgba(63, 70, 106, 0.12),
        0 4px 10px rgba(148, 167, 230, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-weight: var(--font-bold);
    color: var(--primary-800);
    letter-spacing: 0.02em;
    animation: badgeFloat 6s ease-in-out infinite;
    pointer-events: none;
    transform-style: preserve-3d;
}

.fs-floating-badge i {
    font-size: 1.1rem;
    background: var(--gradient-accent-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(148, 167, 230, 0.3));
}

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

.badge-top-right {
    top: 10%;
    right: -25px;
    animation-delay: 0s;
}

.badge-bottom-left {
    bottom: 15%;
    left: -35px;
    animation-delay: -3s;
}

.badge-top-left {
    top: 15%;
    left: -20px;
    animation-delay: -1.5s;
}

.badge-bottom-right {
    bottom: 20%;
    right: -15px;
    animation-delay: -4.5s;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .feature-showcase {
        gap: var(--space-10);
        padding: var(--space-10);
    }

    .fs-phone {
        width: 210px;
    }
}

@media (max-width: 768px) {
    .feature-showcase {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding: var(--space-8);
        border-radius: var(--radius-2xl);
    }

    .fs-floating-badge {
        transform: scale(0.85);
    }

    .badge-top-right { right: -10px; }
    .badge-bottom-left { left: -15px; }
    .badge-top-left { left: -5px; }
    .badge-bottom-right { right: -5px; }

    .feature-showcase--rev .feature-showcase__visual,
    .feature-showcase--rev .feature-showcase__content {
        order: 0;
    }

    .feature-showcase__content,
    .feature-showcase--rev .feature-showcase__content {
        padding: 0;
    }

    .feature-showcase__visual {
        padding: var(--space-4) 0;
    }

    .fs-phone {
        width: 200px;
    }

    .fs-glow {
        width: 260px;
        height: 260px;
    }

    .fs-title {
        font-size: 1.5rem;
    }

    .feature-showcase::after {
        left: var(--space-6);
        right: var(--space-6);
    }
}

@media (max-width: 480px) {
    .feature-showcase {
        padding: var(--space-6);
        margin-bottom: var(--space-8);
    }

    .fs-phone {
        width: 170px;
    }
}

/* ==========================================
   VISIBILITY FALLBACKS
   ========================================== */

.section-premium { opacity: 1; visibility: visible; }
.feature-showcase { opacity: 1; visibility: visible; }

[data-aos].aos-animate {
    opacity: 1 !important;
    visibility: visible !important;
}

body.loaded [data-aos]:not(.aos-animate) {
    animation: fsFadeIn 0.6s ease forwards;
    animation-delay: 1.5s;
}

@keyframes fsFadeIn {
    to { opacity: 1; visibility: visible; transform: translateY(0); }
}

.no-js [data-aos] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}
