/* === landing.css === */
/* Стили для landing page SendPulse Monitor */
/* ОБНОВЛЕНО: 2025-01-15 22:30 */

:root {
    --bg-primary: hsl(10, 10%, 4%);
    --text-primary: hsl(0, 0%, 98%);
    --color-primary: hsl(217, 91%, 60%);
    --color-secondary: hsl(262, 65%, 65%);
    --ai-dark: #0a0a0a;
    --ai-gray: #1a1a1a;
    --ai-blue: #3b82f6;
    --ai-purple: #8b5cf6;
    --ai-green: #10b981;
    --card-bg: hsl(10, 10%, 6%);
    --border-color: hsl(10, 10%, 15%);
    --text-muted: hsl(0, 0%, 65%);
    --color-danger: hsl(0, 84.2%, 60.2%);
    --gradient-primary: linear-gradient(to right, var(--ai-blue), var(--ai-purple));
    --gradient-card: linear-gradient(135deg, var(--card-bg) 0%, rgba(59, 130, 246, 0.05) 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--ai-blue), var(--ai-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 2rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--ai-blue);
}

.btn-login {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-admin {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4);
}

.btn-logout-nav {
    padding: 0.75rem 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-logout-nav:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

.btn-register {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--ai-blue);
    border: 2px solid var(--ai-blue);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-register:hover {
    background: var(--ai-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Hero */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.1);
    color: var(--ai-blue);
    border: 2px solid var(--ai-blue);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--ai-blue);
    border: 2px solid var(--ai-blue);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

.btn-block {
    width: 100%;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ai-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Features */
.features {
    background: var(--ai-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
    border-color: var(--ai-blue);
}

.feature-card.featured {
    border: 2px solid var(--ai-blue);
}

.feature-card.highlight {
    background: var(--gradient-card);
    border: 2px solid var(--ai-purple);
}

.feature-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-link {
    color: var(--ai-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.feature-link:hover {
    color: var(--ai-purple);
}

/* Monitoring Detail */
.monitoring-detail {
    background: var(--bg-primary);
}

.monitoring-content {
    max-width: 1000px;
    margin: 0 auto;
}

.monitoring-block {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.block-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--ai-blue);
}

.block-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: rgba(59, 130, 246, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.metric-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.metric-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.metric-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.table-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.table-feature {
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--ai-blue);
}

.color-indicators {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.indicator {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.indicator.green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--ai-green);
}

.indicator.yellow {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.indicator.red {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-danger);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.quality-block {
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid;
}

.quality-block.success {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--ai-green);
}

.quality-block.warning {
    background: rgba(239, 68, 68, 0.05);
    border-color: var(--color-danger);
}

.quality-block h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.quality-block ul {
    list-style: none;
}

.quality-block li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.quality-block li:last-child {
    border-bottom: none;
}

.charts-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.chart-feature {
    background: rgba(139, 92, 246, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.chart-feature h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.chart-feature p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.filters-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.filter-item {
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    color: var(--text-muted);
}

.monitoring-benefits {
    margin-top: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--ai-blue);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* CTA */
.cta {
    background: var(--gradient-card);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-note {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Footer */
.footer {
    background: var(--ai-gray);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.footer-text {
    color: var(--text-muted);
    margin-top: 0.75rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

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

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 450px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--ai-blue);
    background: rgba(59, 130, 246, 0.1);
}

.error-message {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    padding: 0.875rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.error-message.show {
    display: block;
}

.success-message {
    display: none;
    background: rgba(16, 185, 129, 0.1);
    color: var(--ai-green);
    padding: 0.875rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.success-message.show {
    display: block;
}

.modal-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.modal-footer-text a {
    color: var(--ai-blue);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer-text a:hover {
    color: var(--ai-purple);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .nav {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .nav-link {
        display: none;
    }

    .btn-login,
    .btn-admin,
    .btn-logout-nav {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}
