/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background: #f9fafb;
}

/* Header and Navigation */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s;
}

.logo:hover {
    color: #4338ca;
}

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

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.nav-links a:hover {
    color: #4f46e5;
    background: #f3f4f6;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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"><rect fill="rgba(255,255,255,0.1)" x="0" y="0" width="100" height="100"/></svg>');
    opacity: 0.1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
}

.lead {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    position: relative;
}

/* Button Styles */
.button {
    display: inline-block;
    background: #4f46e5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.button:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.button-outline {
    background: transparent;
    border: 2px solid white;
}

.button-outline:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Card Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e7eb;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* CTA Styles */
.telegram-cta {
    background: white;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem auto;
    border-radius: 1rem;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.telegram-button {
    display: inline-block;
    background: #0088cc;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.telegram-button:hover {
    background: #006699;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.telegram-button.pulse {
    animation: pulse 2s infinite;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

/* Banner Styles */
.cta-banner {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem auto;
    border-radius: 1rem;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.cta-banner::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"><rect fill="rgba(255,255,255,0.1)" x="0" y="0" width="100" height="100"/></svg>');
    opacity: 0.1;
}

.cta-banner h3 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.75rem;
    position: relative;
}

/* Guide Content */
.guide-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Info Boxes */
.tip-box, .warning-box, .info-box {
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    position: relative;
}

.tip-box {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
}

.warning-box {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
}

.info-box {
    background: #f3f4f6;
    border-left: 4px solid #6b7280;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .floating-cta {
        bottom: 1rem;
        right: 1rem;
    }
    
    .telegram-cta, .cta-banner {
        margin: 2rem 1rem;
        padding: 2rem 1rem;
    }
}

/* Add this to your existing CSS file (style.css) */

/* Base button styles */
.button, 
.button-outline,
.telegram-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin: 8px 8px 8px 0;
}

.button {
    background-color: #3772FF;
    color: white;
    border: 2px solid #3772FF;
}

.button:hover {
    background-color: #2860E1;
    border-color: #2860E1;
}

.button-outline {
    background-color: transparent;
    color: #3772FF;
    border: 2px solid #3772FF;
}

.button-outline:hover {
    background-color: rgba(55, 114, 255, 0.1);
}

.telegram-button {
    background-color: #26A5E4;
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.telegram-button:hover {
    background-color: #0088cc;
}

/* Container styles */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

/* Make sure all links in cards are properly clickable */
.card a.button {
    display: inline-block;
    width: auto;
    margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
    }
    
    .button, 
    .button-outline,
    .telegram-button {
        width: 100%;
        margin: 5px 0;
    }
}


/* Fix for button clickability issues */

/* Ensure button elements have proper position and z-index */
.button, 
.button-outline,
.telegram-button {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* Fix for buttons in cards */
.card {
    position: relative;
}

.card a.button {
    position: relative;
    z-index: 20;
}

/* Fix for CTA buttons container */
.cta-buttons {
    position: relative;
    z-index: 20;
}

/* Fix for potential overlay issues */
.hero::before,
.cta-banner::before {
    pointer-events: none;
}

/* Ensure all link elements are properly clickable */
a {
    position: relative;
    z-index: 5;
}

/* Fix any potential negative margin or overlap issues */
.telegram-cta a,
.cta-banner a,
.hero a {
    display: inline-block;
    position: relative;
    z-index: 50;
}

/* Potential fix for any absolute positioning that might be interfering */
main {
    position: relative;
}

section {
    position: relative;
}

/* Ensure buttons behave correctly on mobile */
@media (max-width: 768px) {
    .button, 
    .button-outline,
    .telegram-button {
        display: block;
        width: 100%;
        z-index: 50;
    }
}

/* Updated Button Styles */

/* Base button styles - make all buttons more prominent */
.button, 
.button-outline,
.telegram-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin: 8px 8px 8px 0;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Primary button style */
.button {
    background-color: #4F46E5;
    color: white;
    border: 2px solid #4F46E5;
}

.button:hover {
    background-color: #4338CA;
    border-color: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Updated outline button - make it NOT see-through */
.button-outline {
    background-color: #F9FAFB;
    color: #4F46E5;
    border: 2px solid #4F46E5;
}

.button-outline:hover {
    background-color: #F3F4F6;
    color: #4338CA;
    border-color: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Special case for hero section's button-outline */
.hero .button-outline {
    background-color: white;
    color: #4F46E5;
    border: 2px solid #4F46E5;
}

.hero .button-outline:hover {
    background-color: #F3F4F6;
}

/* Telegram button style */
.telegram-button {
    background-color: #0088CC;
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.telegram-button:hover {
    background-color: #0077B5;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Container styles */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    position: relative;
    z-index: 20;
}

/* Make sure all links in cards are properly clickable */
.card a.button {
    display: inline-block;
    width: auto;
    margin-top: 15px;
    position: relative;
    z-index: 20;
}

/* Fix for potential overlay issues */
.hero::before,
.cta-banner::before {
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
    }
    
    .button, 
    .button-outline,
    .telegram-button {
        width: 100%;
        margin: 5px 0;
        display: block;
        z-index: 50;
    }
}