:root {
    /* --- پالت رنگی تم روشن --- */
    --bg-body: #f1f5f9;      /* طوسی خیلی روشن و متمایل به آبی (مثل آسمان) */
    --bg-gradient-1: #e2e8f0;
    --bg-gradient-2: #f8fafc;
    
    --primary: #38A3A5;      /* سبزآبی برند (ثابت) */
    --secondary: #1E4258;    /* سرمه‌ای برند (برای دکمه‌ها) */
    
    --text-main: #1e293b;    /* سرمه‌ای بسیار تیره (جایگزین سفید برای متن) */
    --text-muted: #64748b;   /* طوسی متوسط */
    
    --glass-bg: rgba(255, 255, 255, 0.25); /* شیشه سفید یخی */
    --glass-border: rgba(255, 255, 255, 2.0); /* حاشیه سفید قوی */
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); /* سایه نرم رنگی */
    
    --glow: 0 0 15px rgba(56, 163, 165, 0.4);
    --input-border: #cbd5e1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    
    /* تغییر مهم: به جای height ثابت، از min-height استفاده می‌کنیم */
    min-height: 100vh;
    /* برای اینکه اگر محتوا کم بود، وسط چین باشد، اما اگر زیاد بود اسکرول شود */
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    /* یک پدینگ بالا پایین می‌دهیم که در مانیتورهای کوچک محتوا نچسبد */
    padding: 40px 0; 
}

/* --- Particles Background --- */
#particles-js {
    /* تغییر مهم: fixed باعث می‌شود پس‌زمینه هنگام اسکرول ثابت بماند */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: 1; /* زیر همه لایه‌ها */
}


/* --- Layout --- */
.main-container {
    position: relative;
    z-index: 2;
    display: flex;
    width: 95%;
    max-width: 1600px;
    justify-content: space-between;
    align-items: center; /* محتوا را عمودی وسط‌چین می‌کند */
    gap: 50px;
    /* حذف height: 100vh اگر جایی دارید */
}

/* --- Left Content --- */
.content-section {
    flex: 1.2;
    padding-right: 20px;
}

/* --- لوگو (اصلاح شده: بزرگ، بدون کادر، بالاتر) --- */
.kasqo-logo-wrapper {
    position: relative;
    width: 500px;
    max-width: 100%;
    
    /* کشیدن لوگو به بالا */
    margin-top: -170px;
    
    /* تغییر مهم: کشیدن محتوای زیرین به سمت بالا */
    /* این عدد را بسته به ارتفاع واقعی عکس لوگوتان کم و زیاد کنید */
    margin-bottom: -110px; 
    
    /* حذف کادر */
    border-radius: 0;
    overflow: visible;
    z-index: 10;
    
    /* وسط چین کردن عکس داخل رپر */
    display: flex;
    justify-content: center; /* اگر لوگو سمت راست است flex-start */
    margin-right: -60px;
}



/* --- استایل و انیمیشن لوگو --- */
.kasqo-img {
    width: 100%;
    height: auto;
    display: block;
    /* انیمیشن شناور شدن مداوم (۶ ثانیه) */
    animation: floatLogo 6s ease-in-out infinite;
    /* فیلتر اولیه (سایه نرم) */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transition: all 0.5s ease;
}
/* وقتی موس روی لوگو می‌رود، کمی درخشان‌تر شود */
.kasqo-img:hover {
    filter: drop-shadow(0 0 25px rgba(56, 163, 165, 0.6)); /* درخشش سبزآبی */
    transform: scale(1.02); /* کمی بزرگنمایی */
}
/* کلاس scan-light و انیمیشن آن را کامل از CSS پاک کنید چون دیگر استفاده نمی‌شود */

/* تعریف انیمیشن شناور شدن (Levitation) */
@keyframes floatLogo {
    0% {
        /* حالت عادی */
        transform: translateY(0px);
        filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    }
    50% {
        /* بالا رفتن (معلق شدن) + افزایش سایه و درخشش */
        transform: translateY(-6px); 
        filter: drop-shadow(0 25px 60px rgba(56, 163, 165, 0.6));
    }
    100% {
        /* بازگشت به حالت اول */
        transform: translateY(0px);
        filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    }
}
@keyframes shine {
    0% { left: -100%; opacity: 0; }
    20% { opacity: 1; }
    100% { left: 200%; opacity: 0; }
}

.hero-title {
    font-size: 3.0rem;
    line-height: 1.5;
    font-weight: 900;
    margin-bottom: 30px;
    color: var(--secondary); /* تیتر اصلی تیره */
}
.highlight { color: var(--primary); }
.highlight-sec { 
    color: var(--secondary); 
    text-decoration: underline decoration-var(--primary) 5px; 
}

