/* ═══════════════════════════════════════════════════════════════════════════
   UCHENG AgentPlatform — Landing Page (Light Theme)
   Brand Orange: #F37021 / #E8956B
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --landing-primary: #F37021;
    --landing-primary-glow: rgba(243, 112, 33, 0.15);
    --landing-secondary: #E8956B;
    --landing-secondary-glow: rgba(232, 149, 107, 0.15);
    --landing-bg: #faf8f6;
    --landing-text-main: #3d342e;
    --landing-text-muted: #8a7e76;
    --landing-card-bg: rgba(255, 255, 255, 0.8);
    --landing-card-border: rgba(243, 112, 33, 0.10);
    --landing-surface: #ffffff;
    --landing-nav-bg: rgba(250, 248, 246, 0.85);
    --landing-footer-bg: #f0ece8;
    --landing-brand-start: #3d342e;
}

.lpx-theme-dark {
    --landing-primary: #F37021;
    --landing-primary-glow: rgba(243, 112, 33, 0.25);
    --landing-secondary: #E8956B;
    --landing-secondary-glow: rgba(232, 149, 107, 0.25);
    --landing-bg: #090d16;
    --landing-text-main: #f8fafc;
    --landing-text-muted: #94a3b8;
    --landing-card-bg: rgba(17, 24, 39, 0.75);
    --landing-card-border: rgba(255, 255, 255, 0.08);
    --landing-surface: #1e293b;
    --landing-nav-bg: rgba(9, 13, 22, 0.85);
    --landing-footer-bg: #0c101d;
    --landing-brand-start: #ffffff;
}

/* Base resets & styles */
.landing-body {
    background-color: var(--landing-bg);
    color: var(--landing-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* Background animated glow orbs (warm subtle) */
.landing-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--landing-primary-glow) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    right: -100px;
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

.landing-bg-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--landing-secondary-glow) 0%, rgba(0,0,0,0) 70%);
    bottom: 200px;
    left: -200px;
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 10s infinite alternate-reverse ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(-50px, 50px); }
}

/* Navbar */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--landing-nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--landing-card-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--landing-text-main);
}

.landing-brand-logo {
    height: 36px;
    width: auto;
}

.landing-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--landing-brand-start) 0%, #F37021 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.landing-nav-link {
    color: var(--landing-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.landing-nav-link:hover {
    color: var(--landing-primary);
}

.landing-nav-btn {
    background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-secondary) 100%);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px var(--landing-primary-glow);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.landing-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.3);
}

/* Hero Section */
.landing-hero {
    min-height: 90vh;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.landing-hero-tag {
    background: rgba(243, 112, 33, 0.08);
    border: 1px solid rgba(243, 112, 33, 0.2);
    color: var(--landing-primary);
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    display: inline-block;
    animation: fadeInDown 0.8s ease-out;
}

.landing-hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--landing-brand-start) 0%, var(--landing-primary) 50%, var(--landing-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.landing-hero-desc {
    font-size: 1.25rem;
    color: var(--landing-text-muted);
    max-width: 750px;
    line-height: 1.6;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

.landing-hero-ctas {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1.2s ease-out;
}

.landing-btn-primary {
    background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-secondary) 100%);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 30px var(--landing-primary-glow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.landing-btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(243, 112, 33, 0.35);
}

.landing-btn-secondary {
    background: var(--landing-surface);
    color: var(--landing-text-main);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid var(--landing-card-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-btn-secondary:hover {
    background: rgba(243, 112, 33, 0.04);
    transform: translateY(-2px);
    border-color: rgba(243, 112, 33, 0.2);
}

/* Features Section */
.landing-features-section {
    padding: 8rem 2rem;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.landing-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--landing-brand-start) 0%, var(--landing-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-section-desc {
    color: var(--landing-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.landing-feature-card {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-card-border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.landing-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--landing-primary), var(--landing-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.landing-feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(243, 112, 33, 0.2);
    box-shadow: 0 12px 30px rgba(243, 112, 33, 0.1);
}

.landing-feature-card:hover::before {
    opacity: 1;
}

.landing-feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(243, 112, 33, 0.08);
    border: 1px solid rgba(243, 112, 33, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F37021;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.landing-feature-card:hover .landing-feature-icon-wrapper {
    background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-secondary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--landing-primary-glow);
}

.landing-feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--landing-text-main);
}

.landing-feature-desc {
    color: var(--landing-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Architecture Section */
.landing-arch-section {
    padding: 4rem 2rem 8rem 2rem;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-arch-container {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-card-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.landing-arch-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    margin-top: 2rem;
}

.landing-arch-node {
    flex: 1;
    min-width: 200px;
    background: var(--landing-surface);
    border: 1px solid var(--landing-card-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    z-index: 2;
}

.landing-arch-node h6 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--landing-text-main);
}

.landing-arch-node p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--landing-text-muted);
}

.landing-arch-arrow {
    display: flex;
    align-items: center;
    color: var(--landing-primary);
    font-size: 1.5rem;
    animation: flowPulse 2s infinite ease-in-out;
}

@keyframes flowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(5px); opacity: 1; }
}

/* Footer styling */
.landing-footer {
    border-top: 1px solid var(--landing-card-border);
    padding: 4rem 4rem 2rem 4rem;
    background: var(--landing-footer-bg);
    position: relative;
    z-index: 10;
}

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

.landing-footer-brand {
    max-width: 400px;
}

.landing-footer-desc {
    color: var(--landing-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.landing-footer-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.landing-footer-link {
    color: var(--landing-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.landing-footer-link:hover {
    color: var(--landing-primary);
}

.landing-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(243, 112, 33, 0.10);
    font-size: 0.85rem;
    color: var(--landing-text-muted);
}

/* Animations keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .landing-nav {
        padding: 0 1.5rem;
    }
    .landing-nav-links {
        display: none;
    }
    .landing-hero-title {
        font-size: 2.75rem;
        letter-spacing: -1px;
    }
    .landing-hero-desc {
        font-size: 1.1rem;
    }
    .landing-hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .landing-btn-primary, .landing-btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.875rem 2rem;
    }
    .landing-arch-flow {
        flex-direction: column;
        align-items: stretch;
    }
    .landing-arch-arrow {
        transform: rotate(90deg);
        justify-content: center;
        margin: 0.5rem 0;
    }
    .landing-footer {
        padding: 3rem 1.5rem 2rem 1.5rem;
    }
}
