/* CoinFLEX Creditors United - Styles inspired by reference images */

:root {
    /* CoinFLEX Color Palette - extracted from reference images */
    --primary-purple: #8b5cf6;
    --secondary-purple: #a855f7;
    --light-purple: #c084fc;
    --purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    --purple-gradient-hero: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 30%, #a855f7 70%, #c084fc 100%);
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --text-dark: #2E3039;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px rgba(139, 92, 246, 0.12);
    --shadow-medium: 0 4px 8px rgba(139, 92, 246, 0.15);
    --shadow-large: 0 20px 25px rgba(139, 92, 246, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-purple);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--purple-gradient);
    border-radius: 50%;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-purple);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-gray);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: white;
    padding-bottom: 3rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23ffffff;stop-opacity:0.1"/><stop offset="50%" style="stop-color:%23ffffff;stop-opacity:0.05"/><stop offset="100%" style="stop-color:%23ffffff;stop-opacity:0.1"/></linearGradient></defs><path d="M0,400 Q300,200 600,400 T1200,400 L1200,800 L0,800 Z" fill="url(%23grad)"/></svg>') no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    
    /* Gradient Text Styling */
    background: var(--purple-gradient-hero); /* Use the existing gradient */
    background-clip: text;
    -webkit-background-clip: text; /* For Safari compatibility */
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.hero-info {
    margin: 2rem auto;
    text-align: left;
    max-width: fit-content;
}

.hero-info-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary-purple);
    text-align: center;
    line-height: 1.3;
}

.hero-info-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 1em 0 0 0;
    display: grid;
    gap: 1rem;
}

.hero-info-list li {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.hero-info-list li:hover {
    background: var(--background-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6d28d9 30%, #8b5cf6 100%);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-secondary {
    background: var(--background-white);
    color: var(--text-gray);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--background-light);
    color: var(--primary-purple);
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-large);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 1rem;
}

/* Sections */
.context-section,
.evidence-section,
.involvement-section,
.join-section,
.support-section {
    padding: 5rem 0;
    background: var(--background-white);
}

.involvement-section {
    padding-top: 0;
}

.join-section {
    background: var(--background-light);
}

.context-section {
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

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

.section-intro {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Evidence Blocks */
.evidence-block {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--background-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.evidence-block h3 {
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
}

.court-quotes {
    margin: 2rem 0;
}

.court-quotes blockquote {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid var(--primary-purple);
    padding: 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    font-size: 1.1rem;
    border-radius: 0.5rem;
}

.personal-quote {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 10%);
    border-left-color: #ef4444;
}

.quote-impact {
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 0.5rem 0;
}

.highlight-box {
    background: var(--purple-gradient);
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    text-align: center;
}

.highlight-box p {
    color: white;
    margin: 0;
    font-weight: 600;
}

.key-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    margin: 2rem 0;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--purple-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
}

/* Join Section */
.join-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.join-benefits {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.join-benefits h3 {
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
}

.join-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.join-benefits li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.join-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-weight: bold;
}

.join-instructions {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.join-instructions h3 {
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
}

.email-requirements {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.email-requirements h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.email-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.email-requirements li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.email-requirements li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-weight: bold;
}




/* Support Section */
.support-section {
    background: var(--background-light);
}

.support-card {
    background: var(--background-white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.support-card h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.post-preview {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.post-preview blockquote {
    background: white;
    border-left: 4px solid var(--primary-purple);
    padding: 1rem;
    margin: 0.5rem 0;
    font-style: italic;
    border-radius: 0.5rem;
}

.post-option {
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.post-option h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.image-option {
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.image-preview {
    text-align: center;
    margin-bottom: 1rem;
}

.share-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.image-caption {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    font-weight: 500;
    box-shadow: var(--shadow-light);
}

.instruction-note {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 2rem;
}

.instruction-note p {
    margin: 0;
    color: #92400e;
    font-weight: 500;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #6d28d9 0%, #1e293b 100%);
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-purple) 50%, transparent 100%);
}

.organizer-intro {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 1.5rem;
    margin-bottom: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.08);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.organizer-intro h2 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.organizer-intro p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.organizer-intro p:last-child {
    margin-bottom: 0;
}

.legal-disclaimers h2 {
    color: white;
    margin-bottom: 3rem;
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
}

.disclaimer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.disclaimer-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.disclaimer-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.disclaimer-item h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.disclaimer-item p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-bottom p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: var(--shadow-medium);
    }
    
    .nav.active {
        display: flex;
        align-items: flex-end;
    }
    
    .nav a {
        font-size: 1rem;
        padding: 0.75rem;
        border-radius: 0.5rem;
        transition: background-color 0.3s ease;
    }
    
    .nav a:hover {
        background-color: var(--background-light);
    }
    
    .header .container {
        position: relative;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-info {
        text-align: center;
    }
    
    .hero-info-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-info-list {
        gap: 0.75rem;
    }
    
    .hero-info-list li {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    
    
    .hero {
        padding-bottom: 4rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .btn,
    .btn-large {
        text-align: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    .action-card {
        padding: 2rem 1.5rem;
    }
    
    .disclaimer-content {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .support-card {
        padding: 1.5rem 1rem;
    }
    
    .share-image {
        height: 150px;
    }
    
    .join-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .join-benefits,
    .join-instructions {
        padding: 1.5rem;
    }
    
    .disclaimer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .organizer-intro {
        padding: 2.5rem 1.5rem;
        margin-bottom: 3rem;
    }
    
    .organizer-intro h2 {
        font-size: 1.5rem;
    }
    
    .organizer-intro p {
        font-size: 1rem;
    }
    
    .legal-disclaimers h2 {
        font-size: 1.5rem;
    }
    
    .disclaimer-item {
        padding: 1.5rem;
    }
}

/* Comprehensive header overlap fixes for all problematic screen sizes */

/* iPad Air horizontal (1180x820) and similar tablets */
@media (min-width: 1024px) and (max-width: 1280px) and (max-height: 860px) {
    .hero {
        padding-top: 160px;
        min-height: calc(100vh - 160px);
    }
    
    .hero-title {
        margin-top: 3rem;
    }
}

/* Surface Duo vertical dual-screen (1114x720) and Nest Hub Max (1280x800) */
@media (min-width: 1024px) and (max-height: 820px) {
    .hero {
        padding-top: 180px;
        min-height: calc(100vh - 180px);
    }
    
    .hero-title {
        margin-top: 3rem;
        font-size: 3.5rem;
    }
}

/* Asus Zenbook Fold horizontal (1280x853) */
@media (min-width: 1200px) and (max-width: 1320px) and (max-height: 880px) {
    .hero {
        padding-top: 150px;
        min-height: calc(100vh - 150px);
    }
    
    .hero-title {
        margin-top: 2.5rem;
    }
}

/* General tablet range backup */
@media (min-width: 769px) and (max-width: 1030px) {
    .hero {
        padding-top: 140px;
        min-height: calc(100vh - 140px);
    }
    
    .hero-title {
        margin-top: 2rem;
    }
}

/* Specific fix for 769-893px desktop window range */
@media (min-width: 769px) and (max-width: 893px) {
    .hero {
        padding-top: 160px;
        min-height: calc(100vh - 160px);
    }
    
    .hero-title {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) and (min-width: 480px) {
    .hero {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .action-card {
        padding: 1.5rem 1rem;
    }
    
    .evidence-block {
        padding: 1.5rem 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}