:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --accent-red: #e50914;
    --accent-glow: rgba(229, 9, 20, 0.4);
    --text-white: #ffffff;
    --text-gray: #a1a1a1;
    
    /* Jomor-style easing: резкий старт, очень плавное торможение */
    --easing: cubic-bezier(0.16, 1, 0.3, 1); 
    --anim-duration: 1.2s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Глобальные эффекты --- */
.glow-effect {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(229, 9, 20, 0.08), transparent 70%);
    z-index: -1; pointer-events: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- НОВЫЙ ДВИЖОК АНИМАЦИИ --- */
.reveal-wrap {
    opacity: 0;
    transform: translateY(100px); 
    transition: transform var(--anim-duration) var(--easing), opacity var(--anim-duration) ease;
    will-change: transform, opacity;
}

.reveal-wrap.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- HEADER --- */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

nav {
    position: absolute; top: 0; width: 100%;
    padding: 30px 50px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 10;
}

.logo { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.logo span { color: var(--accent-red); }

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(180deg, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem; color: var(--text-gray);
    max-width: 600px; margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    background: var(--accent-red);
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.4s var(--easing);
    box-shadow: 0 0 25px var(--accent-glow);
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 40px var(--accent-glow);
}

/* --- STATS --- */
.stats-bar {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.3);
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.stat-num { font-size: 3rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { color: var(--text-gray); font-size: 0.85rem; text-transform: uppercase; margin-top: 10px; letter-spacing: 1.5px; }

/* --- COMPACT ICONS --- */
.partners-section {
    padding: 30px 0;
    background: #000;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.partners-section::before { left: 0; background: linear-gradient(to right, #000, transparent); }
.partners-section::after { right: 0; background: linear-gradient(to left, #000, transparent); }
.partners-section::before, .partners-section::after {
    content: ""; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2;
}

.marquee-container {
    display: flex; width: 200%;
    animation: marquee 25s linear infinite;
}

.marquee-item {
    flex: 1; display: flex; justify-content: center; align-items: center;
    font-size: 2rem; 
    color: #333; transition: 0.3s;
}
.marquee-item:hover { color: var(--accent-red); filter: drop-shadow(0 0 10px var(--accent-red)); }

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- SHOWCASE --- */
.showcase { padding: 140px 0; }
.section-title { text-align: center; font-size: 3rem; font-weight: 800; margin-bottom: 80px; }
.section-title span { border-bottom: 4px solid var(--accent-red); }

.screens-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 50px;
    perspective: 1000px;
}

.screen-card {
    background: #121212; border-radius: 12px; overflow: hidden;
    border: 1px solid #222; transition: 0.6s var(--easing); 
    position: relative; transform-style: preserve-3d;
}

.screen-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-color: var(--accent-red);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.browser-mockup {
    height: 30px; background: #1a1a1a; display: flex; align-items: center; padding-left: 15px; gap: 6px;
    border-bottom: 1px solid #222;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.screen-img {
    height: 240px; background: #0e0e0e;
    display: flex; align-items: center; justify-content: center;
    color: #333; font-size: 4rem;
}

.screen-desc { padding: 30px; }
.screen-desc h3 { font-size: 1.4rem; margin-bottom: 10px; color: #fff; }

/* --- WORKFLOW --- */
.workflow { padding: 100px 0; background: linear-gradient(180deg, var(--bg-dark), #0f0f0f); }
.steps-wrapper {
    display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.step-item {
    flex: 1; min-width: 250px;
    padding: 40px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}
.step-item:hover { border-color: var(--accent-red); background: rgba(229, 9, 20, 0.05); }

.step-num {
    font-size: 5rem; font-weight: 900;
    position: absolute; top: -10px; right: 10px;
    color: rgba(255,255,255,0.03); z-index: 0;
}
.step-content { position: relative; z-index: 1; }
.step-content h3 { font-size: 1.5rem; margin-bottom: 15px; }

/* --- FEATURES --- */
.features {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-card));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-box {
    padding: 40px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    transition: 0.4s var(--easing);
}

.feature-box:hover {
    background: rgba(229, 9, 20, 0.05);
    border-color: var(--accent-red);
    transform: translateY(-10px);
}

.feature-box i {
    font-size: 2rem;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.feature-box h3 { margin-bottom: 15px; }
.feature-box p { color: var(--text-gray); font-size: 0.95rem; }

/* --- FAQ --- */
.faq-section { padding: 120px 0; max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid #222; padding: 25px 0; cursor: pointer;
}
.faq-q { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 600; transition: 0.3s; }
.faq-a { max-height: 0; overflow: hidden; transition: 0.5s var(--easing); color: var(--text-gray); margin-top: 0; }

.faq-item.active .faq-a { max-height: 200px; margin-top: 20px; }
.faq-item.active .faq-q { color: var(--accent-red); }
.plus-icon { transition: 0.4s; }
.faq-item.active .plus-icon { transform: rotate(45deg); }

/* --- APPLICATION FORM --- */
.application-section {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.partner-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 6px;
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: 0.3s var(--easing);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
    background: #141414;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 20px;
}

/* --- FOOTER --- */
footer { padding: 80px 0 40px; border-top: 1px solid #222; text-align: center; }
.contact-methods { display: flex; justify-content: center; gap: 40px; margin-bottom: 60px; }
.contact-icon {
    width: 70px; height: 70px; border-radius: 50%; background: #111;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: white; transition: 0.4s var(--easing); border: 1px solid #222;
}
.contact-item:hover .contact-icon {
    background: var(--accent-red); transform: scale(1.1); box-shadow: 0 0 30px var(--accent-glow);
}
.contact-item span { margin-top: 15px; display: block; color: var(--text-gray); }

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .steps-wrapper { flex-direction: column; }
    .nav-btn { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .partner-form { padding: 30px 20px; }
    .contact-methods { flex-direction: column; align-items: center; gap: 30px; }
}