/* Базовые сбросы и настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    background-color: #050914;
    color: #f1f5f9;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Вспомогательные классы утилиты */
.hidden {
    display: none !important;
}

.w-full {
    width: 100%;
}

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Background Layer */
.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-color: #050914;
    background-image: 
        radial-gradient(circle at center, rgba(5, 9, 20, 0.3) 0%, rgba(5, 9, 20, 0.85) 100%),
        linear-gradient(180deg, 
            rgba(5, 9, 20, 0.5) 0%, 
            rgba(5, 9, 20, 0.7) 50%, 
            rgba(5, 9, 20, 0.95) 100%
        ),
        url('bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Glassmorphism styling */
.glass-panel {
    background: linear-gradient(135deg, rgba(12, 20, 38, 0.75) 0%, rgba(6, 11, 24, 0.85) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.18);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(0, 210, 255, 0.4);
}

/* Glow Boxes */
.glow-box, .about-icon-badge, .feature-icon, .modal-icon-box {
    background: rgba(0, 162, 255, 0.08);
    border: 1px solid rgba(0, 162, 255, 0.3);
    box-shadow: inset 0 0 15px rgba(0, 162, 255, 0.15);
}

/* Кнопки */
.btn-glow {
    background: linear-gradient(135deg, #0084d6 0%, #00a2ff 50%, #00d2ff 100%);
    box-shadow: 0 4px 20px rgba(0, 162, 255, 0.4);
    color: #fff;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 6px 28px rgba(0, 210, 255, 0.7);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Header & Navbar */
.navbar {
    position: relative;
    z-index: 50;
    backdrop-filter: blur(12px);
    background-color: rgba(5, 9, 20, 0.75);
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
    flex-shrink: 0;
}

.navbar-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-box {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom right, #00a2ff, #38bdf8);
    padding: 1px;
    box-shadow: 0 0 25px -5px rgba(0, 162, 255, 0.5);
    transition: transform 0.2s ease;
}

.brand-logo:hover .logo-box {
    transform: scale(1.05);
}

.logo-inner {
    width: 100%;
    height: 100%;
    background-color: #050914;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 900;
    background: linear-gradient(to right, #38bdf8, #00d2ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
}

.brand-name {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.brand-logo:hover .brand-name {
    color: #38bdf8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00a2ff;
    border-radius: 9999px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    background-color: rgba(5, 9, 20, 0.95);
    border-bottom: 1px solid #1e293b;
    padding: 0.5rem 1rem 1rem 1rem;
}

.mobile-menu a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.mobile-menu a:hover {
    color: #38bdf8;
}

/* Main Layout */
.main-content {
    position: relative;
    z-index: 10;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0;
    overflow: visible;
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-header {
    max-width: 48rem;
}

.tags-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #38bdf8;
    text-transform: uppercase;
    background: rgba(5, 9, 20, 0.4);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 162, 255, 0.2);
    backdrop-filter: blur(4px);
}

.tags-badge .dot {
    color: #00a2ff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.6;
    max-width: 42rem;
}

.actions-group {
    padding-top: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.meta-info {
    font-size: 0.75rem;
    color: #94a3b8;
    padding-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.status-active {
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pulse-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: #34d399;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Card: About */
.about-wrapper {
    padding-top: 0.5rem;
}

.card-about {
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 10px 30px -10px rgba(0, 162, 255, 0.15);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-icon-badge {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.badge-glow {
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: rgba(0, 162, 255, 0.2);
    filter: blur(8px);
    transition: all 0.3s;
}

.about-icon-badge:hover .badge-glow {
    background: rgba(0, 162, 255, 0.35);
}

.badge-text {
    font-size: 1.875rem;
    font-weight: 900;
    background: linear-gradient(to bottom right, #fff, #bae6ff, #38bdf8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 10;
}

.about-text h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.about-text p {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.about-text strong {
    color: #fff;
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.card-feature {
    border-radius: 0.75rem;
    padding: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.card-feature:hover {
    transform: translateY(-2px);
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon .ui-icon {
    color: #38bdf8;
    font-size: 1.125rem;
}

.feature-text h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.2s;
}

.card-feature:hover .feature-text h3 {
    color: #38bdf8;
}

.feature-text p {
    color: #94a3b8;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 0.25rem;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(30, 41, 59, 0.8);
    background-color: rgba(5, 9, 20, 0.9);
    padding: 0.75rem 0;
    position: relative;
    z-index: 10;
    font-size: 0.75rem;
    color: #94a3b8;
    backdrop-filter: blur(12px);
    flex-shrink: 0;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.dot, .dash {
    color: #475569;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    width: 100%;
    max-width: 28rem;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(0, 162, 255, 0.3);
    box-shadow: 0 0 25px -5px rgba(0, 162, 255, 0.5);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-icon-box {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-box .ui-icon {
    color: #38bdf8;
    font-size: 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.modal-header p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.progress-container {
    margin-bottom: 1rem;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.progress-track {
    width: 100%;
    height: 0.5rem;
    background-color: #1e293b;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #00a2ff, #00d2ff);
    width: 0%;
    transition: width 0.2s ease;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.disclaimer {
    font-size: 0.6875rem;
    text-align: center;
    color: #64748b;
}

.success-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.success-message {
    color: #34d399;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.success-container p {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(0, 162, 255, 0.4);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transform: translateY(5rem);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast .ui-icon {
    color: #38bdf8;
}

/* Медиазапросы для адаптива */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
/* Production readiness: real download link, scrollable layout and SVG icons. */
.ui-icon { display: inline-block; width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.14em; }
.feature-icon .ui-icon { color: #38bdf8; width: 1.2rem; height: 1.2rem; }
.modal-icon-box .ui-icon { color: #38bdf8; width: 1.6rem; height: 1.6rem; }
.mobile-menu-btn .ui-icon { width: 1.5rem; height: 1.5rem; }
.modal-close-btn .ui-icon { width: 1.2rem; height: 1.2rem; }
.btn-glow { text-decoration: none; }
.btn-glow:focus-visible, .btn-secondary:focus-visible, .nav-link:focus-visible,
.mobile-menu-btn:focus-visible, .modal-close-btn:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }
.download-error { color: #ffb4b4; font-size: .75rem; line-height: 1.5; text-align: center; }
.hero-section, .about-wrapper, .features-grid { scroll-margin-top: 5rem; }

.build-page { scroll-margin-top: 5rem; }
.build-shell { max-width: 62rem; }
.build-home {
    display: inline-block;
    color: #a5e8f9;
    font-size: .9rem;
    margin-bottom: 1rem;
    text-decoration: none;
}
.build-home:hover, .build-home:focus-visible { text-decoration: underline; }
.build-page h1 {
    color: #eef7ff;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin: 0 0 .45rem;
    overflow-wrap: anywhere;
}
.build-meta {
    color: #a8b7c9;
    margin: 0 0 1.25rem;
    overflow-wrap: anywhere;
}
.build-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin: 0 0 1.4rem;
}
.build-totals > div, .build-group {
    background: #101a28;
    border: 1px solid #26384b;
    border-radius: .65rem;
    padding: .8rem 1rem;
}
.build-totals dt { color: #a8b7c9; font-size: .84rem; }
.build-totals dd {
    color: #83e0f6;
    font-size: 1.35rem;
    font-weight: 700;
    margin: .25rem 0 0;
}
.build-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.build-column { min-width: 0; }
.build-column h2 { font-size: 1.15rem; margin: 0 0 .6rem; color: #eef7ff; }
.build-group { margin: 0 0 .65rem; }
.build-group h3 {
    color: #a5e8f9;
    font-size: .88rem;
    margin: 0 0 .3rem;
    overflow-wrap: anywhere;
}
.build-ranks { list-style: none; margin: 0; padding: 0; }
.build-ranks li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: .65rem;
    border-top: 1px solid #26384b;
    color: #edf4fd;
    padding: .45rem 0;
    overflow-wrap: anywhere;
}
.build-rank { color: #a8bdd2; font-size: .9rem; font-variant-numeric: tabular-nums; align-self: center; }
@media (max-width: 39rem) {
    .build-columns { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
}
.meta-info { flex-wrap: wrap; }
.footer-info { flex-wrap: wrap; }
@media (max-width: 768px) {
    .main-content { padding: 2rem 0; }
    .tags-badge { flex-wrap: wrap; line-height: 1.5; }
    .footer-container { gap: 0.75rem; }
    .features-grid { margin-bottom: 0.5rem; }
}
@media (max-width: 420px) {
    .hero-title { font-size: 2rem; }
    .actions-group > * { max-width: 100%; }
    .tags-badge { letter-spacing: .045em; font-size: .66rem; }
    .about-content { gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

.download-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
