/* ========================================
   ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --gradient-1: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-2: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light-bg);
}

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

/* ========================================
   HERO СЕКЦИЯ
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-1);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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



/* ========================================
   СЕКЦИИ
   ======================================== */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--dark-bg);
    color: white;
}

.section-accent {
    background: linear-gradient(180deg, var(--light-bg) 0%, #e0e7ff 100%);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* ========================================
   ПРОБЛЕМЫ
   ======================================== */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.problem-card {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid var(--border-color);
}

.problem-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.problem-card p {
    color: var(--text-light);
}

/* ========================================
   РЕШЕНИЕ
   ======================================== */
.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solution-list {
    list-style: none;
    margin-top: 1.5rem;
}

.solution-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.05rem;
}

.solution-list li:last-child {
    border-bottom: none;
}

.phone-mockup {
    background: var(--text-dark);
    border-radius: 30px;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.app-header {
    background: var(--gradient-1);
    color: white;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.task-list {
    padding: 1rem;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    margin: 0.5rem 0;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.task-item.high {
    border-left-color: #ef4444;
}

.task-item.medium {
    border-left-color: #f59e0b;
}

.task-item.low {
    border-left-color: #10b981;
}

.task-time {
    font-size: 0.9rem;
    color: var(--text-light);
}

.task-name {
    font-weight: 600;
    flex: 1;
    margin: 0 1rem;
}

.task-priority {
    font-size: 1.2rem;
}

/* ========================================
   ВОЗМОЖНОСТИ
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ========================================
   ТЕХНОЛОГИИ
   ======================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tech-category {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.tech-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tech-category ul {
    list-style: none;
}

.tech-category li {
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: var(--text-dark);
}

.tech-category li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.tech-highlight {
    background: var(--gradient-1);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin-top: 3rem;
}

.tech-highlight h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

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

.advanced-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.advanced-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.advanced-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========================================
   АРХИТЕКТУРА
   ======================================== */
.architecture-overview {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.arch-diagram {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
}

.arch-layer {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--primary-color);
    margin: 1rem 0;
}

.arch-layer h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.arch-layer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.layer-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.layer-details span {
    background: rgba(99, 102, 241, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.arch-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    padding: 0.5rem 0;
}

.arch-features {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
}

.arch-features h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.arch-features ul {
    list-style: none;
}

.arch-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.arch-features li:last-child {
    border-bottom: none;
}

/* ========================================
   ТЕСТИРОВАНИЕ
   ======================================== */
.testing-pyramid {
    max-width: 500px;
    margin: 0 auto 3rem;
}

.pyramid-level {
    padding: 1.5rem;
    text-align: center;
    margin: 0.5rem auto;
    border-radius: 8px;
    color: white;
}

.level-e2e {
    width: 40%;
    background: #ec4899;
}

.level-component {
    width: 60%;
    background: #8b5cf6;
}

.level-unit {
    width: 80%;
    background: #6366f1;
}

.pyramid-level h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.pyramid-level p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.testing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.test-card {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.test-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.test-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.test-card h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.test-card ul {
    list-style: none;
    margin-top: 0.5rem;
}

.test-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.test-card li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.test-example {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 3px solid var(--primary-color);
}

.test-example code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.testing-coverage {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.testing-coverage h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.coverage-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.coverage-item span:first-child {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.coverage-bar {
    height: 30px;
    background: #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
}

.coverage-fill {
    height: 100%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    color: white;
    font-weight: 600;
}

/* ========================================
   ДЕМОНСТРАЦИЯ
   ======================================== */
.demo-mockup {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.mockup-header {
    background: var(--dark-bg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--primary-color);
}

.mockup-dots {
    display: flex;
    gap: 0.5rem;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
}

.mockup-dots span:nth-child(2) {
    background: #f59e0b;
}

.mockup-dots span:nth-child(3) {
    background: #10b981;
}

.mockup-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.mockup-actions {
    color: white;
    font-size: 1.2rem;
}

.mockup-content {
    display: flex;
    min-height: 500px;
}

.demo-sidebar {
    width: 220px;
    background: #f8fafc;
    padding: 1.5rem 1rem;
    border-right: 1px solid var(--border-color);
}

.demo-menu-item {
    padding: 0.9rem 1rem;
    margin: 0.3rem 0;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-dark);
    font-weight: 500;
}

.demo-menu-item:hover {
    background: #e0e7ff;
}

.demo-menu-item.active {
    background: var(--primary-color);
    color: white;
}

.demo-main {
    flex: 1;
    padding: 2rem;
}

.demo-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.demo-header-bar h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
}

.demo-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.demo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--gradient-1);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.demo-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.demo-card h4 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.demo-tasks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-task {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.demo-task:hover {
    box-shadow: var(--shadow);
}

.demo-task.high {
    border-left-color: #ef4444;
}

.demo-task.medium {
    border-left-color: #f59e0b;
}

.demo-task.deadline {
    background: #fef2f2;
}

.demo-task.completed {
    opacity: 0.6;
}

.demo-task.completed .task-name {
    text-decoration: line-through;
}

.task-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    flex-shrink: 0;
}

.task-checkbox.checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-info {
    flex: 1;
}

.task-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.task-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.task-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.high-badge {
    background: #fee2e2;
    color: #991b1b;
}

.medium-badge {
    background: #fef3c7;
    color: #92400e;
}

.ai-suggestion {
    display: flex;
    gap: 1rem;
    background: #dbeafe;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

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

.ai-text {
    color: var(--text-dark);
}

.ai-text strong {
    color: #1e40af;
}

/* ========================================
   ДЕПЛОЙ
   ======================================== */
.deploy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.deploy-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.deploy-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.deploy-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.deploy-card li {
    padding: 0.6rem 0;
    color: rgba(255, 255, 255, 0.85);
}

.deploy-command {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.deploy-command code {
    color: #10b981;
    font-family: 'Courier New', monospace;
}

.deploy-pipeline {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
}

.deploy-pipeline h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.pipeline-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pipeline-step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    margin: 0 auto 1rem;
}

.step-content h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.pipeline-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    padding: 0 1rem;
}

/* ========================================
   ROADMAP
   ======================================== */
.roadmap-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.roadmap-item::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 50px;
    width: 2px;
    height: calc(100% + 2rem);
    background: var(--primary-color);
}

.roadmap-item:last-child::after {
    display: none;
}

.roadmap-marker {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    flex-shrink: 0;
    z-index: 1;
}

.roadmap-content {
    flex: 1;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.roadmap-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.roadmap-content ul {
    list-style: none;
}

.roadmap-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.roadmap-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ========================================
   КОНТАКТЫ
   ======================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.project-link:hover {
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

.project-link span {
    font-size: 1.5rem;
}

.tech-stack-summary h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-badge {
    background: white;
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.tech-badge:hover {
    box-shadow: var(--shadow-lg);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--darker-bg);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* ========================================
   АНИМАЦИИ
   ======================================== */

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-animation {
        width: 100%;
    }

    .solution-content {
        grid-template-columns: 1fr;
    }

    .architecture-overview {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

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

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .nav-links {
        display: none;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .demo-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
    }

    .demo-menu-item {
        white-space: nowrap;
    }

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

    .pipeline-steps {
        flex-direction: column;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 3rem 0;
    }

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

    .floating-card {
        display: none;
    }
}

