/**
 * UBEC Protocol - Welcome/Landing Page Styles
 * Ubuntu-inspired earth-tone design
 * Attribution: This project uses the services of Claude and Anthropic PBC.
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --ubec-forest: #2d5016;
    --ubec-sage: #3d8b6e;
    --ubec-teal: #5BB5B0;
    --ubec-amethyst: #7c3a6b;
    --ubec-earth: #8B4513;
    --ubec-white: #ffffff;
    --ubec-light: #f8f9fa;
    --ubec-dark: #2c3e50;
    --ubec-border: #e0e0e0;
    
    --ubec-shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --ubec-shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --ubec-shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
    
    --ubec-radius-sm: 8px;
    --ubec-radius-md: 12px;
    --ubec-radius-lg: 16px;
    
    --ubec-transition: all 0.3s ease;
}

/* ============================================
   RESET AND BASE
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--ubec-dark);
    overflow-x: hidden;
}

/* ============================================
   WRAPPER
   ============================================ */
.ubec-welcome-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION
   ============================================ */
.ubec-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        var(--ubec-forest) 0%, 
        var(--ubec-sage) 35%, 
        var(--ubec-teal) 65%, 
        var(--ubec-amethyst) 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.ubec-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.ubec-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.ubec-hero-branding {
    margin-bottom: 2rem;
}

.ubec-hero-logo {
    max-height: 120px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    animation: fadeIn 1s ease-out 0.2s both;
}

.ubec-hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    letter-spacing: -1px;
    animation: fadeIn 1s ease-out 0.4s both;
}

.ubec-hero-tagline {
    font-size: 1.75rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: fadeIn 1s ease-out 0.6s both;
}

.ubec-hero-philosophy {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeIn 1s ease-out 0.8s both;
}

.ubec-hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 1s both;
}

/* Scroll Indicator */
.ubec-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.ubec-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--ubec-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--ubec-transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.ubec-btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--ubec-sage);
}

.ubec-btn-primary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--ubec-shadow-lg);
}

.ubec-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.ubec-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.ubec-btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.ubec-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.ubec-btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

/* ============================================
   CONTAINER
   ============================================ */
.ubec-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 5rem 0;
}

.ubec-section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--ubec-sage);
    margin-bottom: 3rem;
    font-weight: 700;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.ubec-about {
    background: white;
}

.ubec-about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.ubec-about-content h2 {
    font-size: 2.5rem;
    color: var(--ubec-sage);
    margin-bottom: 2rem;
}

.ubec-lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.ubec-features {
    background: var(--ubec-light);
}

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

.ubec-feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--ubec-radius-lg);
    text-align: center;
    transition: var(--ubec-transition);
    box-shadow: var(--ubec-shadow-sm);
}

.ubec-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ubec-shadow-lg);
}

.ubec-feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
    color: white;
}

.ubec-icon-earth {
    background: linear-gradient(135deg, var(--ubec-sage), var(--ubec-teal));
}

.ubec-icon-water {
    background: linear-gradient(135deg, var(--ubec-teal), var(--ubec-amethyst));
}

.ubec-icon-fire {
    background: linear-gradient(135deg, var(--ubec-amethyst), var(--ubec-earth));
}

.ubec-icon-air {
    background: linear-gradient(135deg, var(--ubec-earth), var(--ubec-sage));
}

.ubec-feature-card h3 {
    font-size: 1.5rem;
    color: var(--ubec-sage);
    margin-bottom: 1rem;
    font-weight: 600;
}

.ubec-feature-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   HOW IT WORKS / TIMELINE
   ============================================ */
.ubec-how-it-works {
    background: white;
}

.ubec-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.ubec-timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.ubec-timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 70px;
    bottom: -30px;
    width: 2px;
    background: linear-gradient(180deg, var(--ubec-sage), var(--ubec-teal));
}

.ubec-timeline-marker {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ubec-sage), var(--ubec-teal));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: var(--ubec-shadow-md);
    z-index: 1;
}

.ubec-timeline-content {
    flex-grow: 1;
    padding-top: 0.5rem;
}

.ubec-timeline-content h3 {
    font-size: 1.5rem;
    color: var(--ubec-sage);
    margin-bottom: 0.75rem;
}

.ubec-timeline-content p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   STATS SECTION
   ============================================ */
.ubec-stats {
    background: linear-gradient(135deg, var(--ubec-sage), var(--ubec-teal));
    color: white;
    padding: 4rem 0;
}

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

.ubec-stat-card {
    text-align: center;
}

.ubec-stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ubec-stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ============================================
   CTA SECTION
   ============================================ */
.ubec-cta {
    background: var(--ubec-light);
    padding: 6rem 0;
}

.ubec-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.ubec-cta-content h2 {
    font-size: 2.5rem;
    color: var(--ubec-sage);
    margin-bottom: 1.5rem;
}

.ubec-cta-content p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2.5rem;
}

.ubec-cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ubec-cta-actions .ubec-btn-primary {
    background: linear-gradient(135deg, var(--ubec-sage), var(--ubec-teal));
    color: white;
}

.ubec-cta-actions .ubec-btn-outline {
    border-color: var(--ubec-sage);
    color: var(--ubec-sage);
}

.ubec-cta-actions .ubec-btn-outline:hover {
    background: var(--ubec-sage);
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.ubec-footer {
    background: var(--ubec-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.ubec-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.ubec-footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--ubec-teal);
}

.ubec-footer-section p {
    line-height: 1.7;
    opacity: 0.8;
}

.ubec-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ubec-footer-links li {
    margin-bottom: 0.75rem;
}

.ubec-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--ubec-transition);
}

.ubec-footer-links a:hover {
    color: white;
    padding-left: 5px;
}

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

.ubec-footer-bottom p {
    margin: 0.5rem 0;
    opacity: 0.7;
}

.ubec-footer-attribution {
    font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .ubec-hero-title {
        font-size: 2.5rem;
    }
    
    .ubec-hero-tagline {
        font-size: 1.25rem;
    }
    
    .ubec-hero-philosophy {
        font-size: 1rem;
    }
    
    .ubec-section-title {
        font-size: 2rem;
    }
    
    .ubec-timeline-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ubec-timeline-item::after {
        display: none;
    }
    
    section {
        padding: 3rem 0;
    }
}
