/* Landing Page Styles - Modern, Open Design */
/* With beautiful gradient background image and CJK font support */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #e0efe0;
    line-height: 1.6;
}

/* CJK Font Classes */
body.lang-zh {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.lang-ja {
    font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Fixed background with beautiful gradient image */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url('bg.png') center center / cover no-repeat;
}

/* Dark overlay for better text readability */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, transparent 0%, rgba(10, 20, 10, 0.4) 100%),
        linear-gradient(180deg, rgba(10, 25, 15, 0.3) 0%, rgba(10, 20, 10, 0.5) 100%);
}

/* ==================== Typography ==================== */
.text-light {
    font-weight: 300;
    opacity: 0.85;
}

.text-accent {
    color: #a8e090;
    font-weight: 600;
}

/* Italic for English only */
.text-italic,
em.text-italic {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

/* Bold style for CJK languages (no italic) */
.cjk-bold {
    font-weight: 700;
    font-style: normal !important;
}

body.lang-zh .cjk-bold,
body.lang-ja .cjk-bold {
    font-family: inherit;
}

/* ==================== Top Navigation ==================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    background: linear-gradient(180deg, rgba(15, 30, 20, 0.6) 0%, transparent 100%);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f0f5ec;
    font-weight: 600;
    font-size: 17px;
}

.nav-logo svg {
    color: #a8e090;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(20, 40, 25, 0.7);
    backdrop-filter: blur(16px);
    border-radius: 8px;
    border: 1px solid rgba(160, 180, 140, 0.2);
}

.lang-btn {
    padding: 6px 14px;
    background: transparent;
    border: none;
    color: rgba(200, 220, 190, 0.7);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: #e0f0dc;
}

.lang-btn.active {
    background: rgba(168, 224, 144, 0.25);
    color: #c0f0b0;
}

/* ==================== Floating Elements ==================== */
.floating-elements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.float-icon {
    position: absolute;
    background: rgba(50, 80, 50, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 14px;
    color: rgba(168, 216, 152, 0.7);
    border: 1px solid rgba(160, 180, 140, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Icon positions - spread around the page */
.float-1 {
    top: 18%;
    left: 8%;
    animation: float 7s ease-in-out infinite;
}

.float-2 {
    top: 30%;
    right: 10%;
    animation: float 8s ease-in-out infinite 1s;
}

.float-3 {
    bottom: 35%;
    left: 12%;
    animation: float 6s ease-in-out infinite 2s;
}

.float-4 {
    top: 55%;
    right: 8%;
    animation: float 9s ease-in-out infinite 0.5s;
}

.float-5 {
    top: 12%;
    right: 25%;
    animation: float 7s ease-in-out infinite 3s;
}

.float-6 {
    bottom: 20%;
    right: 18%;
    animation: float 6s ease-in-out infinite 1.5s;
}

.float-7 {
    top: 45%;
    left: 5%;
    animation: float 8s ease-in-out infinite 2.5s;
}

.float-8 {
    bottom: 15%;
    left: 22%;
    animation: float 7s ease-in-out infinite 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Glowing orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 224, 144, 0.6) 0%, transparent 70%);
    top: 15%;
    left: 20%;
    animation: pulse 8s ease-in-out infinite;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(120, 200, 160, 0.5) 0%, transparent 70%);
    top: 40%;
    right: 15%;
    animation: pulse 10s ease-in-out infinite 2s;
}

.orb-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(200, 230, 180, 0.4) 0%, transparent 70%);
    bottom: 25%;
    left: 30%;
    animation: pulse 9s ease-in-out infinite 4s;
}

.orb-4 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(140, 210, 170, 0.5) 0%, transparent 70%);
    bottom: 40%;
    right: 25%;
    animation: pulse 7s ease-in-out infinite 1s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* ==================== Hero Section - Full Width ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 48px 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(168, 224, 144, 0.15);
    border: 1px solid rgba(168, 224, 144, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #b8e8a8;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(42px, 7vw, 80px);
    font-weight: 500;
    line-height: 1.15;
    color: #f2f7ee;
    margin-bottom: 28px;
    letter-spacing: -1.5px;
}

.hero-title em.text-italic {
    font-size: 1.05em;
}

.hero-subtitle {
    font-size: 18px;
    color: #a8c8a4;
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

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

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border: none;
    border-radius: 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: rgba(245, 250, 240, 0.95);
    color: #1a2a18;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #c8dcc4;
    border: 1px solid rgba(180, 200, 160, 0.3);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(180, 200, 160, 0.15);
    border-color: rgba(180, 200, 160, 0.5);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #8a9a86;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 20px;
}

.btn-link:hover {
    color: #a8e090;
    background: rgba(168, 224, 144, 0.08);
}

/* ==================== Hero Stats ==================== */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #e8f8e0;
}

.stat-label {
    font-size: 12px;
    color: #8a9a86;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(160, 180, 140, 0.3);
}

/* ==================== Section Common ==================== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #8aa886;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    color: #f0f5ec;
    letter-spacing: -0.5px;
}

/* ==================== Features Section ==================== */
.features {
    padding: 100px 48px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: linear-gradient(165deg,
            rgba(40, 65, 40, 0.55) 0%,
            rgba(30, 50, 32, 0.6) 50%,
            rgba(22, 38, 24, 0.7) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid rgba(160, 180, 140, 0.12);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 220, 160, 0.25), transparent);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 224, 144, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(168, 224, 144, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a8e090;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e8f0e4;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: #9aaa96;
    line-height: 1.6;
}

/* ==================== Showcase / Demo Section ==================== */
.demo {
    padding: 100px 48px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.demo-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.demo-item {
    display: flex;
    align-items: center;
    gap: 80px;
}

.demo-item.reverse {
    flex-direction: row-reverse;
}

.demo-info {
    flex: 1;
}

.demo-info h3 {
    font-size: 32px;
    font-weight: 600;
    color: #f0f5ec;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.demo-info p {
    font-size: 18px;
    color: #9aaa96;
    line-height: 1.7;
}

.browser-mockup {
    flex: 1.2;
    background: rgba(20, 35, 20, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(160, 180, 140, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

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


.browser-mockup img {
    width: 100%;
    display: block;
    mix-blend-mode: lighten;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.browser-mockup:hover img {
    opacity: 1;
}

/* ==================== How It Works Section ==================== */
.how-it-works {
    padding: 100px 48px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 260px;
}

.step-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 64px;
    font-weight: 400;
    color: rgba(168, 224, 144, 0.35);
    line-height: 1;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e8f0e4;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: #9aaa96;
    line-height: 1.6;
}

/* ==================== Footer ==================== */
footer {
    padding: 48px;
    text-align: center;
    border-top: 1px solid rgba(160, 180, 140, 0.08);
    position: relative;
    z-index: 1;
}

footer p {
    font-size: 13px;
    color: #6a7a66;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        gap: 40px;
    }

    .float-4,
    .float-5,
    .float-6,
    .float-7,
    .float-8 {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 16px 24px;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-title {
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .features {
        padding: 80px 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .demo-item,
    .demo-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .demo-info h3 {
        font-size: 28px;
    }

    .demo-info p {
        font-size: 16px;
    }

    .how-it-works {
        padding: 80px 24px;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .step {
        max-width: 100%;
    }

    .step-number {
        font-size: 48px;
    }

    .float-icon {
        transform: scale(0.8);
    }

    .float-3,
    .float-4,
    .float-5,
    .float-6,
    .float-7,
    .float-8 {
        display: none;
    }

    .glow-orb {
        opacity: 0.25;
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .float-icon {
        display: none;
    }
}