/**
 * SIGMIX - Mobile App Landing Page Styles
 * /css/app.css
 */

/* ========================================
   HEADER SPACER
======================================== */
.header-spacer {
    height: 70px;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, 50px); }
}

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

@media (prefers-reduced-motion: reduce) {
    .hero-phone img,
    .app-hero::before,
    .app-hero::after {
        animation: none;
    }
}

/* ========================================
   HERO SECTION
======================================== */
.app-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #030014 0%, #0a0a1f 50%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
}

.app-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.app-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(7, 0, 120, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-light);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-app-store,
.btn-google-play {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #000;
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-google-play {
    background: #01875f;
}

.btn-app-store:hover,
.btn-app-store:focus,
.btn-google-play:hover,
.btn-google-play:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    color: var(--white);
}

.btn-app-store i,
.btn-google-play i {
    font-size: 1.5rem;
}

.btn-text {
    text-align: left;
}

.btn-text-small {
    font-size: 0.7rem;
    opacity: 0.8;
    display: block;
}

.btn-text-large {
    font-size: 1.1rem;
    margin-top: -3px;
    display: block;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-phone {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone img {
    max-height: 600px;
    width: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
    animation: phoneFloat 6s ease-in-out infinite;
}

/* ========================================
   SECTION COMMON STYLES
======================================== */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ========================================
   STOCK ALERTS SECTION
======================================== */
.stock-alerts-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f5f0 100%);
}

.stock-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stock-alert-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 2px solid var(--gray-200);
    transition: all 0.4s ease;
    text-align: center;
}

.stock-alert-card:hover,
.stock-alert-card:focus-within {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stock-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.stock-alert-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.stock-alert-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ========================================
   FEATURES SECTION
======================================== */
.features-section {
    padding: 6rem 0;
    background: var(--white);
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.feature-showcase:last-child {
    margin-bottom: 0;
}

.feature-showcase.reverse .feature-phone {
    order: 2;
}

.feature-phone {
    position: relative;
}

.feature-phone img {
    max-height: 550px;
    width: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
}

.feature-content h3 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.feature-content > p {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.feature-item:hover,
.feature-item:focus-within {
    background: var(--white);
    border-color: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-item-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.feature-item-content p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ========================================
   PORTFOLIO SECTION
======================================== */
.portfolio-section {
    padding: 6rem 0;
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.portfolio-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.portfolio-feature-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.portfolio-feature-card:hover,
.portfolio-feature-card:focus-within {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(7, 0, 120, 0.1);
}

.portfolio-feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.portfolio-feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.portfolio-feature-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ========================================
   TASI INDEX SECTION
======================================== */
.tasi-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
    color: var(--white);
}

.tasi-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tasi-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.tasi-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tasi-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tasi-stat-card:hover,
.tasi-stat-card:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.tasi-stat-card h4 {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tasi-stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
}

.tasi-stat-card .subtext {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.tasi-stat-card .subtext.accent {
    color: var(--accent-light);
}

/* ========================================
   ALERTS SECTION
======================================== */
.alerts-section {
    padding: 6rem 0;
    background: var(--off-white);
}

.alerts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.alert-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 2px solid var(--gray-200);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.alert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.alert-card:hover::before,
.alert-card:focus-within::before {
    transform: scaleX(1);
}

.alert-card:hover,
.alert-card:focus-within {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.alert-card-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.alert-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.alert-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.alert-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alert-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--dark);
}

.alert-features li i {
    color: var(--accent);
    font-size: 0.7rem;
}

/* ========================================
   PRICING SECTION
======================================== */
.pricing-section {
    padding: 6rem 0;
    background: var(--white);
    text-align: center;
}

.pricing-container {
    max-width: 600px;
    margin: 0 auto;
}

.pricing-container h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.pricing-container > p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.pricing-card {
    background: linear-gradient(135deg, var(--off-white), var(--white));
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin-bottom: 2rem;
}

.pricing-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.pricing-amount .amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
}

.pricing-amount .currency,
.pricing-amount .period {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray);
}

.pricing-trial {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark);
}

.pricing-features li i {
    color: var(--accent);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.pricing-buttons {
    margin-bottom: 1.5rem;
}

.pricing-buttons .btn-app-store,
.pricing-buttons .btn-google-play {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.pricing-buttons .btn-google-play {
    margin-bottom: 0;
}

.app-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.app-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-info-item i {
    color: var(--primary);
}

.pricing-note {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    padding: 6rem 0;
    background: var(--off-white);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(7, 0, 120, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(7, 0, 120, 0.4);
    color: var(--white);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.cta-links {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 1.5rem;
}

.cta-links a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.cta-links a:hover,
.cta-links a:focus {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .hero-container,
    .feature-showcase,
    .portfolio-grid,
    .tasi-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .feature-showcase.reverse .feature-phone {
        order: -1;
    }
    
    .stock-cards-grid,
    .alerts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .portfolio-features,
    .tasi-stats-grid,
    .pricing-features {
        grid-template-columns: 1fr;
    }
    
    .hero-phone {
        order: -1;
    }
}

@media (max-width: 768px) {
    .app-hero {
        padding: 4rem 0 3rem;
    }
    
    .hero-phone img,
    .feature-phone img {
        max-height: 450px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .stock-alerts-section,
    .features-section,
    .portfolio-section,
    .tasi-section,
    .alerts-section,
    .pricing-section,
    .cta-section {
        padding: 4rem 0;
    }
    
    .feature-showcase {
        margin-bottom: 4rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-app-store,
    .btn-google-play {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .pricing-amount .amount {
        font-size: 3rem;
    }
    
    .app-info {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .app-hero {
        background: none;
        color: var(--dark);
    }
    
    .app-hero::before,
    .app-hero::after {
        display: none;
    }
    
    .hero-phone img {
        animation: none;
        filter: none;
    }
    
    .btn-app-store,
    .btn-google-play,
    .cta-section {
        display: none;
    }
}