/**
 * About Page - Stripe-Inspired Design System
 * Beautiful, minimal, sublime animations
 */

/* ============================================================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================================================ */

:root {
    --color-primary: #017ACA;
    --color-primary-light: #0096E5;
    --color-primary-dark: #0a2540;
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    --color-background: #ffffff;
    --color-surface: #f6f9fc;
    --color-border: #e2e8f0;
    
    --gradient-primary: linear-gradient(135deg, #017ACA 0%, #0096E5 100%);
    --gradient-orb-1: radial-gradient(circle at center, rgba(1, 122, 202, 0.12) 0%, transparent 70%);
    --gradient-orb-2: radial-gradient(circle at center, rgba(0, 150, 229, 0.10) 0%, transparent 70%);
    --gradient-orb-3: radial-gradient(circle at center, rgba(1, 122, 202, 0.08) 0%, transparent 70%);
    
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.15);
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   HERO SECTION - Stripe-Inspired
   ============================================================================ */

.about-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 50%);
}

.gradient-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

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

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    top: 15%;
    right: -5%;
    background: var(--gradient-orb-1);
    animation-delay: 0s;
    animation-duration: 25s;
}

.gradient-orb-2 {
    width: 500px;
    height: 500px;
    bottom: 20%;
    left: -10%;
    background: var(--gradient-orb-2);
    animation-delay: 7s;
    animation-duration: 30s;
}

.gradient-orb-3 {
    width: 400px;
    height: 400px;
    top: 45%;
    left: 50%;
    background: var(--gradient-orb-3);
    animation-delay: 14s;
    animation-duration: 22s;
}

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

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 91, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 91, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    z-index: 1;
    animation: grid-shift 20s linear infinite;
}

@keyframes grid-shift {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

.about-hero__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    position: relative;
    z-index: 10;
}

.about-hero__content {
    text-align: center;
}

.about-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-primary-dark);
    margin: 0 0 var(--spacing-md);
}

.about-hero__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* ============================================================================
   SECTION DIVIDER
   ============================================================================ */

.section-divider {
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}

.scroll-dot {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(10, 37, 64, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-dot::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scroll-dot 2s ease-in-out infinite;
}

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

@keyframes scroll-dot {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

/* ============================================================================
   SECTION UTILITIES
   ============================================================================ */

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 91, 255, 0.08) 0%, rgba(0, 115, 230, 0.08) 100%);
    border: 1px solid rgba(99, 91, 255, 0.2);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #635bff;
    margin-bottom: 1.5rem;
}

.eyebrow-icon {
    font-size: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-text);
    margin: 0 0 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
}

.section-description p {
    margin-bottom: 1.5rem;
}

.section-description p:last-child {
    margin-bottom: 0;
}

.section-description-single {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 0 auto 2rem;
}

/* ============================================================================
   MISSION SECTION
   ============================================================================ */

.mission-section {
    position: relative;
    padding: 6rem 0;
    background: #fafbfc;
    overflow: hidden;
}

.mission-header {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.mission-header .section-eyebrow {
    margin-bottom: 1.5rem;
}

.mission-header .section-description {
    text-align: left;
    margin-top: 2rem;
}

.mission-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 91, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(1, 122, 202, 0.3);
}

.mission-card:hover::before {
    opacity: 1;
}

.mission-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(1, 122, 202, 0.1) 0%, rgba(0, 150, 229, 0.1) 100%);
    border-radius: 12px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mission-card:hover .mission-card__icon {
    transform: scale(1.1);
}

.mission-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.mission-card__description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ============================================================================
   VALUES SECTION
   ============================================================================ */

.values-section {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    overflow: hidden;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.value-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.value-card__border {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 91, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.value-card:hover .value-card__border {
    opacity: 1;
}

.value-card:hover::before {
    opacity: 1;
}

.value-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(1, 122, 202, 0.1) 0%, rgba(0, 150, 229, 0.1) 100%);
    border-radius: 12px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card:hover .value-card__icon {
    transform: scale(1.1);
}

.value-card__title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.value-card__description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ============================================================================
   FAITH SECTION
   ============================================================================ */

.faith-section {
    position: relative;
    padding: 8rem 0;
    background: #fafbfc;
    overflow: hidden;
}

.faith-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
}

.faith-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.faith-symbol {
    position: relative;
    z-index: 2;
}

.faith-symbol svg {
    filter: drop-shadow(0 4px 16px rgba(1, 122, 202, 0.2));
}

.faith-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--gradient-orb-2);
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.faith-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faith-text .section-eyebrow {
    margin-bottom: 0;
}

.lead-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.principle-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.principle-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.principle-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    border-radius: 50%;
    color: #ffffff;
}

.principle-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.closing-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-top: 1rem;
}

.closing-text strong {
    color: var(--color-text);
    font-weight: 600;
}

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

.cta-section {
    position: relative;
    padding: 10rem 0;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cta-button--primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(1, 122, 202, 0.3);
}

.cta-button--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button--primary:hover::before {
    left: 100%;
}

.cta-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1, 122, 202, 0.4);
}

.cta-button--secondary {
    background: #ffffff;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.cta-button--secondary:hover {
    background: #f8fafc;
    border-color: rgba(1, 122, 202, 0.3);
}

.button-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

/* ============================================================================
   BACKGROUND ELEMENTS
   ============================================================================ */

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 1;
    animation: floatOrb 20s ease-in-out infinite;
}

.bg-orb-left {
    width: 500px;
    height: 500px;
    background: var(--gradient-orb-1);
    top: 20%;
    left: -200px;
}

.bg-orb-right {
    width: 450px;
    height: 450px;
    background: var(--gradient-orb-2);
    bottom: 20%;
    right: -150px;
    animation-delay: -10s;
}

.bg-orb-center {
    width: 400px;
    height: 400px;
    background: var(--gradient-orb-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-orb-1);
    top: 30%;
    right: -200px;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-orb-2);
    bottom: 30%;
    left: -150px;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 91, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 91, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

/* ============================================================================
   ANIMATIONS - Intersection Observer
   ============================================================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
}

[data-animate="fade-up"].animated {
    opacity: 1;
    transform: translateY(0);
}

.mission-card,
.value-card,
.principle-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mission-card.animated,
.value-card.animated,
.principle-item.animated {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 1024px) {
    .faith-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

@media (max-width: 768px) {
    .about-hero {
        min-height: 80vh;
    }

    .section-container {
        padding: 0 var(--spacing-md);
    }

    .section-divider {
        height: 60px;
    }

    .mission-section,
    .values-section,
    .faith-section,
    .cta-section {
        padding: 5rem 0;
    }

    .section-header,
    .mission-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }

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

    .mission-card {
        padding: 1.5rem;
    }

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

    .value-card {
        padding: 2rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .about-hero {
        min-height: 70vh;
    }

    .about-hero__container {
        padding: 0 var(--spacing-md);
    }

    .section-container {
        padding: 0 var(--spacing-sm);
    }

    .mission-section,
    .values-section,
    .faith-section {
        padding: 4rem 0;
    }

    .cta-section {
        padding: 6rem 0;
    }

    .section-eyebrow {
        font-size: 0.8125rem;
        padding: 0.375rem 0.875rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    .mission-card__icon,
    .value-card__icon {
        width: 48px;
        height: 48px;
    }

    .mission-card__title,
    .value-card__title {
        font-size: 1.125rem;
    }

    .faith-symbol svg {
        width: 120px;
        height: 120px;
    }

    .mission-card,
    .value-card {
        padding: 1.5rem;
    }
}
