/**
 * BTC University - Landing Page Styles
 * Homepage specific styles for the BTCU platform
 * 
 * Sections:
 * - Hero section with animated background
 * - Features/benefits showcase
 * - Curriculum overview
 * - Membership tiers
 * - Age bracket programs
 * - Testimonials
 * - Call to action
 * - Footer
 */

/* ============================================
   HERO SECTION
============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-20) var(--space-6);
    background: linear-gradient(135deg, var(--btcu-navy-dark) 0%, var(--btcu-navy) 50%, var(--btcu-navy-light) 100%);
    overflow: hidden;
}

/* Animated background elements */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(201, 184, 150, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 184, 150, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-bg-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.hero-bg-glow-1 {
    top: -20%;
    right: -10%;
    background: var(--btcu-orange);
}

.hero-bg-glow-2 {
    bottom: -20%;
    left: -10%;
    background: var(--btcu-gold);
}

/* Floating particles */
.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--btcu-gold);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

.hero-particle:nth-child(2) { animation-delay: 1s; }
.hero-particle:nth-child(3) { animation-delay: 2s; }
.hero-particle:nth-child(4) { animation-delay: 3s; }
.hero-particle:nth-child(5) { animation-delay: 4s; }

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--space-16);
    max-width: var(--container-full);
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 40rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(201, 184, 150, 0.15);
    border: 1px solid rgba(201, 184, 150, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s ease forwards;
}

.hero-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--btcu-orange);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-badge-text {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--btcu-gold);
    letter-spacing: var(--tracking-wide);
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    color: var(--btcu-white);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--btcu-gold), var(--btcu-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--btcu-gray-300);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(201, 184, 150, 0.2);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--btcu-gold);
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--btcu-gray-400);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* Hero crest/image */
.hero-crest {
    flex-shrink: 0;
    position: relative;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-crest-img {
    width: 28rem;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(201, 184, 150, 0.3));
    animation: float 6s ease-in-out infinite;
}

.hero-crest-ring {
    position: absolute;
    inset: -2rem;
    border: 2px solid rgba(201, 184, 150, 0.1);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--btcu-gray-400);
    font-size: var(--text-sm);
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

.hero-scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid var(--btcu-gray-400);
    border-radius: var(--radius-full);
    position: relative;
}

.hero-scroll-wheel {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--btcu-gold);
    border-radius: var(--radius-full);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 0.3; }
}

/* ============================================
   FEATURES SECTION
============================================ */

.features {
    padding: var(--space-24) 0;
    background: var(--btcu-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.feature-card {
    padding: var(--space-8);
    background: var(--btcu-off-white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--btcu-gray-200);
    transition: all var(--transition-default);
    text-align: center;
}

.feature-card:hover {
    border-color: var(--btcu-gold);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--btcu-gold-light), var(--btcu-gold));
    border-radius: var(--radius-xl);
    color: var(--btcu-navy);
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
}

.feature-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--btcu-navy);
    margin-bottom: var(--space-3);
}

.feature-description {
    font-size: var(--text-base);
    color: var(--btcu-gray-500);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ============================================
   CURRICULUM SECTION
============================================ */

.curriculum {
    padding: var(--space-24) 0;
    background: linear-gradient(180deg, var(--btcu-off-white) 0%, var(--btcu-white) 100%);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.curriculum-card {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--btcu-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--btcu-gray-200);
    transition: all var(--transition-default);
}

.curriculum-card:hover {
    border-color: var(--btcu-gold);
    box-shadow: var(--shadow-lg);
}

.curriculum-year {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background: var(--btcu-navy);
    border-radius: var(--radius-xl);
    color: var(--btcu-white);
}

.curriculum-year-number {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    line-height: 1;
}

.curriculum-year-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--btcu-gold);
}

.curriculum-content {
    flex: 1;
}

.curriculum-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--btcu-navy);
    margin-bottom: var(--space-2);
}

.curriculum-books {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.curriculum-book {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--btcu-gray-600);
}

.curriculum-book::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--btcu-gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   TIERS / MEMBERSHIP SECTION
============================================ */

.tiers {
    padding: var(--space-24) 0;
    background: var(--btcu-navy);
    position: relative;
    overflow: hidden;
}

.tiers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--btcu-gold), transparent);
}

.tiers .section-header h2 {
    color: var(--btcu-white);
}

.tiers .section-header p {
    color: var(--btcu-gray-400);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: stretch;
}

.tier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 184, 150, 0.2);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-default);
}

.tier-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(201, 184, 150, 0.4);
    transform: translateY(-8px);
}

/* Featured/Popular tier */
.tier-card.featured {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1), rgba(201, 184, 150, 0.1));
    border-color: var(--btcu-orange);
    transform: scale(1.02);
}

.tier-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.tier-popular-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-1) var(--space-4);
    background: var(--btcu-orange);
    color: var(--btcu-white);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    border-radius: var(--radius-full);
}

.tier-header {
    text-align: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(201, 184, 150, 0.2);
}

