/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    /* Reduced from 80vh */
    display: flex;
    align-items: center;
    padding-top: 140px;
    /* Increased to prevent header overlap in desktop layout */
    padding-bottom: 80px;
    background: transparent;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

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

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.7;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--secondary-dark);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 20px;
}

.stat {
    background: var(--white);
    padding: 16px 24px;
    /* Reduced */
    border-radius: var(--radius-lg);
    border: 1px solid var(--paper-lines);
    box-shadow: var(--shadow-sm);
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
}

/* Hero Visual */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.glass-hub {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 450px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(255,255,255,0.5);
}

.main-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    padding: 16px 20px;
    z-index: 2;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray);
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 11px;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.feature-row .material-icons {
    font-size: 1.2rem;
}

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

.feature-row:hover {
    transform: translateX(5px);
    background: rgba(255,255,255,0.9);
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }

.floating-card {
    position: absolute;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 25px;
    right: -50px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 45px;
    left: -55px;
    animation-delay: 2s;
}

.stat-big {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
}

.floating-card .material-icons {
    font-size: 2rem;
    color: var(--secondary);
}

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

/* Features Section */
.features {
    position: relative;
    padding: 60px 0 40px 0;
    background: transparent;
    overflow: hidden;
}

/* Features */
.feature-ecosystem {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    /* Reduced from 32px */
}

.feature-pillar {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    /* Reduced from 40px */
    border: 1px solid var(--paper-lines);
    transition: all 0.4s ease;
}

.feature-pillar:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--paper-lines);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-matrix {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-matrix li {
    display: flex;
    gap: 14px;
}

.feature-matrix h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.feature-matrix p {
    font-size: 0.95rem;
    color: var(--gray);
}

.feature-matrix p {
    font-size: 0.95rem;
    color: var(--gray);
}

/* Modern Feature Hyperlinks Styling */
.feature-links-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.feature-links-wrapper .divider {
    color: var(--gray-light);
    font-size: 0.8rem;
    opacity: 0.6;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 2px 0;
}

.feature-link .material-icons {
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide-in custom bottom border on hover */
.feature-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-link:hover .material-icons {
    transform: translateX(4px);
}

.feature-link:hover::after {
    width: 100%;
}

/* Dynamic color mappings based on which feature pillar the link is inside */
.feature-pillar:nth-child(1) .feature-link {
    color: var(--primary);
}
.feature-pillar:nth-child(1) .feature-link:hover {
    color: var(--primary-dark);
}

.feature-pillar:nth-child(2) .feature-link {
    color: var(--secondary-dark);
}
.feature-pillar:nth-child(2) .feature-link:hover {
    color: var(--secondary);
}

.feature-pillar:nth-child(3) .feature-link {
    color: var(--accent);
}
.feature-pillar:nth-child(3) .feature-link:hover {
    color: #059669;
}

.feature-pillar:nth-child(4) .feature-link {
    color: var(--gray);
}
.feature-pillar:nth-child(4) .feature-link:hover {
    color: var(--dark);
}
.pricing-builder {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.builder-controls {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.builder-group h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray);
}

.platform-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.platform-chip {
    cursor: pointer;
    position: relative;
}

.platform-chip input {
    position: absolute;
    opacity: 0;
}

.chip-content {
    background: var(--white);
    border: 2px solid var(--paper-lines);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-chip input:checked + .chip-content {
    border-color: var(--primary);
    background: rgba(26, 86, 219, 0.03);
    box-shadow: 0 10px 20px rgba(26, 86, 219, 0.1);
}

.chip-content .material-icons {
    font-size: 2.4rem;
    color: var(--gray);
    transition: all 0.3s ease;
}

.platform-chip input:checked + .chip-content .material-icons {
    color: var(--primary);
    transform: scale(1.1);
}

.chip-text {
    display: flex;
    flex-direction: column;
}

.platform-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.platform-price {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 600;
}

.validity-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.validity-radio {
    cursor: pointer;
    position: relative;
}

.validity-radio input {
    position: absolute;
    opacity: 0;
}

.radio-content {
    background: var(--white);
    border: 2px solid var(--paper-lines);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.validity-radio input:checked + .radio-content {
    border-color: var(--secondary);
    background: rgba(245, 158, 11, 0.03);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.1);
}

.duration {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
}

.multiplier-text {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 600;
}

.validity-radio input:checked + .radio-content .duration {
    color: var(--secondary-dark);
}

/* Summary Card */
.summary-card {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--paper-lines);
    box-shadow: var(--shadow-premium);
    position: sticky;
    top: 100px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.summary-header h4 {
    font-size: 1.2rem;
    font-weight: 800;
}

.summary-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--paper-lines);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    color: var(--gray);
    font-weight: 500;
}

.summary-row span:last-child {
    color: var(--dark);
    font-weight: 700;
}

.summary-row.discount {
    color: var(--accent);
}

.summary-row.discount span:last-child {
    color: var(--accent);
}

.summary-total {
    margin-bottom: 24px;
}

.total-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 4px;
}

