/* =========================================================================
   Combine AI - Brand Stylesheet
   ========================================================================= */

:root {
    /* Brand Colors (Purple/Lavender matching screenshots) */
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-light: #ede9fe;

    /* Text & Background */
    --text-main: #27272a;
    --text-muted: #52525b;
    --text-light: #a1a1aa;
    --bg-main: #fcfcfd;
    --bg-card: #ffffff;
    --footer-bg: #18181b;

    /* Store Buttons */
    --ios-bg: #000000;
    --ios-text: #ffffff;
    --android-bg: #000000;
    --android-text: #ffffff;

    /* Layout & Utilities */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 999px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= Navbar ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.nav-left {
    flex: 1;
    display: flex;
    align-items: center;
}

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

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.nav-center .brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.language-selector {
    position: relative;
}

.lang-btn {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--primary);
    color: white;
}

.lang-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    min-width: 140px;
    overflow: hidden;
    z-index: 10;
}

.lang-dropdown.show {
    display: flex;
    animation: fadeInDown 0.2s ease forwards;
}

.lang-dropdown a {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.lang-dropdown a:last-child {
    border-bottom: none;
}

/* ================= Hero Section ================= */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Soft animated backgrounds */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: floatBlob 10s infinite alternate ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: floatBlob 12s infinite alternate-reverse ease-in-out;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.app-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    background-color: var(--ios-bg);
    color: var(--ios-text);
    padding: 10px 24px;
    border-radius: 12px;
    gap: 12px;
    transition: var(--transition);
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.store-btn i {
    font-size: 28px;
}

.btn-texts {
    display: flex;
    flex-direction: column;
}

.btn-subtext {
    font-size: 0.65rem;
    line-height: 1;
    opacity: 0.8;
}

.btn-maintext {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.mockup-img {
    max-width: 100%;
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
}

.main-mockup {
    width: 320px;
    transform: rotate(-2deg);
    transition: var(--transition);
}

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

/* ================= Features Section ================= */
.features {
    padding: 100px 0;
    background: white;
}

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

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.feature-card.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.feature-mockup {
    width: 280px;
    transition: var(--transition);
}

.feature-card:hover .feature-mockup {
    transform: translateY(-10px);
}

/* Overlapping images for feature 2 */
.overlapping-images {
    position: relative;
    width: 300px;
    height: 600px;
}

.overlapping-back {
    position: absolute;
    width: 240px;
    top: 0;
    left: 0;
    opacity: 0.9;
    transform: scale(0.95);
    transition: var(--transition);
}

.overlapping-front {
    position: absolute;
    width: 240px;
    bottom: 0;
    right: 0;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.feature-card:hover .overlapping-back {
    transform: translate(-15px, -15px) scale(0.95) rotate(-3deg);
    opacity: 1;
}

.feature-card:hover .overlapping-front {
    transform: translate(15px, 15px) rotate(3deg);
}

/* ================= CTA Banner ================= */
.cta-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    text-align: center;
}

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

.cta-banner h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-banner .app-buttons {
    justify-content: center;
}

.cta-banner .store-btn {
    background: white;
    color: var(--text-main);
}

.cta-banner .store-btn:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* ================= Footer ================= */
.footer {
    background: var(--footer-bg);
    color: white;
    padding-top: 80px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    padding-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.logo-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .brand-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
}

.footer-logo {
    height: 48px;
    width: 48px;
    object-fit: contain;
    background-color: white;
    border-radius: 50%;
    padding: 6px;
}

.footer-desc {
    color: var(--text-light);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ================= Animations ================= */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, 20px) scale(1.05);
    }
}

/* ================= Responsive ================= */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .feature-card,
    .feature-card.reverse {
        flex-direction: column;
        text-align: center;
    }

    .icon-wrapper {
        margin: 0 auto 24px auto;
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .app-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image-wrapper {
        margin-top: 40px;
    }

    .overlapping-images {
        width: 260px;
        height: 500px;
    }

    .overlapping-back {
        width: 200px;
    }

    .overlapping-front {
        width: 200px;
    }

    .footer-container {
        flex-direction: column;
    }
}