/* ==========================================
   L7 Admin Guard Landing Page Styles
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Manrope:wght@200..800&family=Montserrat:wght@100..900&family=Rubik:wght@300..900&family=Ubuntu:wght@300;400;500;700&family=IBM+Plex+Sans:wght@100;200;300;400;500;600;700&family=Nunito:wght@200..1000&family=Quicksand:wght@300..700&family=Nunito+Sans:opsz,wght@6..12,200..1000&family=Comfortaa:wght@300..700&family=Fira+Sans:wght@100;200;300;400;500;600;700;800;900&family=Exo+2:wght@100..900&family=Sofia+Sans:wght@1..1000&family=Maven+Pro:wght@400..900&family=Play:wght@400;700&family=Monda:wght@400..700&family=Jura:wght@300..700&family=Blinker:wght@100;200;300;400;600;700;800;900&family=Ropa+Sans:ital@0;1&family=Cuprum:ital,wght@0,400..700;1,400..700&family=Ubuntu+Sans:ital,wght@0,100..800;1,100..800&family=Prosto+One&family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --success: #22c55e;
    --danger: #ef4444;
    --bg: #0f172a;
    --bg-light: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

body.font-manrope {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-montserrat {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-rubik {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-ubuntu {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-ibm {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-nunito {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-quicksand {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-nunito-sans {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-comfortaa {
    font-family: 'Comfortaa', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-fira {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-exo2 {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-sofia {
    font-family: 'Sofia Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-maven {
    font-family: 'Maven Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-play {
    font-family: 'Play', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-monda {
    font-family: 'Monda', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-jura {
    font-family: 'Jura', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-blinker {
    font-family: 'Blinker', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-ropa {
    font-family: 'Ropa Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-cuprum {
    font-family: 'Cuprum', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-ubuntu-sans {
    font-family: 'Ubuntu Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-prosto {
    font-family: 'Prosto One', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-sansation {
    font-family: 'Sansation', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-noto {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* Переключатель языка */
.lang-switch {
    position: fixed;
    top: 12px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 4px;
    background: var(--bg-light);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: var(--text);
}

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

/* Переключатель шрифтов (временный) */
.font-switch {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-light);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
    max-width: 130px;
}

.font-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
}

.font-btn:hover {
    color: var(--text);
}

.font-btn.active {
    background: #059669;
    color: white;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sticky-header.visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.sticky-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.sticky-header-logo img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.sticky-header-nav {
    display: flex;
    gap: 32px;
}

.sticky-header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.sticky-header-nav a:hover {
    color: var(--primary);
}

.sticky-header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}

.sticky-header-nav a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    text-align: center;
    padding: 100px 0 80px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 100%);
}

.logo {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
    filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.3));
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.install-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-browser {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.btn-browser svg {
    flex-shrink: 0;
}

.btn-browser img {
    flex-shrink: 0;
    filter: drop-shadow(1px 2px 5px rgba(0, 0, 0, 0.4));
}

.btn-firefox {
    background: #d94f00;
}

.btn-firefox:hover {
    background: #b84400;
}

.note {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Live Demo секция */
.live-demo {
    background: var(--bg);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.demo-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
}

.demo-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.demo-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-card .demo-url {
    font-family: 'Fira Code', monospace;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.demo-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.demo-screenshot {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.demo-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demo-screenshot-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.demo-screenshot-label.inactive {
    color: #94a3b8;
}

.demo-screenshot-label.active {
    color: var(--success);
}

.demo-card .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 12px;
}

.demo-instruction {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.demo-instruction h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.demo-instruction ol {
    margin-left: 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

.demo-instruction ol li {
    margin-bottom: 8px;
}

.demo-instruction code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    color: var(--primary);
}

/* Секции */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--bg-light);
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
    font-weight: 600;
}

/* Как это работает */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.step {
    text-align: center;
    padding: 24px;
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Сравнение */
.compare-table {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.compare-header,
.compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.compare-header {
    background: var(--bg-light);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.compare-header > div,
.compare-row > div {
    padding: 16px 20px;
    text-align: center;
}

.compare-header > div:first-child,
.compare-row > div:first-child {
    text-align: left;
    color: var(--text-muted);
}

.compare-row {
    border-bottom: 1px solid var(--border);
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-row .bad {
    color: var(--danger);
}

.compare-row .good {
    color: var(--success);
    font-weight: 500;
}

.example-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius);
    padding: 20px 24px;
    text-align: center;
}

.example-box p {
    color: var(--text);
    margin: 0;
}

/* Функции */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.2s;
}

.feature:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

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

/* Сценарии */
.cases-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.case {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 16px 28px;
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.2s;
}

.case:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Безопасность */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.security-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.security-item h3 {
    margin-bottom: 12px;
}

.security-item p {
    color: var(--text-muted);
}

.privacy-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.privacy-list li {
    color: var(--success);
    font-weight: 500;
}

/* CTA */
.cta {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}

.cta h2 {
    margin-bottom: 16px;
}

.cta p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Footer */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

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

footer p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .sticky-header-nav {
        display: none;
    }
    
    .sticky-header-logo {
        font-size: 1rem;
    }
    
    .sticky-header-logo img {
        width: 28px;
        height: 28px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .compare-header,
    .compare-row {
        font-size: 0.85rem;
    }
    
    .compare-header > div,
    .compare-row > div {
        padding: 12px 8px;
    }
    
    footer .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
