/**
 * Payments & Transactions Section Styles
 * Stripe-inspired gradient design with modern animations
 */

/* ===========================
   Section Container & Layout
   =========================== */

.payments-section {
    position: relative;
    min-height: 100vh;
    padding: 2rem 0 4rem 0;
    background: linear-gradient(180deg, #ffffff 20%, #f7f9fc 50%, #ffffff 100%);
    overflow: hidden;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ===========================
   Section Header
   =========================== */

.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: 24px;
    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: #0f172a;
    margin: 0 0 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #017ACA 0%, #0096E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* ===========================
   Feature Grid
   =========================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

/* ===========================
   Feature Cards
   =========================== */

.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
    border-color: rgba(99, 91, 255, 0.3);
}

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

.feature-card--primary {
    grid-column: span 2;
    flex-direction: row;
    gap: 3rem;
}

.feature-card--primary .feature-card__visual,
.feature-card--primary .feature-card__content {
    flex: 1;
}

/* Feature Trio - Three cards in a row with center pop */
.feature-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-column: 1 / -1;
}

.feature-card--trio {
    z-index: 1;
    display: grid;
    grid-template-rows: 320px auto;
}

.feature-card--trio .feature-card__visual {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.feature-card--trio .feature-card__content {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 0.75rem;
}

.feature-card--trio .feature-icon {
    align-self: start;
}

.feature-card--trio .feature-title {
    align-self: start;
}

.feature-card--trio .feature-description {
    align-self: start;
}

.feature-card--trio .feature-list--grid {
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: flex-start;
}

.feature-card--trio.feature-card--featured {
    z-index: 10;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
    border-color: #017ACA;
}

.feature-card--trio .feature-list--grid .feature-list-item {
    margin: 0;
    width: 100%;
    justify-content: flex-start;
}

/* ===========================
   Feature Visual Container
   =========================== */

.feature-card__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.visual-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite;
}

.glow--primary {
    background: radial-gradient(circle, rgba(1, 122, 202, 0.12) 0%, transparent 70%);
}

.glow--secondary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.glow--accent {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.glow--warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.glow--success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.glow--info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

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

/* ===========================
   Mockup Components
   =========================== */

/* File Mockup */
.file-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.feature-card:hover .file-mockup {
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.15);
}

.file-mockup__header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-mockup__dots {
    display: flex;
    gap: 0.375rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot--red {
    background: #ef4444;
}

.dot--yellow {
    background: #f59e0b;
}

.dot--green {
    background: #10b981;
}

.file-mockup__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.file-mockup__content {
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.file-icon svg {
    display: block;
}

.file-info {
    text-align: center;
}

.file-size {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.file-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #15803d;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s ease-in-out infinite;
}

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

.file-mockup__footer {
    padding: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.mock-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mock-button--primary {
    background: linear-gradient(135deg, #017ACA 0%, #0096E5 100%);
    color: #ffffff;
}

.mock-button--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 91, 255, 0.3);
}

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

/* Shared Files Mockup - Minimal & Clean */
.shared-files-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
}

.shared-files-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shared-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.shared-badge {
    font-size: 0.8125rem;
    color: #64748b;
}

.shared-files-list {
    padding: 0.5rem 0;
}

.shared-file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.5rem;
    transition: background 0.15s ease;
}

.shared-file-row:hover {
    background: #fafbfc;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.file-meta {
    font-size: 0.8125rem;
    color: #64748b;
}

.file-access {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #10b981;
}

.file-access.expires {
    color: #f59e0b;
}

.shared-files-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.access-label {
    font-size: 0.8125rem;
    color: #64748b;
}

.access-code {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.025em;
}

/* Milestone Mockup */
.milestone-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    width: 100%;
    max-width: 340px;
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 1;
}

.milestone-progress {
    margin-bottom: 1.5rem;
}

.milestone-mockup .progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.milestone-mockup .progress-bar .progress-fill {
    width: 40%;
    height: 8px;
    background: #017ACA !important;
    border-radius: 4px;
    display: block;
}

