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

::-webkit-scrollbar {
    width: 0px;
  }
  
  ::-webkit-scrollbar-track {
    background-color: #000;
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: #00afac;
    border-radius: 0px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background-color: #1000de;
  }
  
  ::-webkit-scrollbar-y {
    width: 0px;
  }
  ::-webkit-scrollbar-x {
    width: 0px;
  }
  ::-webkit-scrollbar-thumb:vertical {
    background-color: #00afac;
    border-radius: 0px;
  }
  
  ::-webkit-scrollbar-thumb:vertical:hover {
    background-color: #1000de;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background: #f5f7fa;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
    background: linear-gradient(135deg, #070748 0%, #030312 100%);
    color: white;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 40%;
    border-bottom: 50px solid #e9d9a5;
}

a {
    text-decoration: none;
}

.fa, .fa-brands, .fa-duotone, .fa-light, .fa-regular, .fa-solid, .fa-thin, .fab, .fad, .fal, .far, .fas, .fat {
    font-size: 1.3em;
    margin-left: 5px;
}

.space-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.star {
    fill: rgba(255, 253, 240, 0.8);
    animation: twinkle 1.5s ease-in-out infinite alternate;
}

.moon {
    fill: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    animation: float-element 8s ease-in-out infinite;
}

.crescent {
    fill: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    animation: crescent-spin 12s linear infinite;
    transform-origin: center;
}

.galaxy {
    fill: rgba(255, 253, 240, 0.15);
    animation: rotate 30s linear infinite;
}

@keyframes twinkle {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

@keyframes float-element {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

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

@keyframes crescent-spin {
    from { transform: rotate(0deg) translateX(50px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

.phone-container {
    perspective: 1000px;
    position: relative;
}

.phone-container::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: #ffd700;
    filter: blur(30px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: -1;
    animation: moonGlow 4s ease-in-out infinite;
}

@keyframes moonGlow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.4; }
}

.iphone {
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 10px;
    position: relative;
    transform: rotateY(-20deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: rotateY(-20deg) translateY(0px); }
    50% { transform: rotateY(-20deg) translateY(-20px); }
    100% { transform: rotateY(-20deg) translateY(0px); }
}

.notch {
    width: 150px;
    height: 30px;
    background: #1a1a1a;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 2;
}

.iphone iframe {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background: white;
}

.hero-content, .phone-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 394px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h3 {
    color: #ffd700;
}

.download-buttons {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    padding: 15px 20px 10px 20px;
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    color: white;
    text-decoration: none;
    border-radius: 60px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    justify-content: space-evenly;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-btn i,
.download-btn .store-icon {
    font-size: 1.5em;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.download-btn:hover i,
.download-btn:hover .store-icon {
    transform: scale(1.2) rotate(360deg);
}

.download-btn::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: 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #1a1a1a;
    border-color: #ffd700;
    box-shadow: 0 10px 25px rgba(118, 75, 162, 0.3),
                0 0 0 20px rgba(118, 75, 162, 0.05);
}

.store-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.download-btn:hover .store-icon {
    transform: scale(1.2) rotate(360deg);
}

.features {
    padding: 4rem 2rem;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(118, 75, 162, 0.1);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    transform-origin: center;
    animation: cardFloat 6s ease-in-out infinite;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 10px rgba(118, 75, 162, 0.3));
}

.feature-icon {
    width: 50px;
    height: 50px;
    fill: #764ba2;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
}

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

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    background: linear-gradient(135deg, #070748b8 0%, #050527c7 100%);
}

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

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-cta {
    background: white;
    color: #764ba2 !important;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.footer {
    background: linear-gradient(135deg, #030312 0%, #050514 100%);
    color: white;
    padding: 4rem 2rem 1rem 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 50px 50px 0 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #ffffff20, transparent),
        radial-gradient(2px 2px at 40px 70px, #ffffff15, transparent),
        radial-gradient(2px 2px at 50px 160px, #ffffff10, transparent),
        radial-gradient(2px 2px at 90px 40px, #ffffff18, transparent),
        radial-gradient(2px 2px at 130px 80px, #ffffff12, transparent),
        radial-gradient(2px 2px at 160px 120px, #ffffff16, transparent);
    background-repeat: repeat;
    animation: moveStars 60s linear infinite;
}

@keyframes moveStars {
    from { background-position: 0 0; }
    to { background-position: 1000px 500px; }
}

.footer-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.footer-section {
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    animation: expandWidth 0.5s ease forwards 0.5s;
}

@keyframes expandWidth {
    to {
        width: 100%;
    }
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
    position: relative;
    padding-right: 20px;
}

.footer-section a::before {
    content: '→';
    position: absolute;
    right: 0;
    opacity: 0;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: #ffd700;
    transform: translateX(-10px);
}

.footer-section a:hover::before {
    opacity: 1;
    transform: translateX(10px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

.pricing {
    padding: 6rem 2rem;
    text-align: center;
}

.pricing h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background: #1f1436;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    animation: priceCardFloat 6s ease-in-out infinite;
}

.price-card:hover {
    transform: translateY(-10px);
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #764ba2, #ffd700);
}

.price-card.popular::after {
    content: 'پیشنهاد ویژه';
    position: absolute;
    top: 20px;
    right: -35px;
    background: #ffd700;
    color: #1a1a1a;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.price {
    font-size: 2.5rem;
    color: #764ba2;
    margin: 1rem 0;
    font-weight: bold;
}

.price span {
    font-size: 1rem;
    color: #666;
}

.features-list {
    list-style: none;
    margin: 1.5rem 0;
    text-align: right;
}

.features-list li {
    margin: 0.8rem 0;
    color: #fff;
    position: relative;
    padding-right: 25px;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #764ba2;
}

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

.contact {
    padding: 6rem 2rem;
    background: white;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f5f7fa 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
}

.contact-info {
    text-align: right;
    margin-top: 30px;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 100;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #764ba2;
    outline: none;
}

.submit-btn {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: buttonShine 3s linear infinite;
}

@keyframes buttonShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050514;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loader {
    width: 100px;
    height: 150px;
    position: relative;
}

.building {
    width: 100%;
    height: 100%;
    position: relative;
    animation: buildingGrow 2s ease infinite;
    clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}

.windows {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
}

.window {
    background: #e9d9a5;
    animation: windowLight 1s ease-in-out infinite;
}

@keyframes buildingGrow {
    0%, 100% { transform: scaleY(0.8); }
    50% { transform: scaleY(1); }
}

@keyframes windowLight {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 1rem;
    }

    .phone-container {
        margin-bottom: 3rem;
    }

    .iphone {
        width: 250px;
        height: 500px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-btn {
        min-width: auto;
        max-width: 100%;
        padding: 0.8rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(26, 54, 93, 0.98);
        backdrop-filter: blur(10px);
        padding: 80px 2rem;
        transition: right 0.3s ease;
        align-items: flex-start;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        margin: 1rem 0;
    }

    .hero {
        padding-top: 6rem;
    }

    .iphone {
        width: 280px;
        height: 550px;
        margin: 2rem auto;
    }

    .hero-content {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .download-buttons {
        gap: 1rem;
    }

    .download-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .pricing-grid {
        padding: 0 1rem;
    }

    .price-card {
        padding: 1.5rem;
    }

    .contact-content {
        padding: 0 1rem;
    }

    .footer-content {
        padding: 1.5rem;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }
}

.install-pwa-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #030312;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.install-pwa-btn:hover {
    background-color: #1a1a1a;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .install-pwa-btn {
        bottom: 80px;
        font-size: 14px;
        padding: 10px 20px;
    }
}

.browser-message {
    background: linear-gradient(135deg, rgba(255, 87, 87, 0.1) 0%, rgba(255, 87, 87, 0.2) 100%);
    color: #ff5757;
    padding: 15px 20px;
    border-radius: 60px;
    margin-bottom: 1rem;
    text-align: center;
    border: 2px solid rgba(255, 87, 87, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease;
}

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