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

::selection {
    background: rgba(90, 97, 108, 0.3);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5a616c, #3a4048);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a4048;
}

:root {
    --bg: #d5d9e0;
    --bg-card: #eceef2;
    --bg-card-hover: #e2e5eb;
    --text: #22262e;
    --text-muted: #5c626e;
    --accent: #3a4048;
    --accent-light: #2e333b;
    --accent-glow: #4c5562;
    --gradient: linear-gradient(135deg, #5a616c, #3a4048, #2e333b);
    --gradient-light: linear-gradient(135deg, #3a4048, #2e333b);
    --border: #bec4ce;
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* VISIT BEACON */
.visit-beacon {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    background: rgba(213, 217, 224, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: 42px;
    object-fit: contain;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(90, 97, 108, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3.2s infinite;
}

@keyframes shimmer {
    0% { left: -80%; }
    60%, 100% { left: 130%; }
}

.btn-primary:hover {
    background: var(--gradient-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(58, 64, 72, 0.45);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent-light);
    background: rgba(58, 64, 72, 0.08);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 12px;
}

.btn-nav {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(58, 64, 72, 0.1);
    border: 1px solid rgba(58, 64, 72, 0.25);
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.word-cycle::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #5a616c;
    margin-left: 6px;
    vertical-align: baseline;
    animation: blink 0.8s step-end infinite;
}

.word-in {
    animation: wordIn 0.5s ease;
}

@keyframes wordIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes blink {
    50% { opacity: 0; }
}

/* PAPER PLANES */
.paper-plane {
    position: absolute;
    font-size: 1.6rem;
    opacity: 0.25;
    z-index: 1;
    animation: fly linear infinite;
    pointer-events: none;
}

.paper-plane-1 {
    top: 18%;
    left: 10%;
    animation-duration: 14s;
    animation-delay: 0s;
}

.paper-plane-2 {
    top: 70%;
    right: 12%;
    animation-duration: 18s;
    animation-delay: 3s;
}

@keyframes fly {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    5% { opacity: 0.25; }
    30% { transform: translate(120px, -90px) rotate(15deg); }
    60% { transform: translate(240px, -160px) rotate(-10deg); }
    90% { transform: translate(380px, -250px) rotate(20deg); opacity: 0.25; }
    100% {
        transform: translate(520px, -320px) rotate(30deg);
        opacity: 0;
    }
}

/* PARTICLES */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(90, 97, 108, 0.45);
    border-radius: 50%;
    bottom: -10px;
    animation: rise linear infinite;
}

@keyframes rise {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% { opacity: 0.5; }
    100% {
        transform: translateY(-110vh);
        opacity: 0;
    }
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    gap: 64px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #5a616c, #3a4048);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(76, 85, 98, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}

/* SECTIONS */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* FEATURES GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(58, 64, 72, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(90, 97, 108, 0.15);
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.18) rotate(-8deg);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

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

/* PRIVACY BLOCK */
.privacy-block {
    display: flex;
    align-items: center;
    gap: 80px;
}

.privacy-text {
    flex: 1;
}

.privacy-text h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.privacy-text > p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.privacy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.privacy-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
}

.check {
    color: #2e7d4f;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.privacy-visual {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-icon {
    font-size: 5rem;
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.shield-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(58, 64, 72, 0.2);
}

.ring-1 {
    width: 160px;
    height: 160px;
    animation: spin 10s linear infinite;
    border-top-color: rgba(58, 64, 72, 0.5);
}

.ring-2 {
    width: 220px;
    height: 220px;
    animation: spin 15s linear infinite reverse;
    border-right-color: rgba(90, 97, 108, 0.4);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* DOWNLOAD GRID */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.download-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.download-card:hover::after {
    transform: translateX(0);
}

.download-card:hover {
    border-color: rgba(58, 64, 72, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(90, 97, 108, 0.15);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: inline-block;
    transition: transform 0.3s;
}

.download-card:hover .download-icon {
    transform: translateY(-4px) scale(1.1);
}

.download-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.download-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.btn-dev {
    background: rgba(20, 24, 48, 0.6);
    color: var(--text-muted);
    border: 1px dashed var(--border);
    cursor: default;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.download-dev {
    opacity: 0.5;
}

.download-dev:hover {
    transform: none;
    box-shadow: none;
}

.download-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 24px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: rgba(90, 97, 108, 0.05);
}

/* TICKER */
.ticker {
    background: var(--gradient);
    overflow: hidden;
    padding: 14px 0;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerMove 120s linear infinite;
}

.ticker-set {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-right: 32px;
    white-space: nowrap;
}

.ticker-track span {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

.ticker-track .dot {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0;
    animation: none;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes tickerMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* CTA */
.cta {
    padding: 110px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg), rgba(236, 238, 242, 0.5), var(--bg));
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-plane {
    font-size: 3.4rem;
    margin-bottom: 24px;
    display: inline-block;
    animation: planeFloat 3s ease-in-out infinite;
}

@keyframes planeFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-14px) rotate(5deg); }
}

.cta h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

.cta::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(90, 97, 108, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 5s ease-in-out infinite;
}

/* TO TOP BUTTON */
.to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: var(--gradient);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 90;
    box-shadow: 0 6px 20px rgba(46, 51, 59, 0.35);
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(46, 51, 59, 0.45);
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 16px;
}

.logo-img-footer {
    height: 52px;
    width: 52px;
    object-fit: contain;
    border-radius: 12px;
}

.footer-qr {
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.qr-link {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.qr-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46, 51, 59, 0.15);
}

.qr-img {
    display: block;
    width: 140px;
    height: 140px;
}

.qr-caption {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* BURGER MENU */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.3s;
}

.burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .container {
        max-width: none;
        padding: 0 20px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 7vw, 3.4rem);
    }

    .section {
        padding: 80px 0;
    }

    .section-header h2,
    .cta h2 {
        font-size: 2.2rem;
    }

    .privacy-block {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .btn-nav {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 4px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
        z-index: 99;
        box-shadow: 0 16px 30px rgba(46, 51, 59, 0.12);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        display: block;
        padding: 14px 8px;
        border-radius: var(--radius-sm);
        font-size: 1.1rem;
    }

    .nav-links a:hover {
        background: var(--bg-card-hover);
    }

    .hero {
        min-height: auto;
        padding: 130px 20px 64px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-desc {
        font-size: 1.05rem;
    }

    .hero-stats {
        gap: 28px;
    }

    .stat-number {
        font-size: 1.7rem;
    }

    .privacy-block {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .privacy-list {
        align-items: center;
        text-align: left;
    }

    .privacy-list li {
        justify-content: flex-start;
    }

    .section-header h2,
    .cta h2 {
        font-size: 1.9rem;
    }

    .download-note {
        padding: 18px;
    }

    .footer-links {
        gap: 16px;
    }

    .footer-links a {
        font-size: 0.82rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 7px 16px;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 8.5vw, 2.4rem);
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-buttons {
        gap: 12px;
    }

    .btn-lg {
        width: 100%;
        max-width: 340px;
        padding: 14px 20px;
    }

    .hero-stats {
        gap: 20px;
        justify-content: space-around;
        width: 100%;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 28px 22px;
    }

    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header p {
        font-size: 1rem;
    }

    .privacy-text h2 {
        font-size: 1.8rem;
    }

    .privacy-list li {
        font-size: 0.95rem;
    }

    .download-grid {
        gap: 16px;
    }

    .download-card {
        padding: 28px 18px;
    }

    .to-top {
        bottom: 18px;
        right: 18px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .logo-img {
        height: 36px;
        width: 36px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .cta h2 {
        font-size: 1.6rem;
    }

    .ticker-track span {
        font-size: 0.9rem;
    }
}

/* Высокие экраны и большое разрешение */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    }

    .section {
        padding: 120px 0;
    }
}

/* Снижение движения для пользователей с настройкой */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
