/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --primary-dark: #0a2e1f;
    --primary-medium: #1b5e3a;
    --primary-light: #2e7d32;
    --accent: #f4c542;
    --accent-dark: #d4a030;
    --text-light: #f0f4f0;
    --text-dark: #1a1a1a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    min-height: 100vh;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 46, 31, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(244, 197, 66, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo .highlight {
    color: var(--accent);
}

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

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

.nav-links a:hover {
    color: var(--accent);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero h1 .highlight {
    color: var(--accent);
}

.tagline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: rgba(244, 197, 66, 0.1);
    transform: scale(1.05);
}

/* ============================================
   Features Grid
   ============================================ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* ============================================
   Partner CTA Section
   ============================================ */
.partner-cta {
    background: rgba(244, 197, 66, 0.15);
    border: 1px solid var(--accent);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
}

.partner-cta h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.partner-cta p {
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Embedded App Container
   ============================================ */
.app-container {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: none;
}

.app-container iframe {
    width: 100%;
    height: 80vh;
    border: none;
    min-height: 600px;
}

/* ============================================
   Loading State
   ============================================ */
.loading {
    text-align: center;
    padding: 3rem;
    background: white;
    color: var(--primary-dark);
}

.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--accent);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-note {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .app-container iframe {
        height: 70vh;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 80%;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}