.tier-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
}

.tier-icon.apprentice {
    background: var(--btcu-gray-600);
    color: var(--btcu-white);
}

.tier-icon.pathfinder {
    background: var(--btcu-orange);
    color: var(--btcu-white);
}

.tier-icon.vanguard {
    background: linear-gradient(135deg, var(--btcu-gold), var(--btcu-gold-dark));
    color: var(--btcu-navy);
}

.tier-name {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--btcu-white);
    margin-bottom: var(--space-2);
}

.tier-target {
    font-size: var(--text-sm);
    color: var(--btcu-gray-400);
}

.tier-price {
    margin-top: var(--space-4);
}

.tier-price-value {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--btcu-gold);
}

.tier-price-period {
    font-size: var(--text-sm);
    color: var(--btcu-gray-400);
}

.tier-features {
    flex: 1;
    list-style: none;
    margin: 0 0 var(--space-6) 0;
    padding: 0;
}

.tier-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    font-size: var(--text-sm);
    color: var(--btcu-gray-300);
    border-bottom: 1px solid rgba(201, 184, 150, 0.1);
}

.tier-feature:last-child {
    border-bottom: none;
}

.tier-feature-check {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--btcu-success);
}

.tier-cta {
    width: 100%;
}

.tier-card.featured .tier-cta {
    background: var(--btcu-orange);
    border-color: var(--btcu-orange);
}

/* ============================================
   AGE BRACKETS SECTION
============================================ */

.age-brackets {
    padding: var(--space-24) 0;
    background: var(--btcu-white);
}

.age-brackets-scroll {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    padding: var(--space-4) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.age-brackets-scroll::-webkit-scrollbar {
    display: none;
}

.age-bracket-card {
    flex-shrink: 0;
    width: 18rem;
    padding: var(--space-6);
    background: var(--btcu-off-white);
    border: 1px solid var(--btcu-gray-200);
    border-radius: var(--radius-xl);
    scroll-snap-align: start;
    transition: all var(--transition-default);
}

.age-bracket-card:hover {
    border-color: var(--btcu-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.age-bracket-emoji {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
}

.age-bracket-ages {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--btcu-gold-light);
    color: var(--btcu-navy);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
}

.age-bracket-name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--btcu-navy);
    margin-bottom: var(--space-2);
}

.age-bracket-description {
    font-size: var(--text-sm);
    color: var(--btcu-gray-500);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ============================================
   TESTIMONIALS SECTION
============================================ */

.testimonials {
    padding: var(--space-24) 0;
    background: var(--btcu-off-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.testimonial-card {
    padding: var(--space-6);
    background: var(--btcu-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--btcu-gray-200);
}

.testimonial-quote {
    font-size: var(--text-base);
    font-style: italic;
    color: var(--btcu-gray-600);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--btcu-gold), var(--btcu-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--btcu-navy);
    font-weight: var(--font-semibold);
}

.testimonial-info {
    line-height: 1.3;
}

.testimonial-name {
    font-weight: var(--font-semibold);
    color: var(--btcu-navy);
}

.testimonial-role {
    font-size: var(--text-sm);
    color: var(--btcu-gray-500);
}

/* ============================================
   CTA SECTION
============================================ */

.cta {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, var(--btcu-navy) 0%, var(--btcu-navy-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9b896' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 48rem;
    margin: 0 auto;
}

.cta h2 {
    color: var(--btcu-white);
    margin-bottom: var(--space-4);
}

.cta p {
    font-size: var(--text-xl);
    color: var(--btcu-gray-300);
    margin-bottom: var(--space-8);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
============================================ */

.footer {
    background: var(--btcu-black);
    color: var(--btcu-gray-400);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand {
    max-width: 20rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-logo-img {
    height: 3rem;
    width: auto;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--btcu-gold);
}

.footer-description {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(201, 184, 150, 0.1);
    border-radius: var(--radius-lg);
    color: var(--btcu-gray-400);
    transition: all var(--transition-fast);
}

.footer-social-link:hover {
    background: var(--btcu-gold);
    color: var(--btcu-navy);
}

.footer-column h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--btcu-white);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--btcu-gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--btcu-gold);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(201, 184, 150, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-copyright {
    font-size: var(--text-sm);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    font-size: var(--text-sm);
    color: var(--btcu-gray-400);
}

.footer-legal a:hover {
    color: var(--btcu-gold);
}

/* ============================================
   RESPONSIVE STYLES
============================================ */

@media (max-width: 1200px) {
    .hero-content {
        gap: var(--space-12);
    }
    
    .hero-crest-img {
        width: 22rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-crest-img {
        width: 18rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tiers-grid {
        grid-template-columns: 1fr;
        max-width: 28rem;
        margin: 0 auto;
    }
    
    .tier-card.featured {
        transform: none;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: var(--space-16) var(--space-4);
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-description {
        font-size: var(--text-lg);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .hero-crest-img {
        width: 14rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}