.progress-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-align: right;
}

.milestone-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.milestone-item--complete {
    background: #f0fdf4;
}

.milestone-item--active {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.milestone-check {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.milestone-item--complete .milestone-check {
    background: #22c55e;
    color: #ffffff;
}

.milestone-item--active .milestone-check {
    background: #635bff;
    color: #ffffff;
}

.milestone-info {
    flex: 1;
    min-width: 0;
}

.milestone-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 0.125rem;
}

.milestone-amount {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

/* Payment Request Mockup */
.payment-request-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    width: 100%;
    max-width: 300px;
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 1;
    text-align: center;
}

.pr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pr-icon {
    font-size: 1.25rem;
}

.pr-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.pr-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.pr-description {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.pr-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pr-sender {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.sender-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(1, 122, 202, 0.12) 0%, transparent 70%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
}

.sender-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
}

.pr-button {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #017ACA 0%, #0096E5 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pr-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(99, 91, 255, 0.3);
}

/* Invoice Mockup - Minimal & Clean */
.invoice-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
}

.invoice-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.invoice-status {
    font-size: 0.8125rem;
    color: #f59e0b;
    font-weight: 500;
}

.invoice-body {
    padding: 0.5rem 0;
}

.invoice-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.5rem;
}

.invoice-line--tax {
    background: #fafbfc;
}

.line-desc {
    font-size: 0.875rem;
    color: #475569;
}

.line-amount {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.invoice-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

/* ===========================
   Feature Card Content
   =========================== */

.feature-card__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 91, 255, 0.1) 0%, rgba(0, 115, 230, 0.1) 100%);
    border-radius: 12px;
    color: #635bff;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

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

.feature-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #475569;
}

.list-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===========================
   Section CTA
   =========================== */

.section-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(99, 91, 255, 0.05) 0%, rgba(0, 115, 230, 0.05) 100%);
    border: 1px solid rgba(99, 91, 255, 0.15);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(1, 122, 202, 0.3), transparent);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.cta-description {
    font-size: 1.125rem;
    color: #475569;
    margin: 0 0 2rem;
}

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

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

.cta-button--primary {
    background: linear-gradient(135deg, #017ACA 0%, #0096E5 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(99, 91, 255, 0.3);
}

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

.cta-button--secondary {
    background: #ffffff;
    color: #635bff;
    border: 1px solid #e2e8f0;
}

.cta-button--secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* ===========================
   Background Elements
   =========================== */

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    /* Mask removed for seamless section transitions */
}

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

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(1, 122, 202, 0.12) 0%, transparent 70%);
    top: 30%;
    right: -200px;
    opacity: 1;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 150, 229, 0.10) 0%, transparent 70%);
    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);
    }
}

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

.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;
}

/* ===========================
   Animations
   =========================== */

[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);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .feature-card--primary {
        grid-column: span 1;
        flex-direction: column;
    }

    .feature-trio {
        grid-template-columns: 1fr;
    }

    .feature-card--trio {
        display: flex;
        flex-direction: column;
    }

    .feature-card--trio .feature-card__visual {
        height: auto;
        min-height: 280px;
    }

    .feature-card--trio .feature-card__content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .feature-card--trio.feature-card--featured {
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    }

    .feature-card--trio .feature-list--grid {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .feature-card--trio .feature-list--grid .feature-list-item {
        justify-content: flex-start;
        text-align: left;
    }

    .feature-list--grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .payments-section {
        padding: 4rem 0;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

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

    .feature-card__visual {
        min-height: 240px;
    }

    .file-mockup,
    .shared-files-mockup,
    .milestone-mockup,
    .payment-request-mockup,
    .invoice-mockup {
        max-width: 100%;
    }

    .section-cta {
        padding: 2.5rem 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }

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

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

@media (max-width: 480px) {
    .section-container {
        padding: 0 1rem;
    }

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

    .feature-title {
        font-size: 1.25rem;
    }

    .feature-description {
        font-size: 0.9375rem;
    }

    .feature-list-item {
        font-size: 0.875rem;
    }
}

