/* ========================================
   LANDING PAGE STYLES (index.php)
   ======================================== */

/* Hero Section */
.hero {
    padding: 7rem 2rem 5rem;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: 
        "content panorama"
        "buttons buttons"
        "features features";
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem 2rem;
    position: relative;
}

.hero-content {
    grid-area: content;
    max-width: 540px;
    justify-self: end;
    text-align: left;
}

.hero-image {
    grid-area: panorama;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    position: relative;
}

.hero-buttons {
    grid-area: buttons;
    display: flex;
    gap: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    justify-content: center;
    margin: 2rem auto 0;
    max-width: 600px;
}

.hero-feature-bar {
    grid-area: features;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.8));
    width: 90%;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    max-width: 95%;
    line-height: 1.6;
    text-align: left;
}

/* Panorama Container */
@keyframes subtle-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.005); }
    100% { transform: scale(1); }
}

.panorama-container {
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 10px 20px -5px rgba(0, 0, 0, 0.3);
    position: relative;
    background-color: rgba(15, 23, 42, 0.8);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: subtle-pulse 4s ease-in-out infinite;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 100%;
}

.panorama-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(15, 23, 42, 0.3), 
        rgba(15, 23, 42, 0.2), 
        rgba(15, 23, 42, 0.2),
        rgba(15, 23, 42, 0.3));
    z-index: 2;
    pointer-events: none;
}

.panorama-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../overlay.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left top;
    z-index: 4;
    pointer-events: none;
    border-radius: 12px;
    box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.3), 
                inset 0 0 3px rgba(255, 255, 255, 0.1);
}

