/* ============================================
   LinQo Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    overflow: hidden;
}

/* Background circuit grid */
.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 180, 216, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 216, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero__bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
    top: 20%;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

.hero__bg-glow--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

/* Hero content layout */
.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.hero__badge {
    align-self: flex-start;
}

.hero__title {
    font-size: var(--fs-hero);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-main);
}

.hero__title-highlight {
    position: relative;
    display: inline;
}

.hero__title-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(90deg, rgba(15, 204, 211, 0.4), rgba(99, 102, 241, 0.4));
    border-radius: 4px;
    z-index: -1;
    filter: blur(4px);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: var(--lh-relaxed);
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-sm);
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
}

.hero__stat-label {
    font-size: var(--fs-xs);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Hero visual (phone mockup) */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero__phone {
    position: relative;
    width: 280px;
    height: 560px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 44px; /* Smoother apple-like curve */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Outer intense glow to ground the device */
    box-shadow: 
        0 20px 50px rgba(15, 23, 42, 0.1),
        0 0 60px rgba(0, 180, 216, 0.15),
        inset 0 0 0 4px rgba(255, 255, 255, 1); /* Inner metallic rim */
    padding: 12px;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero__visual:hover .hero__phone {
    transform: translateY(-10px);
}

.hero__phone-rim-glow {
    position: absolute;
    inset: 0;
    border-radius: 44px;
    box-shadow: inset 0 0 30px rgba(15, 204, 211, 0.3);
    pointer-events: none;
    z-index: 10;
}

.hero__phone::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    z-index: 3;
}

.hero__phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-body);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Chat messages inside phone mockup */
.hero__chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 40px 12px 12px;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.4;
    animation: float 4s ease-in-out infinite;
}

.chat-msg--sent {
    align-self: flex-end;
    background: var(--teal-dark);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-msg--received {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-msg--translate {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15), rgba(0, 229, 255, 0.08));
    border: 1px solid rgba(0, 180, 216, 0.2);
    color: var(--teal-light);
    font-style: italic;
}

.chat-msg__lang {
    font-size: 10px;
    color: var(--teal);
    margin-bottom: 4px;
    display: block;
}

/* Hero keyboard bar */
.hero__keyboard {
    padding: 8px 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__keyboard-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--teal);
    padding: 4px 8px;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.hero__keyboard-input {
    flex: 1;
    height: 28px;
    background: var(--bg-body);
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

/* Floating decorative elements around phone */
.hero__float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-main);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
    z-index: 5;
}

.hero__float-badge--1 {
    top: 10%;
    right: -30px;
    animation-delay: 0s;
}

.hero__float-badge--2 {
    bottom: 30%;
    left: -40px;
    animation-delay: 1.5s;
}

.hero__float-badge--3 {
    bottom: 10%;
    right: -20px;
    animation-delay: 3s;
}

.hero__float-badge-icon {
    font-size: 18px;
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__text {
        align-items: center;
    }

    .hero__subtitle {
        margin: 0 auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__visual {
        margin-top: var(--space-lg);
    }

    .hero__phone {
        width: 240px;
        height: 480px;
    }

    .hero__float-badge {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__stats {
        gap: var(--space-md);
    }

    .hero__stat-value {
        font-size: 1.5rem;
    }
}