/* CSS Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #06b6d4;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #ffffff;
    --background-alt: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s ease-in-out;
}

/* Dark Theme Colors */
.dark-theme {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #06b6d4;
    --accent-color: #10b981;
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-light: #94a3b8;
    --background: #0f172a;
    --background-alt: #1e293b;
    --border-color: #334155;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

/* Ensure all headings use proper text colors */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

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

/* Header Navigation */
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle in Header */
.nav-controls .theme-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.25rem;
    transition: all var(--transition);
}

.dark-theme .nav-controls .theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-controls .theme-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    position: relative;
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.8);
}

.nav-controls .theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: scale(1.05);
}

.nav-controls .theme-btn:active {
    transform: scale(0.95);
}

.nav-controls .theme-icon {
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.dark-theme .nav-controls .light-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.dark-theme .nav-controls .dark-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.3);
}

body:not(.dark-theme) .nav-controls .light-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0.3);
}

body:not(.dark-theme) .nav-controls .dark-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Language Switcher in Header */
.nav-controls .language-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.25rem;
    transition: all var(--transition);
}

.dark-theme .nav-controls .language-switcher {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-controls .lang-btn {
    background: none;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition);
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-controls .lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.nav-controls .lang-btn.active {
    background: var(--primary-color);
    color: white;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.lang-btn:hover {
    background: var(--background-alt);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition);
}

.dark-theme .header {
    background: rgba(17, 24, 39, 0.95);
    border-bottom-color: #374151;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-md);
}

.dark-theme .header.scrolled {
    background: rgba(17, 24, 39, 0.98) !important;
}

.nav {
    padding: 1rem 0;
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand .logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color var(--transition);
}

.nav-link:hover {
    color: white;
}

/* Nav links in light theme (non-hero sections) */
.dark-theme .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

body:not(.dark-theme) .nav-link {
    color: var(--text-secondary);
}

body:not(.dark-theme) .nav-link:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle - Following Memory Requirements */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    gap: 4px;
    padding: 0.5rem;
    z-index: 1000;
}

.dark-theme .mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body:not(.dark-theme) .mobile-menu-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--border-color);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

body:not(.dark-theme) .mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Hamburger Spans - Exact Specifications */
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

body:not(.dark-theme) .mobile-menu-toggle span {
    background: var(--text-primary);
}

/* Hamburger to X Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--primary-color);
}

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

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

/* Mobile Navigation Overlay */
.nav-center.active {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    animation: mobileMenuFadeIn 0.3s ease-out;
}

.dark-theme .nav-center.active {
    background: rgba(17, 24, 39, 0.98);
}

.nav-center.active .nav-links {
    display: flex !important;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    animation: mobileMenuSlideIn 0.4s ease-out 0.1s both;
}

/* Mobile Navigation Links Styling */
.nav-center.active .nav-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
    background: transparent;
    border: 2px solid transparent;
}

.nav-center.active .nav-link:hover {
    background: var(--background-alt);
    color: var(--primary-color);
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.nav-center.active .cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    border: none;
}

.nav-center.active .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* Mobile Menu Animations */
@keyframes mobileMenuFadeIn {
    from {
        opacity: 0;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes mobileMenuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 120px 0 6rem;
    background: linear-gradient(45deg, #667eea, #764ba2, #6B73FF, #9644FF);
    background-size: 400% 400%;
    color: white;
    position: relative;
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
}

.dark-theme .hero {
    background: linear-gradient(45deg, #1e293b, #0f172a, #1e1b4b, #312e81);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

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

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Comparison Mockup */
.comparison-mockup {
    background: var(--background);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.mockup-header {
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
    font-size: 1rem;
}

.mockup-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--background-alt);
    font-size: 0.875rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.mockup-row.best {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--text-primary);
}

/* Enhanced Comparison Mockup */
.mockup-table {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.2fr 1fr 1fr 0.8fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    background: var(--background);
    border-radius: 0.75rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
}

.mockup-table-header {
    display: contents;
}

.mockup-table-header span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.5rem 0.5rem 0.5rem;
    border-bottom: 2px solid var(--border-color);
    background: var(--background-alt);
}

.mockup-table .mockup-row {
    display: contents;
}

.mockup-table .mockup-row span {
    display: flex;
    align-items: center;
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--background);
}

.mockup-table .mockup-row.best span {
    background: rgba(16, 185, 129, 0.15);
    border-bottom-color: rgba(16, 185, 129, 0.3);
    font-weight: 500;
    color: var(--text-primary);
}

.dark-theme .mockup-table .mockup-row.best span {
    background: rgba(16, 185, 129, 0.2);
    color: var(--text-primary);
}

.mockup-recommendation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 1rem;
}

