/* Cheat Engine 7.6 landing */
:root {
    --primary: #E65100;
    --primary-dark: #BF360C;
    --bg: #0d0d0d;
    --surface: #1a1a1a;
    --surface2: #262626;
    --text: #fafafa;
    --text-muted: #a3a3a3;
    --border: #404040;
    --success: #22c55e;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

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

/* Top bar */
.top-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo img { display: block; }
.brand-name { font-weight: 700; font-size: 1.2rem; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* TOC sidebar */
.toc-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
    z-index: 50;
    max-height: 80vh;
    overflow-y: auto;
}
.toc-title { font-weight: 700; margin-bottom: 12px; font-size: 0.9rem; }
.toc-nav { display: flex; flex-direction: column; gap: 4px; }
.toc-link { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.toc-link:hover { color: var(--primary); }
.toc-icon { font-size: 0.9rem; }

/* Header / Hero */
header {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.version-tag {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 8px;
}
header h1 { font-size: 2.5rem; margin: 0 0 16px; }
header h1 span { color: var(--primary); }
header .header-text p { color: var(--text-muted); margin-bottom: 24px; max-width: 520px; }
.header-buttons { display: flex; gap: 12px; margin-bottom: 24px; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; border: none; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.trust-badges { display: flex; flex-wrap: wrap; gap: 16px; }
.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.trust-badge svg { width: 20px; height: 20px; fill: var(--primary); }
.header-image { position: relative; }
.header-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Stats bar */
.stats-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 24px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-item strong { display: block; color: var(--primary); font-size: 1rem; margin-bottom: 4px; }
.stat-item span { font-size: 0.85rem; color: var(--text-muted); }

/* Download section */
.download-section { padding: 60px 0; }
.download-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 640px;
    margin: 0 auto;
}
.download-box h2 { margin: 0 0 8px; }
.download-box > p { color: var(--text-muted); margin-bottom: 20px; }
.download-counter { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--text-muted); }
.download-counter svg { width: 24px; height: 24px; fill: var(--primary); }
.download-buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.download-btn.primary { background: var(--primary); color: #fff; }
.download-btn.primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.download-btn.secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.download-btn.secondary:hover { border-color: var(--primary); color: var(--primary); }
.download-btn .icon { font-size: 1.2rem; }

.archive-password-box {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid var(--success);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}
.archive-password-label { display: block; margin-bottom: 8px; font-weight: 600; }
.archive-password {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success);
    user-select: all;
    display: block;
    margin-bottom: 4px;
}
.archive-password-hint { font-size: 0.9rem; color: var(--text-muted); }
.file-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.file-specs div { font-size: 0.9rem; }
.file-specs strong { display: block; color: var(--text-muted); margin-bottom: 4px; }

/* Compatibility / compat box */
.compatibility-notice { padding: 40px 0; }
.compat-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.compat-icon svg { width: 48px; height: 48px; color: var(--primary); flex-shrink: 0; }
.compat-content h3 { margin: 0 0 8px; }
.compat-content p { margin: 0; color: var(--text-muted); }

/* Section header */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; margin: 0 0 8px; }
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--text-muted); margin: 0; }

/* Intro box */
.intro-box { max-width: 800px; margin: 0 auto; }
.intro-box p { color: var(--text-muted); margin-bottom: 16px; }
.intro-box p:last-child { margin-bottom: 0; }

