/* ============================================================
   landing.css — StackViewer Landing Page Specific Styles
   ============================================================ */

/* ----- Page reveal (pure CSS, replaces Animsition JS fade) -----
   Wrapper fades in quickly on every page load. No JS, no load-event
   gating, so it can't blink or leave the page hidden. If a browser has
   no animation support, the JS safety net in custom.js forces opacity:1. */
.animsition {
    opacity: 0;
    animation: svPageFadeIn 0.3s ease-out forwards;
}

@keyframes svPageFadeIn {
    to { opacity: 1; }
}

/* ----- Hero Enhancements ----- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.hero-badge i {
    font-size: 14px;
    background: linear-gradient(135deg, #D64545, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-highlight {
    background: linear-gradient(135deg, #D64545, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-on-dark-muted);
    letter-spacing: 0.5px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #111;
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-cta-primary:hover {
    background: #e8e8e8;
    color: #111;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-trial-note {
    margin: 20px 0 0;
    font-size: 13px;
    color: var(--text-on-dark-muted);
}

.btn-nav-cta {
    background: #fff;
    color: #111;
    border: none;
    padding: 8px 20px;
    font-size: 12px;
    height: auto;
    line-height: 1.2;
    margin: 0;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: 200ms;
}

.btn-nav-cta:hover {
    background: #e8e8e8;
    color: #111;
}

/* ----- Benefits Bar ----- */
.benefits-bar {
    background: #111;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    padding: 24px 0;
}

.benefits-bar-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-on-dark-muted);
    font-size: 14px;
    font-weight: 500;
}

.benefit-item i {
    font-size: 18px;
    background: linear-gradient(135deg, #D64545, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Section Header ----- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ----- Features Section ----- */
.features-section {
    background: #f7f7f7;
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card-large {
    grid-column: span 1;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #eee;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card:hover {
    border-color: #ddd;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.feature-card-icon {
    width: 52px;
    height: 52px;
    background: #111;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-card-icon i {
    font-size: 24px;
    color: #F2F2F2;
}

.feature-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
    line-height: 1.3;
}

.feature-card-body p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-body);
}

.feature-list li i {
    font-size: 14px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #D64545, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Feature Showcase ----- */
.showcase-section {
    background: #fff;
    padding: 100px 0 0;
}

.showcase-section .section-header {
    padding: 0 24px;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
}

.showcase-item-reverse .showcase-media {
    order: -1;
}

.showcase-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 72px;
    background: #fff;
}

.showcase-item-reverse .showcase-text {
    background: #f7f7f7;
}

.showcase-item-reverse .showcase-media {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
}

.showcase-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #D64545, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.showcase-text h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 20px;
}

.showcase-text p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 28px;
}

.showcase-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.showcase-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-body);
}

.showcase-list li i {
    font-size: 16px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #D64545, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-media {
    background: linear-gradient(135deg, #f8f9fa, #eef0f2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 560px;
    position: relative;
    overflow: hidden;
    padding: 48px;
}

/* Browser-style frame around each screenshot */
.app-frame {
    margin: 0;
    width: 100%;
    max-width: 620px;
    border-radius: 12px;
    overflow: hidden;
    background: #1c1c1c;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22), 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.app-frame:hover {
    transform: translateY(-4px);
}

.app-frame-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    background: #2a2a2a;
}

.app-frame-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #4a4a4a;
}

