/* ============================================
   HOME.CSS — VScreen Homepage
   Fully Adopting Conceive Design Pattern
   ============================================ */

/* ==========================================
   OVERVIEW SECTION (Conceive Pattern)
   ========================================== */

.overview-section {
    padding: var(--section-padding) 0;
    background: var(--color-surface);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.overview-eyebrow {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary-600);
    margin-bottom: var(--space-3);
}

.overview-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

/* Audience Items (Conceive Pattern) */
.overview-audience {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.audience-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--color-background-alt);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--color-secondary-600);
    transition: all var(--transition-base);
}

.audience-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}

.audience-icon {
    width: 44px;
    height: 44px;
    background: var(--color-secondary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary-600);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.audience-item h4 {
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    margin-bottom: 0.25rem;
}

.audience-item p {
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    margin: 0;
}

/* Pillar Cards (Conceive Pattern) */
.overview-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.pillar-card {
    background: var(--color-background-alt);
    border-radius: var(--border-radius-lg);
    padding: var(--space-5);
    text-align: center;
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-secondary-300);
    box-shadow: var(--shadow-md);
}

.pillar-card:nth-child(3),
.pillar-card:nth-child(4) {
    grid-column: span 1;
}

.pillar-icon {
    font-size: 2rem;
    color: var(--color-secondary-600);
    margin-bottom: var(--space-3);
}

.pillar-card h4 {
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-2);
}

.pillar-card p {
    color: var(--color-text-tertiary);
    font-size: var(--text-xs);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ==========================================
   OVERVIEW STATS (Conceive Pattern)
   ========================================== */

.overview-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 900px;
    margin: var(--space-8) auto 0;
    padding: var(--space-6);
    background: var(--color-background-alt);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-light);
}

.overview-stat-item {
    text-align: center;
}

.overview-stat-item .stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: var(--weight-extrabold);
    color: var(--color-secondary-600);
    line-height: 1.2;
}

.overview-stat-item .stat-label {
    display: block;
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    font-size: var(--text-sm);
}

.overview-stat-item .stat-desc {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
}

/* ==========================================
   MOBILE APP WALKTHROUGH
   ========================================== */

.app-showcase-section {
    padding: var(--section-padding) 0;
    overflow: hidden;
    color: var(--color-surface);
    background: linear-gradient(135deg, var(--color-primary-900), var(--color-primary-800));
}

.app-showcase-heading {
    max-width: 720px;
    margin-bottom: var(--space-10);
}

.app-showcase-eyebrow {
    display: inline-block;
    margin-bottom: var(--space-3);
    color: var(--color-secondary-300);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-showcase-heading .section-title {
    margin-bottom: var(--space-3);
    color: var(--color-surface);
}

.app-showcase-heading > p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

.app-tour {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
    gap: clamp(var(--space-8), 8vw, var(--space-16));
    align-items: center;
}

.app-tour-content {
    max-width: 620px;
}

.app-tour-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.app-tour-category {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-2);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--border-radius-md);
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    cursor: pointer;
    transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.app-tour-category:hover,
.app-tour-category.is-active {
    border-color: var(--color-secondary-400);
    color: white;
    background: var(--color-secondary-600);
}

.app-tour-category:focus-visible,
.app-tour-screen:focus-visible,
.app-tour-download:focus-visible,
.app-phone-screen:focus-visible,
.app-dialog-close:focus-visible {
    outline: 3px solid var(--color-secondary-300);
    outline-offset: 3px;
}

.app-tour-category i {
    font-size: 0.95em;
}

.app-tour-narrative {
    min-height: 150px;
}

.app-tour-narrative h3 {
    margin: 0 0 var(--space-3);
    color: white;
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
}

.app-tour-narrative p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

.app-tour-screens {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-5);
}

.app-tour-screen {
    min-height: 40px;
    padding: var(--space-2) var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: transparent;
    font: inherit;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.app-tour-screen:hover,
.app-tour-screen.is-active {
    border-color: var(--color-secondary-400);
    color: white;
    background: rgba(255, 255, 255, 0.12);
}

.app-tour-screen[hidden] {
    display: none;
}

.app-tour-download {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
    color: var(--color-secondary-300);
    font-weight: var(--weight-semibold);
    text-decoration: none;
}

.app-tour-download:hover {
    color: white;
}

.app-tour-download .fa-arrow-up-right-from-square {
    font-size: 0.75em;
}

.app-tour-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.app-phone-frame {
    width: min(100%, 330px);
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    background: #101820;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.app-phone-screen {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: white;
    cursor: zoom-in;
}

.app-phone-screen img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 720 / 1560;
    object-fit: contain;
}

.app-preview-caption {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--text-sm);
    text-align: center;
}

.app-screen-dialog {
    width: min(94vw, 480px);
    max-width: none;
    max-height: 94dvh;
    padding: var(--space-3);
    overflow: auto;
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
}

.app-screen-dialog::backdrop {
    background: rgba(10, 16, 25, 0.78);
    backdrop-filter: blur(4px);
}

.app-dialog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 0 var(--space-1) var(--space-3);
    color: var(--color-text-primary);
    font-weight: var(--weight-semibold);
}

