/* ============================================
   COMPLETE STRUCTURAL REDESIGN
   Нові layout, компоненти, структура
   ============================================ */

/* New Structural Layout System */
:root {
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
}

/* Full-width sections with new structure */
.new-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #1a1a2e 50%, #0a1628 100%);
}

.new-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 170, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* New Grid System */
.new-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-md);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 991px) {
    .new-grid-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        padding: 0 var(--spacing-sm);
    }
}

/* New Hero Layout - Split Screen */
.new-hero-content {
    grid-column: 1 / 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.new-hero-image {
    grid-column: 7 / 13;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .new-hero-content,
    .new-hero-image {
        grid-column: 1 / -1;
    }
    
    .new-hero-image {
        order: -1;
        margin-bottom: var(--spacing-lg);
    }
}

/* New Badge Component */
.new-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* New Price Tag Component */
.new-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-xl);
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin: var(--spacing-md) 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.new-price-tag .currency {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* New Card System - Modern Cards */
.new-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.new-modern-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.new-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #00d4aa, #7b2cbf);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.new-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #ff6b35;
}

.new-modern-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    transition: transform 0.4s ease;
}

.new-modern-card:hover .new-modern-card-image {
    transform: scale(1.05);
}

.new-modern-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: var(--spacing-sm);
}

.new-modern-card-text {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;
}

/* New Section Layouts */
.new-section-layout-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    padding: var(--spacing-2xl) 0;
}

.new-section-layout-1.reverse {
    direction: rtl;
}

.new-section-layout-1.reverse > * {
    direction: ltr;
}

@media (max-width: 991px) {
    .new-section-layout-1 {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .new-section-layout-1.reverse {
        direction: ltr;
    }
}

/* New Image Container */
.new-image-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.new-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.new-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 212, 170, 0.1) 100%);
    pointer-events: none;
}

/* New Steps Component */
.new-steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.new-step-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.new-step-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ff6b35, #00d4aa, #7b2cbf);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.new-step-card:hover::before {
    opacity: 1;
}

.new-step-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
}

.new-step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.new-step-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-top: var(--spacing-md);
}

@media (max-width: 991px) {
    .new-steps-container {
        grid-template-columns: 1fr;
    }
}

/* New Form Layout */
.new-form-container {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.new-form-group {
    margin-bottom: var(--spacing-md);
}

.new-form-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
}

.new-form-input:focus {
    outline: none;
    border-color: #ff6b35;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.new-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* New Button Styles */
.new-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    text-decoration: none;
}

.new-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.5);
}

.new-btn-primary:active {
    transform: translateY(0);
}

/* New Navigation Structure */
.new-nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.new-nav-wrapper.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.new-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.new-nav-logo img {
    max-height: 50px;
    width: auto;
}

.new-nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.new-nav-menu a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.3s ease;
}

.new-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #00d4aa);
    transition: width 0.3s ease;
}

.new-nav-menu a:hover {
    color: #ff6b35;
}

.new-nav-menu a:hover::after {
    width: 100%;
}

@media (max-width: 991px) {
    .new-nav-menu {
        display: none;
    }
}

/* New Footer Structure */
.new-footer {
    background: #0a1628;
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.new-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.new-footer-section h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.new-footer-section p,
.new-footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.new-footer-section a:hover {
    color: #ff6b35;
}

/* New Section Headers */
.new-section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.new-section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #ff6b35 0%, #00d4aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.new-section-header p {
    font-size: 1.25rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
}

/* New Background Patterns */
.new-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 20% 50%, #ff6b35 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, #00d4aa 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Utility Classes */
.new-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.new-section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

.new-section-alt {
    background: #f8fafc;
}

.new-text-center {
    text-align: center;
}

.new-mt-lg {
    margin-top: var(--spacing-lg);
}

.new-mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* Integration with existing navigation */
.navigation {
    position: relative;
    z-index: 1000;
}

.navigation-wrapper {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Override old hero styles */
.hero-1 {
    display: none;
}

/* Ensure new sections work with old classes */
.app-feature-1,
.feature-section-0,
.feature-section-1,
.pricing-section,
.contact-form-section {
    display: none;
}

/* Show new sections */
.new-hero-section,
.new-section {
    display: block;
}

/* Mobile menu compatibility */
@media (max-width: 991px) {
    .new-hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .new-section {
        padding: 3rem 0;
    }
    
    .new-grid-container {
        padding-top: 5rem;
    }
}

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

/* Ensure proper spacing after navigation */
.new-hero-section {
    margin-top: 80px;
}

@media (max-width: 991px) {
    .new-hero-section {
        margin-top: 60px;
    }
}

/* Button image replacement */
.new-btn-primary img {
    display: none;
}

/* Form input mask compatibility */
.new-form-input[name="phone"] {
    font-family: 'Inter', sans-serif;
}

/* Ensure footer spacing */
.new-footer {
    margin-top: 0;
}

/* Hide old button images in new structure */
.new-section .my-btn,
.new-section .download-button-group {
    display: none;
}

/* Show new buttons */
.new-btn-primary {
    display: inline-flex !important;
}

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

.new-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Typography */
@media (max-width: 991px) {
    .new-section-header h2 {
        font-size: 2rem;
    }
    
    .new-price-tag {
        font-size: 1.5rem;
        padding: 0.75rem 1.5rem;
    }
    
    .new-step-number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

