/* صفحه دمو */

.demo-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.1) 0%, 
        rgba(9, 132, 227, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.demo-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, 
        rgba(0, 184, 148, 0.2) 0%, 
        transparent 70%);
    filter: blur(80px);
    opacity: 0.5;
}

.demo-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.demo-text {
    animation: fadeInLeft 1s ease-out;
}

.demo-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.text-gradient {
    display: block;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.demo-description {
    margin-bottom: 3rem;
}

.demo-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-actions button svg {
    fill: currentColor;
}

.demo-3d {
    animation: fadeInRight 1s ease-out;
}

.three-model {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.1), 
        rgba(9, 132, 227, 0.1));
}

.demo-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(223, 230, 233, 0.3);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.stat-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.demo-wave {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 120px;
    color: var(--bg-primary);
}

.demo-wave svg {
    width: 100%;
    height: 100%;
}

/* آدرس دمو */
.demo-url-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.demo-url-card {
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.05), 
        rgba(9, 132, 227, 0.05));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 184, 148, 0.1);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 3rem auto 0;
}

.url-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 184, 148, 0.1);
}

.url-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--secondary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.url-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.url-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.url-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.url-content {
    padding: 2rem;
}

.url-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.url-display:hover {
    border-color: var(--primary-color);
}

.url-text {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--text-primary);
    flex: 1;
    direction: ltr;
    text-align: left;
}

.copy-url-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-family: 'IRANSans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-url-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.copy-url-btn svg {
    fill: currentColor;
}

.url-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-color);
}

.url-action {
    text-align: center;
}

.url-action button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.url-action button svg {
    fill: currentColor;
}

/* حساب‌های دمو */
.demo-accounts-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.03) 0%, 
        rgba(9, 132, 227, 0.03) 100%);
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.account-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(223, 230, 233, 0.5);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.account-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.admin-card:hover {
    border-color: var(--primary-color);
}

.support-card:hover {
    border-color: var(--secondary-color);
}

.farmer-card:hover {
    border-color: #fdcb6e;
}

.account-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.account-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.1), 
        rgba(9, 132, 227, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
}

.admin-card .account-icon {
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.1), 
        rgba(9, 132, 227, 0.1));
}

.support-card .account-icon {
    background: linear-gradient(135deg, 
        rgba(9, 132, 227, 0.1), 
        rgba(156, 136, 255, 0.1));
}

.farmer-card .account-icon {
    background: linear-gradient(135deg, 
        rgba(253, 203, 110, 0.1), 
        rgba(255, 159, 67, 0.1));
}

.account-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.account-badge.admin {
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--secondary-color));
    color: white;
}

.account-badge.support {
    background: linear-gradient(135deg, 
        var(--secondary-color), 
        #9c88ff);
    color: white;
}

.account-badge.farmer {
    background: linear-gradient(135deg, 
        #fdcb6e, 
        #ff9f43);
    color: #2d3436;
}

.account-content {
    padding: 0 2rem 2rem;
    flex: 1;
}

.account-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.account-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.credentials {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.credential-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(223, 230, 233, 0.5);
}

.credential-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.credential-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.credential-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    min-width: 150px;
}

.value-text {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    flex: 1;
}

.copy-btn {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 184, 148, 0.1);
}

.copy-btn svg {
    fill: currentColor;
}

.permissions {
    margin-top: 2rem;
}

.permissions h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.permissions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.permissions li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.permissions li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.account-action {
    padding: 0 2rem 2rem;
}

.login-with-account {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.login-with-account svg {
    fill: currentColor;
}

.demo-tips {
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(223, 230, 233, 0.5);
}

.demo-tips h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tip {
    display: flex;
    gap: 1rem;
}

.tip-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tip-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* راهنمای استفاده */
.demo-guide-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.guide-steps {
    max-width: 800px;
    margin: 3rem auto 0;
}

.guide-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(223, 230, 233, 0.5);
    position: relative;
}

.guide-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.step-tip {
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.05), 
        rgba(9, 132, 227, 0.05));
    border: 1px solid rgba(0, 184, 148, 0.1);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
}

.step-tip strong {
    color: var(--primary-color);
}

.step-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.step-features li {
    padding: 0.75rem 0;
    padding-right: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-features li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.test-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.test-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(223, 230, 233, 0.3);
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.test-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.test-content h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.test-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

/* راه‌اندازی سیستم */
.setup-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.03) 0%, 
        rgba(9, 132, 227, 0.03) 100%);
}

.setup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.setup-text {
    animation: fadeInLeft 0.8s ease-out;
}

.setup-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.setup-steps {
    margin-bottom: 3rem;
}

.setup-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(223, 230, 233, 0.5);
}

.setup-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.setup-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.setup-info h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.setup-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.setup-cta {
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.05), 
        rgba(9, 132, 227, 0.05));
    border: 1px solid rgba(0, 184, 148, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.setup-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.setup-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.setup-cta a svg {
    fill: currentColor;
}

.setup-3d {
    animation: fadeInRight 0.8s ease-out;
}

.setup-3d .three-model {
    height: 500px;
}

/* پشتیبانی */
.support-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.support-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.support-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(223, 230, 233, 0.5);
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.support-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.1), 
        rgba(9, 132, 227, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.support-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
}

.support-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.support-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.support-contact,
.support-details {
    margin-top: 1.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-dark);
}

.contact-link svg {
    fill: currentColor;
}

.detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.detail strong {
    color: var(--text-primary);
}

.support-form {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(223, 230, 233, 0.5);
}

.support-form h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.support-form p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.quick-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quick-contact-form .form-group input,
.quick-contact-form .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'IRANSans', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.quick-contact-form .form-group input:focus,
.quick-contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.quick-contact-form button {
    width: 100%;
}

/* انیمیشن‌ها */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* رسپانسیو */
@media (max-width: 1200px) {
    .demo-title {
        font-size: 3rem;
    }
    
    .accounts-grid {
        gap: 1.5rem;
    }
    
    .setup-content {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .demo-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .demo-text {
        animation: fadeInUp 0.8s ease-out;
    }
    
    .demo-3d {
        order: -1;
        animation: fadeInUp 0.8s ease-out;
    }
    
    .demo-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .accounts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .test-options {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 1.5rem auto 0;
    }
    
    .setup-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .setup-text {
        animation: fadeInUp 0.8s ease-out;
    }
    
    .setup-3d {
        order: -1;
        animation: fadeInUp 0.8s ease-out;
    }
    
    .support-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .demo-hero {
        padding: 120px 0 60px;
    }
    
    .demo-title {
        font-size: 2.5rem;
    }
    
    .demo-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .url-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .url-text {
        text-align: center;
    }
    
    .copy-url-btn {
        width: 100%;
        justify-content: center;
    }
    
    .url-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .url-action button {
        width: 100%;
        justify-content: center;
    }
    
    .guide-step {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .setup-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .setup-icon {
        margin: 0 auto;
    }
    
    .support-form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .demo-title {
        font-size: 2rem;
    }
    
    .demo-subtitle {
        font-size: 1.1rem;
    }
    
    .demo-stats {
        grid-template-columns: 1fr;
    }
    
    .credential-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .credential-value {
        width: 100%;
    }
    
    .login-with-account {
        width: 100%;
        justify-content: center;
    }
    
    .setup-cta a {
        width: 100%;
        justify-content: center;
    }
}