/* Features */
.features-section { padding: 60px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Compact sections (why, audience, licenses, requirements) */
.compact-info-section { padding: 60px 0; }
.compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.compact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.compact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.compact-card-pro { border-color: var(--primary); background: rgba(230, 81, 0, 0.08); }
.compact-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.compact-icon { font-size: 1.5rem; }
.compact-header h3 { margin: 0; font-size: 1rem; }
.compact-desc { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.req-list { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 0.9rem; }
.req-list li { margin-bottom: 6px; }
.license-notice { text-align: center; margin-bottom: 24px; padding: 12px; background: rgba(230, 81, 0, 0.15); border-radius: 8px; font-size: 0.95rem; }

/* Screenshots — ТЗ: 2 колонки, max-width 900px, aspect-ratio 16/10, object-fit cover, hover translateY(-4px) */
#screenshots { padding: 60px 0; }
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.screenshot-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.screenshot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.screenshot-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}
.screenshot-label {
    padding: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* Steps / tabs */
.steps-section { padding: 60px 0; }
.tabs-nav { display: flex; gap: 8px; margin-bottom: 24px; justify-content: center; }
.tab-btn {
    padding: 12px 24px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.step-icon { font-size: 2rem; margin-bottom: 12px; }
.step-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Tips */
.tips-section { padding: 60px 0; }
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.tip-card {
    display: flex;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.tip-icon { font-size: 2rem; flex-shrink: 0; }
.tip-content h4 { margin: 0 0 8px; font-size: 1rem; }
.tip-content p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* Comparison table */
.comparison-section { padding: 60px 0; }
.comparison-table-wrapper { overflow-x: auto; }
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
}
.comparison-table th, .comparison-table td {
    padding: 16px;
    border: 1px solid var(--border);
    text-align: left;
}
.comparison-table th { background: var(--surface2); font-weight: 600; }
.highlight-col { background: rgba(230, 81, 0, 0.12); }
.product-header { display: flex; align-items: center; gap: 8px; }
.badge-winner { font-size: 0.75rem; background: var(--primary); color: #fff; padding: 4px 8px; border-radius: 4px; }
.rating-row .highlight-col .stars { color: #eab308; }
.rating-num { display: block; font-size: 0.9rem; color: var(--text-muted); }

/* Alternatives */
.alternatives-section { padding: 60px 0; }
.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.alt-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.alt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.alt-header h4 { margin: 0; font-size: 1rem; }
.alt-rating { color: #eab308; font-size: 0.9rem; }
.alt-card p { margin: 0 0 12px; color: var(--text-muted); font-size: 0.9rem; }
.alt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.75rem; background: var(--surface2); padding: 4px 10px; border-radius: 4px; color: var(--text-muted); }

/* Pros / cons */
.pros-cons-section { padding: 60px 0; }
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pros-card, .cons-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.pros-card h3, .cons-card h3 { margin: 0 0 16px; font-size: 1.1rem; }
.pros-card ul, .cons-card ul { margin: 0; padding-left: 20px; color: var(--text-muted); font-size: 0.95rem; }
.pros-card li, .cons-card li { margin-bottom: 8px; }

/* Reviews */
.reviews-section { padding: 60px 0; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.reviewer-info h4 { margin: 0; font-size: 1rem; }
.reviewer-info span { font-size: 0.85rem; color: var(--text-muted); }
.rating { margin-bottom: 12px; }
.rating .star { color: #eab308; }
.review-text { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* FAQ */
#faq { padding: 60px 0; }
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.faq-question { font-weight: 600; margin-bottom: 8px; }
.faq-answer { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Feedback */
.feedback-section { padding: 60px 0; }
.feedback-container { max-width: 560px; margin: 0 auto; }
#contactForm .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Footer */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 700; }
.footer-brand-icon img { display: block; }
.footer-text { margin: 0; color: var(--text-muted); font-size: 0.9rem; max-width: 320px; }
.footer-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-section h4 { margin: 0 0 12px; font-size: 0.9rem; }
.footer-section ul { margin: 0; padding: 0; list-style: none; }
.footer-section a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-section a:hover { color: var(--primary); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 99;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top svg { width: 24px; height: 24px; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface2);
    border: none;
    color: #fff;
    padding: 16px;
    font-size: 1.5rem;
    cursor: pointer;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    z-index: 1001;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 1024px) {
    .toc-sidebar { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .header-content { grid-template-columns: 1fr; }
    .header-image { order: -1; max-width: 400px; margin: 0 auto; }
    .file-specs { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }
    .pros-cons-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .screenshots-grid { grid-template-columns: 1fr; }
    #contactForm .form-row { grid-template-columns: 1fr; }
    .footer-links-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}
