/* Landing Page Bundle - Extracted from main.css */
/* Date: 2025-08-16 */

/* Critical Base Styles for Landing Page */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
}

main {
    display: block;
    min-height: 80vh;
}

/* Container and Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Feature Grid Layouts */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

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

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

/* Carousel Styles */
.carousel-section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    position: relative;
}

.carousel-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--link), var(--primary-color));
    border-radius: 2px;
}

.carousel-track {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--text-on-accent);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    z-index: 10;
}

.carousel-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 0.5rem;
}

.carousel-nav.next {
    right: 0.5rem;
}

/* Carousel arrows and interactions */
.carousel-arrow {
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-arrow:hover {
    transform: scale(1.1) rotate(5deg);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

/* Beta Notice Styles */
.beta-notice {
    background: var(--warning-bg, #fff3cd);
    color: var(--warning-text, #856404);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 2rem auto;
    border: 1px solid var(--warning, #ffc107);
    max-width: 800px;
    text-align: center;
}

.beta-notice-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Commercial Info Cards */
.commercial-info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.commercial-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.commercial-info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .commercial-info-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }
    
    .commercial-info-card {
        padding: 16px;
    }
    
    .carousel-section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
}

/* Landing page specific utility classes */
.text-center {
    text-align: center;
}

.section-spacing {
    margin: 60px 0;
}

@media (max-width: 767px) {
    .section-spacing {
        margin: 40px 0;
    }
}

/* FAQ Section */
.faq-section {
    padding: 4rem 2rem;
    background: var(--bg-surface);
    max-width: 900px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-hover);
}

.faq-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Existing Users / Already Have Access Section */
.existing-users-section {
    background: var(--bg-surface);
    padding: 60px 20px;
    text-align: center;
}

.existing-users-content {
    max-width: 700px;
    margin: 0 auto;
}

.existing-users-content h3,
.existing-users-section h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
}

.existing-users-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.existing-users-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-separator {
    color: var(--text-secondary);
    font-style: normal;
    padding: 0 0.5rem;
}

/* Create Portal Section */
.create-portal-section {
    padding: 60px 20px;
    background: var(--bg-card);
}

.create-portal-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--link);
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: normal;
}

/* Feature Icons for Carousels */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.carousel-slide .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-secondary);
}

.footer-attribution {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 1rem;
    }
    
    .faq-section h2 {
        font-size: 2rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1.25rem;
    }
    
    .existing-users-section {
        padding: 3rem 1rem;
    }
    
    .existing-users-section h2 {
        font-size: 1.75rem;
    }
    
    .existing-users-actions {
        gap: 1rem;
    }
    
    .create-portal-section {
        padding: 3rem 1rem;
    }
    
    .create-portal-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
}

/* World Map Demo Styles */
.world-map-section {
    margin: 3rem 0;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.world-map-section .section-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.world-map-container {
    background: var(--bg-surface);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

#world-map-live,
#map-container {
    position: relative;
    z-index: 1;
    height: 400px;
    width: 100%;
}

#world-map-live .leaflet-container,
#world-map-live .leaflet-pane,
#world-map-live .leaflet-control {
    z-index: auto !important;
    max-z-index: 1000 !important;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: var(--bg-hover);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Site Footer */
.site-footer {
    background: var(--bg-surface);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-subtle);
}

/* Mobile Map Adjustments */
@media (max-width: 768px) {
    .world-map-section {
        margin: 2rem -1rem;
        border-radius: 0;
        padding: 1.5rem 1rem;
    }
    
    #world-map-live,
    #map-container {
        height: 300px !important;
    }
    
    .hero-section {
        padding: 60px 20px 40px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    #world-map-live,
    #map-container {
        height: 250px !important;
    }
}