/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
html {
    font-display: swap;
}

/* Prevent layout shift */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Improve text rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #315a57;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3f7 50%, #ddeef2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection colors */
::selection {
    background: rgba(113, 169, 194, 0.3);
    color: #315a57;
}

::-moz-selection {
    background: rgba(113, 169, 194, 0.3);
    color: #315a57;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(113, 169, 194, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #71a9c2, #62b3ad);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #809ed7, #71a9c2);
}

/* ===== BACKGROUND ELEMENTS ===== */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(128, 158, 215, 0.15), rgba(98, 179, 173, 0.15));
    backdrop-filter: blur(40px);
    animation: float 25s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: -5%;
    animation-delay: -8s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 10%;
    animation-delay: -16s;
}

.orb-4 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 20%;
    animation-delay: -12s;
}

.orb-5 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    right: 40%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translate(30px, -30px) rotate(90deg);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-20px, -60px) rotate(180deg);
        opacity: 0.3;
    }
    75% { 
        transform: translate(-40px, -20px) rotate(270deg);
        opacity: 0.4;
    }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 252, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(113, 169, 194, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-svg {
    width: 20px;
    height: 20px;
}

.brand-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(113, 169, 194, 0.3));
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: drop-shadow(0 4px 12px rgba(113, 169, 194, 0.4));
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #315a57;
    line-height: 1;
}



.nav-status {
    display: flex;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(113, 169, 194, 0.15);
    color: #71a9c2;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(113, 169, 194, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #62b3ad;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 4rem 0 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    opacity: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(128, 158, 215, 0.15);
    color: #71a9c2;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(128, 158, 215, 0.3);
    animation: glow 3s ease-in-out infinite;
}

.badge-icon {
    font-size: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(128, 158, 215, 0.3);
        transform: translateY(0);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(128, 158, 215, 0.4);
        transform: translateY(-2px);
    }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: #315a57;
}

.gradient-text {
    background: linear-gradient(135deg, #809ed7, #62b3ad, #71a9c2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-description {
    font-size: 1.125rem;
    color: #315a57;
    margin-bottom: 0.5rem;
    line-height: 1.8;
    max-width: 90%;
    opacity: 0.9;
    text-align: center;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #315a57;
    border: 1px solid rgba(113, 169, 194, 0.2);
    box-shadow: 0 4px 15px rgba(113, 169, 194, 0.1);
    transition: all 0.3s ease;
}

.feature-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(113, 169, 194, 0.2);
    border-color: rgba(98, 179, 173, 0.4);
}

