/* ===================================
   مالیات‌سنج - Landing Page Styles
   =================================== */

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    height: 100vh;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        #EBEBEC 0%, 
        white 25%, 
        #002676 40%,
        #FDB515 60%,
        white 75%, 
        #EBEBEC 100%);
    background-size: 200% auto;
    animation: wave-line 5s linear infinite;
    z-index: 10;
}

.network-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Hero Content - Right Column */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    animation: fadeInRight 0.8s ease-out;
    box-sizing: border-box;
}

.logo-wrapper {
    margin-bottom: 2rem;
}

.hero-logo {
    width: 140px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, 
        #EBEBEC 0%, 
        white 25%, 
        #FDB515 50%, 
        white 75%, 
        #EBEBEC 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wave-text 4s linear infinite;
    margin-bottom: 2.5rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.hero-title-underline {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    transform-origin: right center;
    transform: scaleX(0);
    filter: drop-shadow(0 2px 6px rgba(253, 181, 21, 0.3));
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 3rem;
    line-height: 1.5;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn {
    padding: 0.6rem 2.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 140px;
}

.btn-signup {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-signup:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-login {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-login:hover {
    color: white;
    border-color: white;
}

/* Hero Image - Left Column */
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInLeft 0.8s ease-out;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
}

.product-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes wave-text {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes wave-line {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes drawUnderline {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.hero-title-underline.animate {
    animation: drawUnderline 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
}


/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        height: auto;
    }

    .hero-content {
        order: 1;
        padding: 1rem;
        align-items: center;
        text-align: center;
    }

    .hero-image {
        order: 2;
    }

    .hero-logo {
        margin: 0 auto;
    }

    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 2.25rem;
    }

    .hero-title-underline {
        height: 18px;
        bottom: -12px;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .btn {
        padding: 0.55rem 2rem;
        font-size: 1rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem;
        height: auto;
        min-height: 100vh;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        height: auto;
    }

    .hero-content {
        order: 1;
        padding: 1rem;
        align-items: center;
        text-align: center;
    }

    .hero-image {
        order: 2;
        padding: 0;
    }

    .logo-wrapper {
        margin-bottom: 1.5rem;
    }

    .hero-logo {
        width: 110px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .hero-title-underline {
        height: 16px;
        bottom: -10px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: row;
        width: 100%;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .btn {
        padding: 0.55rem 1.75rem;
        font-size: 1rem;
        flex: 1;
        min-width: 130px;
    }

    .product-image {
        width: 100%;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .hero-section {
        padding: 1rem;
    }

    .hero-content {
        padding: 0.5rem;
    }

    .hero-logo {
        width: 95px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.75rem;
    }

    .hero-title-underline {
        height: 14px;
        bottom: -8px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.95rem;
    }

    .product-image {
        width: 100%;
    }
}

/* Extra Large Screens */
@media (min-width: 1400px) {
    .hero-container {
        gap: 3rem;
    }

    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.7rem 2.75rem;
        font-size: 1.25rem;
    }
}

/* ===================================
   Try It Section
   =================================== */

.try-it-section {
    background-color: var(--bg-color);
    padding: 5rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.try-it-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.try-it-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.try-it-subtitle {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* Chat Input Styles - Copied from home.css */
.chat-input-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.input-group-custom {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 2rem;
    padding: 0.5rem;
    border: 2px solid #e5e5e5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.input-group-custom:focus-within {
    border-color: transparent;
    box-shadow: 0 4px 25px rgba(1, 1, 51, 0.15);
}

.chat-input {
    border: none;
    border-radius: 1.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    min-height: 48px;
    background-color: transparent;
    transition: all 0.2s ease;
    flex: 1;
    line-height: 1.5;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    cursor: default;
}

.chat-input:focus {
    border: none;
    box-shadow: none;
    background-color: transparent;
    outline: none;
}

.chat-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    font-size: 1rem;
}

/* Attachment Button */
.attachment-button {
    background-color: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Send Button */
.send-button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.send-button i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.2rem;
}

.send-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.send-button::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.send-button::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.send-button:hover::before,
.send-button:hover::after {
    opacity: 1;
}

/* Typing Animation */
.chat-input.typing {
    color: var(--primary-color);
}

/* Try It Responsive */
@media (max-width: 768px) {
    .try-it-section {
        padding: 4rem 1.5rem;
    }

    .try-it-title {
        font-size: 2rem;
    }

    .try-it-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .chat-input {
        font-size: 1rem;
        padding: 0.65rem 1rem;
    }

    .chat-input::placeholder {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .try-it-section {
        padding: 3rem 1rem;
    }

    .try-it-title {
        font-size: 1.75rem;
    }

    .try-it-subtitle {
        font-size: 0.95rem;
    }

    .chat-input {
        font-size: 0.95rem;
    }

    .chat-input::placeholder {
        font-size: 0.85rem;
    }

    .send-button,
    .attachment-button {
        width: 42px;
        height: 42px;
    }
}

/* ===================================
   Features Section
   =================================== */

.features-section {
    background-color: white;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.features-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

/* Glass Morphism Cards */
.feature-card {
    background: var(--bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    /* border: 2px solid #010133; */
}

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

.feature-image {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.feature-description {
    font-size: 1rem;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1.8;
}

/* Features Section Responsive */
@media (max-width: 1024px) {
    .features-section {
        padding: 3.5rem 1.5rem;
    }

    .features-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .feature-card {
        padding: 2rem 1.75rem;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 3rem 1rem;
    }

    .features-container {
        gap: 2rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

    .feature-title {
        font-size: 1.3rem;
    }

    .feature-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .features-section {
        padding: 2.5rem 1rem;
    }

    .feature-card {
        padding: 1.75rem 1.25rem;
    }

    .feature-icon {
        font-size: 3rem;
    }

    .feature-title {
        font-size: 1.2rem;
    }

    .feature-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* ===================================
   FAQ Section
   =================================== */

.faq-section {
    background-color: white;
    padding: 5rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

.faq-item {
    background: var(--bg-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: var(--bg-color);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    transition: all 0.3s ease;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.faq-item:hover .faq-question {
    color: #002676;
}

.faq-item:hover .faq-icon {
    color: #002676;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--bg-color);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    color: var(--primary-color);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 3.5rem 1rem;
    }

    .faq-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .faq-icon {
        font-size: 1.25rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 3rem 1rem;
    }

    .faq-title {
        font-size: 1.75rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1rem 1.25rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

/* ===================================
   Scroll to Top Button
   =================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: #010133;
    color: white;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(1, 1, 51, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #002676;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(1, 1, 51, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 44px;
        height: 44px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1rem;
    }
}

/* ===================================
   Footer
   =================================== */

.landing-footer {
    background-color: var(--bg-color);
    padding: 4rem 2rem 2rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    box-sizing: border-box;
}

/* Section Title */
.footer-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

/* About Section */
.footer-about {
    padding: 0;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--primary-color);
    text-align: justify;
}

/* Contact Section */
.footer-contact {
    padding: 0 1.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--secondary-color);
    min-width: 24px;
}

/* Logos Wrapper */
.footer-logos-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
}

.footer-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.footer-logo {
    max-width: 130px;
    height: auto;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Copyright */
.footer-copyright {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(1, 1, 51, 0.1);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-copyright p {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-about,
    .footer-contact {
        text-align: center;
        padding: 0;
        border-left: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 2rem;
    }

    .footer-text {
        text-align: center;
    }

    .contact-info {
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    /* Logos - Center on tablet/mobile */
    .footer-logos-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
    
    .footer-logo-item {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .landing-footer {
        padding: 3rem 1.5rem 1.5rem 1.5rem;
    }

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

    /* About and Contact: Full Width */
    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    /* Logos: Full Width, items centered */
    .footer-logos-wrapper {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
    
    .footer-logo-item {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .footer-section-title {
        font-size: 1.35rem;
    }

    .footer-text,
    .contact-item {
        font-size: 0.9rem;
    }

    .footer-logo {
        max-width: 120px;
    }

    .footer-copyright p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .landing-footer {
        padding: 2.5rem 1rem 1.5rem 1rem;
    }

    .footer-section-title {
        font-size: 1.25rem;
    }

    .footer-text,
    .contact-item {
        font-size: 0.85rem;
    }

    .footer-logos-wrapper {
        gap: 1.5rem;
    }

    .footer-logo-item {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .footer-logo {
        max-width: 100px;
        margin: 0 auto;
    }

    .footer-copyright p {
        font-size: 0.85rem;
    }
}