.panorama-image {
    width: 4152px;
    height: 674px;
    background-image: url('../merged_panorama.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: left center;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    animation-name: panorama-slide;
    animation-duration: 40s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    filter: contrast(1.05) saturate(1.05);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    opacity: 1;
    transition: opacity 0.5s ease;
    border-radius: 8px;
}

.panorama-image.loaded {
    opacity: 1;
}

/* TradingView Link Button - Outlined Design with Logo */
.tradingview-link-btn {
    position: absolute !important;
    bottom: 18px !important;
    right: 18px !important;
    z-index: 100 !important;
    padding: 10px 20px;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Background glow effect on hover */
.tradingview-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
    z-index: 1;
}

.tradingview-link-btn:hover::before {
    opacity: 1;
}

/* TradingView logo styling */
.tradingview-link-btn img {
    height: 18px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.tradingview-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.tradingview-link-btn:hover img {
    transform: scale(1.05);
}

.tradingview-link-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 1px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.1s ease;
}

@keyframes panorama-slide {
    0% {
        transform: translateY(-50%) translateX(0);
    }
    100% {
        transform: translateY(-50%) translateX(-3114px);
    }
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.hero-feature-item:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-feature-item i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.hero-feature-item span {
    font-weight: 500;
    font-size: 1rem;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--secondary-color);
}

/* Pricing Section */
.pricing {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.pricing-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 1px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.small-capital {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    font-weight: 400;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

.price span {
    font-size: 1rem;
    opacity: 0.7;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    padding-left: 1rem;
    flex-grow: 1;
}

.pricing-card li {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    position: relative;
    padding-left: 1.5rem;
}

.pricing-card li:before {
    content: '✓';
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pricing-card .btn-primary {
    width: 100%;
    margin-top: auto;
    padding: 1.2rem 1.5rem;
    white-space: normal;
    line-height: 1.4;
}

/* Affiliate Section */
.affiliate {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
    text-align: center;
}

.affiliate-content {
    max-width: 800px;
    margin: 0 auto;
}

.affiliate h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.affiliate p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.affiliate-content .cta-button {
    margin-top: 2rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    margin-top: 3rem;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    margin: 0;
    color: var(--text-light);
}

.faq-question i {
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--secondary-color);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.faq-item.active .faq-question {
    background: rgba(59, 130, 246, 0.1);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 1rem 1.5rem 1.5rem;
}

/* Technical Details Section */
.technical-details {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    position: relative;
}

.technical-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxwYXRoIGQ9Ik0gLTUgMTAgTCAxMCAtNSBNIC0xMCAxNSBMIDE1IC0xMCBNIC01IDIwIEwgMjAgLTUiIHN0cm9rZT0icmdiYSg1OSwgMTMwLCAyNDYsIDAuMTUpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.3;
    z-index: 0;
}

.technical-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.technical-content {
    text-align: center;
}

.technical-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: -1rem auto 3rem;
    max-width: 800px;
}

.technical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.technical-item {
    display: flex;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.technical-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.technical-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.technical-icon i {
    font-size: 1.4rem;
    color: var(--text-light);
}

.technical-text h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.technical-text p {
    color: var(--secondary-color);
    line-height: 1.6;
}

.technical-cta {
    margin-top: 4rem;
    text-align: center;
}

.technical-cta .cta-button {
    width: 280px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Desktop breakpoint */
@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "content"
            "panorama" 
            "buttons"
            "features";
        gap: 2rem;
        padding: 9rem 2rem 0;
    }
    
    .hero-content {
        max-width: 700px;
        justify-self: center;
        text-align: center;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
        max-width: 100%;
    }
    
    .hero-image {
        justify-content: center;
    }
    
    .panorama-container {
        transform: perspective(1000px) rotateY(0deg);
        width: 750px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .panorama-image {
        width: 4152px;
        height: 674px;
        top: 50%;
        transform: translateY(-50%);
        background-size: 100% 100%;
    }
    
    @keyframes panorama-slide {
        0% {
            transform: translateY(-50%) translateX(0);
        }
        100% {
            transform: translateY(-50%) translateX(-3114px);
        }
    }
}

/* Tablet breakpoint */
@media (max-width: 768px) {
    .hero {
        padding-top: 5rem;
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "panorama"
            "buttons";
        gap: 1.5rem;
        overflow: hidden;
    }

    .hero-feature-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .hero-feature-item {
        width: 100%;
        justify-content: center;
    }
    
    .panorama-container {
        height: 280px;
        border-radius: 8px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 85%;
        margin: 0 auto;
        overflow: hidden;
    }
    
    .tradingview-link-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
        bottom: 12px;
        right: 12px;
        letter-spacing: 0.01em;
        gap: 6px;
    }
    
    .tradingview-link-btn img {
        height: 14px;
    }
    
    .panorama-image {
        position: absolute;
        height: 281px;
        width: 1730px;
        top: 50%;
        transform: translateY(-50%);
        background-size: 100% 100%;
        background-position: left center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 85%;
    }

    .hero-buttons a {
        width: 100%;
    }

    .btn-primary, .btn-secondary, .cta-button {
        width: 100%;
        min-width: unset;
        padding: 1.1rem 2rem;
        font-size: 1rem;
    }

    @keyframes panorama-slide {
        0% {
            transform: translateY(-50%) translateX(0);
        }
        100% {
            transform: translateY(-50%) translateX(-1300px);
        }
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 2.5rem);
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .technical-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .technical-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .technical-icon {
        margin-bottom: 1rem;
    }
}

/* Mobile breakpoint */
@media (max-width: 480px) {
    .hero {
        padding-top: 5.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-top: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .panorama-container {
        height: 220px;
        border-radius: 6px;
        max-width: 85%;
        overflow: hidden;
    }
    
    .tradingview-link-btn {
        padding: 5px 10px;
        font-size: 0.65rem;
        bottom: 10px;
        right: 10px;
        gap: 5px;
        letter-spacing: 0;
        border-width: 1.5px;
    }
    
    .tradingview-link-btn img {
        height: 12px;
    }
    
    .panorama-image {
        height: 219px;
        width: 1350px;
        background-size: 100% 100%;
    }

    @keyframes panorama-slide {
        0% {
            transform: translateY(-50%) translateX(0);
        }
        100% {
            transform: translateY(-50%) translateX(-1000px);
        }
    }
    
    /* Hide the "How It Works" section on mobile devices */
    .technical-details {
        display: none;
    }
}

