/* frontend/static/css/landing.css */

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.logo-wrapper { display: flex; align-items: center; gap: 10px; }



.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.logo-text span {
    background: linear-gradient(135deg, #4f8fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 16px; align-items: center; }

.btn-outline {
    padding: 8px 20px;
    border: 1px solid var(--btn-outline-border);
    border-radius: 8px;
    background: var(--btn-outline-bg);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--hero-title);
    box-shadow: 0 0 20px rgba(79,143,255,0.15);
    background: rgba(79,143,255,0.08);
}

.btn-small-primary {
    padding: 8px 20px;
    background: linear-gradient(135deg, #4f8fff, #7c3aed);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-small-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(139,92,246,0.5);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 4px;
    color: var(--text);
    transition: 0.2s;
}
.theme-toggle:hover { opacity: 0.8; }

.hero {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--hero-title);
}

.hero h1 span {
    background: linear-gradient(135deg, #4f8fff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite alternate;
}

@keyframes gradientShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(15deg); }
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-outline {
    padding: 16px 42px;
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #4f8fff, #7c3aed);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(79,143,255,0.3);
    padding: 16px 42px;
    font-size: 18px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(139,92,246,0.5);
}
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn-primary:hover::before { left: 100%; }

.cta .btn-primary {
    padding: 20px 60px;
    font-size: 22px;
    border-radius: 16px;
}

.features { padding: 80px 0; }

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--hero-title);
    text-shadow: 0 0 20px rgba(79,143,255,0.2);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 64px;
    font-size: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(79,143,255,0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}
.card:hover::before { opacity: 1; }
.card:hover {
    border-color: rgba(79,143,255,0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(79,143,255,0.1);
}

.card-icon {
    font-size: 28px;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(79,143,255,0.1);
    padding: 10px;
    border-radius: 12px;
    color: #4f8fff;
}

.card h3 { font-size: 20px; margin-bottom: 12px; color: var(--text); }
.card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

.how-it-works { padding: 80px 0; }
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; margin-top: 48px; }
.step { text-align: center; flex: 1; min-width: 200px; max-width: 250px; }

.step-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f8fff, #7c3aed);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    line-height: 48px;
    margin-bottom: 16px;
}

.step h4 { color: var(--text); margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 14px; }

.cta {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    margin: 40px 0 80px;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(79,143,255,0.05), transparent 60%);
    animation: ctaPulse 8s infinite alternate;
}
@keyframes ctaPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 1; }
}
.cta h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; color: var(--hero-title); }
.cta p { color: var(--text-secondary); margin-bottom: 36px; font-size: 18px; }

footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    background: var(--surface);
}

/* Pull-to-refresh индикатор */
.ptr-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, rgba(79, 143, 255, 0.15), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.15s ease;
    z-index: 9999;
    pointer-events: none;
}
.ptr-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.ptr-indicator.visible .ptr-content { opacity: 1; }
.ptr-icon { font-size: 24px; }
.ptr-text { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .hero { padding: 80px 0 60px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; padding: 0 16px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .btn-primary { padding: 14px 32px; font-size: 16px; }
    .grid { grid-template-columns: 1fr; gap: 16px; }
    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 16px; }
    .card { padding: 24px 20px; }
    .card h3 { font-size: 18px; }
    .cta { padding: 40px 20px; }
    .cta h2 { font-size: 28px; }
    .cta p { font-size: 16px; }
    .steps { flex-direction: column; align-items: center; }
    .step { max-width: 100%; }
    .cta .btn-primary { padding: 16px 40px; font-size: 18px; }
}

/* ===== Футер ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    background: var(--surface);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: #6b7280;
    text-decoration: none;
    font-size: 16px;
    transition: 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.footer-social a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .footer-col:first-child {
        grid-column: 1 / -1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
