/* Landing Page Custom Styles */
:root {
    --bg-dark: #0a0f16;
    --bg-darker: #05080b;
    --text-primary: #f0f4f8;
    --text-secondary: #a0aec0;
    --accent-primary: #00f260;
    --accent-secondary: #0575e6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.06);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glow */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,242,96,0.15) 0%, rgba(5,117,230,0.1) 50%, rgba(10,15,22,0) 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
    animation: pulse 8s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

/* Navbar */
.navbar-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    color: #fff !important;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
}

.brand-accent {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Gradient Text Utility */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Buttons */
.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: var(--card-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-glow {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #00b0ff 100%);
    color: var(--bg-darker);
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 242, 96, 0.4);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 242, 96, 0.6);
    color: var(--bg-darker);
}

/* Features Grid */
.features-section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--card-hover);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
    color: var(--accent-primary);
    border: 1px solid var(--glass-border);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Call To Action */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-box {
    background: radial-gradient(circle at center, rgba(5,117,230,0.2) 0%, var(--glass-bg) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Language Switcher */
.lang-dropdown-menu {
    background: #111820;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.lang-dropdown-menu .dropdown-item {
    color: var(--text-secondary);
    transition: all 0.2s;
}
.lang-dropdown-menu .dropdown-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    color: var(--text-secondary);
    background: var(--bg-darker);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Flowchart Animation */
.flowchart-section {
    position: relative;
    padding: 80px 0;
    z-index: 2;
}

.flow-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 2;
}

.icon-box.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00b0ff 100%);
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.4);
}

.icon-box.forward {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    box-shadow: 0 0 20px rgba(242, 153, 74, 0.4);
}

.icon-box.copier {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 0 20px rgba(118, 75, 162, 0.4);
}

.icon-box.mt4 {
    background: linear-gradient(135deg, #00f260 0%, #0575e6 100%);
    box-shadow: 0 0 20px rgba(0, 242, 96, 0.4);
}

.flow-step p {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.flow-step span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.flow-line {
    flex: 1.5;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 2px;
    margin: 0 10px;
    transform: translateY(-25px); /* Align with icons */
}

/* Moving particle logic */
.flow-particle {
    position: absolute;
    top: -3px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-primary);
    animation: flowMove 2s infinite linear;
}

.flow-line:nth-child(2) .flow-particle { animation-delay: 0s; }
.flow-line:nth-child(4) .flow-particle { animation-delay: 0.5s; }
.flow-line:nth-child(6) .flow-particle { animation-delay: 1s; }
.flow-line:nth-child(8) .flow-particle { animation-delay: 1.5s; }

@keyframes flowMove {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@media (max-width: 992px) {
    .flow-container {
        flex-direction: column;
        padding: 40px 20px;
    }
    .flow-line {
        width: 4px;
        height: 50px;
        flex: none;
        margin: 10px 0;
        transform: translateY(0);
    }
    .flow-particle {
        top: 0;
        left: -3px;
        animation: flowMoveMobile 2s infinite linear;
    }
    @keyframes flowMoveMobile {
        0% { top: 0; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: 100%; opacity: 0; }
    }
}
