/* ===== TalkBits Landing - Organic Design ===== */

:root {
    --ink: #1a1a2e;
    --paper: #faf9f7;
    --cream: #f5f3ef;
    --coral: #ff6b6b;
    --coral-soft: #ff8a8a;
    --ocean: #4ecdc4;
    --ocean-deep: #2d9a8f;
    --violet: #7c5cbf;
    --violet-soft: #9d7fd9;
    --gold: #ffc857;
    --blush: #ffe5e5;
    --mint: #e8f6f5;
    --text: #2d2d44;
    --text-soft: #6b6b80;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--paper);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Organic Shapes ===== */
.blob-1,
.blob-2,
.blob-3 {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--coral);
    top: -200px;
    right: -100px;
    opacity: 0.15;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--ocean);
    bottom: 20%;
    left: -150px;
    opacity: 0.12;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--violet);
    top: 50%;
    right: 10%;
    opacity: 0.1;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(250, 249, 247, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.logo-icon {
    font-size: 1.6rem;
}

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

.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--ink) !important;
    color: var(--paper) !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: 50px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--violet) !important;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 2rem 5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-content {
    flex: 1.2;
    padding-right: 3rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--mint);
    color: var(--ocean-deep);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.hero-title .highlight {
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 12px;
    background: var(--gold);
    opacity: 0.5;
    z-index: -1;
    border-radius: 4px;
    transform: rotate(-1deg);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-soft);
    max-width: 440px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--coral);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
}

.btn-ghost {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    transition: color 0.2s;
}

.btn-ghost:hover {
    color: var(--coral);
}

.hero-proof {
    margin-top: 3rem;
    display: flex;
    gap: 2.5rem;
}

.proof-item {
    display: flex;
    flex-direction: column;
}

.proof-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.proof-label {
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* ===== Phone Visual ===== */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame {
    width: 260px;
    background: var(--ink);
    border-radius: 36px;
    padding: 8px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
    transform: rotate(3deg);
}

.phone-screen {
    background: linear-gradient(145deg, #2a2a45, #1a1a2e);
    border-radius: 28px;
    padding: 1.5rem 1rem;
    min-height: 420px;
}

.chat-bubble {
    padding: 0.9rem 1.1rem;
    border-radius: 18px;
    margin-bottom: 0.8rem;
    font-size: 0.88rem;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: backwards;
}

.chat-bubble.ai {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-bottom-left-radius: 6px;
    max-width: 90%;
}

.chat-bubble.user {
    background: var(--coral);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 6px;
    max-width: 75%;
}

.chat-bubble:nth-child(1) {
    animation-delay: 0.3s;
}

.chat-bubble:nth-child(2) {
    animation-delay: 0.8s;
}

.chat-bubble:nth-child(3) {
    animation-delay: 1.3s;
}

.chat-bubble .flag {
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

.typing-dots {
    display: flex;
    gap: 5px;
    padding: 0.8rem;
    animation: slideUp 0.5s ease-out;
    animation-delay: 1.8s;
    animation-fill-mode: backwards;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--ocean);
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

@keyframes pulse {

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

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Features ===== */
.features {
    padding: 6rem 2rem;
    background: var(--cream);
}

.features-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-intro {
    max-width: 500px;
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--coral);
    margin-bottom: 1rem;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.features-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-tile {
    background: var(--paper);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-tile.accent-coral {
    border-top: 4px solid var(--coral);
}

.feature-tile.accent-ocean {
    border-top: 4px solid var(--ocean);
}

.feature-tile.accent-violet {
    border-top: 4px solid var(--violet);
}

.feature-tile.accent-gold {
    border-top: 4px solid var(--gold);
}

.feature-emoji {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.feature-tile h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.feature-tile p {
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 7rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

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

.steps-row {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
}

.steps-row::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 80px;
    right: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--coral), var(--ocean), var(--violet));
    border-radius: 2px;
    z-index: 0;
}

.step-card {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 70px;
    height: 70px;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-soft);
    max-width: 280px;
    margin: 0 auto;
}

/* ===== Languages ===== */
.languages-section {
    background: var(--ink);
    color: var(--paper);
    padding: 5rem 2rem;
    text-align: center;
}

.languages-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.flags-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.flag-chip {
    font-size: 2.4rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s;
    cursor: default;
}

.flag-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.15) rotate(-3deg);
}

/* ===== CTA ===== */
.final-cta {
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--blush), var(--mint));
    border-radius: 32px;
    padding: 4rem 3rem;
}

.cta-box h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-bottom: 2rem;
}

.store-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--ink);
    color: var(--paper);
    padding: 0.9rem 1.5rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

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

.store-btn svg {
    width: 26px;
    height: 26px;
}

.store-btn div {
    text-align: left;
}

.store-btn .small {
    font-size: 0.7rem;
    opacity: 0.7;
}

.store-btn .big {
    font-size: 1.05rem;
    font-weight: 700;
}

/* ===== Footer ===== */
footer {
    background: var(--cream);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--coral);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-soft);
    opacity: 0.7;
}

/* ===== Language Switcher ===== */
.lang-switch {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text);
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--paper);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-height: 280px;
    overflow-y: auto;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.7rem;
    background: none;
    border: none;
    color: var(--text-soft);
    font-size: 0.88rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s;
    text-align: left;
}

.lang-item:hover {
    background: var(--cream);
    color: var(--ink);
}

.lang-item.active {
    background: var(--mint);
    color: var(--ocean-deep);
}

.lang-item span {
    font-size: 1.15rem;
}

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

    .steps-row::before {
        display: none;
    }

    .steps-row {
        flex-direction: column;
        gap: 2rem;
    }
}

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

    .hero-content {
        padding-right: 0;
    }

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

    .hero-actions {
        justify-content: center;
    }

    .hero-proof {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    .phone-frame {
        transform: rotate(0);
    }

    .features-mosaic {
        grid-template-columns: 1fr;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }
}

/* ===== RTL ===== */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .hero-content {
    padding-right: 0;
    padding-left: 3rem;
}

[dir="rtl"] .chat-bubble.user {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .chat-bubble .flag {
    margin-right: 0;
    margin-left: 0.4rem;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}