.total-amount {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.summary-features {
    list-style: none;
    margin-bottom: 32px;
}

.summary-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.summary-features .material-icons {
    color: var(--accent);
    font-size: 1.2rem;
}

.checkout-btn {
    height: 60px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 991px) {
    .pricing-builder {
        grid-template-columns: 1fr;
    }
    
    .summary-card {
        position: static;
    }
}

@media (max-width: 600px) {
    .platform-options {
        grid-template-columns: 1fr;
    }
    
    .validity-options {
        grid-template-columns: 1fr;
    }
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--paper-lines);
    transition: all 0.3s ease;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.avatar-1 {
    background: var(--primary);
}

.avatar-2 {
    background: var(--accent);
}

.avatar-3 {
    background: #0ea5e9;
}

.testimonial-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
}

.testimonial-info span {
    font-size: 0.75rem;
    color: var(--primary);
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
    margin-top: 12px;
}

/* CTA */
.cta {
    padding: 0;
    margin: 40px 20px;
    /* Reduced from 60px */
    background: transparent;
}

.cta-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--primary);
    border-radius: 32px;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(26, 86, 219, 0.4);
    text-align: center;
    color: white;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: transparent;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.cta .btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.cta .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

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

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--paper-lines);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--gray);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(26, 86, 219, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--paper-lines);
    box-shadow: var(--shadow-lg);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--paper-lines);
    border-radius: 50%;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(26, 86, 219, 0.3);
}

.form-group {
    margin-bottom: 24px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--dark);
    transition: all 0.3s ease;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn-primary {
    margin-top: 8px;
    height: 54px;
}

