/**
 * SmartScan - Apps Landing Page Stylesheet
 * © 2026 Secure Path Ltd.
 */

/* ==========================================
   Hero Section
   ========================================== */
.apps-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.apps-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, var(--accent-red-glow) 0%, transparent 50%);
    opacity: 0.15;
    animation: pulse-glow 6s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { opacity: 0.1; transform: scale(1); }
    100% { opacity: 0.2; transform: scale(1.1); }
}

.apps-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.apps-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.apps-hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent-red) 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apps-hero .tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.store-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.store-badge-apple {
    background: #fff;
    color: #000;
}

.store-badge-apple:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.store-badge-google {
    background: linear-gradient(135deg, #34a853, #4285f4);
    color: #fff;
}

.store-badge-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.3);
}

.store-badge .badge-icon {
    font-size: 1.5rem;
}

.store-badge .badge-text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-badge .badge-text strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.2;
}

/* ==========================================
   Phone Mockups Section
   ========================================== */
.phones-section {
    padding: 4rem 2rem;
}

.phones-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.phone-mockup {
    flex: 0 0 auto;
    width: 280px;
    text-align: center;
}

.phone-frame {
    position: relative;
    width: 260px;
    height: 520px;
    margin: 0 auto 1.5rem;
    border-radius: 36px;
    border: 3px solid #333;
    background: #1a1a1a;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-frame-ios {
    border-color: #444;
}

.phone-frame-android {
    border-color: #2d5a2d;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 18px 18px;
    z-index: 2;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #111 0%, #1a1a2e 100%);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1.5rem;
    gap: 0.75rem;
}

.phone-screenshot-placeholder .placeholder-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.phone-screenshot-placeholder .placeholder-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--terminal-green);
    opacity: 0.6;
}

.phone-label {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.phone-label-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   Features Section
   ========================================== */
.features-section {
    padding: 5rem 2rem;
}

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

.features-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.features-section .section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.15);
    color: var(--accent-red);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(220, 38, 38, 0.14);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.12);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   How It Works Section
   ========================================== */
.how-section {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

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

.how-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.how-section .section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px var(--accent-red-glow);
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   Comparison Table Section
   ========================================== */
.comparison-section {
    padding: 5rem 2rem;
}

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

.comparison-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.comparison-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table thead th {
    background: var(--bg-secondary);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-red);
}

.comparison-table tbody td {
    color: var(--text-secondary);
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.check {
    color: var(--terminal-green);
    font-weight: 700;
}

.cross {
    color: var(--text-muted);
}

/* ==========================================
   App FAQ Section
   ========================================== */
.app-faq-section {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

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

.app-faq-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

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

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.faq-question:hover {
    color: var(--accent-red);
}

.faq-toggle {
    font-size: 1.25rem;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

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

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   Bottom CTA Section
   ========================================== */
.bottom-cta-section {
    padding: 5rem 2rem;
    text-align: center;
}

.bottom-cta-section h2 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.bottom-cta-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 768px) {
    .apps-hero h1 {
        font-size: 2.25rem;
    }

    .apps-hero .tagline {
        font-size: 1.05rem;
    }

    .store-badges {
        flex-direction: column;
        align-items: center;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .phones-container {
        gap: 2rem;
    }

    .phone-mockup {
        width: 240px;
    }

    .phone-frame {
        width: 220px;
        height: 440px;
        border-radius: 28px;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }

    .features-section .section-header h2,
    .how-section .section-header h2,
    .comparison-section .section-header h2,
    .app-faq-section .section-header h2,
    .bottom-cta-section h2 {
        font-size: 1.75rem;
    }

    /* Phone frames - real screenshots */
    .phone-frame {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 9 / 19.5;
    }

    .phone-mockup {
        width: 100%;
        max-width: 300px;
    }

    .phone-notch {
        width: 90px;
        height: 22px;
    }

    /* Comparison table horizontal scroll */
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table td:last-child .check {
        font-size: 0.8rem;
    }
}

/* ==========================================
   Small phones (< 480px)
   ========================================== */
@media (max-width: 480px) {
    .apps-hero {
        padding: 6rem 1rem 2.5rem;
    }

    .apps-hero h1 {
        font-size: 1.75rem;
    }

    .apps-hero .tagline {
        font-size: 0.95rem;
    }

    .phones-container {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .phone-mockup {
        width: 85%;
        max-width: 260px;
    }

    .phone-frame {
        max-width: 240px;
        border-radius: 28px;
    }

    .features-grid {
        gap: 1rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .step-card {
        padding: 1.5rem;
    }

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

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

    .store-badge {
        width: 100%;
        max-width: 240px;
    }
}

/* ==========================================
   C-Level Elite Section (Mobile-First)
   ========================================== */
.elite-section {
    position: relative;
    overflow: hidden;
    padding: 3rem 1rem 3rem;
}

.elite-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 149, 0, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.elite-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 0.5rem;
}

.elite-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9500, #ff3b30);
    color: #000;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.elite-title {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.2;
}

.elite-highlight {
    background: linear-gradient(135deg, #ff9500, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.elite-subtitle {
    max-width: 700px;
    margin: 1.25rem auto 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary, #8b949e);
}

.elite-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.elite-card {
    background: var(--bg-card, rgba(22, 27, 34, 0.8));
    border: 1px solid rgba(255, 149, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.elite-card:hover {
    border-color: rgba(255, 149, 0, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 149, 0, 0.15);
}

.elite-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #ff9500;
}

.elite-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #e6edf3);
}

.elite-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary, #8b949e);
}

.elite-cta {
    text-align: center;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.elite-cta-headline {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #e6edf3);
}

.elite-cta-sub {
    color: var(--text-secondary, #8b949e);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.elite-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff9500, #ff3b30);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(255, 149, 0, 0.3);
}

.elite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 149, 0, 0.5);
}

/* ==========================================
   Tablet (≥ 600px)
   ========================================== */
@media (min-width: 600px) {
    .elite-section {
        padding: 4rem 2rem;
    }

    .elite-title {
        font-size: 2rem;
    }

    .elite-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-top: 2.5rem;
    }

    .elite-btn {
        font-size: 1rem;
        padding: 1rem 2.5rem;
    }
}

/* ==========================================
   Desktop (≥ 900px)
   ========================================== */
@media (min-width: 900px) {
    .elite-section {
        padding: 5rem 2rem;
    }

    .elite-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1.2rem;
    }

    .elite-title {
        font-size: 2.5rem;
    }

    .elite-subtitle {
        font-size: 1.1rem;
    }

    .elite-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .elite-card {
        padding: 2rem;
    }

    .elite-card h3 {
        font-size: 1.15rem;
    }

    .elite-card p {
        font-size: 0.95rem;
    }

    .elite-cta {
        margin-top: 3rem;
    }

    .elite-cta-headline {
        font-size: 1.3rem;
    }

    .elite-cta-sub {
        font-size: 1rem;
    }

    .elite-btn {
        padding: 1rem 3rem;
    }
}