.app-dialog-close {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 0;
    border-radius: var(--border-radius-sm);
    color: var(--color-text-primary);
    background: var(--color-background-alt);
    font-size: 1.1rem;
    cursor: pointer;
}

.app-dialog-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(94dvh - 80px);
    margin: 0 auto;
    object-fit: contain;
}

/* ==========================================
   PROBLEM SECTION (Conceive Pattern)
   ========================================== */

.problem-section {
    padding: var(--section-padding) 0;
    background: var(--color-background-alt);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1100px;
    margin: 0 auto;
}

.problem-card {
    background: var(--color-surface);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    text-align: center;
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary-300);
}

.problem-icon {
    font-size: 2.5rem;
    color: var(--color-secondary-600);
    margin-bottom: var(--space-4);
}

.problem-card h3 {
    color: var(--color-text-primary);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-3);
}

.problem-card p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ==========================================
   OPPORTUNITY SECTION (Conceive Pattern)
   ========================================== */

.opportunity-section {
    padding: var(--section-padding) 0;
    background: var(--color-surface);
}

.opportunity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.opportunity-eyebrow {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary-600);
    margin-bottom: var(--space-3);
}

.opportunity-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.opportunity-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.opportunity-features span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.opportunity-features span i {
    color: var(--color-success);
}

/* Stats Card (Conceive Pattern) */
.stats-card {
    background: var(--color-background-alt);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stats-header {
    padding: var(--space-4) var(--space-6);
    background: var(--color-primary-50);
    border-bottom: 1px solid var(--color-border-light);
}

.stats-header h4 {
    color: var(--color-primary-700);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    margin: 0;
}

.stats-body {
    padding: var(--space-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.stat-item {
    text-align: center;
    padding: var(--space-3);
    background: var(--color-surface);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border-light);
}

.stat-item .stat-number {
    display: block;
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-secondary-600);
    line-height: 1.2;
}

.stat-item .stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
}

/* ==========================================
   FOUNDERS SECTION (Conceive Pattern)
   ========================================== */

.founders-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--color-primary-800), var(--color-primary-900));
    color: white;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.founder-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-base);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
}

.founder-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary-400);
}

.founder-avatar {
    font-size: 4rem;
    color: var(--color-secondary-400);
    margin-bottom: var(--space-3);
    flex-shrink: 0;
}

.founder-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.founder-info h3 {
    color: white;
    font-size: var(--text-xl);
    margin-bottom: var(--space-1);
}

.founder-role {
    color: var(--color-secondary-400);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-3);
}

.founder-bio {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.founder-contact {
    margin-top: auto;
    flex-shrink: 0;
}

.founder-contact .contact-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.founder-contact .contact-link:hover {
    color: white;
}

.founder-contact .contact-link i {
    color: var(--color-secondary-400);
}

/* ==========================================
   RESPONSIVE — Founders
   ========================================== */

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

    .founder-card {
        min-height: 340px;
    }
}

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

    .founder-card {
        min-height: 320px;
    }
}

/* ==========================================
   CTA SECTION (Conceive Pattern)
   ========================================== */

.cta-section {
    padding: var(--section-padding) 0;
    background: var(--color-surface);
    text-align: center;
}

.cta-title {
    font-size: var(--text-3xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.cta-title .text-highlight {
    color: var(--color-secondary-600);
}

.cta-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    max-width: 1000px;
    margin: 0 auto;
}

.cta-card {
    background: var(--color-background-alt);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary-300);
}

.cta-card-icon {
    font-size: 2.5rem;
    color: var(--color-secondary-600);
    margin-bottom: var(--space-4);
}

.cta-card h3 {
    color: var(--color-text-primary);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-2);
}

.cta-card p {
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    flex: 1;
}

.cta-link {
    color: var(--color-secondary-600);
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-base);
}

.cta-card:hover .cta-link {
    gap: var(--space-3);
}

/* ==========================================
   RESPONSIVE (Conceive Pattern)
   ========================================== */

@media (max-width: 1024px) {
    .cta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .app-tour {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
        gap: var(--space-8);
    }

    .app-tour-categories {
        grid-template-columns: 1fr 1fr;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .opportunity-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .founders-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .problem-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .overview-visual {
        grid-template-columns: 1fr 1fr;
    }
    
    .overview-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }
}

@media (max-width: 768px) {
    .app-tour {
        grid-template-columns: 1fr;
    }

    .app-tour-content {
        max-width: none;
    }

    .app-tour-narrative {
        min-height: 0;
    }

    .app-tour-preview {
        margin-top: var(--space-2);
    }

    .app-phone-frame {
        width: min(72vw, 300px);
    }

    .cta-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .app-showcase-heading > p,
    .app-tour-narrative p {
        font-size: var(--text-base);
    }

    .app-tour-categories {
        gap: var(--space-2);
        margin-bottom: var(--space-6);
    }

    .app-tour-category {
        justify-content: flex-start;
        padding-inline: var(--space-3);
    }

    .app-phone-frame {
        width: min(82vw, 290px);
    }

    .overview-visual {
        grid-template-columns: 1fr;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .founders-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-body {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: var(--space-4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-tour-category,
    .app-tour-screen {
        transition: none;
    }
}