/**
 * Landing Page Styles
 * Distinctive, modern design for InfoScanner landing page
 */

/* ============================================
   LAYOUT & BASE
   ============================================ */

/* Full-width layout override */
main.full-width {
    max-width: 100%;
    padding: 0;
}

.landing-wrapper {
    width: 100%;
}

.landing-wrapper main {
    padding: 0;
}

.landing-wrapper .nav {
    background: rgba(19, 26, 46, 0.8);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-wrapper .site-footer {
    margin-top: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

/* Full-width wrapper for grid background */
.hero-section-wrapper {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 66px);
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.hero {
    position: relative;
    min-height: calc(100vh - 66px);
    display: flex;
    align-items: center;
    padding: 80px 20px;
    overflow: hidden;
    max-width: 1200px;
    margin: auto;
}

.hero-section-wrapper .section.hero {
    background: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.badge-icon {
    font-size: 18px;
}

.badge-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--acc);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px 0;
    letter-spacing: -2px;
}

.title-line {
    display: block;
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.title-line-accent {
    background: var(--acc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeUp 0.6s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--muted);
    margin: 0 0 40px 0;
    max-width: 500px;
    line-height: 1.6;
    animation: fadeUp 0.6s ease-out 0.3s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeUp 0.6s ease-out 0.4s both;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--acc);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--soft);
    border-color: var(--acc);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.hero-trust {
    display: flex;
    gap: 32px;
    animation: fadeUp 0.6s ease-out 0.5s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.trust-icon {
    color: var(--ok);
}

/* ============================================
   HERO VISUAL - CARD STACK
   ============================================ */

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    z-index: 1;
}

.card-stack {
    position: relative;
    height: 400px;
}

.stack-card {
    position: absolute;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: cardFloat 6s ease-in-out infinite;
}

.card-1 {
    width: 320px;
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.card-2 {
    width: 280px;
    top: 120px;
    right: 60px;
    animation-delay: -2s;
}

.card-3 {
    width: 300px;
    top: 220px;
    right: 20px;
    animation-delay: -4s;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.card-header {
    margin-bottom: 16px;
}

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

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.data-label {
    font-size: 13px;
    color: var(--muted);
}

.data-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg);
}

.data-progress {
    padding: 12px 0;
}

.progress-bar {
    height: 6px;
    background: var(--input-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.progress-text {
    font-size: 12px;
    color: var(--muted);
    text-align: right;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.status-processing {
    background: rgba(240, 196, 25, 0.1);
    color: var(--warn);
}

.status-success {
    background: rgba(48, 209, 88, 0.1);
    color: var(--ok);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.card-checkmark {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--ok);
}

/* ============================================
   STATS SECTION
   ============================================ */

.section-stats {
    position: relative;
    padding: 100px 20px;
    background: var(--bg);
}

.stats-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.stat-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-group:hover {
    transform: translateY(-4px);
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -4px;
    color: var(--fg);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-group:hover .stat-number {
    transform: scale(1.02);
}

.stat-suffix {
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    color: var(--acc);
}

.stat-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 4px;
}

.stat-sublabel {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}

.stat-separator {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--card-border) 50%,
        transparent 100%
    );
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 100px 20px;
    position: relative;
}

.section:nth-child(odd) {
    background: var(--bg);
}

.section:nth-child(even) {
    background: var(--card);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
    color: var(--fg);
}

.section-subtitle {
    font-size: 18px;
    color: var(--muted);
    margin: 0;
}

/* ============================================
   STEPS
   ============================================ */

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

.step-card {
    position: relative;
    padding: 40px 30px;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: var(--acc);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--acc);
    color: white;
    font-size: 24px;
    font-weight: 800;
    border-radius: 16px;
    margin-bottom: 20px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--fg);
}

.step-description {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   FEATURES
   ============================================ */

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

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

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--acc);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    color: var(--acc);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--fg);
}

.feature-description {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   USE CASES
   ============================================ */

.use-cases-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.use-case {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.use-case:hover {
    transform: translateX(8px);
    border-color: var(--acc);
}

.use-case-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.use-case-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--fg);
}

.use-case-content p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.section-faq {
    background: var(--bg);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--acc);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--fg);
}

.faq-icon {
    color: var(--muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    margin: 0;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: white;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px 0;
}

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

.section-cta .btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.section-cta .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.section-cta .btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.section-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .hero-content {
        margin: 0 auto 60px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-trust {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 400px;
    }

    .card-stack {
        height: 350px;
        margin: 0 auto;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .stats-row {
        gap: 32px;
    }

    .stat-number {
        font-size: 56px;
        letter-spacing: -3px;
    }

    .stat-suffix {
        font-size: 28px;
    }

    .stat-separator {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .section {
        padding: 60px 20px;
    }

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

    .cta-title {
        font-size: 32px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .section-stats {
        padding: 60px 20px;
    }

    .stats-row {
        flex-direction: column;
        gap: 32px;
    }

    .stat-separator {
        width: 60px;
        height: 1px;
        background: linear-gradient(90deg,
            transparent 0%,
            var(--card-border) 50%,
            transparent 100%
        );
    }

    .stat-number {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .stat-suffix {
        font-size: 24px;
    }

    .stat-label {
        font-size: 14px;
    }

    .stat-sublabel {
        font-size: 12px;
    }
}

/* ============================================
   THEME ADAPTATIONS
   ============================================ */

[data-theme='light'] .hero {

}

[data-theme='light'] .stack-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
