/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #0b0b12;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Glow Effects */
.background-glows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
}

.glow-1 {
    top: -10%;
    left: 10%;
    width: 500px;
    height: 500px;
    background-color: #6366f1; /* Indigo */
}

.glow-2 {
    top: 40%;
    right: 5%;
    width: 600px;
    height: 600px;
    background-color: #b45309; /* Amber */
}

/* Header Styles */
header {
    background-color: rgba(15, 15, 25, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
    border: none;
}

.btn-primary {
    background-color: #f59e0b; /* Amber */
    color: #0b0b12;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    background-color: #6366f1; /* Indigo */
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.35);
}

.btn-secondary:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5);
}

.btn-glass {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 12px;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background-color: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}

h1 {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 540px;
    height: auto;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    width: 100%;
}

.download-btn {
    flex-grow: 1;
    max-width: 320px;
}

.ios-btn {
    flex-grow: 1;
    max-width: 260px;
}

.version-meta {
    font-size: 12px;
    color: #475569;
}

/* Logo Card Representation */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 36px;
    padding: 40px;
    width: 320px;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.logo-card:hover {
    transform: translateY(-8px) rotate(1deg);
}

.main-logo-image {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.35);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-text {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.logo-desc {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 700;
}

.glow-layer {
    position: absolute;
    width: 80%;
    height: 80%;
    background-color: rgba(99, 102, 241, 0.1);
    filter: blur(50px);
    border-radius: 50%;
    z-index: -1;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 60px 0 100px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: rgba(15, 15, 25, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: rgba(15, 15, 25, 0.55);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #08080d;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    font-size: 12px;
    color: #475569;
}

/* Animations */
.animated-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animated-scale-in {
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Modal Overlay & Card */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: #11111a;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.close-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #ffffff;
}

.modal-body {
    padding: 32px;
}

.modal-intro {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.help-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding-right: 20px;
}

.help-steps li {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
}

.help-steps li strong {
    color: #ffffff;
}

.help-steps a {
    color: #6366f1;
    text-decoration: underline;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 40px 0;
    }
    
    .hero-text {
        align-items: center;
    }
    
    .download-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0 60px;
    }
}
