:root {
    /* LingoPath Core Brand Theme (Light Mode Base) */
    --primary: #18A190;
    --primary-light: #22D3BE;
    --primary-dark: #0F766E;
    --primary-glow: rgba(24, 161, 144, 0.2);
    
    --accent: #8b5cf6;
    --streak: #f97316;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #f43f5e;

    /* Backgrounds & Surfaces (Light) */
    --bg-main: #ffffff;
    --bg-secondary: #f3f4f6;
    --surface: #f9fafb;
    --surfaceAlt: #f3f4f6;
    
    /* Text (Dark for Light Mode) */
    --text-main: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    
    /* Border */
    --border: #e5e7eb;

    /* Layout */
    --container-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Headings use Bricolage Grotesque based on app theme */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }

/* Animated Background Blobs */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: var(--bg-main);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(24, 161, 144, 0.3) 0%, rgba(24, 161, 144, 0) 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0) 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 30%;
    left: 40%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.85);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.brand-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--primary-glow);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a.active::after { width: 100%; }
.nav-links a:hover::after { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    outline: none;
    font-family: 'Lexend', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
    background: var(--primary-dark);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(24, 161, 144, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Features */
.features {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: #ffffff;
    border-color: var(--primary-glow);
    box-shadow: 0 15px 40px rgba(24, 161, 144, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--surfaceAlt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Internal Pages */
.page-content {
    padding-top: 150px;
    padding-bottom: 6rem;
    flex-grow: 1;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.contact-card, .doc-card {
    background: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.doc-card {
    max-width: 800px;
    padding: 4rem;
}

.email-box {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.email-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Bricolage Grotesque', sans-serif;
}

.email-link:hover {
    color: var(--primary-dark);
}

.last-updated {
    color: var(--primary);
    margin-bottom: 3rem;
    font-weight: 500;
}

.doc-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.doc-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.doc-content ul {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.doc-content ul li {
    margin-bottom: 0.5rem;
}

.doc-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    background: rgba(249, 250, 251, 0.9);
    backdrop-filter: blur(10px);
    padding: 4rem 0 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-brand .brand-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 600;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

/* Animations using JS classes */
.fade-in-down {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-down.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: calc(var(--delay, 0) * 0.15s);
}

.stagger-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: calc(var(--delay, 0) * 0.2s);
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
    .hero-actions { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; align-items: center; }
    .nav-links { display: none; }
    .doc-card { padding: 2rem; }
}
