/* Lingo Widget Website Styles */

:root {
    /* Updated Vibrant Palette */
    --primary-color: #6366f1;
    /* Indigo 500 */
    --primary-dark: #4f46e5;
    /* Indigo 600 */
    --secondary-color: #8b5cf6;
    /* Violet 500 */
    --accent-color: #ec4899;
    /* Pink 500 */
    --bg-gradient-start: #f5f3ff;
    /* Very light violet */
    --bg-gradient-end: #e0e7ff;
    /* Very light indigo */

    --text-main: #1e1b4b;
    /* Indigo 950 */
    --text-muted: #4338ca;
    /* Indigo 700 */
    --text-light: #6366f1;
    /* Indigo 500 */

    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.6);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(99, 102, 241, 0.1), 0 2px 4px -1px rgba(99, 102, 241, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(99, 102, 241, 0.15), 0 4px 6px -2px rgba(99, 102, 241, 0.1);

    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --font-heading: 'Outfit', sans-serif;
    --font-sans: 'Inter', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

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

/* Header/Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

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

.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

/* Hero Section */
.hero {
    padding-top: 7.5rem;
    padding-bottom: 2.75rem;
    position: relative;
    overflow: hidden;
}

/* Decorative background blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}

.hero::before {
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.hero::after {
    background: var(--accent-color);
    bottom: -100px;
    left: -100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-text h1.text-gradient {
    display: inline-block;
    padding-bottom: 0.08em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    font-weight: 500;
}

.app-store-button {
    display: inline-block;
    transition: transform 0.2s, filter 0.2s;
}

.app-store-button:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 10px 15px rgba(99, 102, 241, 0.3));
}

.app-store-button img {
    height: 55px;
}

/* Hero Image Slider */
.hero-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-phone-wrapper {
    position: relative;
    z-index: 1;
    border-radius: 45px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #000;
    padding: 10px;
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}

.hero-phone-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-phone {
    width: 280px;
    border-radius: 35px;
    display: block;
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.slider-arrow:hover {
    background: white;
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Languages Slider */
.languages-section {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.section-title-small {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    font-weight: 700;
}

.languages-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.languages-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    /* Animation handled by JS for infinite loop or CSS keyframes */
    animation: scroll 60s linear infinite;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    color: var(--text-muted);
    background: white;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-sm);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Features Section */
.features {
    background: transparent;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-main);
}

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

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

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 1.2rem;
}

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

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Testimonials Slider */
.testimonials {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
    overflow: hidden;
}

.testimonials-slider-container {
    overflow: hidden;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 50s linear infinite reverse;
    /* Reverse direction */
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 350px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stars {
    color: #FBBF24;
    /* Amber 400 */
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Screenshots Auto-Slide */
.screenshots-section {
    background: var(--text-main);
    /* Dark background for screenshots */
    color: white;
    padding-bottom: 6rem;
}

.screenshots-section .section-title {
    color: white;
}

.screenshots-container {
    overflow: hidden;
    padding: 3rem 0;
}

.screenshots-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.screenshot-item {
    width: 280px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.screenshot-item:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Footer */
.site-footer {
    background: #0f0e24;
    /* Very dark indigo */
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #a5b4fc;
    /* Indigo 300 */
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #6366f1;
    /* Indigo 500 */
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 6.5rem;
        padding-bottom: 2.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .nav-links {
        display: none;
    }

    .hero-phone {
        width: 240px;
    }

    .hero-image-container {
        flex-direction: row;
        gap: 0.5rem;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
    }
}


/* Locale preview additions */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    position: relative;
}

.language-switcher label {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
}

.sr-only,
.language-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.language-menu-button {
    min-width: 188px;
    height: 38px;
    border: 1px solid rgba(99, 102, 241, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font: 700 0.9rem var(--font-sans);
    padding: 0 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    cursor: pointer;
}

.language-menu-button:hover,
.language-menu-button:focus-visible {
    border-color: rgba(99, 102, 241, 0.55);
    outline: none;
}

.language-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(30, 27, 75, 0.12);
    flex: 0 0 auto;
}

.language-chevron {
    margin-left: auto;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1;
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(320px, calc(100vw - 2rem));
    max-height: min(440px, calc(100vh - 120px));
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(30, 27, 75, 0.16);
    padding: 0.35rem;
    z-index: 1100;
}

.language-menu[hidden] {
    display: none;
}

.language-menu button {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-main);
    font: 700 0.92rem var(--font-sans);
    padding: 0.45rem 0.55rem;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    text-align: left;
}

.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button[aria-selected="true"] {
    background: rgba(99, 102, 241, 0.09);
    outline: none;
}

.language-menu .language-native {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-menu .language-english {
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.language-prompt {
    position: fixed;
    top: 82px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    width: min(560px, calc(100% - 32px));
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(30, 27, 75, 0.13);
    padding: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-main);
}

.language-prompt[hidden] {
    display: none;
}

.language-prompt p {
    margin: 0;
    color: var(--text-main);
    font-weight: 700;
}

.language-prompt-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-prompt button {
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
    font: 700 0.9rem var(--font-sans);
    padding: 0.5rem 0.7rem;
    cursor: pointer;
}

.language-prompt .primary {
    background: var(--primary-color);
    color: #fff;
}

.compact-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-features .feature-card {
    border-radius: 12px;
}

.compact-features .feature-card h3 {
    margin-bottom: 0.75rem;
}

.language-item span {
    color: var(--text-light);
    font-size: 0.88rem;
}

.language-item .language-native {
    color: var(--text-muted);
    font-size: 1rem;
}

.article-main {
    background: #fff;
    color: #101828;
}

.article-hero {
    padding: 8rem 0 3.5rem;
    background: linear-gradient(135deg, #f8f7ff, #eef2ff);
}

.article-wrap {
    max-width: 920px;
}

.article-kicker {
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.article-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: 0;
    max-width: 820px;
    margin-bottom: 1.25rem;
}

.article-lead {
    color: #475467;
    font-size: 1.25rem;
    max-width: 780px;
    margin-bottom: 1.4rem;
}

.article-cta {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 1rem;
    border-radius: 8px;
    background: #101828;
    color: #fff;
    font-weight: 800;
}

.article-band {
    padding: 3rem 0;
    background: #f4f2ff;
    border-top: 1px solid #e4e0ff;
    border-bottom: 1px solid #e4e0ff;
}

.article-section {
    padding: 3.25rem 0;
}

.article-section h2,
.article-band h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 1rem;
}

.article-section p,
.article-band p,
.keyword-list {
    color: #475467;
    font-size: 1.05rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.article-grid article {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 1.25rem;
}

.keyword-list {
    padding-left: 1.25rem;
    margin: 0 0 2rem;
}

.faq-block {
    border-top: 1px solid #e4e7ec;
    padding-top: 2rem;
}

.faq-block h3 {
    margin-top: 1.35rem;
    margin-bottom: 0.35rem;
}

html[dir="rtl"] .hero-text,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-subtitle,
html[dir="rtl"] .article-wrap,
html[dir="rtl"] .footer-content {
    text-align: right;
}

html[dir="rtl"] .hero-content {
    direction: rtl;
}

html[dir="rtl"] .keyword-list {
    padding-left: 0;
    padding-right: 1.25rem;
}

html[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .language-menu {
    left: 0;
    right: auto;
}

html[dir="rtl"] .language-menu button {
    text-align: right;
}

html[dir="rtl"] .language-chevron {
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 980px) {
    .nav-container {
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .compact-features,
    .article-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: auto;
    }

    .language-switcher label {
        display: none;
    }

    .language-menu-button {
        min-width: 152px;
        max-width: 180px;
    }

    .language-menu {
        right: 0;
    }

    .language-prompt {
        top: 76px;
        align-items: flex-start;
        flex-direction: column;
    }

    .article-hero {
        padding-top: 7rem;
    }
}
