/* ECB Common Styles - Shared across all landing pages */

/* CSS Variables */
:root {
    --primary-black: #000000;
    --primary-blue: #4e5eea;
    --secondary-white: #F6F6F6;
    --secondary-yellow: #ffcd00;
    --danger: #FF3D00;
    --success: #00C853;
    --gradient-blue: linear-gradient(135deg, #4e5eea 0%, #3a4bd3 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    
    /* Typography */
    --font-primary: "Bebas Neue", sans-serif;
    --font-secondary: "Roboto", sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: #333;
    background-color: var(--secondary-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    line-height: 1.2;
    color: var(--primary-black);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes subtlePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

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

@keyframes binaryScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Glitch Reveal Animation */
@keyframes glitchReveal {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }
    5% { transform: translateX(-2px); filter: hue-rotate(90deg); }
    10% { transform: translateX(2px); filter: hue-rotate(180deg); }
    15% { transform: translateX(-1px); filter: hue-rotate(270deg); }
    20% { transform: translateX(1px); filter: hue-rotate(0deg); clip-path: polygon(0 10%, 100% 10%, 100% 90%, 0 90%); }
    25% { transform: translateX(0); clip-path: polygon(0 20%, 100% 20%, 100% 80%, 0 80%); }
    30% { clip-path: polygon(0 30%, 100% 30%, 100% 70%, 0 70%); }
    35% { transform: translateX(-2px); filter: hue-rotate(45deg); }
    40% { transform: translateX(2px); filter: hue-rotate(-45deg); clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%); }
    45% { transform: translateX(0); clip-path: polygon(0 45%, 100% 45%, 100% 55%, 0 55%); }
    50% { clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%); }
    55% { clip-path: polygon(0 45%, 100% 45%, 100% 55%, 0 55%); }
    60% { transform: translateX(-1px); filter: hue-rotate(90deg); clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%); }
    65% { transform: translateX(1px); filter: hue-rotate(-90deg); }
    70% { clip-path: polygon(0 30%, 100% 30%, 100% 70%, 0 70%); }
    75% { clip-path: polygon(0 20%, 100% 20%, 100% 80%, 0 80%); }
    80% { transform: translateX(-2px); clip-path: polygon(0 10%, 100% 10%, 100% 90%, 0 90%); }
    85%, 100% {
        transform: translateX(0);
        filter: hue-rotate(0deg);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* Utility Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn var(--transition-medium) forwards;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

/* Components */

/* Navigation */
nav {
    background-color: var(--primary-black);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-fast);
}

.logo img:hover {
    transform: scale(1.05);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--gradient-blue);
    color: white;
    padding: 20px 40px;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
    box-shadow: 0 5px 15px rgba(78, 94, 234, 0.3);
}

.cta-button: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 var(--transition-medium);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 94, 234, 0.4);
}

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

.cta-button.pulse {
    animation: pulse 2s infinite;
}

/* Trust Bar */
.trust-bar {
    background-color: var(--primary-black);
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.trust-number {
    color: var(--secondary-yellow);
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-block;
    margin: 0 5px;
    text-shadow: 0 0 10px rgba(255, 205, 0, 0.5);
}

/* Module Card */
.module-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(78, 94, 234, 0.1), transparent);
    transform: rotate(45deg);
    transition: all var(--transition-medium);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.module-card:hover::before {
    animation: shimmer 0.5s;
}

.module-number {
    display: inline-block;
    background: var(--gradient-blue);
    color: white;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
}

.testimonial-rating {
    color: var(--secondary-yellow);
    margin-bottom: 10px;
}

/* FAQ Accordion */
.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background-color: #f8f8f8;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 20px 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Progress Bar */
.progress-container {
    background-color: #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    height: 30px;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-blue);
    border-radius: 25px;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

/* Binary Pattern Background */
.binary-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.05;
    z-index: -1;
}

.binary-text {
    position: absolute;
    font-family: monospace;
    font-size: 20px;
    color: var(--primary-blue);
    animation: binaryScroll 20s linear infinite;
}

/* Sections */
section {
    padding: 80px 0;
}

.hero {
    background: var(--gradient-dark);
    color: white;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.founders {
    background-color: var(--secondary-white);
}

.modules {
    background-color: white;
}

.testimonials {
    background-color: var(--secondary-white);
}

.faq {
    background-color: white;
}

.urgency {
    background: var(--gradient-dark);
    color: white;
}

.final-cta {
    background: var(--gradient-blue);
    color: white;
}

/* Responsive Grid */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Media Queries */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    
    /* Navigation */
    nav .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo img {
        height: 40px;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    /* CTA Button */
    .cta-button {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
    
    /* Cards */
    .module-card,
    .testimonial-card {
        padding: 20px;
    }
    
    /* Grid */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    
    /* CTA Button */
    .cta-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    /* Testimonial */
    .testimonial-header {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-image {
        margin: 0 0 15px 0;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}