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

/* React root is hidden initially, will be shown by JavaScript when needed */
#root {
    display: none;
}

/* Welcome page is shown by default, will be hidden when React app is active */
#welcome-page {
    display: block;
}

/* When React is active, ensure it takes full control */
#root:not([style*="display: none"]) {
    min-height: 100vh;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #181A20;
    color: #F3F4F6;
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container-md {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header/Navigation */
.header {
    background-color: #1F2233;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #F3F4F6;
}

.logo img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: #F3F4F6;
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-link {
    color: #F3F4F6;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.2s;
    font-size: 0.875rem;
}

.nav-link:hover {
    background-color: rgba(255, 214, 0, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0057B8 0%, #003d82 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: white;
    color: #0057B8;
}

.btn-primary:hover {
    background-color: #f5f5f5;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

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

.section-gray {
    background-color: #23263A;
}

.section-dark {
    background-color: #1a1d29;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
    color: #F3F4F6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background-color: #23263A;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #282B3A;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.feature-icon {
    color: #0057B8;
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #F3F4F6;
}

.feature-description {
    color: #A0AEC0;
    line-height: 1.6;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

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

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 0;
}

.benefit-icon {
    color: #43E97B;
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 1.1rem;
    color: #F3F4F6;
}

.analytics-card {
    background: linear-gradient(135deg, #4299e1 0%, #0057B8 100%);
    padding: 48px 32px;
    border-radius: 16px;
    text-align: center;
    color: white;
}

.analytics-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

.analytics-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.analytics-description {
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.badge {
    background-color: white;
    color: #0057B8;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    margin-top: 48px;
}

.step {
    text-align: center;
}

.step-number {
    background-color: #0057B8;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 24px;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #F3F4F6;
}

.step-description {
    color: #A0AEC0;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background-color: #1a1d29;
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background-color: #0057B8;
    color: white;
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-cta-primary:hover {
    background-color: #003d82;
    transform: translateY(-2px);
}

.btn-cta-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 14px 30px;
    font-size: 1.1rem;
}

.btn-cta-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Footer */
.footer {
    background-color: #23263A;
    padding: 32px 0;
    text-align: center;
    color: #A0AEC0;
    border-top: 1px solid #282B3A;
}

.footer a {
    color: #A0AEC0;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Social Icons */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: transparent;
    color: #FF4500;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid #FF4500;
}

.social-icon:hover {
    background-color: #FF4500;
    color: white;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}