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

:root {
    /* Jijenge Brand Colors */
    --primary-orange: #FF7A00;
    --primary-red: #B91C4A;
    --primary-navy: #1E3A8A;
    --success-green: #10B981;
    --warning-amber: #F59E0B;
    --neutral-gray: #6B7280;
    --light-bg: #F9FAFB;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 20px;
    --border-radius: 12px;
    --border-radius-large: 20px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--neutral-gray);
    background-color: var(--white);
}

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

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-gray);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    color: var(--white);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-navy);
    border-color: var(--primary-navy);
}

.btn-secondary:hover {
    background: var(--primary-navy);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-navy);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--neutral-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-orange);
}

.nav-link.cta-button {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-link.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-navy);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--light-bg) 0%, rgba(255, 122, 0, 0.05) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--neutral-gray);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(var(--shadow-xl));
}

/* Problem Section */
.problem {
    padding: var(--section-padding);
    background: var(--white);
}

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

.problem-item {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-large);
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-icon i {
    font-size: 2rem;
    color: var(--white);
}

.problem-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

.problem-item p {
    color: var(--neutral-gray);
    line-height: 1.6;
}

/* Solution Section */
.solution {
    padding: var(--section-padding);
    background: var(--light-bg);
}

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

.solution-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-orange);
}

.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.solution-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.solution-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

.solution-item p {
    color: var(--neutral-gray);
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
    padding: var(--section-padding);
    background: var(--white);
}

.steps-container {
    display: grid;
    gap: 3rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    border-radius: var(--border-radius-large);
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

.step-content p {
    color: var(--neutral-gray);
    line-height: 1.7;
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background: var(--light-bg);
}

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

.feature-category {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-bg);
}

.feature-header i {
    font-size: 2rem;
    color: var(--primary-orange);
}

.feature-header h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.75rem 0;
    color: var(--neutral-gray);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 700;
}

/* Statistics Section */
.stats {
    padding: var(--section-padding);
    background: var(--primary-navy);
    color: var(--white);
}

.stats .section-title {
    color: var(--white);
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Technology Section */
.technology {
    padding: var(--section-padding);
    background: var(--white);
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-navy);
}

.tech-features {
    display: grid;
    gap: 1.5rem;
}

.tech-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.tech-feature:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.tech-feature i {
    font-size: 1.5rem;
    color: var(--primary-orange);
    margin-top: 0.25rem;
}

.tech-feature h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
}

.tech-feature p {
    color: var(--neutral-gray);
}

.tech-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avalanche-logo {
    max-width: 300px;
    height: auto;
}

/* Community Section */
.community {
    padding: var(--section-padding);
    background: var(--light-bg);
}

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

.community-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.community-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-icon i {
    font-size: 2rem;
    color: var(--white);
}

.community-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-navy);
}

.community-card ul {
    list-style: none;
    text-align: left;
}

.community-card li {
    padding: 0.5rem 0;
    color: var(--neutral-gray);
    position: relative;
    padding-left: 1.5rem;
}

.community-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: 700;
}

/* CTA Section */
.cta {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-red) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta .btn-primary {
    background: var(--white);
    color: var(--primary-navy);
}

.cta .btn-primary:hover {
    background: var(--light-bg);
}

.cta .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.cta .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-navy);
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-container {
    margin-bottom: 1rem;
}

.footer-logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 50%;
    display: block;
}

.footer-logo-svg {
    height: 50px;
    width: auto;
    display: block;
}

.footer-logo-fallback {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    display: inline-block;
}

.logo-text-footer {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 300px;
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

.powered-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.powered-link:hover {
    transform: translateY(-2px);
}

.powered-logo {
    height: 28px;
    width: auto;
    transition: all 0.3s ease;
}

/* Specific styling for FiatRails logo to improve visibility */
.powered-link img[src="fiatrails_logo.png"] {
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.powered-link:hover .powered-logo {
    transform: scale(1.1);
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-orange);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .tech-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        padding: 1rem;
        display: block;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        --section-padding: 80px 0;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .problem-grid,
    .solution-grid,
    .features-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .hamburger,
    .cta,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 18pt;
    }
}
