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

:root {
    --max-width: 1400px;
    --header-height: 80px;
    --section-padding: 4rem;
    --primary-color: #0099FF;
    --primary-light: #33ADFF;
    --primary-dark: #0077CC;
    --secondary-color: #FF6600;
    --secondary-dark: #CC5200;
    --background-white: #fff;
    --background-light: #F5F9FF;
    --text-primary: #1a1a1a;
    --text-secondary: #4D4D4D;
    --success-color: #00CC66;
    --border-color: #E6E6E6;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
    box-sizing: border-box;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero-section {
    padding: calc(var(--header-height) + 2rem) 0 var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.feature i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.download-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Pricing Section */
.pricing-section {
    padding: var(--section-padding) 0;
    background: var(--background-white);
}

.pricing-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.2);
}

.pricing-card.business {
    border-color: #FFD700;
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, #fff 0%, #FFF8DC 100%);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 70px rgba(255, 102, 0, 0.3);
}

.pricing-card.business:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 25px 70px rgba(255, 215, 0, 0.3);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1;
}

.pricing-card.business .pricing-badge {
    background: #FFD700;
    color: #333;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.pricing-header h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pricing-features i {
    color: var(--success-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.pricing-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.pricing-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.pricing-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pricing-btn.loading {
    background: #6c757d;
    cursor: not-allowed;
    position: relative;
}

.pricing-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.pricing-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: left;
}

.pricing-note i {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Screenshots Section */
.screenshots-section {
    padding: var(--section-padding) 0;
    background: var(--background-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.screenshot-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.screenshot-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.screenshot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-image img {
    transform: scale(1.05);
}

.screenshot-caption {
    padding: 1.5rem;
}

.screenshot-caption h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.screenshot-caption p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.screenshots-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    background: var(--background-white);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.screenshots-note i {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Installation Guide Section */
.installation-section {
    padding: var(--section-padding) 0;
    background: var(--background-white);
}

.installation-steps {
    max-width: 800px;
    margin: 3rem auto 0;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: var(--section-padding) 0;
    background: var(--background-light);
}

.feature-category {
    margin-bottom: 4rem;
}

.feature-category h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-category h3 i {
    color: var(--primary-color);
}

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

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Download Options Styles */
.download-options {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.download-options .btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.download-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.download-link i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Desktop button layout */
@media (min-width: 769px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: calc(var(--header-height) + 1rem) 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .download-info {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .screenshot-image {
        height: 200px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .pricing-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .pricing-card.business {
        transform: none;
    }
    
    .pricing-card.business:hover {
        transform: translateY(-10px);
    }
    
    /* Mobile Navigation */
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        text-align: center;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 100vh;
        padding: calc(var(--header-height) + 0.5rem) 0 1.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .screenshot-item {
        margin: 0 0.5rem;
    }
    
    .screenshot-caption {
        padding: 1rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .pricing-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .pricing-card.business {
        transform: none;
    }
    
    .pricing-card.business:hover {
        transform: translateY(-10px);
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
} 

/* Modal Styles */
.modal-overlay {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  background: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 95vw;
  width: 370px;
  padding: 32px 20px 24px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  text-align: center;
  position: relative;
  animation: modalIn 0.25s cubic-bezier(.4,2,.6,1) both;
}
@keyframes modalIn {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal-close {
  position: absolute;
  right: 16px; top: 12px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: #1976d2; }
.modal-icon {
  font-size: 2.7rem;
  color: #1976d2;
  margin-bottom: 10px;
}
.modal-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.modal-text {
  font-size: 1rem;
  margin-bottom: 22px;
  color: #333;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.modal-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #f5f5f5;
  color: #222;
  border: none;
  border-radius: 7px;
  padding: 11px 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.app-btn {
  background: #1976d2;
  color: #fff;
}
.app-btn:hover {
  background: #1256a0;
}
.telegram-btn {
  background: #229ED9;
  color: #fff;
}
.telegram-btn:hover {
  background: #1577a6;
}
@media (max-width: 480px) {
  .modal-content { width: 98vw; padding: 18px 4vw 16px 4vw; }
  .modal-title { font-size: 1.1rem; }
  .modal-btn { font-size: 0.97rem; }
}

/* Notification Styles */
#notificationContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.success {
  background: #00CC66;
}

.notification.error {
  background: #FF4444;
}

.notification.warning {
  background: #FF8800;
}

.notification.info {
  background: #0099FF;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  #notificationContainer {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .notification {
    max-width: none;
  }
}