/* Modern Professional Design 
   Theme: Clean, Indigo & Slate, Glassmorphism
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #4f46e5;       /* Indigo 600 */
    --primary-dark: #4338ca;  /* Indigo 700 */
    --primary-light: #e0e7ff; /* Indigo 100 */
    --secondary: #10b981;     /* Emerald 500 */
    --dark: #0f172a;          /* Slate 900 */
    --text-main: #1e293b;     /* Slate 800 */
    --text-muted: #64748b;    /* Slate 500 */
    --bg-light: #f8fafc;      /* Slate 50 */
    --white: #ffffff;
    
    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);
    
    /* Layout */
    --container-width: 1200px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

.highlight {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
    padding: 0 6px;
    border-radius: 4px;
}

/* 1. Header Navigation (Glassmorphism) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo a {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-header {
    padding: 10px 24px;
    border-radius: 50px; /* Pill shape */
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-login {
    color: var(--text-main);
    background: transparent;
}

.btn-login:hover {
    color: var(--primary);
}

.btn-register {
    background: var(--dark);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

/* 2. Hero Section (Modern Clean) */
.hero-main {
    padding: 160px 0 120px;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 0%, #f1f5f9 0%, #ffffff 100%);
    overflow: hidden;
}

/* Ambient Background Animation */
.hero-main::before, .hero-main::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 0;
    animation: float 10s infinite ease-in-out alternate;
}

.hero-main::before {
    background: rgba(79, 70, 229, 0.15);
    top: -20%;
    right: -10%;
}

.hero-main::after {
    background: rgba(16, 185, 129, 0.1);
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 40px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 48px;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    padding: 18px 40px;
    background: var(--primary);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.4);
}

/* 3. Stories Section (Card Grid) */
.stories-section {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -1px;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.story-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.story-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    color: var(--primary);
}

.story-text {
    font-size: 16px;
    color: var(--text-main);
    margin: 0;
}

/* 4. Stats Section (Dark Mode Contrast) */
.stats-section {
    padding: 120px 0;
    background: var(--dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stats-number {
    font-size: 96px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1;
    letter-spacing: -3px;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-text {
    font-size: 20px;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 30px;
}

.stats-conclusion {
    font-size: 22px;
    font-weight: 500;
    color: var(--white);
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 5. Problem & Solution */
.problem-section, .solution-section {
    padding: 100px 0;
}

.problem-section {
    background: var(--bg-light);
}

.problem-content, .solution-content {
    max-width: 800px;
    margin: 0 auto;
}

.problem-text {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 30px;
    padding-left: 24px;
    border-left: 4px solid var(--primary);
}

.expert-badge {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

.expert-title {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
}

.expert-name-bold {
    font-size: 24px;
    color: var(--dark);
    margin: 10px 0;
}

.solution-text {
    background: #ecfdf5; /* Soft Green bg */
    padding: 32px;
    border-radius: var(--radius-lg);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* 6. Pricing Section (Modern Card) */
.pricing-section {
    padding: 100px 0;
    background: var(--white);
}

.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--dark);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.pricing-header {
    padding: 40px 40px 20px;
    text-align: center;
}

.pricing-header h3 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 20px;
}

.price-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.price-old {
    color: #64748b;
    text-decoration: line-through;
    font-size: 18px;
}

.price-new {
    font-size: 64px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -2px;
    line-height: 1;
}

.price-note {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: #4ade80;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
}

.pricing-body {
    padding: 0 40px 40px;
}

.price-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-feature {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.feature-icon {
    color: #4ade80;
    font-size: 20px;
}

/* 7. Footer */
.main-footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 80px 0 30px;
    font-size: 14px;
}

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

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-heading {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact .contact-icon {
    font-size: 18px;
}

.footer-contact a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    color: #94a3b8;
}

.footer-bottom p {
    margin: 0;
}

/* 8. Modal Styles - Professional Design */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    background: var(--white);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    border-bottom: 1px solid var(--bg-light);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.modal-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: var(--bg-light);
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    line-height: 1;
}

.modal-close:hover {
    color: var(--dark);
    background: var(--primary-light);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.login-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 32px;
    background: var(--bg-light);
    padding: 6px;
    border-radius: 12px;
    position: relative;
}

.tab-btn {
    padding: 14px 16px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover::before {
    opacity: 1;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn.active::before {
    opacity: 1;
}

.tab-content {
    display: none;
    animation: fadeInContent 0.3s ease;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
    letter-spacing: 0.2px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--bg-light);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-main);
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.modal-body .btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    margin-top: 8px;
}

.modal-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

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

.modal-register-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--bg-light);
}

.modal-register-link .btn-link {
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modal-register-link .btn-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}

.modal-register-link .btn-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.modal-register-link .btn-link:hover::after {
    transform: translateX(4px);
}

/* Telegram & Google Login Containers */
#telegramTab .form-group,
#googleTab .form-group {
    text-align: center;
    margin-bottom: 0;
}

#telegramTab .form-group > div,
#googleTab .form-group > div {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 16px;
}

/* Loading State */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .header-nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .stats-number {
        font-size: 64px;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }

    /* Modal Responsive */
    .modal-content {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
        max-height: 95vh;
    }

    .modal-header {
        padding: 24px 20px;
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .modal-body {
        padding: 24px 20px;
    }

    .login-tabs {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .tab-btn {
        padding: 12px;
        font-size: 13px;
    }
}