.pill-icon {
    font-size: 1rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.cta-primary {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #71a9c2, #62b3ad);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(113, 169, 194, 0.4);
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(113, 169, 194, 0.5);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-icon {
    font-size: 1.125rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.launch-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.launch-date {
    font-weight: 700;
    color: #71a9c2;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.visual-container {
    position: relative;
    width: 300px;
    height: 600px;
    margin: 0 auto;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #1f2937, #374151);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-interface {
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.interface-header {
    margin-bottom: 2rem;
}

.status-bar {
    width: 60px;
    height: 4px;
    background: rgba(113, 169, 194, 0.4);
    border-radius: 2px;
    margin: 0 auto 1rem auto;
}

.app-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #315a57;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-logo {
    width: 120x;
    height: 120x;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(113, 169, 194, 0.3));
}

.interface-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mood-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #71a9c2, #62b3ad);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotate 10s linear infinite;
}

.mood-indicator {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: relative;
}

.mood-indicator::before {
    content: '😊';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.interface-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.interface-card {
    height: 40px;
    border-radius: 12px;
    animation: slideIn 2s ease-in-out infinite;
}

.card-1 {
    background: linear-gradient(90deg, #71a9c2, #62b3ad);
    animation-delay: 0s;
}

.card-2 {
    background: linear-gradient(90deg, #62b3ad, #809ed7);
    animation-delay: 0.5s;
}

.card-3 {
    background: linear-gradient(90deg, #809ed7, #315a57);
    animation-delay: 1s;
}

@keyframes slideIn {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(10px); opacity: 1; }
}

.visual-effects {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.effect-ring {
    position: absolute;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    animation: expand 4s ease-in-out infinite;
}

.ring-1 {
    width: 350px;
    height: 350px;
    top: -175px;
    left: -175px;
    animation-delay: 0s;
}

.ring-2 {
    width: 450px;
    height: 450px;
    top: -225px;
    left: -225px;
    animation-delay: 1s;
}

.ring-3 {
    width: 550px;
    height: 550px;
    top: -275px;
    left: -275px;
    animation-delay: 2s;
}

@keyframes expand {
    0%, 100% { 
        transform: scale(0.8);
        opacity: 0;
    }
    50% { 
        transform: scale(1);
        opacity: 0.3;
    }
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #315a57;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #71a9c2;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    justify-items: center;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #809ed7, #62b3ad, #71a9c2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(113, 169, 194, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    position: relative;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(128, 158, 215, 0.15), rgba(98, 179, 173, 0.15));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-bg {
    transform: translate(-50%, -50%) scale(1.1);
    background: linear-gradient(135deg, rgba(128, 158, 215, 0.25), rgba(98, 179, 173, 0.25));
}

.icon-emoji {
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-emoji {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #315a57;
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 1rem;
    color: #71a9c2;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.feature-highlight {
    background: rgba(113, 169, 194, 0.15);
    color: #71a9c2;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ===== STATS SECTION ===== */
.stats {
    padding: 4rem 0;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
    padding: 6rem 0;
    background: rgba(248, 252, 255, 0.8);
    backdrop-filter: blur(20px);
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.newsletter-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #315a57;
    margin-bottom: 1rem;
}

.newsletter-description {
    font-size: 1.125rem;
    color: #71a9c2;
    margin-bottom: 3rem;
    line-height: 1.7;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(113, 169, 194, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
    direction: ltr;
    text-align: left;
}

.form-input:focus {
    border-color: #71a9c2;
    box-shadow: 0 0 0 3px rgba(113, 169, 194, 0.15);
}

.form-input::placeholder {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #94a3b8;
    direction: rtl;
    text-align: right;
}

.form-submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #71a9c2, #62b3ad);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(113, 169, 194, 0.4);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(113, 169, 194, 0.5);
}

.submit-icon {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
    transform: scaleX(-1);
}

.form-submit:hover .submit-icon {
    transform: scaleX(-1) translateX(3px);
}

.form-submit:active .submit-icon,
.form-submit:focus .submit-icon {
    transform: scaleX(-1) translateX(3px);
}

.form-note {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
}

.form-note a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.form-note a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #315a57, #71a9c2);
    color: white;
    padding: 3rem 0 1.5rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    filter: brightness(0) invert(1);
    transform: scale(1.05);
    opacity: 0.8;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #62b3ad, #809ed7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-svg {
    width: 20px;
    height: 20px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-description {
    color: #d1d5db;
    line-height: 1.7;
    font-size: 0.95rem;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #6366f1;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

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

.social-link:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1.125rem;
    color: white;
    transition: color 0.3s ease;
}

.social-link:hover .social-icon {
    color: #71a9c2;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-copyright p {
    font-size: 0.875rem;
    color: #d1d5db;
}

.footer-made {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.legal-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #6366f1;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .visual-container {
        width: 250px;
        height: 500px;
        margin: 0 auto;
    }
    
    .phone-mockup {
        width: 230px;
        height: 460px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: none;
    }
    
    .skip-link {
        display: none !important;
    }
    
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero {
        padding: 3rem 0 4rem 0;
    }
    
    .hero-container {
        padding: 0 1rem;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-cta {
        align-items: center;
        text-align: center;
    }
    
    .hero-badge {
        margin-bottom: -1rem;
        transform: translateY(-90%) !important;
    }
    
    .launch-info {
        justify-content: center;
        text-align: center;
    }
    
    .features-container,
    .stats-container,
    .newsletter-container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-group {
        flex-direction: column;
        align-items: center;
    }
    
    .form-submit {
        width: 100%;
        justify-content: center;
        max-width: 200px;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-brand {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        display: none;
    }
    
    .skip-link {
        display: none !important;
    }
    
    .nav-container {
        padding: 0.75rem;
        text-align: center;
    }
    
    .hero {
        padding: 2rem 0 0 0;
    }
     
    .hero-container {
        text-align: center;
    }
    
    /* تنظیم flexbox برای جابجایی فقط badge */
    .hero-content {
        display: flex;
        flex-direction: column;
         transform: translateY(-40px);
    }
    
    .hero-badge {
        order: 3; /* بعد از title و description */
        margin-bottom: 0;
        margin-top: 1.5rem;
    }
    
    .hero-title {
        order: 1; /* اول */
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-description {
        order: 2; /* دوم */
        font-size: 0.9rem;
        text-align: center;
        max-width: 100%;
    }
    
    .hero-features {
        order: 4; /* بعد از badge */
    }
    
    .hero-cta {
        order: 5; /* آخر */
        align-items: center;
        text-align: center;
    }
    
    .launch-info {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }
    
    .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .visual-container {
        width: 200px;
        height: 400px;
        margin: 0 auto;
    }
    
    .phone-mockup {
        width: 180px;
        height: 360px;
        padding: 15px;
        margin: 0 auto;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-title {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .newsletter-description {
        text-align: center;
    }
    
    .form-group {
        align-items: center;
    }
    
    .form-submit {
        width: 100%;
        justify-content: center;
        max-width: 180px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .footer-brand {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .floating-orb {
        display: none;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: high) {
    .feature-card,
    .stat-item,
    .newsletter {
        border: 2px solid #6366f1;
    }
    
    .gradient-text {
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        background-clip: unset;
        color: #1a202c;
        font-weight: 900;
    }
}

/* Focus indicators */
*:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip link styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #6366f1;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .newsletter {
        display: none;
    }
    
    .hero,
    .features {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .background-elements {
        display: none;
    }
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(113, 169, 194, 0.2);
    border: 1px solid rgba(113, 169, 194, 0.1);
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #809ed7, #62b3ad, #71a9c2);
    border-radius: 24px 24px 0 0;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #71a9c2, #62b3ad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(113, 169, 194, 0.4);
    animation: modalIconPulse 2s ease-in-out infinite;
}

@keyframes modalIconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(113, 169, 194, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(113, 169, 194, 0.5);
    }
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #315a57;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.modal-message {
    font-size: 1.125rem;
    color: #71a9c2;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.modal-highlight {
    background: linear-gradient(135deg, #71a9c2, #62b3ad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.modal-close {
    background: linear-gradient(135deg, #71a9c2, #62b3ad);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(113, 169, 194, 0.4);
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(113, 169, 194, 0.5);
}

.modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modal-close:hover::before {
    left: 100%;
}

.modal-decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.modal-orb {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    animation: modalFloat 20s infinite ease-in-out;
}

.modal-orb-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.modal-orb-2 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 15%;
    animation-delay: -10s;
}

@keyframes modalFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translate(10px, -10px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-message {
        font-size: 1rem;
    }
}