/* Animated Gradient Background */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Particles Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-30px) translateX(10px); }
}

.hero-section {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

/* Gradient Orbs */
.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float-slow 20s ease-in-out infinite;
}

/* Floating Particles */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    animation: float 25s ease-in-out infinite;
}

[data-theme="dark"] .hero-section::before {
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .stats-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.stats-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

.stats-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stats-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

/* Feature Cards */
.feature-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .feature-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.25);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--trans-text-secondary, #6c757d);
    line-height: 1.7;
    flex-grow: 1;
}

/* Language Cards */
.language-card {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    cursor: pointer;
}

.language-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
}

.language-emoji {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.language-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.language-native {
    font-size: 1.2rem;
    color: #6c757d;
}

/* Use Case Cards */
.use-case-card {
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    border-left: 4px solid #6366f1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .use-case-card {
    background: rgba(26, 26, 46, 0.95);
    border-left-color: #6366f1;
}

.use-case-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateX(5px);
}

.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.use-case-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.use-case-desc {
    color: #6c757d;
    line-height: 1.6;
    flex-grow: 1;
}

/* FAQ Section */
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.faq-question {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.faq-answer {
    color: #6c757d;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    padding: 80px 0;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Example Phrases */
.example-phrase {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.example-phrase:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .stats-number {
        font-size: 2rem;
    }
}
    .stats-number {
        font-size: 2rem;
    }
}

/* Creative Language Card Styles */
.language-card-creative {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.language-card-creative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.language-card-creative:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.language-card-creative:hover::before {
    opacity: 1;
}

.lang-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.language-card-creative:hover .lang-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.lang-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.language-card-creative:hover .lang-title {
    color: #6366f1;
}

.lang-native {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 15px;
}

.lang-arrow {
    font-size: 1.2rem;
    color: #cbd5e1;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.language-card-creative:hover .lang-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #6366f1;
}

/* Creative Use Case Card Styles */
.use-case-card-creative {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 35px 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.use-case-card-creative:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.use-case-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s;
}

.use-case-card-creative:hover .use-case-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.use-case-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.use-case-desc {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.use-case-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 0 0 0 100%;
    opacity: 0;
    transition: opacity 0.4s;
}

.use-case-card-creative:hover .use-case-decoration {
    opacity: 1;
}

/* Creative Feature Card Styles */
.feature-card-creative {
    background: white;
    border-radius: 24px;
    padding: 35px 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card-creative:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s;
}

.feature-card-creative:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.feature-desc {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Creative Step Card Styles */
.step-card-creative {
    padding: 30px;
    position: relative;
}

.step-number-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 1;
    transition: transform 0.4s;
}

.step-card-creative:hover .step-number-wrapper {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.step-number {
    color: white;
    font-size: 2rem;
    font-weight: 800;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.step-desc {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Creative CTA Styles */
.cta-card-creative {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 80px 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.cta-card-creative::before {
    display: none;
}

.cta-title-creative {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle-creative {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-creative-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-creative-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-creative-primary .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-creative-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-creative-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-creative-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: white;
}

/* Creative FAQ Styles */
.faq-item-creative {
    margin-bottom: 20px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item-creative:hover {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.faq-button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-button:not(.collapsed) {
    background: rgba(99, 102, 241, 0.03);
}

.faq-icon-wrapper {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    transition: all 0.3s;
}

.faq-button:not(.collapsed) .faq-icon-wrapper {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.faq-icon {
    font-size: 1.2rem;
    color: #64748b;
    transition: all 0.3s;
}

.faq-button:not(.collapsed) .faq-icon {
    color: white;
}

.faq-question-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.faq-toggle-icon {
    font-size: 1.5rem;
    color: #94a3b8;
    transition: transform 0.3s;
}

.faq-button:not(.collapsed) .faq-toggle-icon {
    transform: rotate(45deg);
    color: #6366f1;
}

.faq-body {
    padding: 0 25px 25px 85px;
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .faq-body {
        padding: 0 25px 25px 25px;
    }
    .faq-icon-wrapper {
        margin-right: 15px;
    }
}

/* IME Dropdown Styles */
.ime-dropdown {
    background: white;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 10000;
    min-width: 150px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px 0;
    font-family: 'Outfit', sans-serif;
}

.ime-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 1rem;
    color: #475569;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.ime-item:last-child {
    border-bottom: none;
}

.ime-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #ede9fe 100%);
    color: #4f46e5;
}

.ime-item.selected {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
}

/* Suggestion chip bar (home demo) */
.home-suggest {
    display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
}
.home-suggest::-webkit-scrollbar { height: 6px; }
.home-suggest::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 6px; }
.home-suggest .lite-chip {
    flex: 0 0 auto; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.95);
    color: #1e293b; font-size: 1.05rem; font-weight: 500; padding: 7px 15px; border-radius: 8px;
    cursor: pointer; transition: all .15s; white-space: nowrap; line-height: 1.4;
}
.home-suggest .lite-chip:hover { border-color: #8b5cf6; }
.home-suggest .lite-chip.active { background: #16a34a; border-color: #16a34a; color: #fff; font-weight: 600; }
.home-suggest .lite-chip.original { color: #64748b; font-style: italic; }