.app-frame-bar span:nth-child(1) { background: #ff5f57; }
.app-frame-bar span:nth-child(2) { background: #febc2e; }
.app-frame-bar span:nth-child(3) { background: #28c840; }

.app-frame-body {
    /* Height follows the screenshot's natural aspect ratio so the full
       image is visible edge to edge — no side cropping, no empty strip. */
    background: #111;
    line-height: 0;
}

.app-frame-body img {
    display: block;
    width: 100%;
    height: auto;
}

/* Zoomable screenshot link */
.app-frame-zoom {
    display: block;
    position: relative;
    cursor: zoom-in;
}

.app-frame-zoom::after {
    content: "\f4a1"; /* ionicons search/zoom glyph */
    font-family: "Ionicons";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.app-frame:hover .app-frame-zoom::after {
    opacity: 1;
}

/* Stat callout chips under the copy */
.showcase-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}

.showcase-stat {
    flex: 1 1 140px;
    min-width: 140px;
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px 18px;
}

.showcase-item-reverse .showcase-stat {
    background: #fff;
}

.showcase-stat-value {
    display: block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #D64545, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-body);
    line-height: 1.4;
}

.showcase-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #aaa;
    text-align: center;
}

.showcase-video-placeholder i {
    font-size: 48px;
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.showcase-video-placeholder span {
    font-size: 13px;
    color: #bbb;
    font-weight: 500;
}

@media (max-width: 991px) {
    .showcase-item,
    .showcase-item-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    /* Always show image below its text on mobile, regardless of source order */
    .showcase-item-reverse .showcase-media {
        order: 0;
    }

    .showcase-text {
        padding: 40px 24px 8px;
        order: -1;
    }

    .showcase-media {
        min-height: auto;
        padding: 8px 24px 40px;
    }

    .showcase-text h2 {
        font-size: 28px;
    }

    .showcase-stats {
        gap: 10px;
    }
}


.how-section {
    background: #111;
    padding: 100px 0;
}

.how-section .section-header h2 {
    color: var(--text-on-dark);
}

.how-section .section-header p {
    color: var(--text-on-dark-muted);
}

.how-steps {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.how-step {
    flex: 1;
    padding: 32px 24px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}

.how-step-number {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #555;
    line-height: 1;
    margin-bottom: 16px;
}

.how-step-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: 10px;
}

.how-step-body p {
    font-size: 13px;
    color: var(--text-on-dark-muted);
    line-height: 1.6;
}

.how-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    padding-top: 40px;
    color: #333;
    font-size: 20px;
    flex-shrink: 0;
}

/* ----- Testimonials ----- */
.testimonials-section {
    background: #fff;
    padding: 100px 0;
}

.testimonials-summary {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 32px 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.testimonials-rating {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.testimonials-rating-number {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1;
}

.testimonials-stars i {
    color: var(--accent-star);
    font-size: 16px;
}

.testimonials-rating-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.testimonials-summary-divider {
    width: 1px;
    height: 60px;
    background: #ddd;
    flex-shrink: 0;
}

.testimonials-highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.testimonials-highlight i {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
    background: linear-gradient(135deg, #D64545, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-highlight p {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

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

.testimonial-card {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.testimonial-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial-stars i {
    color: var(--accent-star);
    font-size: 13px;
}

.testimonial-source {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-card p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-dark);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 13px;
    color: var(--text-heading);
    font-weight: 700;
}

.testimonial-author span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ----- CTA Section ----- */
.cta-section {
    background: #f7f7f7;
    padding: 100px 0;
}

.cta-box {
    background: #111;
    border-radius: 16px;
    padding: 80px 60px;
    text-align: center;
}

.cta-box h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-box p {
    font-size: 16px;
    color: var(--text-on-dark-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.btn-cta-ghost {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--text-on-dark);
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s;
}

.btn-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark);
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-note {
    font-size: 13px;
    color: var(--text-on-dark-muted);
    margin: 0;
}

/* ----- Footer Landing ----- */
.footer-landing {
    background: #000;
    padding: 40px 0 20px;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #2a2a2a;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 260px;
}

.footer-left .footer-logo {
    margin-bottom: 0;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-on-dark-muted);
    line-height: 1.7;
    margin-top: 12px;
}

.footer-cols {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-on-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--text-on-dark-muted) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--text-on-dark) !important;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-on-dark-muted);
    margin: 0;
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-steps {
        flex-direction: column;
        gap: 16px;
    }

    .how-step-arrow {
        transform: rotate(90deg);
        padding: 0;
        align-self: center;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-summary {
        flex-direction: column;
        gap: 24px;
    }

    .testimonials-summary-divider {
        width: 60px;
        height: 1px;
    }

    .hero-social-proof {
        gap: 20px;
    }

    .footer-cols {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .cta-box {
        padding: 48px 24px;
    }

    .cta-box h2 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .benefits-bar-grid {
        gap: 20px;
        justify-content: flex-start;
    }

    .hero-social-proof {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

    .footer-cols {
        gap: 32px;
    }
}