.rec-icon {
    font-size: 1rem;
}

/* Breakdown Information Section */
.breakdown-info {
    padding: 6rem 0;
    background: var(--background-alt);
}

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

.breakdown-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.breakdown-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

.breakdown-feature {
    text-align: center;
    padding: 2rem;
    background: var(--background);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.breakdown-feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-theme .breakdown-feature:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.breakdown-feature .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

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

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

/* Breakdown Example */
.breakdown-example {
    text-align: left;
    background: var(--background);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.breakdown-example h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Example Table */
.example-table {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.example-row {
    display: contents;
}

.example-row span {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background: var(--background);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.example-row span:last-child {
    border-right: none;
}

.example-row.header span {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.example-row.final span {
    font-weight: 600;
    font-size: 1rem;
    background: var(--background-alt);
}

.example-row.savings span {
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    border-bottom: none;
}

.highlight-good {
    color: #10b981 !important;
    font-weight: 600;
}

.highlight-bad {
    color: #ef4444 !important;
    font-weight: 600;
}

.dark-theme .highlight-good {
    color: #34d399 !important;
}

.dark-theme .highlight-bad {
    color: #f87171 !important;
}

/* Mobile Responsiveness for New Elements */
@media (max-width: 768px) {
    /* Continue with other mobile styles */
    .form-group {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feedback-form {
        padding: 1.5rem;
    }
    
    .signup-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .mockup-row {
        display: block;
        gap: 0;
        text-align: left;
        background: var(--background);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
        padding: 1rem;
        border-radius: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .mockup-row span {
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mockup-row span:last-child {
        border-bottom: none;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-marker {
        left: 7px;
    }
    
    .example-table {
        display: block;
        border: none;
        background: transparent;
    }
    
    .example-row {
        display: block;
        margin-bottom: 1.5rem;
        padding: 1.25rem;
        background: var(--background);
        border: 1px solid var(--border-color);
        border-radius: 0.75rem;
        box-shadow: var(--shadow-md);
    }
    
    .example-row.header {
        display: none;
    }
    
    .example-row span {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
        border-right: none;
        background: transparent;
        font-size: 0.875rem;
    }
    
    .example-row span:last-child {
        border-bottom: none;
    }
    
    .example-row span:first-child {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 1rem;
        margin-bottom: 0.5rem;
        border-bottom: 2px solid var(--border-color);
        padding-bottom: 0.75rem;
    }
    
    .example-row span:not(:first-child) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        align-items: center;
        padding: 0.5rem 0;
    }
    
    .example-row span:not(:first-child):before {
        content: attr(class);
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: capitalize;
    }
    
    .example-row span.highlight-good:before {
        content: "Crypto P2P:";
    }
    
    .example-row span.highlight-bad:before {
        content: "Traditional Bank:";
    }
    
    [lang="ru"] .example-row span.highlight-good:before {
        content: "Криптовалюта P2P:";
    }
    
    [lang="ru"] .example-row span.highlight-bad:before {
        content: "Обычный банк:";
    }
    
    .breakdown-content h2 {
        font-size: 1.875rem;
    }
    
    .breakdown-subtitle {
        font-size: 1.125rem;
    }
    
    .breakdown-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .breakdown-feature {
        padding: 1.5rem;
    }
    
    .breakdown-example {
        padding: 1.5rem;
    }
    
    .breakdown-example h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    /* Enhanced mobile table styling for small screens */
    .mockup-table .mockup-row {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .mockup-table .mockup-row .method {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .mockup-table .mockup-row span {
        padding: 0.375rem 0;
        font-size: 0.8rem;
    }
    
    .mockup-table .mockup-row span:before {
        font-size: 0.75rem;
    }
    
    .mockup-recommendation {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .example-row {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .example-row span:first-child {
        font-size: 0.9rem;
    }
    
    .example-row span:not(:first-child) {
        font-size: 0.8rem;
        padding: 0.375rem 0;
    }
}

/* Sections */
.problem,
.solution,
.how-it-works,
.benefits,
.roadmap,
.signup {
    padding: 6rem 0;
}

.problem,
.how-it-works,
.roadmap {
    background: var(--background-alt);
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Problem Section */
.problem-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.problem-stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.problem-number {
    display: block;
    font-size: 1.875rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.dark-theme .problem-number {
    color: #f87171;
}

.problem-label {
    color: var(--text-secondary);
}

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

.feature {
    padding: 2rem;
    background: var(--background);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
    text-align: left;
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* How It Works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: var(--background);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit {
    padding: 2rem;
    background: var(--background);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    text-align: center;
    border: 2px solid var(--border-color);
}

.benefit:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-theme .benefit:hover {
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.4);
}

.benefit-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.benefit h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 22px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--background);
    box-shadow: var(--shadow-md);
}

.timeline-content {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-date {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

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

/* Signup */
.signup {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

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

.signup-form {
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.form-group input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.form-note {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.signup-benefits {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.signup-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.benefit-check {
    color: var(--accent-color);
    font-weight: 700;
}

/* Feedback Section */
.feedback {
    padding: 6rem 0;
    background: var(--background-alt);
}

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

.feedback h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.feedback p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.feedback-form {
    background: var(--background);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--background);
    color: var(--text-primary);
    transition: all var(--transition);
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dark-theme .form-group input:focus,
.dark-theme .form-group select:focus,
.dark-theme .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.feedback-form .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 4rem 0 2rem;
}

.dark-theme .footer {
    background: #0f172a;
    border-top: 1px solid #334155;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f3f4f6;
}

.dark-theme .footer-section h4 {
    color: #f8fafc;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.dark-theme .footer-section p {
    color: #cbd5e1;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color var(--transition);
}

.dark-theme .footer-section a {
    color: #cbd5e1;
}

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

.dark-theme .footer-section a:hover {
    color: #f8fafc;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #9ca3af;
    transition: all var(--transition);
}

.dark-theme .social-link {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

.dark-theme .footer-bottom {
    border-top-color: #475569;
    color: #cbd5e1;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Hide desktop navigation */
    .nav-center {
        display: none;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero section mobile adjustments */
    .hero {
        padding: 120px 0 8rem; /* Significantly increased bottom padding for mobile table visibility */
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Mobile comparison mockup - Card-based layout */
    .comparison-mockup {
        margin-top: 2rem;
        margin-bottom: 3rem; /* Added bottom margin for spacing */
        padding: 1.5rem;
        max-width: 100%;
        overflow: visible;
    }
    
    .mockup-header {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0.75rem;
        background: var(--background-alt);
        border-radius: 0.5rem;
        border: 1px solid var(--border-color);
    }
    
    .mockup-table {
        display: block;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0;
    }
    
    .mockup-table-header {
        display: none;
    }
    
    .mockup-table .mockup-row {
        display: block;
        padding: 1.25rem;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 0.75rem;
        background: var(--background);
        color: var(--text-primary);
        box-shadow: var(--shadow-md);
        position: relative;
        grid-template-columns: none;
        gap: 0;
    }
    
    .mockup-table .mockup-row.best {
        background: rgba(16, 185, 129, 0.1);
        border-color: rgba(16, 185, 129, 0.4);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    }
    
    .mockup-table .mockup-row.best:before {
        content: "✅ Best Choice";
        position: absolute;
        top: -8px;
        right: 12px;
        background: var(--accent-color);
        color: white;
        padding: 0.25rem 0.75rem;
        border-radius: 1rem;
        font-size: 0.75rem;
        font-weight: 600;
        z-index: 10;
    }
    
    [lang="ru"] .mockup-table .mockup-row.best:before {
        content: "✅ Лучший выбор";
    }
    
    .mockup-table .mockup-row span {
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.875rem;
        background: transparent;
        border-right: none;
        align-items: flex-start;
    }
    
    .mockup-table .mockup-row span:last-child {
        border-bottom: none;
    }
    
    .mockup-table .mockup-row .method {
        font-weight: 600;
        font-size: 1rem;
        color: var(--primary-color);
        margin-bottom: 0.75rem;
        border-bottom: 2px solid var(--border-color);
        padding-bottom: 0.75rem;
    }
    
    .mockup-table .mockup-row .rate:before {
        content: "Exchange Rate: ";
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.8rem;
    }
    
    .mockup-table .mockup-row .fee:before {
        content: "Fees: ";
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.8rem;
    }
    
    .mockup-table .mockup-row .send:before {
        content: "You Send: ";
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.8rem;
    }
    
    .mockup-table .mockup-row .receive:before {
        content: "They Get: ";
        font-weight: 600;
        color: var(--accent-color);
        font-size: 0.8rem;
    }
    
    .mockup-table .mockup-row .time:before {
        content: "Time: ";
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.8rem;
    }
    
    /* Russian language mobile table labels */
    [lang="ru"] .mockup-table .mockup-row .rate:before {
        content: "Курс обмена: ";
    }
    
    [lang="ru"] .mockup-table .mockup-row .fee:before {
        content: "Комиссии: ";
    }
    
    [lang="ru"] .mockup-table .mockup-row .send:before {
        content: "Вы отправляете: ";
    }
    
    [lang="ru"] .mockup-table .mockup-row .receive:before {
        content: "Они получают: ";
    }
    
    [lang="ru"] .mockup-table .mockup-row .time:before {
        content: "Время: ";
    }
    
    .mockup-recommendation {
        margin-top: 1.5rem;
        margin-bottom: 2rem; /* Added bottom margin for final spacing */
        padding: 1rem;
        font-size: 0.875rem;
        text-align: center;
        border-radius: 0.75rem;
    }
    
    /* Add extra spacing for problem section on mobile */
    .problem {
        padding: 8rem 0 6rem; /* Increased top padding for mobile spacing */
    }
    
    /* Adjust nav controls layout */
    .nav .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .nav-brand {
        flex: 1;
    }
    
    .nav-controls {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Adjust control sizes for mobile */
    .nav-controls .theme-toggle,
    .nav-controls .language-switcher {
        padding: 0.125rem;
        border-radius: 0.375rem;
    }
    
    .nav-controls .theme-btn {
        width: 32px;
        height: 32px;
        padding: 0.25rem;
    }
    
    .nav-controls .theme-icon {
        font-size: 0.875rem;
    }
    
    .nav-controls .lang-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        min-width: 32px;
        height: 32px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feedback-form {
        padding: 1.5rem;
    }
    
    .signup-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .mockup-row {
        display: block;
        gap: 0;
        text-align: left;
        background: var(--background);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
        padding: 1rem;
        border-radius: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .mockup-row span {
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mockup-row span:last-child {
        border-bottom: none;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-marker {
        left: 7px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .nav-controls {
        gap: 0.375rem;
    }
    
    .nav-controls .theme-toggle,
    .nav-controls .language-switcher {
        border-radius: 0.25rem;
        padding: 0.125rem;
    }
    
    .nav-controls .theme-btn {
        width: 28px;
        height: 28px;
        padding: 0.125rem;
    }
    
    .nav-controls .theme-icon {
        font-size: 0.75rem;
    }
    
    .nav-controls .lang-btn {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
        min-width: 28px;
        height: 28px;
    }
    
    .nav {
        padding: 0.75rem 0;
    }
    
    .hero {
        padding: 90px 0 3rem;
        animation-duration: 20s; /* Slower animation on small mobile */
    }
    
    /* Ensure problem section has adequate spacing on small mobile */
    .problem {
        padding: 6rem 0; /* Adequate spacing for small mobile */
    }
    
    .feedback-form {
        padding: 1rem;
    }
}

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

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero {
        animation: none !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .dark-theme .hero {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
    }
}