@font-face {
    font-family: 'CustomRegular';
    src: url('./static/Regular.ttf') format('truetype');
    font-weight: normal;
}
@font-face {
    font-family: 'CustomBold';
    src: url('./static/Bold.ttf') format('truetype');
    font-weight: bold;
}

:root {
    --primary: #54D9A5;
    --primary-glow: rgba(84, 217, 165, 0.4);
    --bg-dark: #050505;
    --text-main: #ffffff;
    --text-muted: #888888;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'CustomRegular', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.background-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    transition: transform 0.1s ease-out; 
    will-change: transform;
}
.blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px; left: -100px;
}
.blob-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #2a5c45 0%, transparent 70%);
    bottom: -100px; right: -100px;
}

.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 30px 50px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(5,5,5,0.9), transparent);
    pointer-events: none;
}
.header > * { pointer-events: auto; }

.logo {
    font-family: 'CustomBold', sans-serif;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    cursor: default;
    position: relative;
    color: white;
}
.logo span { color: var(--primary); }

.glitch-wrapper:hover {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: var(--primary);
}
.glitch-wrapper:hover span {
    color: white;
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(-2deg); }
    40% { transform: skew(2deg); }
    60% { transform: skew(-1deg); }
    80% { transform: skew(1deg); }
    100% { transform: skew(0deg); }
}

.author-sign {
    font-family: 'CustomRegular', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}
.author-sign:hover { color: var(--primary); }

.main-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 20px 40px;
}
.container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    gap: 60px;
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.visual-side {
    flex: 1.2;
    display: flex;
    justify-content: center;
}
.screenshot-frame {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 970 / 720;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.4s ease, border-color 0.4s ease;
    -webkit-user-drag: none;
}
.screenshot-frame:hover {
    transform: scale(1.02);
    border-color: rgba(84, 217, 165, 0.3);
}
.screenshot-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.screenshot-frame img.visible { opacity: 1; }

.content-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-title {
    font-family: 'CustomBold', sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.title-top { color: #ffffff; font-size: 0.8em; opacity: 0.9; }
.title-bottom {
    background: linear-gradient(90deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(84, 217, 165, 0.3));
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 450px;
}

.download-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}
.action-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.action-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}
.action-card:hover {
    background: rgba(84, 217, 165, 0.05);
    border-color: rgba(84, 217, 165, 0.3);
    transform: translateX(5px);
}
.action-card:hover::before { transform: scaleY(1); }
.action-card:active {
    transform: scale(0.97) translateX(2px);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.icon-box {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-right: 15px;
    color: var(--primary);
}
.text-box h3 { font-size: 1rem; margin-bottom: 2px; font-family: 'CustomBold'; }
.text-box span { font-size: 0.8rem; color: var(--text-muted); }
.arrow { margin-left: auto; color: var(--primary); opacity: 0; transform: translateX(-10px); transition: all 0.3s ease; }
.action-card:hover .arrow { opacity: 1; transform: translateX(0); }

.links-row { display: flex; gap: 20px; margin-top: 5px; }
.social-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted); text-decoration: none;
    font-size: 0.95rem; transition: all 0.3s ease;
}
.social-link svg { transition: transform 0.3s; }
.social-link:hover { color: var(--primary); }
.social-link:hover svg { transform: translateY(-2px); }
.social-link.telegram:hover { color: #2AABEE; text-shadow: 0 0 10px rgba(42, 171, 238, 0.4); }

.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 15px; width: 100%; max-width: 450px; margin-top: 15px;
}
.stat-card {
    background: var(--glass); border: 1px solid var(--border);
    padding: 15px 10px; border-radius: 12px; text-align: center;
    backdrop-filter: blur(5px); transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px); border-color: var(--primary);
    background: rgba(84, 217, 165, 0.05);
    box-shadow: 0 10px 20px -5px rgba(84, 217, 165, 0.15);
}
.stat-card .num {
    font-family: 'CustomBold'; font-size: 1.8rem;
    color: var(--primary); display: block; line-height: 1;
    margin-bottom: 5px; text-shadow: 0 0 15px rgba(84, 217, 165, 0.2);
}
.stat-card .lbl {
    font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
}

.seo-footer {
    position: fixed;
    bottom: 5px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.03); 
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

@media (max-width: 900px) {
    .container { flex-direction: column-reverse; text-align: center; gap: 40px; }
    .content-side { align-items: center; }
    .download-stack { width: 100%; max-width: 400px; }
    .stats-grid { margin: 0 auto; }
    .links-row { justify-content: center; }
    .main-title { font-size: 2.5rem; align-items: center; }
    .header { padding: 20px; }
}
@media (max-width: 480px) {
    .main-title { font-size: 2rem; }
    .action-card { padding: 12px 15px; }
    .icon-box { width: 32px; height: 32px; margin-right: 10px; }
    .stats-grid { gap: 10px; }
    .stat-card .num { font-size: 1.4rem; }
    .author-sign { display: none; }
}