/* ==========================================
   sections.css — All Main Content Sections
   ========================================== */

/* ====== PROBLEM SECTION ====== */
.problem-section {
    padding: 80px 48px;
    border-top: 1px solid var(--gray-border);
}

.problem-heading {
    font-family: 'Space Mono', monospace;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 48px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.problem-card {
    padding: 20px;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
}

.problem-card .icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-card .icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--dark);
}

.problem-card h4 {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 11px;
    color: var(--gray-mid);
    line-height: 1.5;
}

/* ====== EVOLVES SECTION ====== */
.evolves-section {
    padding: 80px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    overflow: hidden; /* FIX: prevent phone from bleeding into adjacent sections */
    border-top: 1px solid var(--gray-border);
}

.evolves-left h2 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 24px;
}

.evolves-left p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-mid);
    margin-bottom: 16px;
}

.evolves-left .highlight-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.evolves-right {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center; /* FIX: was align-items: start which caused upward bleed */
}

.fashion-img {
    width: 160px;
    height: 220px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0e0e0, #ccc);
    object-fit: cover;
}

/* ====== AI LAYER SECTION ====== */
.ai-layer-section {
    padding: 80px 48px;
    border-top: 1px solid var(--gray-border);
}

.ai-layer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.ai-layer-top h2 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
}

.ai-layer-top .right-text p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--gray-mid);
}

.ai-phone-center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 60px;
}

.ai-phone {
    width: 240px;
    height: 480px;
    background: var(--dark);
    border-radius: 32px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.ai-phone-inner {
    width: 100%;
    height: 100%;
    background: #f8f8f8;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    padding: 20px 12px;
    gap: 8px;
}

.ai-phone-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ai-phone-item {
    display: flex;
    gap: 8px;
    background: white;
    border-radius: 10px;
    padding: 8px;
}

.ai-phone-item-img {
    width: 44px;
    height: 44px;
    background: #ddd;
    border-radius: 8px;
    flex-shrink: 0;
}

.ai-phone-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.ai-phone-item-info .name {
    font-size: 9px;
    font-weight: 600;
}

.ai-phone-item-info .desc {
    font-size: 8px;
    color: var(--gray-mid);
}

.ai-gallery-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

/* ====== HIGH-LEVEL FLOW ====== */
.flow-section {
    padding: 80px 48px;
    border-top: 1px solid var(--gray-border);
}

.flow-section h3 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 48px;
}

.flow-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
}

.flow-step {
    flex: 1;
    max-width: 280px;
    text-align: center;
}

.flow-step-number {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--green-accent);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.flow-step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--mint);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-step-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--dark);
}

.flow-step h4 {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.flow-step p {
    font-size: 12px;
    color: var(--gray-mid);
    line-height: 1.6;
    max-width: 220px;
    margin: 0 auto;
}

.flow-step-arrow {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 52px;
}

.flow-step-arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--gray-border);
}

/* ====== FEATURES SECTION ====== */
.features-section {
    padding: 80px 48px;
    background: var(--mint-light);
    position: relative;
    overflow: hidden;
}

.features-wave {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.features-wave svg {
    width: 100%;
    height: 100%;
}

.features-section h2 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 60px;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.feature-items {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.feature-item {
    max-width: 600px;
}

.feature-text h4 {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.feature-text p {
    font-size: 13px;
    color: var(--gray-mid);
    line-height: 1.7;
}

/* ====== CTA BANNER ====== */
.cta-banner {
    padding: 80px 48px;
    text-align: center;
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
}

.cta-banner h2 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cta-banner p {
    font-size: 13px;
    color: var(--gray-mid);
    margin-bottom: 28px;
}

.cta-banner .btn-row {
    justify-content: center;
}

/* ====== PARTICIPANTS SECTION ====== */
.participants-section {
    padding: 80px 48px;
}

.participants-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.participants-header h2 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
}

.participants-header p {
    font-size: 13px;
    color: var(--gray-mid);
    line-height: 1.7;
}

.participant-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.participant-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 32px;
    border: 1px solid var(--gray-border);
    border-radius: 16px;
}

.participant-card.reverse {
    direction: rtl;
}

.participant-card.reverse > * {
    direction: ltr;
}

.participant-img {
    height: 200px;
    background: linear-gradient(135deg, #ddd, #bbb);
    border-radius: 12px;
}

.participant-text .label {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.participant-text h4 {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.participant-text p {
    font-size: 12px;
    color: var(--gray-mid);
    line-height: 1.7;
}

/* ====== BUILT BY SECTION ====== */
.built-by-section {
    padding: 80px 48px;
    background: var(--mint-light);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.built-by-left h2 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 24px;
}

.built-by-left p {
    font-size: 13px;
    color: var(--gray-mid);
    line-height: 1.7;
    margin-bottom: 24px;
}

.checklist {
    list-style: none;
    margin-bottom: 24px;
}

.checklist li {
    font-size: 13px;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background: var(--mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.built-by-right {
    display: flex;
    justify-content: center;
}

.app-icon-large {
    width: 140px;
    height: 140px;
    background: var(--dark);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ====== FAQ SECTION ====== */
.faq-section {
    padding: 80px 48px;
    border-top: 1px solid var(--gray-border);
}

.faq-section h2 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 40px;
    max-width: 500px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.faq-item {
    padding: 20px;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover,
.faq-item:focus-visible {
    border-color: var(--dark);
    outline: none;
}

.faq-item h5 {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 11px;
    color: var(--gray-mid);
    line-height: 1.6;
    display: none;
}

.faq-item.active p {
    display: block;
}

/* ====== FINAL CTA ====== */
.final-cta {
    padding: 100px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-content {
    position: relative;
    z-index: 1;
}

.final-cta .app-icon-small {
    width: 48px;
    height: 48px;
    background: var(--dark);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
}

.final-cta h2 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 13px;
    color: var(--gray-mid);
    margin-bottom: 32px;
}

.final-cta .btn-row {
    justify-content: center;
}

