/* === LANDING.CSS ===
 * assets/css/landing.css
 * НАЗНАЧЕНИЕ: Стили лендинга CommandOS - Dev Terminal SaaS эстетика
 * СВЯЗИ: landing.php
 * РАЗМЕР: ~650 строк
 */

/* ============================================================
   CSS VARIABLES - LANDING ONLY (standalone :root)
   ============================================================ */

:root {
    --ld-bg: #0a0a0a;
    --ld-bg-card: #111111;
    --ld-text: #fafafa;
    --ld-text-muted: #888;
    --ld-accent: #10b981;
    --ld-accent-hover: #0ea572;
    --ld-border: #1a1a1a;
    --ld-danger: #ef4444;
    --ld-font-mono: 'JetBrains Mono', monospace;
    --ld-font-body: 'Exo 2', sans-serif;
}

html.light-theme {
    --ld-bg: #f8f9fa;
    --ld-bg-card: #ffffff;
    --ld-text: #111111;
    --ld-text-muted: #666;
    --ld-border: #e0e0e0;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

body {
    margin: 0;
    padding: 0;
    background: var(--ld-bg);
    color: var(--ld-text);
    font-family: var(--ld-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

*, *::before, *::after { box-sizing: border-box; }

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

/* ============================================================
   HEADER (sticky 64px, blur backdrop)
   ============================================================ */

.ld-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ld-border);
    transition: background 0.3s;
}

html.light-theme .ld-header {
    background: rgba(248, 249, 250, 0.9);
}

.ld-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

html.light-theme .ld-header.scrolled {
    background: rgba(248, 249, 250, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.ld-logo {
    font-family: var(--ld-font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--ld-accent);
    text-decoration: none;
}

/* Navigation */
.ld-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ld-nav-link {
    color: var(--ld-text-muted);
    text-decoration: none;
    font-family: var(--ld-font-mono);
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.ld-nav-link:hover {
    color: var(--ld-text);
    background: rgba(255, 255, 255, 0.05);
}

html.light-theme .ld-nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.ld-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Theme toggle */
.ld-theme-btn {
    background: none;
    border: 1px solid var(--ld-border);
    color: var(--ld-text-muted);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
}

.ld-theme-btn:hover {
    border-color: var(--ld-accent);
    color: var(--ld-accent);
}

.ld-icon-sun { display: none; }
.ld-icon-moon { display: inline; }
html.light-theme .ld-icon-sun { display: inline; }
html.light-theme .ld-icon-moon { display: none; }

/* Mobile menu */
.ld-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--ld-text);
    cursor: pointer;
    padding: 6px;
}

.ld-mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ld-bg);
    z-index: 99;
    padding: 24px;
    flex-direction: column;
    gap: 8px;
}

.ld-mobile-menu.active { display: flex; }

.ld-mobile-menu .ld-nav-link {
    font-size: 16px;
    padding: 12px 16px;
    display: block;
    border-bottom: 1px solid var(--ld-border);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--ld-font-mono);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.3s, transform 0.15s;
}

.ld-btn-primary {
    background: var(--ld-accent);
    color: #000;
}

.ld-btn-primary:hover {
    background: var(--ld-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.ld-btn-outline {
    background: transparent;
    color: var(--ld-accent);
    border: 1px solid var(--ld-accent);
    padding: 12px 28px;
    font-family: var(--ld-font-mono);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ld-btn-outline:hover {
    background: rgba(16, 185, 129, 0.1);
}

.ld-btn-sm { padding: 8px 18px; font-size: 13px; }

/* ============================================================
   HERO (2-col, 85vh)
   ============================================================ */

.ld-hero {
    padding-top: 100px;
    padding-bottom: 60px;
}

.ld-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.ld-hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Badges */
.ld-hero-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ld-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-family: var(--ld-font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--ld-accent);
    letter-spacing: 0.03em;
}

/* Title */
.ld-hero-title {
    font-family: var(--ld-font-mono);
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--ld-text);
    margin: 0;
}

.ld-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: var(--ld-accent);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: ld-cursor-blink 1s step-end infinite;
}

/* Subtitle */
.ld-hero-subtitle {
    font-size: 17px;
    color: var(--ld-text-muted);
    line-height: 1.7;
    max-width: 500px;
    margin: 0;
}

/* CTA buttons */
.ld-hero-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Hero visual (browser mockup) */
.ld-hero-visual {
    display: flex;
    align-items: center;
}

/* ============================================================
   BROWSER MOCKUP FRAME (screenshot container)
   ============================================================ */

.ld-screen-frame {
    width: 100%;
    background: var(--ld-bg-card);
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    overflow: hidden;
}

.ld-screen-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--ld-border);
}

html.light-theme .ld-screen-dots {
    background: rgba(0, 0, 0, 0.03);
}

.ld-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

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

.ld-screen-title {
    flex: 1;
    text-align: center;
    color: var(--ld-text-muted);
    font-family: var(--ld-font-mono);
    font-size: 12px;
}

.ld-screen-body {
    position: relative;
    overflow: hidden;
}

.ld-screen-img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: top left;
}

/* ============================================================
   SECTIONS (common)
   ============================================================ */

.ld-section {
    padding: 80px 0;
}

.ld-section-alt {
    background: var(--ld-bg-card);
}