/* Mobile Adjustments */
@media (max-width: 991px) {

    .hero {
        padding-top: 110px;
        padding-bottom: 40px;
    }

    .features {
        padding-top: 10px;
        padding-bottom: 30px;
    }

    .hero h1 {
        font-size: 3.6rem;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .hero-content,
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-ecosystem {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 24px;
        max-width: 650px;
        margin: 0 auto;
    }

    .feature-pillar {
        padding: 24px 28px;
    }

    .feature-matrix li > .material-icons {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .hero p,
    .hero-buttons,
    .hero-stats {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        display: flex;
        transform: scale(0.7);
        margin-top: -60px;
        margin-bottom: 0px;
        height: auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .card-1 {
        right: -80px;
        top: 25px;
    }

    .card-2 {
        left: -85px;
        bottom: 45px;
    }

    .btn-lg {
        padding: 16px 34px;
        font-size: 1.2rem;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 28px;
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 3.0rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1.1rem;
    }

    .btn-primary, .btn-secondary {
        padding: 11px 24px;
        font-size: 1.0rem;
    }

    .card-1 {
        right: 10px;
        top: -45px;
    }

    .card-2 {
        left: 10px;
        bottom: -50px;
    }

    .feature-ecosystem {
        gap: 16px;
        padding: 0 4px;
    }

    .feature-pillar {
        padding: 20px 18px;
        border-radius: var(--radius-lg);
    }

    .pillar-header {
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .pillar-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .feature-matrix {
        gap: 16px;
    }

    .feature-matrix li {
        gap: 10px;
    }

    .feature-matrix h4 {
        font-size: 0.95rem;
    }

    .feature-matrix p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .feature-links-wrapper {
        gap: 8px;
        margin-top: 8px;
    }

    .feature-link {
        font-size: 0.88rem;
    }
}

/* Dark Mode Overrides for Home */
[data-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.1);
}

[data-theme="dark"] .feature-row {
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
}

[data-theme="dark"] .feature-row:hover {
    background: rgba(15, 23, 42, 0.9);
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
    color: #64748b;
}

[data-theme="dark"] .cta .btn-primary {
    background: #1e293b;
    color: #ffffff;
}

/* ==========================================
   APP SCREENSHOT SHOWCASE SECTION
   ========================================== */

.showcase {
    position: relative;
    padding: 80px 0;
    background: transparent;
    overflow: hidden;
}

/* Toggle Tabs */
.showcase-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.showcase-toggle {
    display: inline-flex;
    background: var(--white);
    border: 1px solid var(--paper-lines);
    border-radius: var(--radius-full);
    padding: 6px;
    position: relative;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.showcase-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray);
    cursor: pointer;
    border-radius: var(--radius-full);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.showcase-toggle button.active {
    color: white;
}

.showcase-toggle button .material-icons {
    font-size: 1.25rem;
}

.toggle-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    bottom: 6px;
    width: calc(50% - 6px);
    background: var(--gradient);
    border-radius: var(--radius-full);
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px -2px rgba(26, 86, 219, 0.3);
}

.showcase-toggle button[data-platform="tablet"].active ~ .toggle-slider {
    transform: translateX(100%);
}

/* Slider Layout */
.showcase-slider-outer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    gap: 20px;
    z-index: 10;
}

/* Viewport and Tracks */
.carousel-viewport {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.carousel-track-container {
    display: none;
    width: 100%;
}

.carousel-track-container.active {
    display: block;
}

.carousel-track {
    display: flex;
    gap: var(--slide-gap, 30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(calc(50% - (var(--slide-width) / 2) - (var(--active-index) * (var(--slide-width) + var(--slide-gap, 30px)))));
}

#mobile-track {
    --slide-width: 260px;
    --slide-gap: 30px;
}

#tablet-track {
    --slide-width: 520px;
    --slide-gap: 30px;
}

/* Slides */
.carousel-slide {
    width: var(--slide-width);
    flex-shrink: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.3;
    transform: scale(0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1.05);
    pointer-events: auto;
}

/* Custom CSS Device Mockups */
.device-mockup {
    position: relative;
    background: #0f172a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 40px rgba(26, 86, 219, 0.1);
    border: 10px solid #1e293b;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.device-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 10;
}

.device-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f1f5f9;
}

.device-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile Mockup Specifics */
.mobile-mockup {
    width: 260px;
    height: 540px;
    border-radius: 36px;
    border-width: 9px;
}

.mobile-mockup .device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 24px;
    background: #1e293b;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 20;
}

.mobile-mockup .device-home-bar {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #334155;
    border-radius: 2px;
    z-index: 20;
}

/* Tablet Mockup Specifics */
.tablet-mockup {
    width: 520px;
    height: 350px;
    border-radius: 24px;
    border-width: 12px;
}

.tablet-mockup .device-camera {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #334155;
    z-index: 20;
}

.tablet-mockup .device-screen {
    border-radius: 8px;
}

/* Slider Controls (Prev/Next Arrows) */
.slider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--paper-lines);
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    user-select: none;
}

