/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #000000;
    --color-surface: #0a0a0a;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.6);
    --color-text-tertiary: rgba(255, 255, 255, 0.4);
    --color-red: #ef4444;
    --color-red-light: #f87171;
    --gradient-red: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ===== NOISE TEXTURE ===== */
.noise {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: transparent url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="3" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>') repeat 0 0;
    background-repeat: repeat;
    background-size: 180px;
    opacity: 0.04;
    pointer-events: none;
    animation: noise 8s steps(10) infinite;
    z-index: 1;
}

/* Дополнительные фоновые градиенты */
body::before {
    content: '';
    position: fixed;
    top: 30%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: float-slow 25s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: 20%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: float-reverse 22s ease-in-out infinite;
}

@keyframes noise {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.7);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-red);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.hero-title {
    font-size: clamp(48px, 7vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== COOL TEXT ANIMATION ===== */
.cool-text span {
    color: rgba(239, 68, 68, 0.3);
    display: inline-block;
    position: relative;
}

/* Stagger animation для каждой буквы */
.cool-text span:nth-child(1) { &::before, &::after { animation-delay: 0.1s; } }
.cool-text span:nth-child(2) { &::before, &::after { animation-delay: 0.2s; } }
.cool-text span:nth-child(3) { &::before, &::after { animation-delay: 0.3s; } }
.cool-text span:nth-child(4) { &::before, &::after { animation-delay: 0.4s; } }
.cool-text span:nth-child(5) { &::before, &::after { animation-delay: 0.5s; } }
.cool-text span:nth-child(6) { &::before, &::after { animation-delay: 0.6s; } }
.cool-text span:nth-child(7) { &::before, &::after { animation-delay: 0.7s; } }
.cool-text span:nth-child(8) { &::before, &::after { animation-delay: 0.8s; } }
.cool-text span:nth-child(9) { &::before, &::after { animation-delay: 0.9s; } }
.cool-text span:nth-child(10) { &::before, &::after { animation-delay: 1.0s; } }
.cool-text span:nth-child(11) { &::before, &::after { animation-delay: 1.1s; } }
.cool-text span:nth-child(12) { &::before, &::after { animation-delay: 1.2s; } }
.cool-text span:nth-child(13) { &::before, &::after { animation-delay: 1.3s; } }
.cool-text span:nth-child(14) { &::before, &::after { animation-delay: 1.4s; } }
.cool-text span:nth-child(15) { &::before, &::after { animation-delay: 1.5s; } }
.cool-text span:nth-child(16) { &::before, &::after { animation-delay: 1.6s; } }
.cool-text span:nth-child(17) { &::before, &::after { animation-delay: 1.7s; } }
.cool-text span:nth-child(18) { &::before, &::after { animation-delay: 1.8s; } }
.cool-text span:nth-child(19) { &::before, &::after { animation-delay: 1.9s; } }
.cool-text span:nth-child(20) { &::before, &::after { animation-delay: 2.0s; } }

.cool-text span::before {
    animation: text-reveal-height 0.4s cubic-bezier(0.61, 1, 0.88, 1) 1 normal both;
    color: var(--color-red-light);
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cool-text span::after {
    animation: text-reveal-width 0.7s cubic-bezier(0.61, 1, 0.88, 1) 1 normal both;
    color: var(--color-text);
}

.cool-text span::before,
.cool-text span::after {
    content: attr(data-text);
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    speak: none;
}

@media (prefers-reduced-motion) {
    .cool-text span {
        color: var(--color-text);
    }
    .cool-text span::before,
    .cool-text span::after {
        animation: none;
        content: "";
    }
}

@keyframes text-reveal-width {
    from {
        max-width: 0;
    }
    to {
        max-width: 100%;
    }
}

@keyframes text-reveal-height {
    from {
        max-height: 0;
    }
    to {
        max-height: 100%;
    }
}

.hero-description {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    margin-bottom: 64px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-red);
    color: white;
    box-shadow: 0 4px 24px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

/* ===== PHONE MOCKUP ===== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-container {
    position: relative;
}

.phone {
    width: 320px;
    height: 650px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 48px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #000;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.screen-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 38px;
}

/* Скрыть старый mockup контент */
.match-card {
    display: none;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}

/* ===== FEATURES ===== */
.features {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.features-bg-gradient {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: float-slow 20s ease-in-out infinite;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.feature {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 14px;
    color: var(--color-red-light);
    margin-bottom: 24px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.feature-text {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.steps-bg-gradient {
    position: absolute;
    top: 50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.12) 0%, transparent 70%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    animation: float-reverse 18s ease-in-out infinite;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    position: relative;
    z-index: 1;
}

.step {
    text-align: center;
    padding: 0 16px;
}

.step-number {
    font-size: 64px;
    font-weight: 900;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    opacity: 0.7;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.step-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 140px 0;
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.testimonial {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.testimonial:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.testimonial-stars {
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.testimonial-author span {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

/* ===== BACKGROUND ANIMATIONS ===== */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

@keyframes float-reverse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

/* ===== CTA ===== */
.cta {
    padding: 120px 0;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 22px;
    color: var(--color-text-secondary);
    margin-bottom: 48px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 16px;
}

.footer-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-text {
    font-size: 14px;
    color: var(--color-text-tertiary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .phone {
        width: 280px;
        height: 570px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav {
        height: 64px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .features-grid,
    .steps-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .features,
    .how-it-works,
    .testimonials,
    .cta {
        padding: 80px 0;
    }
    
    .step-number {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .phone {
        width: 240px;
        height: 490px;
    }
    
    .match-card {
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
