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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #60a5fa;
    --accent-color: #93c5fd;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-primary: #1e293b;
    --bg-secondary: #354e71;
    --bg-accent: #475569;
    --bg-card: #3d547b;
    --bg-card-hover: #374151;
    --border-color: #475569;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    --gradient-hero: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

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

@media (max-width: 768px) {
    header {
      display: none !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    overflow: visible;
}

/* Header */
.header {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    transition: all 0.3s ease;
}

.header:hover {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.logo-title:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

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

/* Removed mobile menu toggle */

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.device-preview {
    width: 600px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

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

.device-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
    border: none;
    position: relative;
    overflow: hidden;
}

.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: left 0.5s;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    color: white;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.btn-telegram:hover {
    background: linear-gradient(135deg, #0066aa 0%, #004488 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.telegram-icon {
    font-size: 1.25rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.btn-channel {
    background: linear-gradient(135deg, #3390ec 0%, #2b7cd6 100%);
    color: white;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.btn-channel:hover {
    background: linear-gradient(135deg, #2b7cd6 0%, #1e5fa3 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-channel-header {
    background: linear-gradient(135deg, #3390ec 0%, #2b7cd6 100%);
    color: white;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.btn-channel-header:hover {
    background: linear-gradient(135deg, #2b7cd6 0%, #1e5fa3 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.channel-icon {
    font-size: 1.1rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    animation: fadeInUp 0.6s ease-out;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(71, 85, 105, 0.3);
    opacity: 0;
    transform: translateY(30px);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
    background: var(--bg-card-hover);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

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

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* How It Works Section */
.how-it-works {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.workflow {
    max-width: 900px;
    margin: 0 auto;
}

.workflow-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.workflow-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.workflow-step:last-child {
    margin-bottom: 0;
}

.workflow-step:nth-child(even) {
    transform: translateX(30px);
}

.workflow-step:nth-child(even).visible {
    transform: translateX(0);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.workflow-step:hover .step-number {
    transform: scale(1.1) rotate(360deg);
    background: var(--secondary-color);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

/* Goal Section */
.goal {
    background: var(--bg-accent);
    color: var(--text-primary);
}

.goal-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.goal-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.goal-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.goal-list {
    list-style: none;
    padding: 0;
}

.goal-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

.goal-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero-content {
        gap: 3rem;
    }

    .device-preview {
        width: 500px;
        height: 500px;
    }
}

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

    .hero {
        padding: 4rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Mobile Navigation */
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .logo-title {
        font-size: 1.5rem;
        text-align: center;
        width: 100%;
    }

    .nav {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .nav-link {
        text-align: center;
        padding: 0.75rem 1rem;
        background: rgba(45, 55, 72, 0.5);
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 1px solid rgba(71, 85, 105, 0.3);
    }

    .nav-link:hover {
        background: rgba(59, 130, 246, 0.2);
        border-color: var(--primary-light);
        transform: translateY(-2px);
    }

    .nav-link::after {
        display: none;
    }

    .btn-channel-header {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        margin-top: 0.5rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-channel,
    .btn-telegram {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .workflow-step {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .workflow-step:nth-child(even) {
        transform: translateX(0);
    }

    .step-number {
        align-self: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }

    .device-preview {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
    }

    .about-content,
    .goal-content {
        padding: 0 1rem;
    }

    .about-text,
    .goal-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .contact-text {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .contact-content {
        padding: 0 1rem;
    }
}

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

    .hero {
        padding: 2.5rem 0;
    }

    .section {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .device-preview {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 1;
    }

    .device-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-card {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-title {
        font-size: 1.25rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 1.4rem;
    }

    .step-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .logo-title {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    .btn-telegram,
    .btn-channel {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }

    .btn-channel-header {
        font-size: 0.85rem;
        padding: 0.6rem 0.9rem;
    }

    .about-text,
    .goal-text {
        font-size: 0.95rem;
    }

    .contact-text {
        font-size: 0.95rem;
    }

    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Улучшения для мобильных устройств */
@media (max-width: 768px) {
    /* Улучшение для touch-устройств */
    .btn,
    .nav-link {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Предотвращение горизонтального скролла */
    body {
        overflow-x: hidden;
    }

    /* Улучшение читаемости на маленьких экранах */
    .goal-list li {
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }
}

/* Дополнительные улучшения для очень маленьких экранов */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .device-preview {
        max-width: 250px;
    }

    .logo h1 {
        font-size: 1rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