.slider-arrow:hover {
    background: var(--gradient);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 20px -5px rgba(26, 86, 219, 0.3);
    border-color: transparent;
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-arrow .material-icons {
    font-size: 1.75rem;
}

/* Info Description Card */
.showcase-info-card {
    max-width: 650px;
    margin: 32px auto 0;
    padding: 24px 32px;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 1;
    transform: translateY(0);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.showcase-info-card.fade-out {
    opacity: 0;
    transform: translateY(15px);
}

.info-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.info-desc {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Dots Indicators */
.showcase-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--gray-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.indicator-dot:hover {
    background: var(--gray);
}

.indicator-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: var(--radius-full);
}

/* Media Queries for Carousel */
@media (max-width: 768px) {
    .carousel-viewport {
        mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
    }
    
    #mobile-track {
        --slide-width: 210px;
        --slide-gap: 20px;
    }

    #tablet-track {
        --slide-width: 360px;
        --slide-gap: 20px;
    }

    .mobile-mockup {
        width: 210px;
        height: 435px;
        border-radius: 28px;
        border-width: 7px;
    }

    .mobile-mockup .device-notch {
        width: 90px;
        height: 18px;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .tablet-mockup {
        width: 360px;
        height: 240px;
        border-radius: 16px;
        border-width: 8px;
    }

    .tablet-mockup .device-camera {
        top: -6px;
        width: 4px;
        height: 4px;
    }

    .showcase-info-card {
        padding: 16px 20px;
        margin: 20px 16px 0;
    }

    .info-title {
        font-size: 1.15rem;
    }

    .info-desc {
        font-size: 0.95rem;
    }
    
    .slider-arrow {
        width: 44px;
        height: 44px;
    }
    
    .slider-arrow .material-icons {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .slider-arrow {
        display: none; /* Hide arrows on small mobiles to save space, rely on dots & swipe */
    }
    
    .carousel-viewport {
        mask-image: none;
        -webkit-mask-image: none;
    }
    
    .carousel-slide {
        transform: scale(0.9);
        opacity: 0.2;
    }
    
    .carousel-slide.active {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dark Mode Overrides for Showcase */
[data-theme="dark"] .showcase-toggle {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .showcase-toggle button {
    color: #94a3b8;
}

[data-theme="dark"] .showcase-toggle button.active {
    color: white;
}

[data-theme="dark"] .slider-arrow {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

[data-theme="dark"] .slider-arrow:hover {
    color: white;
}

[data-theme="dark"] .showcase-info-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .indicator-dot {
    background: #475569;
}

[data-theme="dark"] .indicator-dot:hover {
    background: #64748b;
}

[data-theme="dark"] .indicator-dot.active {
    background: var(--primary);
}

[data-theme="dark"] .device-mockup {
    border-color: #1e293b;
    background: #020617;
}

[data-theme="dark"] .mobile-mockup .device-notch {
    background: #1e293b;
}

[data-theme="dark"] .tablet-mockup .device-camera {
    background: #1e293b;
}

/* ==========================================
   INTERACTIVE FAQ ACCORDION STYLES
   ========================================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--paper-lines);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: background-color 0.3s ease;
}

.faq-trigger:hover,
.faq-trigger:focus {
    background-color: rgba(26, 86, 219, 0.02);
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}

.faq-icon {
    font-size: 1.8rem;
    color: var(--gray);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

/* Rotated icon when accordion is expanded */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--gray);
    font-size: 0.98rem;
    line-height: 1.6;
}

[data-theme="dark"] .faq-trigger:hover,
[data-theme="dark"] .faq-trigger:focus {
    background-color: rgba(255, 255, 255, 0.02);
}

/* ==========================================
   3D PERSPECTIVE & PARALLAX STYLES FOR HERO
   ========================================== */
.hero-image {
    perspective: 1000px;
    will-change: transform;
}

.glass-hub {
    transform-style: preserve-3d;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.main-card {
    transform: translate(-50%, -50%) translateZ(40px);
    transform-style: preserve-3d;
    box-shadow: 0 35px 70px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255,255,255,0.6);
    transition: box-shadow 0.3s ease;
}

[data-theme="dark"] .main-card {
    box-shadow: 0 35px 70px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.1);
}

.main-card:hover {
    box-shadow: 0 45px 90px rgba(26, 86, 219, 0.2), inset 0 0 0 1px rgba(255,255,255,0.8);
}

[data-theme="dark"] .main-card:hover {
    box-shadow: 0 45px 90px rgba(26, 86, 219, 0.3), inset 0 0 0 1px rgba(255,255,255,0.15);
}

.floating-card {
    transform-style: preserve-3d;
}

.floating-card.card-1 {
    transform: translate3d(0, 0, 80px);
    animation: float1 6s ease-in-out infinite;
}

.floating-card.card-2 {
    transform: translate3d(0, 0, 120px);
    animation: float2 6s ease-in-out infinite;
    animation-delay: 2s;
}

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

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