/* Варианты цвета: тёмно-серый, чёрный, градиенты неоновые (синий, фиолетовый, розовый) */
:root {
    --bg-color: #050505;
    --surface-color: rgba(25, 25, 28, 0.6);
    --surface-hover: rgba(35, 35, 40, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    
    --brand-gradient: linear-gradient(135deg, #FF4B8C 0%, #9027FF 50%, #00D5FF 100%);
    --brand-hover: linear-gradient(135deg, #FF6B9F 0%, #A34BFF 50%, #33E0FF 100%);
    
    --font-main: 'Inter', sans-serif;
    --container-w: 1200px;
    --br: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    gap: 8px;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

.btn-gradient {
    background: var(--brand-gradient);
    color: #ffffff;
    padding: 16px 32px;
}

.btn-gradient:hover {
    background: var(--brand-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(144, 39, 255, 0.3);
}

.btn-large {
    font-size: 1.125rem;
    border-radius: 12px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--brand-gradient);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(144, 39, 255, 0.4);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: rgba(0, 213, 255, 0.3);
    top: 20%;
    right: -200px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 4.5rem;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #b3b3b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 40px;
}

.hero-actions {
    margin-bottom: 80px;
}

.hero-media {
    width: 100%;
    max-width: 1000px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    background: var(--surface-color);
    aspect-ratio: 16/9;
}

/* Generative UI Layer */
.generating-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 1s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #00d5ff;
    border-right-color: #9027FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gen-text {
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

video#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* hides any minor edges */
}

.hero-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5,5,5,1) 0%, rgba(5,5,5,0) 50%);
    pointer-events: none;
}

/* Features Block */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--br);
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #00d5ff;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Instructions */
.steps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}

.step-card {
    flex: 1;
    min-width: 250px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--br);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.step-card:hover {
    background: var(--surface-hover);
}

.step-number {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 100px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.step-card h3 {
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Prompt Simulation */
.prompt-simulation-container {
    max-width: 800px;
    margin: 60px auto 0;
}

.prompt-input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(25, 25, 28, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: var(--transition);
}

.prompt-input-box:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(144, 39, 255, 0.2);
}

.prompt-input-field {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-family: inherit;
    outline: none;
    padding: 12px 0;
}

.prompt-input-field::placeholder {
    color: var(--text-secondary);
}

.prompt-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--text-primary);
    color: #000;
    border-radius: 50%;
    margin-left: 12px;
    transition: var(--transition);
    flex-shrink: 0;
}

.prompt-submit-btn:hover {
    transform: scale(1.05);
    background: #e5e5e5;
}

/* Secondary CTA */
.secondary-cta {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(30,30,35,0.8) 0%, rgba(15,15,18,0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 64px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-gradient);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--br);
    padding: 32px;
}

.review-stars {
    font-size: 1.25rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-text {
    color: var(--text-primary);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 24px;
}

.review-author {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Guarantee */
.guarantee-box {
    display: flex;
    align-items: center;
    gap: 32px;
    background: rgba(0, 213, 255, 0.05);
    border: 1px solid rgba(0, 213, 255, 0.2);
    border-radius: var(--br);
    padding: 40px;
}

.guarantee-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 213, 255, 0.1);
    border-radius: 50%;
    color: #00d5ff;
    flex-shrink: 0;
}

.guarantee-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.guarantee-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.faq-toggle {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-toggle::before, .faq-toggle::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: var(--transition);
}

.faq-toggle::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

.faq-toggle::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
}

.faq-item.active .faq-toggle::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
}

/* SEO Text Block */
.seo-text {
    padding-top: 50px;
    padding-bottom: 80px;
    border-top: 1px solid var(--border-color);
}

.seo-container {
    max-width: 800px;
}

.seo-content-block {
    margin-bottom: 40px;
}

.seo-content-block h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #e5e5e5;
}

.seo-content-block p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.seo-list {
    list-style-type: none;
    color: var(--text-secondary);
}

.seo-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.seo-list li::before {
    content: '•';
    color: #FF4B8C;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
    font-weight: bold;
}

.prompt-example {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #9027FF;
    margin-top: 20px;
    color: #e5e5e5;
    font-style: italic;
}

.seo-cta {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.mt-4 {
    margin-top: 24px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 32px;
    background: #000;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-desc {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav, .header-actions .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .guarantee-box {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
    .hidden-mobile {
        display: none;
    }
}
