/* Trading App Page Styles */

/* ========================================
   App Banner Hero Section
   ======================================== */
.app-banner {
    background-color: #ffffff;
    padding-top: 70px;
    position: relative;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-container .inner {
    padding: 60px 0 80px;
}

/* App Title Section */
.app-title {
    position: relative;
    background-color: #000000;
    border-radius: 20px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 200px;
    overflow: visible;
}

.app-title h1 {
    font-size: 72px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    z-index: 2;
}

.app-title h1 span {
    color: var(--primary-green);
}

.app-title .title-banner {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.app-title .title-banner.mobile {
    display: none;
}

/* App Banner Content */
.app-banner-content {
    padding: 50px 0;
}

.app-banner-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 30px;
}

.app-content-box {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.app-box-left {
    flex: 1;
    max-width: 500px;
}

.app-box-left h3 {
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    line-height: 1.7;
    margin-bottom: 30px;
}

.app-btn-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qr-code-link {
    display: block;
    transition: transform 0.3s ease;
}

.qr-code-link:hover {
    transform: scale(1.05);
}

.qr-code {
    width: 78px;
    height: 78px;
    border-radius: 8px;
}

.app-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-download-btn {
    display: inline-block;
    transition: all 0.3s ease;
}

.app-download-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.app-download-btn img {
    height: auto;
}

/* Phone Animation Container */
.app-box-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-animation-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.app-phone {
    position: absolute;
    width: 180px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(50px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.app-phone.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 10;
}

.app-animation01 {
    left: 0;
    top: 0;
    animation-delay: 0s;
}

.app-animation02 {
    left: 60px;
    top: 20px;
    animation-delay: 0.2s;
}

.app-animation03 {
    left: 120px;
    top: 10px;
    animation-delay: 0.4s;
}

.app-animation04 {
    left: 180px;
    top: 30px;
    animation-delay: 0.6s;
}

.app-phone-shadow {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 200px;
    height: auto;
    opacity: 0.3;
    z-index: 0;
}

/* Stacked phones display - all visible with offset */
.phone-animation-container .app-phone {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.phone-animation-container .app-animation01 {
    z-index: 4;
    left: 180px;
    top: 0;
}

.phone-animation-container .app-animation02 {
    z-index: 3;
    left: 120px;
    top: 0;
}

.phone-animation-container .app-animation03 {
    z-index: 2;
    left: 60px;
    top: 0;
}

.phone-animation-container .app-animation04 {
    z-index: 1;
    left: 0;
    top: 0;
}

/* Hover effect on phones */
.phone-animation-container:hover .app-animation01 {
    transform: translateX(30px);
}

.phone-animation-container:hover .app-animation02 {
    transform: translateX(10px);
}

.phone-animation-container:hover .app-animation03 {
    transform: translateX(-10px);
}

.phone-animation-container:hover .app-animation04 {
    transform: translateX(-30px);
}

/* ========================================
   Product Details Section
   ======================================== */
.app-product-details {
    padding: 40px 0;
}

.app-product-details ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-product-details ul li {
    flex: 1;
    background-color: #f8f8f8;
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-product-details ul li:hover {
    background-color: #000000;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.app-product-details ul li:hover .product-details-title .title-text .top-text,
.app-product-details ul li:hover .product-details-title .title-text .bottom-text {
    color: #ffffff;
}

.app-product-details ul li:hover .title-text-ico {
    color: var(--primary-green);
}

.app-product-details ul li:hover .product-details-content span {
    color: var(--primary-green);
}

.product-details-title {
    margin-bottom: 20px;
}

.title-text .top-text {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.title-text .bottom-text {
    font-size: 12px;
    color: #999999;
    transition: color 0.3s ease;
}

.title-text-ico {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 14px;
    color: #cccccc;
    transition: color 0.3s ease;
}

.product-details-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.product-details-content span {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    transition: color 0.3s ease;
}

.product-details-content img {
    max-height: 73px;
    width: auto;
}

/* ========================================
   App Details Content Section
   ======================================== */
.app-details-section {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.app-details-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.details-content-img {
    flex: 0 0 45%;
}

.details-content-img img {
    width: 100%;
    max-width: 526px;
    height: auto;
    border-radius: 20px;
}

.details-content-text {
    flex: 1;
}

.text-box {
    margin-bottom: 40px;
    padding-left: 25px;
    border-left: 3px solid var(--primary-green);
}

.text-box.first-box {
    border-left-color: var(--primary-green);
}

.text-box h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
}

.text-box p {
    font-size: 15px;
    color: #666666;
    line-height: 1.8;
}

/* ========================================
   App Download Process Section
   ======================================== */
.app-download-process {
    background-color: #ffffff;
    padding: 80px 0;
}

.app-download-process h2 {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 60px;
}

.app-download-process h2 span {
    color: var(--primary-green);
}

.process-list {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0 0 50px 0;
}

.process-list li {
    flex: 1;
    background-color: #f8f8f8;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.process-list li:hover {
    background-color: #000000;
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.process-list li:hover .process-title span,
.process-list li:hover .process-title h3,
.process-list li:hover p {
    color: #ffffff;
}

.process-list li:hover .process-icon {
    background-color: var(--primary-green);
    color: #000000;
}

.process-title {
    margin-bottom: 20px;
}

.process-title span {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.process-title h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    transition: color 0.3s ease;
}

.process-list p {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 30px;
    min-height: 48px;
    transition: color 0.3s ease;
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: rgba(198, 255, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.process-icon i {
    font-size: 32px;
    color: var(--primary-green);
    transition: color 0.3s ease;
}

.process-list li:hover .process-icon i {
    color: #000000;
}

.process-cta {
    text-align: center;
}

.process-cta .btn-dark {
    padding: 15px 50px;
    font-size: 16px;
    border-radius: 30px;
}

/* ========================================
   App Download Link Section
   ======================================== */
.app-download-link {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    padding: 80px 0;
    overflow: hidden;
}

.download-link-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.details-content {
    flex: 1;
}

.details-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
    line-height: 1.4;
}

.download-btn-group {
    display: flex;
    gap: 20px;
}

.download-btn-group a {
    display: inline-block;
    transition: all 0.3s ease;
}

.download-btn-group a:hover {
    transform: translateY(-5px);
}

.download-btn-group img {
    height: 59px;
    width: auto;
}

.details-img {
    flex: 0 0 300px;
}

.details-img img {
    width: 100%;
    max-width: 315px;
    height: auto;
}

/* ========================================
   FAQ Section
   ======================================== */
.app-faq-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.app-faq-section .section-header {
    margin-bottom: 50px;
}

.app-faq-section .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    text-align: center;
}

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

.faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #d0d0d0;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.faq-question:hover {
    background-color: #fafafa;
}

.faq-num {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-right: 12px;
    min-width: 30px;
}

.faq-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #000000;
}

.faq-arrow {
    font-size: 14px;
    color: #999999;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(90deg);
    color: var(--primary-green);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 25px 67px;
}

.faq-answer p {
    font-size: 14px;
    color: #666666;
    line-height: 1.9;
}

/* ========================================
   Join CTA Section
   ======================================== */
.join-cta-section {
    background-color: #000000;
    padding: 80px 0 60px;
}

.join-cta-content {
    text-align: center;
}

.join-cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
}

.join-cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.join-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.join-stat-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.join-stat-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.join-stat-column ul li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.join-stat-column ul li:hover {
    color: var(--primary-green);
}

.apps-column {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.app-downloads {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-downloads img {
    height: 40px;
    width: auto;
}

/* ========================================
   Footer Styles
   ======================================== */
.footer-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-brand-row .footer-logo img {
    height: 40px;
}

.footer-brand-row .footer-badges {
    display: flex;
    gap: 20px;
}

.footer-brand-row .footer-badges img {
    height: 40px;
    width: auto;
}

.footer-legal-content {
    padding-bottom: 30px;
}

.footer-legal-content p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.regulatory-list {
    list-style: disc;
    margin-left: 20px;
    margin-top: 10px;
}

.regulatory-list li {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 5px;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-chat-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    cursor: pointer;
}

.footer-chat-icon i {
    font-size: 18px;
}

/* ========================================
   Animations
   ======================================== */
@keyframes phoneSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes phoneFade {
    0%, 20% {
        opacity: 1;
        z-index: 10;
    }
    25%, 100% {
        opacity: 0.7;
        z-index: 1;
    }
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1200px) {
    .app-title h1 {
        font-size: 60px;
    }
    
    .join-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .apps-column {
        justify-content: flex-start;
    }
}

@media (max-width: 992px) {
    .app-title {
        padding: 40px;
    }
    
    .app-title h1 {
        font-size: 48px;
    }
    
    .app-title .title-banner {
        right: 40px;
        max-width: 200px;
    }
    
    .app-content-box {
        flex-direction: column;
    }
    
    .app-box-left {
        max-width: 100%;
    }
    
    .phone-animation-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .app-details-content {
        flex-direction: column;
        gap: 50px;
    }
    
    .details-content-img {
        flex: auto;
        text-align: center;
    }
    
    .process-list {
        flex-direction: column;
    }
    
    .download-link-content {
        flex-direction: column;
        text-align: center;
    }
    
    .download-btn-group {
        justify-content: center;
    }
    
    .join-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand-row {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .app-banner {
        padding-top: 60px;
    }
    
    .app-container .inner {
        padding: 40px 0 60px;
    }
    
    .app-title {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    
    .app-title h1 {
        font-size: 42px;
        margin-bottom: 20px;
    }
    
    .app-title .title-banner {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .app-title .title-banner.desktop {
        display: none;
    }
    
    .app-title .title-banner.mobile {
        display: block;
    }
    
    .app-banner-content h2 {
        font-size: 26px;
    }
    
    .app-btn-box {
        flex-direction: column;
        align-items: center;
    }
    
    .app-btn-group {
        flex-direction: row;
    }
    
    .app-product-details ul {
        flex-direction: column;
    }
    
    .app-product-details ul li {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .product-details-title {
        flex: 1;
        margin-bottom: 0;
    }
    
    .product-details-content {
        flex: 0 0 auto;
    }
    
    .text-box h3 {
        font-size: 20px;
    }
    
    .app-download-process h2 {
        font-size: 28px;
    }
    
    .details-content h2 {
        font-size: 28px;
    }
    
    .join-cta-content h2 {
        font-size: 28px;
    }
    
    .join-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .join-stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .phone-animation-container {
        height: 350px;
    }
    
    .app-phone {
        width: 140px;
    }
    
    .phone-animation-container .app-animation01 {
        left: 140px;
    }
    
    .phone-animation-container .app-animation02 {
        left: 95px;
    }
    
    .phone-animation-container .app-animation03 {
        left: 50px;
    }
    
    .phone-animation-container .app-animation04 {
        left: 5px;
    }
}

@media (max-width: 576px) {
    .app-title h1 {
        font-size: 36px;
    }
    
    .app-banner-content h2 {
        font-size: 22px;
    }
    
    .process-title span {
        font-size: 36px;
    }
    
    .process-title h3 {
        font-size: 20px;
    }
    
    .download-btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }
    
    .phone-animation-container {
        height: 300px;
    }
    
    .app-phone {
        width: 120px;
    }
    
    .phone-animation-container .app-animation01 {
        left: 120px;
    }
    
    .phone-animation-container .app-animation02 {
        left: 80px;
    }
    
    .phone-animation-container .app-animation03 {
        left: 40px;
    }
    
    .phone-animation-container .app-animation04 {
        left: 0;
    }
}