.ld-section-tag {
    font-family: var(--ld-font-mono);
    font-size: 13px;
    color: var(--ld-accent);
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    opacity: 0.8;
}

.ld-section-title {
    font-family: var(--ld-font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--ld-text);
    margin: 0 0 40px 0;
    line-height: 1.25;
}

/* ============================================================
   PAIN vs SOLUTION (2-col compare)
   ============================================================ */

.ld-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ld-compare-col {
    padding: 32px;
    border-radius: 10px;
    border: 1px solid var(--ld-border);
    background: var(--ld-bg-card);
}

.ld-compare-pain { border-left: 3px solid var(--ld-danger); }
.ld-compare-solution { border-left: 3px solid var(--ld-accent); }

.ld-compare-title {
    font-family: var(--ld-font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 20px 0;
}

.ld-compare-title-pain { color: var(--ld-danger); }
.ld-compare-title-solution { color: var(--ld-accent); }

.ld-compare-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ld-compare-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ld-text);
}

.ld-icon-x {
    color: var(--ld-danger);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    font-weight: 700;
}

.ld-icon-check {
    color: var(--ld-accent);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    font-weight: 700;
}

/* ============================================================
   FEATURES (3x2 grid)
   ============================================================ */

.ld-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ld-feature-card {
    background: var(--ld-bg-card);
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    padding: 28px;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ld-feature-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

html.light-theme .ld-feature-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ld-feature-num {
    font-family: var(--ld-font-mono);
    font-size: 36px;
    font-weight: 700;
    color: var(--ld-accent);
    opacity: 0.15;
    position: absolute;
    top: 16px;
    right: 20px;
    line-height: 1;
}

.ld-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    margin-bottom: 16px;
    color: var(--ld-accent);
}

.ld-feature-title {
    font-family: var(--ld-font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--ld-text);
    margin: 0 0 8px 0;
}

.ld-feature-desc {
    font-size: 14px;
    color: var(--ld-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   SHOWCASE (full-width screenshot + stats)
   ============================================================ */

.ld-showcase-frame {
    margin-bottom: 32px;
}

.ld-showcase-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ld-stat {
    text-align: center;
    padding: 20px;
    background: var(--ld-bg-card);
    border: 1px solid var(--ld-border);
    border-radius: 10px;
}

.ld-stat-value {
    font-family: var(--ld-font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--ld-accent);
    line-height: 1.2;
}

.ld-stat-label {
    font-size: 13px;
    color: var(--ld-text-muted);
    margin-top: 4px;
}

/* ============================================================
   STEPS (flex with connectors)
   ============================================================ */

.ld-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.ld-step {
    text-align: center;
    padding: 0 24px;
    flex: 1;
    max-width: 320px;
}

.ld-step-num {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--ld-accent);
    border-radius: 50%;
    font-family: var(--ld-font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--ld-accent);
}

.ld-step-connector {
    width: 48px;
    height: 2px;
    background: var(--ld-border);
    flex-shrink: 0;
    margin-top: -40px;
}

.ld-step-title {
    font-family: var(--ld-font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--ld-text);
    margin: 0 0 8px 0;
}

.ld-step-desc {
    font-size: 14px;
    color: var(--ld-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   MODULES (4-col compact grid)
   ============================================================ */

.ld-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ld-module-card {
    background: var(--ld-bg-card);
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    padding: 20px;
    transition: border-color 0.3s;
}

.ld-module-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

.ld-module-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.ld-module-name {
    font-family: var(--ld-font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--ld-text);
    margin: 0 0 6px 0;
}

.ld-module-desc {
    font-size: 13px;
    color: var(--ld-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   AUDIENCE (2-col cards)
   ============================================================ */

.ld-audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ld-audience-card {
    background: var(--ld-bg-card);
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    padding: 28px;
}

.ld-audience-title {
    font-family: var(--ld-font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--ld-text);
    margin: 0 0 12px 0;
}

.ld-audience-desc {
    font-size: 14px;
    color: var(--ld-text-muted);
    line-height: 1.6;
    margin: 0;
}

.ld-audience-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

/* ============================================================
   CTA (centered, subtle green gradient)
   ============================================================ */

.ld-cta-section {
    text-align: center;
    background: linear-gradient(180deg, var(--ld-bg) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.ld-cta-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ld-cta-title {
    font-family: var(--ld-font-mono);
    font-size: 36px;
    font-weight: 700;
    color: var(--ld-text);
    margin: 0;
    line-height: 1.25;
}

.ld-cta-subtitle {
    font-size: 17px;
    color: var(--ld-text-muted);
    line-height: 1.6;
    margin: 0;
}

.ld-cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.ld-cta-glow {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* ============================================================
   FOOTER
   ============================================================ */

.ld-footer {
    padding: 40px 0;
    border-top: 1px solid var(--ld-border);
}

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

.ld-footer-logo {
    font-family: var(--ld-font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--ld-accent);
    text-decoration: none;
}

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

.ld-footer-link {
    font-family: var(--ld-font-mono);
    font-size: 13px;
    color: var(--ld-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.ld-footer-link:hover { color: var(--ld-accent); }

.ld-footer-copy {
    font-family: var(--ld-font-mono);
    font-size: 13px;
    color: var(--ld-text-muted);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes ld-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.15); }
    50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.3); }
}
