/* ===== Переменные ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-700: #334155;
    --gray-500: #64748b;
    --gray-300: #cbd5e1;
    --gray-100: #f1f5f9;
    --white: #ffffff;
    --success: #10b981;
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
    --shadow-md: 0 4px 12px rgba(15,23,42,0.08);
    --shadow-lg: 0 12px 32px rgba(15,23,42,0.12);
    --shadow-xl: 0 24px 48px rgba(15,23,42,0.16);
    --radius: 16px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

body {
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ===== Декоративный фон ===== */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* ===== Навигация ===== */
header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226,232,240,0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}

.nav-links {
    display: flex;
    gap: 0.4rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(99,102,241,0.08);
}

.nav-links a.active {
    color: var(--primary);
    background: rgba(99,102,241,0.1);
}

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

/* ===== Кнопки ===== */
.btn {
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.5);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99,102,241,0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    padding: 0.5rem 1rem;
}

.btn-ghost:hover { color: var(--primary); }

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

/* ===== Главный контейнер ===== */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 4rem 1rem 3rem;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99,102,241,0.1);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99,102,241,0.2);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.25rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== Мокап дашборда в hero ===== */
.hero-mockup {
    max-width: 900px;
    margin: 3rem auto 0;
    perspective: 1200px;
}

.mockup-window {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: rotateX(6deg);
    transition: transform 0.6s;
    border: 1px solid rgba(226,232,240,0.8);
}

.mockup-window:hover { transform: rotateX(0deg); }

.mockup-bar {
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border-bottom: 1px solid var(--gray-300);
}

.mockup-bar .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.mockup-url {
    flex: 1;
    background: #fff;
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-left: 1rem;
    border: 1px solid var(--gray-300);
}

.mockup-content {
    padding: 2rem;
    background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
    min-height: 300px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
}

.mockup-sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.mockup-sidebar-item {
    height: 14px;
    background: var(--gray-100);
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.mockup-sidebar-item.active {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    width: 70%;
}

.mockup-sidebar-item:nth-child(2) { width: 85%; }
.mockup-sidebar-item:nth-child(3) { width: 60%; }
.mockup-sidebar-item:nth-child(4) { width: 75%; }

.mockup-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-content: start;
}

.mockup-stat {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.mockup-stat .bar {
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.mockup-stat .bar.accent {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    width: 60%;
}

.mockup-stat .bar.short { width: 40%; }

/* ===== Секции ===== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}

.section-title p {
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Карточки фич ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid rgba(226,232,240,0.6);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99,102,241,0.2);
}

.card:hover::before { opacity: 1; }

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(6,182,212,0.12) 100%);
    color: var(--primary);
}

.card h3 {
    color: var(--dark);
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ===== Формы ===== */
.form-container {
    max-width: 440px;
    margin: 3rem auto;
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226,232,240,0.6);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.form-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.92rem;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.88rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #fafbff;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.form-group input::placeholder { color: #94a3b8; }

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover { text-decoration: underline; }

.form-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}

.form-message.success {
    background: rgba(16,185,129,0.1);
    color: #047857;
    border: 1px solid rgba(16,185,129,0.3);
    display: block;
}

/* ===== Тарифы ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.price-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1.5px solid var(--gray-300);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.price-card.featured {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(99,102,241,0.2);
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
}

.price-card.featured::before {
    content: "Популярный";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    padding: 0.35rem 1.2rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(99,102,241,0.4);
}

.price-card h3 {
    font-size: 1.1rem;
    color: var(--gray-700);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin: 1rem 0 0.5rem;
    letter-spacing: -2px;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 0;
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin: 1.75rem 0;
    flex: 1;
}

.price-card li {
    padding: 0.55rem 0;
    color: var(--gray-700);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.price-card li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(16,185,129,0.15);
    color: var(--success);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ===== Дашборд ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-300);
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

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

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226,232,240,0.6);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card .label {
    color: var(--gray-500);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-top: 0.4rem;
    letter-spacing: -1px;
}

.stat-card .value.accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .progress {
    height: 6px;
    background: var(--gray-100);
    border-radius: 3px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.stat-card .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 3px;
    transition: width 0.6s;
}

.file-list {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226,232,240,0.6);
}

.file-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
    cursor: pointer;
}

.file-item:hover { background: #fafbff; }
.file-item:last-child { border-bottom: none; }

.file-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
    background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(6,182,212,0.1) 100%);
    flex-shrink: 0;
}

.file-name {
    flex: 1;
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.file-meta {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-right: 1rem;
}

.file-action {
    color: var(--gray-300);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.file-item:hover .file-action { color: var(--primary); }

/* ===== Футер ===== */
footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 2.5rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ===== Анимации при скролле ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Адаптив ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; letter-spacing: -1px; }
    .hero p { font-size: 1rem; }
    main { padding: 2rem 1rem; }
    .mockup-content { grid-template-columns: 1fr; }
    .mockup-sidebar { display: none; }
    .mockup-main { grid-template-columns: 1fr; }
    .price { font-size: 2.4rem; }
    .form-container { padding: 2rem 1.5rem; }
    .dashboard-header h1 { font-size: 1.4rem; }
}

/* ===== Скроллбар ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }