/* =============================================
   WBTool Landing Page — /wbtooltable
   ============================================= */

/* --- Custom Properties (Dark theme default) --- */
.landing-page {
    --lp-accent: #6C5CE7;
    --lp-accent-light: #a29bfe;
    --lp-accent-dark: #5a4bd1;
    --lp-gradient: linear-gradient(135deg, #6C5CE7 0%, #a29bfe 100%);

    --lp-section-bg: rgba(15, 25, 40, 0.92);
    --lp-section-bg-alt: rgba(20, 30, 50, 0.95);
    --lp-card-bg: rgba(255, 255, 255, 0.04);
    --lp-card-border: rgba(255, 255, 255, 0.08);
    --lp-card-hover-border: rgba(108, 92, 231, 0.4);
    --lp-card-shadow: 0 4px 24px rgba(0,0,0,0.3);

    --lp-heading: #ffffff;
    --lp-text: #c9d1d9;
    --lp-text-secondary: #8b949e;
    --lp-text-muted: #6e7681;

    --lp-nav-bg: rgba(10, 15, 25, 0.85);
    --lp-nav-border: rgba(255, 255, 255, 0.06);

    --lp-badge-bg: rgba(108, 92, 231, 0.12);
    --lp-badge-border: rgba(108, 92, 231, 0.3);
    --lp-badge-text: #a29bfe;

    --lp-table-header-bg: rgba(108, 92, 231, 0.15);
    --lp-table-row-alt: rgba(255, 255, 255, 0.02);
    --lp-table-border: rgba(255, 255, 255, 0.06);

    --lp-faq-bg: rgba(255, 255, 255, 0.03);
    --lp-faq-border: rgba(255, 255, 255, 0.08);

    --lp-footer-bg: rgba(5, 10, 20, 0.95);
    --lp-footer-border: rgba(255, 255, 255, 0.06);

    --lp-divider-wave: #0d1117;
}

/* --- Light theme overrides --- */
body[data-theme='light'].landing-page {
    --lp-section-bg: rgba(248, 249, 250, 0.96);
    --lp-section-bg-alt: rgba(240, 242, 245, 0.97);
    --lp-card-bg: rgba(255, 255, 255, 0.85);
    --lp-card-border: rgba(0, 0, 0, 0.08);
    --lp-card-hover-border: rgba(108, 92, 231, 0.5);
    --lp-card-shadow: 0 4px 24px rgba(0,0,0,0.08);

    --lp-heading: #1a1a2e;
    --lp-text: #2d3436;
    --lp-text-secondary: #636e72;
    --lp-text-muted: #b2bec3;

    --lp-nav-bg: rgba(255, 255, 255, 0.88);
    --lp-nav-border: rgba(0, 0, 0, 0.06);

    --lp-badge-bg: rgba(108, 92, 231, 0.08);
    --lp-badge-border: rgba(108, 92, 231, 0.25);
    --lp-badge-text: #6C5CE7;

    --lp-table-header-bg: rgba(108, 92, 231, 0.08);
    --lp-table-row-alt: rgba(0, 0, 0, 0.02);
    --lp-table-border: rgba(0, 0, 0, 0.08);

    --lp-faq-bg: rgba(255, 255, 255, 0.7);
    --lp-faq-border: rgba(0, 0, 0, 0.08);

    --lp-footer-bg: rgba(30, 30, 50, 0.97);
    --lp-footer-border: rgba(255, 255, 255, 0.06);
}

@media (prefers-color-scheme: light) {
    body.landing-page:not([data-theme]) {
        --lp-section-bg: rgba(248, 249, 250, 0.96);
        --lp-section-bg-alt: rgba(240, 242, 245, 0.97);
        --lp-card-bg: rgba(255, 255, 255, 0.85);
        --lp-card-border: rgba(0, 0, 0, 0.08);
        --lp-card-hover-border: rgba(108, 92, 231, 0.5);
        --lp-card-shadow: 0 4px 24px rgba(0,0,0,0.08);
        --lp-heading: #1a1a2e;
        --lp-text: #2d3436;
        --lp-text-secondary: #636e72;
        --lp-text-muted: #b2bec3;
        --lp-nav-bg: rgba(255, 255, 255, 0.88);
        --lp-nav-border: rgba(0, 0, 0, 0.06);
        --lp-badge-bg: rgba(108, 92, 231, 0.08);
        --lp-badge-border: rgba(108, 92, 231, 0.25);
        --lp-badge-text: #6C5CE7;
        --lp-table-header-bg: rgba(108, 92, 231, 0.08);
        --lp-table-row-alt: rgba(0, 0, 0, 0.02);
        --lp-table-border: rgba(0, 0, 0, 0.08);
        --lp-faq-bg: rgba(255, 255, 255, 0.7);
        --lp-faq-border: rgba(0, 0, 0, 0.08);
        --lp-footer-bg: rgba(30, 30, 50, 0.97);
        --lp-footer-border: rgba(255, 255, 255, 0.06);
    }
}

/* ========== BASE / RESET ========== */
.landing-page * {
    box-sizing: border-box;
}

.landing-page {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--lp-text);
}

/* ========== NAVIGATION ========== */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    height: 72px;
    background: var(--lp-nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--lp-nav-border);
    transition: all 0.3s ease;
}

.landing-nav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.landing-nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--lp-accent);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: inline-block;
    margin-top: 8px;
}

.landing-nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-nav-link {
    color: var(--lp-text-secondary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
    display: inline-block;
    margin-top: 8px; /* Корректировка для выравнивания с кнопкой Войти */
}

.landing-nav-link:hover {
    color: var(--lp-accent-light);
}

/* ========== SECTIONS COMMON ========== */
.landing-section {
    padding: 6rem 2rem;
    width: 100%;
}

.landing-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.landing-section:nth-child(odd) {
    /* background: var(--lp-section-bg); removed to show dynamic canvas */
}

.landing-section:nth-child(even) {
    /* background: var(--lp-section-bg-alt); removed to show dynamic canvas */
}

.landing-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--lp-heading);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.landing-section-subtitle {
    font-size: 1.15rem;
    color: var(--lp-text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 84px;
    background: transparent !important;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--lp-heading);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span,
.landing-section-title span,
.cta-title span {
    background: var(--lp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--lp-text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-cta-primary,
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: var(--lp-gradient);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.35);
    width: 245px; /* Увеличено до 245px, чтобы текст точно помещался в одну строку */
    white-space: nowrap; /* Принудительно в одну строку */
    border: none;
}

.hero-cta-primary:hover,
.hero-cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(108, 92, 231, 0.5);
    color: #fff;
}

.hero-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: var(--lp-badge-bg);
    border: 1px solid var(--lp-badge-border);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--lp-badge-text);
    white-space: nowrap;
}

.hero-screenshot {
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid var(--lp-card-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-top: 1rem;
}

/* ========== PAIN POINTS ========== */
.pain-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pain-card {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-card-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.pain-card:hover {
    border-color: var(--lp-card-hover-border);
    transform: translateY(-4px);
    box-shadow: var(--lp-card-shadow);
}

.pain-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.pain-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lp-heading);
    margin-bottom: 0.5rem;
}

.pain-card-text {
    font-size: 0.95rem;
    color: var(--lp-text-secondary);
    line-height: 1.65;
}

/* ========== FEATURES / SOLUTION ========== */
.features-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-card-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--lp-card-hover-border);
    transform: translateY(-4px);
    box-shadow: var(--lp-card-shadow);
}

.feature-card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.feature-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lp-heading);
    margin-bottom: 0.75rem;
}

.feature-card-desc {
    font-size: 0.9rem;
    color: var(--lp-text-secondary);
    margin-bottom: 1rem;
}

.feature-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}

.feature-card-list li {
    font-size: 0.88rem;
    color: var(--lp-text);
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.feature-card-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--lp-accent);
    font-weight: 700;
}

.feature-card-list li strong {
    color: var(--lp-heading);
}

.feature-card-screenshot {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--lp-card-border);
    margin-top: auto;
}

/* ========== MODULES TABLE ========== */
.modules-table-wrap {
    overflow-x: auto;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--lp-table-border);
}

.modules-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.modules-table th {
    background: var(--lp-table-header-bg);
    color: var(--lp-heading);
    font-weight: 600;
    padding: 1rem 1.25rem;
    text-align: left;
    white-space: nowrap;
}

.modules-table td {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--lp-table-border);
    color: var(--lp-text);
    vertical-align: top;
}

.modules-table tr:nth-child(even) td {
    background: var(--lp-table-row-alt);
}

.modules-table .module-icon {
    margin-right: 0.4rem;
}

.modules-extras {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.module-extra-card {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-card-border);
    border-radius: 12px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.module-extra-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lp-heading);
    margin: 0 0 0.4rem 0;
}

.module-extra-card p {
    font-size: 0.88rem;
    color: var(--lp-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ========== QUICK START TIMELINE ========== */
.quickstart-timeline {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
}

.quickstart-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--lp-card-border);
}

.quickstart-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.quickstart-step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--lp-gradient);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.quickstart-step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lp-heading);
    margin: 0.3rem 0 0.35rem 0;
}

.quickstart-step-content p {
    font-size: 0.92rem;
    color: var(--lp-text-secondary);
    margin: 0;
    line-height: 1.55;
}

/* ========== STATS / METRICS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem 1rem;
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-card-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 110px; /* Высота уменьшена в 1.5 раза */
}

.stat-item:hover {
    border-color: var(--lp-card-hover-border);
    transform: translateY(-4px);
    box-shadow: var(--lp-card-shadow);
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--lp-accent);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--lp-text-secondary);
    line-height: 1.35;
}

/* ========== FAQ ACCORDION ========== */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--lp-faq-border);
    border-radius: 12px;
    background: var(--lp-faq-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--lp-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--lp-text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    color: var(--lp-accent);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: 0.95rem;
    color: var(--lp-text-secondary);
    line-height: 1.7;
}

/* ========== CTA SECTION ========== */
.cta-section {
    text-align: center;
    background: transparent !important;
    position: relative;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--lp-heading);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: var(--lp-text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 3rem;
    background: var(--lp-gradient);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(108, 92, 231, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(108, 92, 231, 0.55);
}

.cta-note {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--lp-text-muted);
    letter-spacing: 0.5px;
}

/* ========== ICEBERG DIVIDER ========== */
.iceberg-divider {
    position: relative;
    height: 120px;
    background: var(--lp-section-bg);
    overflow: hidden;
}

.iceberg-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
}

.iceberg-label {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lp-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ========== ENGINEERING SECTION ========== */
.engineering-section {
    background: #0d1117 !important;
    color: #c9d1d9;
    padding: 5rem 2rem 4rem;
}

.engineering-section .landing-section-title {
    color: #e6edf3;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 2rem;
}

.engineering-section .landing-section-subtitle {
    color: #8b949e;
}

.eng-subsection {
    margin-bottom: 3.5rem;
}

.eng-subsection-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.eng-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #58a6ff;
    margin-bottom: 0.75rem;
}

.eng-text {
    font-size: 0.95rem;
    color: #8b949e;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.eng-text strong {
    color: #c9d1d9;
}

.eng-code {
    background: #161b22;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 0 0 1.25rem 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 1.65;
    color: #c9d1d9;
    white-space: pre;
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
}

.eng-code .comment {
    color: #6e7681;
}

.eng-code .keyword {
    color: #ff7b72;
}

.eng-code .string {
    color: #a5d6ff;
}

.eng-code .function {
    color: #d2a8ff;
}

.eng-code .accent {
    color: #58a6ff;
}

.eng-code .success {
    color: #3fb950;
}

.eng-code .warn {
    color: #d29922;
}

.eng-highlight {
    background: rgba(88, 166, 255, 0.06);
    border-left: 3px solid #58a6ff;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.92rem;
    color: #c9d1d9;
    line-height: 1.6;
}

.eng-highlight strong {
    color: #58a6ff;
}

.eng-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}

.eng-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.eng-table th {
    background: rgba(88, 166, 255, 0.08);
    color: #e6edf3;
    font-weight: 600;
    padding: 0.85rem 1rem;
    text-align: left;
    white-space: nowrap;
}

.eng-table td {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    color: #c9d1d9;
    vertical-align: top;
}

.eng-table tr:nth-child(even) td {
    background: rgba(255,255,255,0.02);
}

.eng-table td strong {
    color: #58a6ff;
}

.eng-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.eng-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #58a6ff;
    font-family: 'JetBrains Mono', monospace;
}

/* ========== FOOTER ========== */
.landing-footer {
    background: var(--lp-footer-bg);
    border-top: 1px solid var(--lp-footer-border);
    padding: 2.5rem 2rem;
    text-align: center;
}

.engineering-section + .landing-footer {
    background: #010409;
}

.landing-footer-text {
    font-size: 0.85rem;
    color: #8b949e;
    line-height: 1.8;
}

.landing-footer-text a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.2s;
}

.landing-footer-text a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .features-cards {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modules-extras {
        grid-template-columns: 1fr;
    }

    .landing-nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .landing-section {
        padding: 4rem 1.25rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .landing-section-title {
        font-size: 1.8rem;
    }

    .landing-section-subtitle {
        font-size: 1rem;
    }

    .pain-cards {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .eng-code {
        font-size: 0.72rem;
    }

    .engineering-section .landing-section-title {
        font-size: 1.5rem;
    }

    .quickstart-timeline::before {
        left: 22px;
    }

    .quickstart-step-number {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .landing-nav {
        padding: 0 1rem;
    }
}

/* ========== LIGHTBOX OVERLAY ========== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 25, 0.85); /* Глубокий темный фон */
    backdrop-filter: blur(12px); /* Плавный glassmorphic блюр */
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    width: 90vw;
    height: 90vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

/* ========== MODAL WINDOWS ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #151b23; /* Dark background matching the page */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 90%;
    color: #c9d1d9;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #8b949e;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #58a6ff;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 0.75rem;
    text-align: center;
}

.modal-desc {
    font-size: 0.92rem;
    color: #8b949e;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Forms & Inputs inside modal */
.modern-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c9d1d9;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    outline: none;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.modern-input:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.15);
}

.modern-btn {
    background: linear-gradient(135deg, #6c5ce7, #8c7ae6);
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.45);
    filter: brightness(1.1);
}

.modern-btn:active {
    transform: translateY(0);
}

/* Inline loader */
.loader-inline {
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid #58a6ff;
    border-radius: 50%;
    animation: spin-modal 1s linear infinite;
}

@keyframes spin-modal {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#login-qr-code {
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    margin: 20px auto;
}
#login-qr-code canvas {
    display: none;
}
#login-qr-code img {
    display: block;
    width: 200px;
    height: 200px;
}


