/* =========================================
   Базовые настройки и переменные
   ========================================= */
:root {
    --bg-dark: #050508;
    --bg-card: rgba(20, 21, 26, 0.7);
    --bg-nav: rgba(10, 11, 15, 0.6);
    --green-primary: #2ea85d;
    --green-light: #6ef093;
    --green-glow: rgba(46, 168, 93, 0.4);
    --text-main: #f8f9fa;
    --text-muted: #9ba1a6;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Декоративные свечения на фоне */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}
.bg-glow-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 168, 93, 0.15) 0%, transparent 70%);
}
.bg-glow-2 {
    top: 40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(46, 168, 93, 0.08) 0%, transparent 70%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s var(--transition-smooth);
}

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

/* =========================================
   Анимация появления (Scroll Reveal)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--transition-smooth), transform 1s var(--transition-smooth);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Шапка (Glassmorphism)
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-light);
    transition: 0.3s var(--transition-smooth);
    border-radius: 2px;
}

nav a:hover {
    color: var(--text-main);
}
nav a:hover::after {
    width: 100%;
}

/* =========================================
   Кнопки
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-primary), #1e7a40);
    color: #fff;
    box-shadow: 0 4px 20px var(--green-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px var(--green-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 17px;
    gap: 12px;
}

/* =========================================
   Главная секция (Hero)
   ========================================= */
.hero {
    padding: 180px 0 120px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 168, 93, 0.1);
    color: var(--green-light);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 32px;
    border: 1px solid rgba(110, 240, 147, 0.2);
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green-light);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(110, 240, 147, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(110, 240, 147, 0); }
    100% { box-shadow: 0 0 0 0 rgba(110, 240, 147, 0); }
}

.hero-text h1 {
    font-size: 72px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 48px;
    line-height: 1.5;
}

.hero-subtitle strong {
    color: var(--text-main);
    font-weight: 600;
    position: relative;
}

.hero-subtitle strong::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--green-primary);
    opacity: 0.3;
    border-radius: 2px;
    z-index: -1;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================================
   Макет iPhone (3D + Свечение)
   ========================================= */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.iphone-mockup {
    width: 320px;
    height: 660px; 
    background: #000;
    border-radius: 50px;
    padding: 8px; 
    box-shadow: 
        0 0 0 2px #333,
        0 0 0 8px #111,
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 80px var(--green-glow);
    position: relative;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.8s var(--transition-smooth), box-shadow 0.8s var(--transition-smooth);
}

.iphone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
    box-shadow: 
        0 0 0 2px #444,
        0 0 0 8px #111,
        0 40px 80px rgba(0, 0, 0, 0.9),
        0 0 120px var(--green-glow);
}

/* Динамический остров (Dynamic Island) */
.iphone-mockup::before {
    content: '';
    position: absolute;
    top: 20px; 
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
    box-shadow: inset 0 0 4px rgba(255,255,255,0.1);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 42px;
    overflow: hidden;
    position: relative;
}

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   Секция безопасности
   ========================================= */
.security-section {
    padding: 120px 0;
    position: relative;
}

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

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 48px 36px;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    transition: all 0.5s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(46, 168, 93, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    border-color: rgba(110, 240, 147, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 24px;
    background: rgba(46, 168, 93, 0.1);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(110, 240, 147, 0.1);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 16px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* =========================================
   Секция скачивания
   ========================================= */
.download-section {
    padding: 100px 0 140px;
}

.download-card {
    background: linear-gradient(180deg, rgba(20, 21, 26, 0.8) 0%, rgba(10, 11, 15, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.download-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green-light), transparent);
    opacity: 0.5;
}

.download-card h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

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

.glow-btn {
    box-shadow: 0 0 40px rgba(46, 168, 93, 0.4);
    animation: pulse-shadow 3s infinite;
}

@keyframes pulse-shadow {
    0% { box-shadow: 0 0 20px rgba(46, 168, 93, 0.3); }
    50% { box-shadow: 0 0 50px rgba(46, 168, 93, 0.6); }
    100% { box-shadow: 0 0 20px rgba(46, 168, 93, 0.3); }
}

.small-note {
    font-size: 14px;
    margin-top: 24px;
    opacity: 0.6;
}

.small-note a {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.3);
    text-underline-offset: 4px;
}

.small-note a:hover {
    text-decoration-color: var(--green-light);
    color: var(--green-light);
}

/* =========================================
   Политика конфиденциальности
   ========================================= */
.privacy-page {
    padding: 180px 0 100px;
}

.privacy-header {
    text-align: center;
    margin-bottom: 60px;
}

.privacy-page h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.last-updated {
    color: var(--green-light);
    font-size: 15px;
    font-weight: 500;
    background: rgba(46, 168, 93, 0.1);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
}

.privacy-content {
    background: var(--bg-card);
    padding: 60px;
    border-radius: 32px;
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.privacy-content h2 {
    font-size: 26px;
    color: var(--text-main);
    margin-top: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.privacy-content h2::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--green-primary);
    border-radius: 2px;
}

.privacy-content h2:first-child {
    margin-top: 0;
}

.privacy-content p, .privacy-content li {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.7;
}

.privacy-content ul {
    padding-left: 24px;
    margin-bottom: 24px;
}

.privacy-content li::marker {
    color: var(--green-primary);
}

.privacy-content strong {
    color: var(--text-main);
    font-weight: 600;
}

/* =========================================
   Подвал
   ========================================= */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: rgba(5, 6, 9, 0.8);
    backdrop-filter: blur(10px);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 15px;
}

.footer-links a {
    color: var(--text-muted);
    margin-left: 24px;
    font-weight: 500;
}

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

/* =========================================
   Адаптивность (Mobile & Tablet)
   ========================================= */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 56px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .iphone-mockup { width: 280px; height: 580px; }
}

@media (max-width: 768px) {
    .header-inner nav { display: none; }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-text h1 { font-size: 44px; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    
    .iphone-mockup {
        transform: none;
        width: 300px;
        height: 620px;
    }
    
    .features-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 36px; }
    
    .privacy-page { padding: 140px 0 60px; }
    .privacy-page h1 { font-size: 36px; }
    .privacy-content { padding: 30px 20px; border-radius: 24px; }
    
    .download-card { padding: 60px 24px; border-radius: 32px; }
    .download-card h2 { font-size: 36px; }
    
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-links a { margin: 0 12px; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 36px; }
    .btn-large { width: 100%; }
    .hero-actions { flex-direction: column; }
    .iphone-mockup { width: 260px; height: 540px; }
<script>
    document.querySelectorAll('.feature-card').forEach(card => {
        card.addEventListener('mousemove', e => {
            const rect = card.getBoundingClientRect();
            const x = e.clientX - rect.left;
            const y = e.clientY - rect.top;
            card.style.setProperty('--mouse-x', `${x}px`);
            card.style.setProperty('--mouse-y', `${y}px`);
        });
    });
</script>
}