/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #007AFF;
    --primary-dark: #0051D5;
    --secondary: #5856D6;
    --accent: #FF3B30;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --bg-dark: #000000;
    --gradient-start: #007AFF;
    --gradient-end: #5856D6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius: 16px;
    --radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
}

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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 768px) {
    .nav-content {
        padding: 12px 0;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo svg {
    display: block;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
    flex-shrink: 0;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        gap: 0;
        padding: 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
        transition: all 0.2s ease;
        text-align: left;
        width: 100%;
    }
    
    .nav-links a:active,
    .nav-links a:hover {
        background: rgba(0, 122, 255, 0.1);
        color: var(--primary);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero .container {
    display: block;
}

@media (min-width: 1200px) {
    .hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
        max-width: 1200px;
        width: 100%;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.05;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero-content {
    max-width: 100%;
    z-index: 1;
    text-align: left;
}

@media (min-width: 768px) {
    .hero-content {
        text-align: left;
    }
}

@media (min-width: 1200px) {
    .hero-content {
        max-width: 100%;
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-badge svg {
    display: inline-block;
}

.hero-title {
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 100%;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
        padding: 0 8px;
    }
}

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

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-dark);
    color: white;
    border-color: var(--bg-dark);
}

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

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

.stat {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-stats {
        justify-content: flex-start;
    }
    
    .stat {
        text-align: left;
    }
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-phone {
    display: none;
}

@media (min-width: 1200px) {
    .hero-phone {
        display: flex;
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 100%;
        margin: 0;
        opacity: 1;
        align-items: center;
        justify-content: center;
    }
    
    .phone-mockup {
        max-width: 450px;
        width: 100%;
    }
}

.phone-mockup {
    position: relative;
    animation: float 6s ease-in-out infinite;
    width: 100%;
}

.phone-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 25px 80px rgba(0, 0, 0, 0.4));
    object-fit: contain;
}

@media (min-width: 1200px) {
    .phone-image {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    .hero-content {
        text-align: left;
        margin: 0;
    }
    
    .stat {
        text-align: left;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
    
    .hero-buttons {
        justify-content: flex-start;
        flex-direction: row;
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.section-title {
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    display: block;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background: var(--bg-primary);
}

.screenshots-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.screenshot-item {
    position: relative;
}

.screenshot-frame {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.screenshot-frame:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-lg) - 12px);
    display: block;
}

.screenshot-label {
    text-align: center;
    margin-top: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Premium Section */
.premium {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    text-align: center;
}

.premium-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.9);
    animation: float 3s ease-in-out infinite;
    display: block;
}

.premium-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.premium-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.premium-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto 40px;
    text-align: left;
}

.premium-feature {
    font-size: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.premium-feature svg {
    flex-shrink: 0;
    color: #4ADE80;
}

.premium-pricing {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.price-option {
    text-align: center;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
}

.price-period {
    font-size: 18px;
    opacity: 0.8;
}

.price-save {
    font-size: 14px;
    color: #4ADE80;
    font-weight: 600;
    margin-top: 4px;
}

.price-divider {
    opacity: 0.6;
}

.premium-note {
    opacity: 0.8;
    font-size: 14px;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.download-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.download-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.download-requirements {
    margin-top: 32px;
    color: var(--text-secondary);
    font-size: 14px;
}

.download-requirements p {
    margin: 4px 0;
}

/* Footer */
.footer {
    padding: 64px 0 32px;
    background: var(--bg-dark);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

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

.footer-description {
    opacity: 0.7;
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.6;
    font-size: 14px;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.fade-in-delay {
    animation: fade-in 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fade-in 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fade-in 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.slide-up {
    animation: slide-up 1s ease-out forwards;
}

/* Intersection Observer for scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        gap: 12px;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 4px 8px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    /* Hero Section */
    .hero {
        text-align: center;
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: auto;
    }
    
    .hero .container {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-phone {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 16px;
        text-align: center;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 16px;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 16px;
        line-height: 1.2;
        padding: 0 8px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
        padding: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 16px;
        min-height: 50px; /* Удобный размер для тапа */
        touch-action: manipulation; /* Убирает задержку на мобильных */
    }
    
    .hero-stats {
        justify-content: center;
        gap: 24px;
        flex-wrap: wrap;
    }
    
    .stat {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Features */
    .features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-title {
        font-size: 18px;
    }
    
    /* Screenshots */
    .screenshots {
        padding: 60px 0;
    }
    
    .screenshots-carousel {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Premium */
    .premium {
        padding: 60px 16px;
    }
    
    .premium-title {
        font-size: 36px;
    }
    
    .premium-pricing {
        flex-direction: column;
        gap: 16px;
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    /* Download */
    .download {
        padding: 60px 16px;
    }
    
    .download-title {
        font-size: 36px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 16px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .section-header {
        padding: 0 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    /* Navigation - очень компактная */
    .nav-content {
        padding: 12px 0;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-links a {
        font-size: 13px;
        padding: 4px 6px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    /* Hero */
    .hero {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    /* Buttons */
    .btn {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px; /* Минимальный размер для тапа */
        touch-action: manipulation;
    }
    
    /* Sections */
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .features,
    .screenshots,
    .premium,
    .download {
        padding: 40px 0;
    }
    
    /* Feature cards */
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 12px;
    }
    
    .feature-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .feature-description {
        font-size: 13px;
    }
}