.typing-container {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    height: 35px;
    font-weight: 500;
}
.cursor { animation: blink 1s infinite; margin-right: 5px; color: var(--primary); }
@keyframes blink { 50% { opacity: 0; } }

.features-grid {
    display: flex;
    gap: 20px;
}
.feature-item {
    /* زمینه آیتم‌ها در تم روشن باید کمی تیره‌تر از سفید باشد */
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255,255,255, 0.6);
    color: var(--secondary);
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(2px);
    transition: 0.3s;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.feature-item:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: var(--primary);
}

/* --- Right Content (Glass Card Login) --- */
.login-section {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 30px;
    width: 100%;
    max-width: 480px;
    /* سایه رنگی و شیک برای تم روشن */
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* حالت هاور (وقتی موس روی کارت لاگین می‌رود) */
.glass-card:hover {
    /* ۱. پس‌زمینه سفید و درخشان می‌شود (مثل فیچرها) */
    background: rgba(255, 255, 255, 0.9); 
    
    /* ۲. بالا آمدن کارت (سه بعدی شدن) */
    transform: translateY(-10px); 
    
    /* ۳. سایه رنگی و پخش شده (سبزآبی برند) */
    box-shadow: 0 20px 40px rgba(56, 163, 165, 0.25); 
    
    /* ۴. حاشیه کاملا سفید */
    border-color: #ffffff;
}

/* نکته حرفه‌ای: وقتی کارت سفید می‌شود، ورودی‌ها باید واضح‌تر شوند */
.glass-card:hover .input-group input {
    border-bottom-color: #cbd5e1; /* رنگ خط اینپوت */
}
.glass-card:hover .card-header h2 {
    color: var(--primary); /* تیتر هم رنگی شود */
}
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    transform: rotate(30deg);
    pointer-events: none;
    opacity: 0.5;
}

.card-header h2 { margin-bottom: 10px; font-size: 2rem; color: var(--secondary); }
.card-header p { color: var(--text-muted); margin-bottom: 35px; font-size: 1rem; }

/* Input Styles (Dark text on Light bg) */
.input-group {
    position: relative;
    margin-bottom: 35px;
}
.input-group input {
    width: 100%;
    padding: 15px 10px;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--input-border);
    color: var(--text-main); /* متن ورودی تیره */
    font-size: 1.2rem;
    font-family: 'Vazirmatn';
    outline: none;
    transition: 0.3s;
}
.input-group label {
    position: absolute;
    right: 0;
    top: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s;
    font-size: 1.1rem;
}
.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -25px;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: bold;
}
.input-group input:focus {
    border-bottom-color: var(--primary);
}
.input-highlight {
    position: absolute;
    bottom: 0; right: 0; width: 0; height: 2px;
    background: var(--primary);
    transition: 0.4s;
}
.input-group input:focus ~ .input-highlight {
    width: 100%;
}

/* Button */
.btn-glow {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border: none;
    border-radius: 15px;
    color: #fff; /* متن دکمه سفید می‌ماند */
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    font-family: 'Vazirmatn';
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(56, 163, 165, 0.3);
}
.btn-glow:hover {
    letter-spacing: 1px;
    box-shadow: 0 15px 30px rgba(56, 163, 165, 0.5);
    transform: translateY(-2px);
}

.links {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}
.links a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.links a:hover { color: var(--primary); font-weight: bold; }
/* استایل آیکون‌های جدید */
.icon-style {
    font-size: 1.4rem; /* اندازه آیکون */
    color: var(--primary); /* رنگ سبزآبی برند */
    filter: drop-shadow(0 0 5px rgba(56, 163, 165, 0.4)); /* درخشش ریز */
    transition: 0.3s;
}

/* وقتی موس روی باکس می‌رود، آیکون کمی بزرگ شود */
.feature-item:hover .icon-style {
    transform: scale(1.2) rotate(10deg); /* چرخش و بزرگنمایی جذاب */
    color: var(--secondary);
}
@media (max-width: 1024px) {
    .main-container { 
        flex-direction: column; 
        text-align: center; 
        justify-content: center; 
        padding-top: 0; /* چون بادی پدینگ دارد، اینجا صفر شود */
    }
    
    .kasqo-logo-wrapper { 
        width: 100%;
        margin-top: -100px;   /* در موبایل کمتر بالا برود */
        margin-bottom: -60px;
        margin-right: 0; 
        justify-content: center;
    }
    .content-section { padding-right: 0; margin-bottom: 50px; }
    .features-grid { justify-content: center; flex-wrap: wrap; }
    .login-section { width: 100%; }
    .scan-light { display: none; }
    .hero-title { font-size: 2.5rem; }
}
